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

25 lines
814 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02: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'
2018-12-27 13:08:30 +01:00
2021-01-31 09:22:15 +01:00
export default (part) => {
const { options } = part.shorthand()
2018-12-27 13:08:30 +01:00
switch (options.cuffStyle) {
2019-08-03 15:03:33 +02:00
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)
2018-12-27 13:08:30 +01:00
default:
2019-08-03 15:03:33 +02:00
return angledBarrelCuff(part)
2018-12-27 13:08:30 +01:00
}
2019-08-03 15:03:33 +02:00
}