1
0
Fork 0
freesewing/packages/examples/src/plugin_bartackalong.js
2021-04-24 10:16:31 +02:00

25 lines
552 B
JavaScript

import { box } from './shared'
export default (part) => {
let { Point, Path, points, paths, macro } = part.shorthand()
points.a = new Point(15, 15)
points.b = new Point(20, 20)
points.c = new Point(30, 20)
points.d = new Point(35, 15)
points.e = new Point(20, 10)
points.f = new Point(30, 10)
paths.a = new Path().move(points.a).curve(points.b, points.c, points.d).setRender(false)
macro('bartackAlong', {
path: paths.a,
})
macro('sprinkle', {
snippet: 'notch',
on: ['e', 'f'],
})
return box(part, 60, 30)
}