1
0
Fork 0

feat(components): More examples in the Examples component

This commit is contained in:
Joost De Cock 2020-12-29 18:33:20 +01:00
parent 44e4352d3e
commit 62e64f973f
13 changed files with 189 additions and 96 deletions

View file

@ -1,10 +1,10 @@
export default part => {
export default (part) => {
let { Point, points, Path, paths, macro } = part.shorthand()
points.topLeft = new Point(0, 0)
points.topRight = new Point(150, 0)
points.bottomRight = new Point(150, 50)
points.bottomLeft = new Point(0, 50)
points.bottomRight = new Point(150, 30)
points.bottomLeft = new Point(0, 30)
paths.box = new Path()
.move(points.topLeft)
@ -14,8 +14,8 @@ export default part => {
.close()
macro('cutonfold', {
from: points.topRight,
to: points.topLeft,
from: points.bottomLeft,
to: points.bottomRight,
grainline: true
})