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

17 lines
617 B
JavaScript
Raw Normal View History

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";
export default part => {
2018-12-22 17:30:12 +01:00
let { macro, options, points } = part.shorthand();
macro("flip");
2018-12-22 17:30:12 +01:00
points.scalebox = points.waist.shiftFractionTowards(points.cfWaist, 0.5);
macro("scalebox", { at: points.scalebox });
return options.buttonPlacketStyle === "seamless"
2018-12-22 17:30:12 +01:00
? frontRightSeamless(part)
: options.buttonPlacketType === "seperate"
? frontRightClassicSeperate(part)
: frontRightClassicCuton(part);
};