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
|
|
|
|
|
|
|
export default part => {
|
2019-08-03 15:03:33 +02:00
|
|
|
let { sa, options, complete, paperless, points, macro, paths } = part.shorthand()
|
|
|
|
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', {
|
2018-12-29 13:38:43 +01:00
|
|
|
from: points.shoulder,
|
|
|
|
to: points.neck,
|
|
|
|
d: 15 + sa
|
2019-08-03 15:03:33 +02:00
|
|
|
})
|
|
|
|
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)
|
|
|
|
}
|