2018-12-22 15:15:49 +01:00
|
|
|
import frontRightClassicSeperate from "./frontright-classic-seperate";
|
|
|
|
import frontRightClassicCuton from "./frontright-classic-cuton";
|
2018-12-22 17:30:12 +01:00
|
|
|
import frontRightSeamless from "./frontright-seamless";
|
2018-12-22 15:15:49 +01:00
|
|
|
|
|
|
|
export default part => {
|
2018-12-22 17:30:12 +01:00
|
|
|
let { macro, options, points } = part.shorthand();
|
2018-12-22 15:15:49 +01:00
|
|
|
macro("flip");
|
2018-12-22 17:30:12 +01:00
|
|
|
points.scalebox = points.waist.shiftFractionTowards(points.cfWaist, 0.5);
|
|
|
|
macro("scalebox", { at: points.scalebox });
|
2018-12-22 15:15:49 +01:00
|
|
|
|
|
|
|
return options.buttonPlacketStyle === "seamless"
|
2018-12-22 17:30:12 +01:00
|
|
|
? frontRightSeamless(part)
|
2018-12-22 15:15:49 +01:00
|
|
|
: options.buttonPlacketType === "seperate"
|
|
|
|
? frontRightClassicSeperate(part)
|
|
|
|
: frontRightClassicCuton(part);
|
|
|
|
};
|