1
0
Fork 0
freesewing/packages/examples/src/plugin_sprinkle.js

23 lines
523 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import { box } from './shared'
2019-05-25 19:12:31 +02:00
export default part => {
2019-08-03 15:03:33 +02:00
let { Point, points, macro } = part.shorthand()
2019-05-25 19:12:31 +02:00
2019-08-03 15:03:33 +02:00
points.a = new Point(10, 10)
points.b = new Point(20, 15)
points.c = new Point(30, 10)
points.d = new Point(40, 15)
points.e = new Point(50, 10)
points.f = new Point(60, 15)
points.g = new Point(70, 10)
points.h = new Point(80, 15)
points.i = new Point(90, 10)
2019-05-25 19:12:31 +02:00
2019-08-03 15:03:33 +02:00
macro('sprinkle', {
snippet: 'button',
on: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']
})
2019-05-25 19:12:31 +02:00
2019-08-03 15:03:33 +02:00
return box(part, 100, 25)
}