2023-07-02 14:34:28 +02:00
|
|
|
import { Design, mergeI18n } from '@freesewing/core'
|
2022-09-04 11:37:23 -07:00
|
|
|
import { data } from '../data.mjs'
|
2023-07-02 14:34:28 +02:00
|
|
|
import { i18n as brianI18n, Brian, sleevecap as brianSleevecap } from '@freesewing/brian'
|
|
|
|
import { i18n as carltonI18n } from '../i18n/index.mjs'
|
2019-03-25 18:20:15 +01:00
|
|
|
// Parts
|
2022-09-04 11:37:23 -07:00
|
|
|
import { front } from './front.mjs'
|
2023-09-15 16:54:22 +02:00
|
|
|
import { frontFacing } from './front-facing.mjs'
|
|
|
|
import { frontLining } from './front-lining.mjs'
|
2022-09-04 11:37:23 -07:00
|
|
|
import { back } from './back.mjs'
|
2023-09-15 16:54:22 +02:00
|
|
|
import { backStay } from './back-stay.mjs'
|
2022-09-04 11:37:23 -07:00
|
|
|
import { tail } from './tail.mjs'
|
|
|
|
import { topSleeve } from './topsleeve.mjs'
|
|
|
|
import { underSleeve } from './undersleeve.mjs'
|
|
|
|
import { belt } from './belt.mjs'
|
|
|
|
import { collarStand } from './collarstand.mjs'
|
|
|
|
import { collar } from './collar.mjs'
|
|
|
|
import { cuffFacing } from './cufffacing.mjs'
|
|
|
|
import { pocket } from './pocket.mjs'
|
|
|
|
import { pocketFlap } from './pocketflap.mjs'
|
|
|
|
import { pocketLining } from './pocketlining.mjs'
|
|
|
|
import { chestPocketWelt } from './chestpocketwelt.mjs'
|
|
|
|
import { chestPocketBag } from './chestpocketbag.mjs'
|
|
|
|
import { innerPocketWelt } from './innerpocketwelt.mjs'
|
|
|
|
import { innerPocketBag } from './innerpocketbag.mjs'
|
|
|
|
import { innerPocketTab } from './innerpockettab.mjs'
|
2022-07-09 17:32:27 +02:00
|
|
|
|
|
|
|
// Create design
|
2022-09-04 11:37:23 -07:00
|
|
|
const Carlton = new Design({
|
|
|
|
data,
|
2022-09-11 12:54:41 +02:00
|
|
|
parts: [
|
|
|
|
front,
|
2023-09-15 16:54:22 +02:00
|
|
|
frontFacing,
|
|
|
|
frontLining,
|
2022-09-11 12:54:41 +02:00
|
|
|
back,
|
2023-09-15 16:54:22 +02:00
|
|
|
backStay,
|
2022-09-11 12:54:41 +02:00
|
|
|
tail,
|
|
|
|
topSleeve,
|
|
|
|
underSleeve,
|
|
|
|
belt,
|
|
|
|
collarStand,
|
|
|
|
collar,
|
|
|
|
cuffFacing,
|
|
|
|
pocket,
|
|
|
|
pocketFlap,
|
|
|
|
pocketLining,
|
|
|
|
chestPocketWelt,
|
|
|
|
chestPocketBag,
|
|
|
|
innerPocketWelt,
|
|
|
|
innerPocketBag,
|
|
|
|
innerPocketTab,
|
|
|
|
],
|
2022-09-04 11:37:23 -07:00
|
|
|
})
|
2019-03-25 18:20:15 +01:00
|
|
|
|
2023-07-02 14:34:28 +02:00
|
|
|
// Merge translations
|
|
|
|
const i18n = mergeI18n([brianI18n, carltonI18n], {
|
|
|
|
o: {
|
|
|
|
keep: [
|
|
|
|
...Object.keys(Brian.patternConfig.options),
|
|
|
|
...Object.keys(Carlton.patternConfig.options),
|
2023-09-14 08:30:38 +02:00
|
|
|
'legacyArmholeDepthNo',
|
|
|
|
'legacyArmholeDepthYes',
|
2023-09-15 18:03:46 +02:00
|
|
|
'draftForHighBustNo',
|
|
|
|
'draftForHighBustYes',
|
2023-07-02 14:34:28 +02:00
|
|
|
],
|
|
|
|
drop: Object.keys(brianSleevecap.options).filter((o) => o !== 'sleevecapEase'),
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2022-06-14 13:09:08 +02:00
|
|
|
// Named exports
|
2022-09-04 11:37:23 -07:00
|
|
|
export {
|
2022-09-11 12:54:41 +02:00
|
|
|
front,
|
2023-09-15 16:54:22 +02:00
|
|
|
frontFacing,
|
|
|
|
frontLining,
|
2022-09-11 12:54:41 +02:00
|
|
|
back,
|
2023-09-15 16:54:22 +02:00
|
|
|
backStay,
|
2022-09-11 12:54:41 +02:00
|
|
|
tail,
|
|
|
|
topSleeve,
|
|
|
|
underSleeve,
|
|
|
|
belt,
|
|
|
|
collarStand,
|
|
|
|
collar,
|
|
|
|
cuffFacing,
|
|
|
|
pocket,
|
|
|
|
pocketFlap,
|
|
|
|
pocketLining,
|
|
|
|
chestPocketWelt,
|
|
|
|
chestPocketBag,
|
|
|
|
innerPocketWelt,
|
|
|
|
innerPocketBag,
|
|
|
|
innerPocketTab,
|
|
|
|
Carlton,
|
2023-07-02 13:23:38 +02:00
|
|
|
i18n,
|
2022-09-04 11:37:23 -07:00
|
|
|
}
|