1
0
Fork 0
freesewing/designs/legend/src/grainline.mjs

23 lines
448 B
JavaScript
Raw Normal View History

2022-09-05 17:27:48 +02:00
import { box } from './shared.mjs'
import { pluginBundle } from '@freesewing/plugin-bundle'
2022-09-05 17:27:48 +02:00
function legendGrainline(part) {
const { points, Point, macro } = part.shorthand()
points.a = new Point(10, 20)
points.b = new Point(90, 20)
macro('grainline', {
from: points.a,
2021-04-24 10:16:31 +02:00
to: points.b,
})
return box(part, 100, 25)
}
2022-09-05 17:27:48 +02:00
export const grainline = {
name: 'legend.grainline',
plugins: pluginBundle,
draft: legendGrainline,
}