1
0
Fork 0
freesewing/packages/plugintest/src/plugin-gore.js

21 lines
466 B
JavaScript
Raw Normal View History

2022-01-18 09:13:18 +01:00
const draftDimension = part => {
const { points, Point, paths, Path, snippets, Snippet, options, macro } = part.shorthand()
if (['gore', 'all'].indexOf(options.plugin) !== -1) {
points.start = new Point(10,10)
macro('gore', {
from: points.start,
radius: options.goreRadius,
goreNumber: options.goreGoreNumber,
extraLength: options.goreExtraLength,
render: true,
})
}
return part
}
export default draftDimension