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

25 lines
824 B
JavaScript
Raw Normal View History

2018-12-27 13:08:30 +01:00
import straightBarrelCuff from "./cuff-barrel-straight";
import roundedBarrelCuff from "./cuff-barrel-rounded";
import angledBarrelCuff from "./cuff-barrel-angled";
import straightFrenchCuff from "./cuff-french-straight";
import angledFrenchCuff from "./cuff-french-angled";
import roundedFrenchCuff from "./cuff-french-rounded";
export default part => {
let { options } = part.shorthand();
switch (options.cuffStyle) {
case "roundedBarrelCuff":
return roundedBarrelCuff(part);
case "straightBarrelCuff":
return straightBarrelCuff(part);
case "roundedFrenchCuff":
return roundedFrenchCuff(part);
case "angledFrenchCuff":
return angledFrenchCuff(part);
case "straightFrenchCuff":
return straightFrenchCuff(part);
default:
return angledBarrelCuff(part);
}
};