2019-08-03 15:03:33 +02:00
|
|
|
import { frontDimensions } from './shared'
|
|
|
|
import frontRightClassicSeperate from './frontright-classic-seperate'
|
|
|
|
import frontRightClassicCuton from './frontright-classic-cuton'
|
|
|
|
import frontRightSeamless from './frontright-seamless'
|
2018-12-22 15:15:49 +01:00
|
|
|
|
2021-01-31 09:22:15 +01:00
|
|
|
export default (part) => {
|
2021-09-12 15:29:59 +02:00
|
|
|
const { sa, options, complete, paperless, points, macro, paths } = part.shorthand()
|
2019-08-03 15:03:33 +02:00
|
|
|
macro('flip')
|
2018-12-29 13:38:43 +01:00
|
|
|
if (complete) {
|
2019-08-03 15:03:33 +02:00
|
|
|
points.scalebox = points.waist.shiftFractionTowards(points.cfWaist, 0.5)
|
|
|
|
macro('scalebox', { at: points.scalebox })
|
2018-12-29 13:38:43 +01:00
|
|
|
if (paperless) {
|
2019-08-03 15:03:33 +02:00
|
|
|
frontDimensions(part, 'right')
|
|
|
|
macro('ld', {
|
2021-06-19 12:50:46 +02:00
|
|
|
from: points.s3ArmholeSplit,
|
|
|
|
to: points.s3CollarSplit,
|
2021-04-24 10:16:31 +02:00
|
|
|
d: 15 + sa,
|
2019-08-03 15:03:33 +02:00
|
|
|
})
|
2019-09-06 18:51:38 +02:00
|
|
|
if (sa) {
|
|
|
|
paths.hemSa.attr('data-text-dy', 7, true)
|
|
|
|
paths.saFrench.attr('data-text-dy', 7, true)
|
|
|
|
}
|
2018-12-29 13:38:43 +01:00
|
|
|
}
|
2018-12-28 16:57:08 +01:00
|
|
|
}
|
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
return options.buttonPlacketStyle === 'seamless'
|
2018-12-22 17:30:12 +01:00
|
|
|
? frontRightSeamless(part)
|
2018-12-29 12:28:09 +01:00
|
|
|
: options.seperateButtonPlacket
|
2018-12-22 15:15:49 +01:00
|
|
|
? frontRightClassicSeperate(part)
|
2019-08-03 15:03:33 +02:00
|
|
|
: frontRightClassicCuton(part)
|
|
|
|
}
|