1
0
Fork 0

wip(dev): Work on examples sharing code from workbench

This commit is contained in:
Joost De Cock 2022-09-22 10:09:46 +02:00 committed by joostdecock
parent 75de42a03d
commit 34250abeed
22 changed files with 18 additions and 815 deletions

View file

@ -60,7 +60,7 @@ const pathDimensions = (from, to, cp1=false, cp2=false, path=false) => {
if (cp1.y > bottomRight.y) bottomRight.y = cp1.y
if (cp2.y > bottomRight.y) bottomRight.y = cp2.y
// This undocumented core methods returns the curve's bounding box
bbox = path.boundary()
bbox = path.bbox()
}
const w = bottomRight.x - topLeft.x
const h = bottomRight.y - topLeft.y