2019-05-30 21:19:06 +02:00
|
|
|
export default function(part) {
|
2019-06-01 16:17:45 +02:00
|
|
|
let { Point, points, macro } = part.shorthand();
|
2019-05-30 21:19:06 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|