2019-01-27 12:54:18 +01:00
|
|
|
export default part => {
|
2019-01-28 15:39:33 +01:00
|
|
|
let { Point, points, Path, paths, Snippet, snippets } = part.shorthand();
|
2019-01-27 12:54:18 +01:00
|
|
|
|
|
|
|
points.A = new Point(45, 60);
|
|
|
|
points.B = new Point(10, 30);
|
|
|
|
points.BCp2 = new Point(40, 20);
|
|
|
|
points.C = new Point(90, 30);
|
|
|
|
points.CCp1 = new Point(50, -30);
|
|
|
|
points.D = new Point(-60, 90);
|
|
|
|
points.E = new Point(90, 190);
|
|
|
|
|
2019-01-28 15:39:33 +01:00
|
|
|
paths.demo = new Path()
|
2019-01-27 12:54:18 +01:00
|
|
|
.move(points.A)
|
|
|
|
.line(points.B)
|
|
|
|
.curve(points.BCp2, points.CCp1, points.C)
|
|
|
|
.curve(points.E, points.D, points.A)
|
|
|
|
.close();
|
|
|
|
|
2019-01-28 15:39:33 +01:00
|
|
|
snippets.a = new Snippet("x", paths.demo.edge("topLeft"));
|
|
|
|
snippets.b = new Snippet("x", paths.demo.edge("topRight"));
|
|
|
|
snippets.c = new Snippet("x", paths.demo.edge("bottomLeft"));
|
|
|
|
snippets.d = new Snippet("x", paths.demo.edge("bottomRight"));
|
|
|
|
snippets.e = new Snippet("x", paths.demo.edge("top"));
|
|
|
|
snippets.f = new Snippet("x", paths.demo.edge("left"));
|
|
|
|
snippets.g = new Snippet("x", paths.demo.edge("bottom"));
|
|
|
|
snippets.h = new Snippet("x", paths.demo.edge("right"));
|
2019-01-27 12:54:18 +01:00
|
|
|
|
|
|
|
return part;
|
|
|
|
};
|