Add free draw mode (#1570)

This commit is contained in:
Kostas Bariotis
2020-05-12 20:10:11 +01:00
committed by GitHub
parent 36e0c439fb
commit 9ec43d2626
21 changed files with 344 additions and 49 deletions

View File

@ -52,7 +52,6 @@ const getMinMaxXYFromCurvePathOps = (
transformXY?: (x: number, y: number) => [number, number],
): [number, number, number, number] => {
let currentP: Point = [0, 0];
const { minX, minY, maxX, maxY } = ops.reduce(
(limits, { op, data }) => {
// There are only four operation types: