1
0
Fork 0
freesewing/packages/examples/src/plugin_cutonfold.js

24 lines
520 B
JavaScript
Raw Normal View History

2019-01-27 12:54:18 +01:00
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;
};