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

21 lines
531 B
JavaScript
Raw Normal View History

2019-01-27 12:54:18 +01:00
export default part => {
let { Point, points, Path, paths, snippets, Snippet } = part.shorthand();
points.topLeft = new Point(0, 0);
points.topRight = new Point(120, 0);
points.bottomRight = new Point(120, 70);
points.bottomLeft = new Point(0, 70);
points.logoAnchor = new Point(60, 47);
paths.box = new Path()
.move(points.topLeft)
.line(points.topRight)
.line(points.bottomRight)
.line(points.bottomLeft)
.close();
snippets.logo = new Snippet("logo", points.logoAnchor);
return part;
};