1
0
Fork 0
freesewing/packages/simon/src/frontleft.js

24 lines
712 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import { frontDimensions } from './shared'
import frontLeftClassicSeperate from './frontleft-classic-seperate'
import frontLeftClassicCuton from './frontleft-classic-cuton'
import frontLeftSeamless from './frontleft-seamless'
2018-12-23 12:13:37 +01:00
2021-01-31 09:22:15 +01:00
export default (part) => {
const { sa, options, complete, paperless, points, macro } = part.shorthand()
2018-12-28 16:57:08 +01:00
if (complete && paperless) {
2019-08-03 15:03:33 +02:00
frontDimensions(part, 'left')
macro('ld', {
2021-06-19 12:50:46 +02:00
from: points.s3CollarSplit,
to: points.s3ArmholeSplit,
2021-04-24 10:16:31 +02:00
d: 15 + sa,
2019-08-03 15:03:33 +02:00
})
}
2018-12-23 12:13:37 +01:00
2019-08-03 15:03:33 +02:00
return options.buttonholePlacketStyle === 'seamless'
2018-12-23 12:13:37 +01:00
? frontLeftSeamless(part)
: options.seperateButtonholePlacket
2018-12-23 12:13:37 +01:00
? frontLeftClassicSeperate(part)
2019-08-03 15:03:33 +02:00
: frontLeftClassicCuton(part)
}