1
0
Fork 0
freesewing/packages/examples/src/plugin_cutonfold.js
2019-08-03 15:03:33 +02:00

23 lines
511 B
JavaScript

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)
paths.box = new Path()
.move(points.topLeft)
.line(points.topRight)
.line(points.bottomRight)
.line(points.bottomLeft)
.close()
macro('cutonfold', {
from: points.topRight,
to: points.topLeft,
grainline: true
})
return part
}