2022-09-04 18:20:39 +02:00
|
|
|
import { Design } from '@freesewing/core'
|
|
|
|
import { data } from '../data.mjs'
|
|
|
|
import {
|
|
|
|
// We use these as-is from simon
|
|
|
|
back,
|
|
|
|
collar,
|
|
|
|
collarStand,
|
|
|
|
cuff,
|
|
|
|
sleeve,
|
|
|
|
sleevePlacketOverlap,
|
|
|
|
sleevePlacketUnderlap,
|
|
|
|
yoke,
|
|
|
|
// We'll update these to use simone's front as dependency
|
|
|
|
buttonholePlacket as simonButtonholePlacket,
|
|
|
|
buttonPlacket as simonButtonPlacket,
|
|
|
|
frontRight as simonFrontRight,
|
|
|
|
frontLeft as simonFrontLeft,
|
|
|
|
} from '@freesewing/simon'
|
|
|
|
// Re-export skeleton parts so peope can re-use them
|
|
|
|
import { fbaFront } from './fba-front.mjs'
|
2019-09-25 18:02:05 +02:00
|
|
|
|
2022-09-04 18:20:39 +02:00
|
|
|
// Update these to use simone's front as dependency
|
|
|
|
const buttonholePlacket = {
|
|
|
|
...simonButtonholePlacket,
|
|
|
|
from: fbaFront,
|
2019-09-25 18:02:05 +02:00
|
|
|
}
|
2022-09-04 18:20:39 +02:00
|
|
|
const buttonPlacket = {
|
|
|
|
...simonButtonPlacket,
|
|
|
|
from: fbaFront,
|
2019-09-25 18:02:05 +02:00
|
|
|
}
|
2022-09-04 18:20:39 +02:00
|
|
|
const frontRight = {
|
|
|
|
...simonFrontRight,
|
|
|
|
from: fbaFront,
|
2019-09-25 18:02:05 +02:00
|
|
|
}
|
2022-09-04 18:20:39 +02:00
|
|
|
const frontLeft = {
|
|
|
|
...simonFrontLeft,
|
|
|
|
from: fbaFront,
|
2019-09-25 18:02:05 +02:00
|
|
|
}
|
|
|
|
|
2022-09-04 18:20:39 +02:00
|
|
|
// Setup our new design
|
|
|
|
const Simone = new Design({
|
|
|
|
data,
|
|
|
|
parts: [
|
|
|
|
fbaFront,
|
|
|
|
back,
|
|
|
|
collar,
|
|
|
|
collarStand,
|
|
|
|
cuff,
|
|
|
|
sleeve,
|
|
|
|
sleevePlacketOverlap,
|
|
|
|
sleevePlacketUnderlap,
|
|
|
|
yoke,
|
|
|
|
buttonholePlacket,
|
|
|
|
buttonPlacket,
|
|
|
|
frontRight,
|
|
|
|
frontLeft,
|
|
|
|
],
|
|
|
|
})
|
2019-09-25 18:02:05 +02:00
|
|
|
|
2022-09-04 18:20:39 +02:00
|
|
|
// Export all parts to facilitate extending this pattern
|
|
|
|
export {
|
|
|
|
fbaFront,
|
|
|
|
back,
|
|
|
|
collar,
|
|
|
|
collarStand,
|
|
|
|
cuff,
|
|
|
|
sleeve,
|
|
|
|
sleevePlacketOverlap,
|
|
|
|
sleevePlacketUnderlap,
|
|
|
|
yoke,
|
|
|
|
buttonholePlacket,
|
|
|
|
buttonPlacket,
|
|
|
|
frontRight,
|
|
|
|
frontLeft,
|
|
|
|
Simone,
|
2019-09-25 18:02:05 +02:00
|
|
|
}
|