2019-05-30 21:19:06 +02:00
|
|
|
export default function(part) {
|
2019-08-03 15:03:33 +02:00
|
|
|
let { Point, points, macro } = part.shorthand()
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
let strap = points.edgeTop.dy(points.top)
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
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)
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
macro('round', {
|
2019-05-30 21:19:06 +02:00
|
|
|
from: points.edgeTop,
|
|
|
|
to: points.tipRight,
|
|
|
|
via: points.tipRightTop,
|
2019-08-03 15:03:33 +02:00
|
|
|
prefix: 'tipRightTop',
|
2019-05-30 21:19:06 +02:00
|
|
|
render: true
|
2019-08-03 15:03:33 +02:00
|
|
|
})
|
|
|
|
macro('round', {
|
2019-05-30 21:19:06 +02:00
|
|
|
from: points.tipRight,
|
|
|
|
to: points.top,
|
|
|
|
via: points.tipRightBottom,
|
2019-08-03 15:03:33 +02:00
|
|
|
prefix: 'tipRightBottom',
|
2019-05-30 21:19:06 +02:00
|
|
|
render: true
|
2019-08-03 15:03:33 +02:00
|
|
|
})
|
2019-05-30 21:19:06 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
return part
|
2019-05-30 21:19:06 +02:00
|
|
|
}
|