2021-04-16 19:11:18 +02:00
|
|
|
import { box } from './shared'
|
|
|
|
|
|
|
|
export default (part) => {
|
|
|
|
let { Point, Path, points, paths, macro } = part.shorthand()
|
|
|
|
|
|
|
|
points.a = new Point(5, 5)
|
|
|
|
points.b = new Point(45, 30)
|
|
|
|
points.c = new Point(5, 30)
|
|
|
|
points.d = new Point(45, 5)
|
|
|
|
points.mid = new Point(25, 15)
|
|
|
|
|
|
|
|
paths.a = new Path().move(points.a).curve(points.b, points.c, points.d)
|
|
|
|
|
|
|
|
macro('mirror', {
|
|
|
|
mirror: [points.b, points.d],
|
|
|
|
points: [points.mid],
|
2021-04-24 10:16:31 +02:00
|
|
|
paths: [paths.a],
|
2021-04-16 19:11:18 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
macro('sprinkle', {
|
|
|
|
snippet: 'notch',
|
2021-04-24 10:16:31 +02:00
|
|
|
on: ['mid', 'mirroredMid'],
|
2021-04-16 19:11:18 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
return box(part, 100, 40)
|
|
|
|
}
|