1
0
Fork 0
freesewing/designs/plugintest/src/plugin-gore.mjs

18 lines
429 B
JavaScript
Raw Normal View History

2022-01-19 16:23:25 +01:00
const draftDimension = (part) => {
2022-01-20 09:07:38 +01:00
const { points, Point, options, macro } = part.shorthand()
2022-01-18 09:13:18 +01:00
if (['gore', 'all'].indexOf(options.plugin) !== -1) {
2022-01-19 16:23:25 +01:00
points.start = new Point(10, 10)
2022-01-18 09:13:18 +01:00
macro('gore', {
from: points.start,
radius: options.goreRadius,
gores: options.goreGoreNumber,
2022-01-18 09:13:18 +01:00
extraLength: options.goreExtraLength,
render: true,
})
}
return part
}
export default draftDimension