2022-09-05 17:27:48 +02:00
|
|
|
import { box } from './shared.mjs'
|
|
|
|
import { pluginBundle } from '@freesewing/plugin-bundle'
|
2020-05-31 16:52:58 +02:00
|
|
|
|
2022-09-11 16:01:42 +02:00
|
|
|
function legendGrainline({ points, Point, macro, part }) {
|
2020-05-31 16:52:58 +02:00
|
|
|
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,
|
2020-05-31 16:52:58 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
return box(part, 100, 25)
|
|
|
|
}
|
2022-09-05 17:27:48 +02:00
|
|
|
|
|
|
|
export const grainline = {
|
|
|
|
name: 'legend.grainline',
|
|
|
|
plugins: pluginBundle,
|
|
|
|
draft: legendGrainline,
|
|
|
|
}
|