1
0
Fork 0
freesewing/packages/tutorial/src/step7.js
2019-05-31 10:20:20 +02:00

34 lines
724 B
JavaScript

export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro
} = part.shorthand();
let strap = points.edgeTop.dy(points.top);
points.tipRight = points.edgeTop.translate(strap / 2, strap / 2);
points.tipRightTop = new Point(points.tipRight.x, points.edgeTop.y);
points.tipRightBottom = new Point(points.tipRight.x, points.top.y);
macro("round", {
from: points.edgeTop,
to: points.tipRight,
via: points.tipRightTop,
prefix: "tipRightTop",
render: true
});
macro("round", {
from: points.tipRight,
to: points.top,
via: points.tipRightBottom,
prefix: "tipRightBottom",
render: true
});
return part;
}