2022-09-04 15:55:34 +02:00
|
|
|
import { draftStraightBarrelCuff } from './cuff-barrel-straight.mjs'
|
|
|
|
import { draftRoundedBarrelCuff } from './cuff-barrel-rounded.mjs'
|
|
|
|
import { draftAngledBarrelCuff } from './cuff-barrel-angled.mjs'
|
|
|
|
import { draftStraightFrenchCuff } from './cuff-french-straight.mjs'
|
|
|
|
import { draftAngledFrenchCuff } from './cuff-french-angled.mjs'
|
|
|
|
import { draftRoundedFrenchCuff } from './cuff-french-rounded.mjs'
|
|
|
|
import {
|
|
|
|
cuffOverlap,
|
|
|
|
barrelCuffNarrowButton,
|
|
|
|
cuffButtonRows,
|
|
|
|
cuffDrape,
|
|
|
|
cuffEase,
|
|
|
|
cuffLength,
|
|
|
|
cuffStyle,
|
|
|
|
} from './options.mjs'
|
2018-12-27 13:08:30 +01:00
|
|
|
|
2022-09-11 16:54:43 +02:00
|
|
|
const simonCuff = (params) => {
|
|
|
|
switch (params.options.cuffStyle) {
|
2019-08-03 15:03:33 +02:00
|
|
|
case 'roundedBarrelCuff':
|
2022-09-11 16:54:43 +02:00
|
|
|
return draftRoundedBarrelCuff(params)
|
2019-08-03 15:03:33 +02:00
|
|
|
case 'straightBarrelCuff':
|
2022-09-11 16:54:43 +02:00
|
|
|
return draftStraightBarrelCuff(params)
|
2019-08-03 15:03:33 +02:00
|
|
|
case 'roundedFrenchCuff':
|
2022-09-11 16:54:43 +02:00
|
|
|
return draftRoundedFrenchCuff(params)
|
2019-08-03 15:03:33 +02:00
|
|
|
case 'angledFrenchCuff':
|
2022-09-11 16:54:43 +02:00
|
|
|
return draftAngledFrenchCuff(params)
|
2019-08-03 15:03:33 +02:00
|
|
|
case 'straightFrenchCuff':
|
2022-09-11 16:54:43 +02:00
|
|
|
return draftStraightFrenchCuff(params)
|
2018-12-27 13:08:30 +01:00
|
|
|
default:
|
2022-09-11 16:54:43 +02:00
|
|
|
return draftAngledBarrelCuff(params)
|
2018-12-27 13:08:30 +01:00
|
|
|
}
|
2019-08-03 15:03:33 +02:00
|
|
|
}
|
2022-09-04 15:55:34 +02:00
|
|
|
|
|
|
|
export const cuff = {
|
|
|
|
name: 'simon.cuff',
|
|
|
|
options: {
|
|
|
|
cuffOverlap,
|
|
|
|
barrelCuffNarrowButton,
|
|
|
|
cuffButtonRows,
|
|
|
|
cuffDrape,
|
|
|
|
cuffEase,
|
|
|
|
cuffLength,
|
|
|
|
cuffStyle,
|
|
|
|
},
|
|
|
|
draft: simonCuff,
|
|
|
|
}
|