chore(carlita): Port to v3 stage 2
This commit is contained in:
parent
c675956e46
commit
d130fd62a9
3 changed files with 68 additions and 34 deletions
|
@ -1,8 +1,7 @@
|
|||
import { pluginBust } from '@freesewing/plugin-bust'
|
||||
import { front as carltonFront } from '@freesewing/carlton'
|
||||
|
||||
function draftCarlitaFront (part) {
|
||||
let {
|
||||
function draftCarlitaFront({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
|
@ -17,8 +16,8 @@ function draftCarlitaFront (part) {
|
|||
Point,
|
||||
paths,
|
||||
Path,
|
||||
} = part.shorthand()
|
||||
|
||||
part,
|
||||
}) {
|
||||
/**
|
||||
* we're adding half of the proportionate amount of chest east for the bust span
|
||||
* Only half because this is not where ease is needed or pools
|
||||
|
@ -503,12 +502,8 @@ export const front = {
|
|||
name: 'carlita.front',
|
||||
from: carltonFront,
|
||||
hideDependencies: true,
|
||||
measurements: [
|
||||
'highBust',
|
||||
'bustSpan',
|
||||
'hpsToBust',
|
||||
],
|
||||
plugins: [ pluginBust ],
|
||||
measurements: ['highBust', 'bustSpan', 'hpsToBust'],
|
||||
plugins: [pluginBust],
|
||||
options: {
|
||||
draftForHighBust: { bool: true, hide: () => true },
|
||||
contour: { pct: 50, min: 25, max: 75, menu: 'advanced' },
|
||||
|
|
|
@ -25,16 +25,45 @@ import { innerPocketTab } from '@freesewing/carlton'
|
|||
const Carlita = new Design({
|
||||
data,
|
||||
parts: [
|
||||
front, side, back, tail, belt, topSleeve, underSleeve, collarStand,
|
||||
collar, pocket, pocketFlap, pocketLining, chestPocketWelt,
|
||||
chestPocketBag, innerPocketWelt, innerPocketBag, innerPocketTab,
|
||||
front,
|
||||
side,
|
||||
back,
|
||||
tail,
|
||||
belt,
|
||||
topSleeve,
|
||||
underSleeve,
|
||||
collarStand,
|
||||
collar,
|
||||
pocket,
|
||||
pocketFlap,
|
||||
pocketLining,
|
||||
chestPocketWelt,
|
||||
chestPocketBag,
|
||||
innerPocketWelt,
|
||||
innerPocketBag,
|
||||
innerPocketTab,
|
||||
],
|
||||
})
|
||||
|
||||
// Named exports
|
||||
export {
|
||||
front, side, back, tail, belt, topSleeve, underSleeve, collarStand,
|
||||
collar, cuffFacing, pocket, pocketFlap, pocketLining, chestPocketWelt,
|
||||
chestPocketBag, innerPocketWelt, innerPocketBag, innerPocketTab,
|
||||
front,
|
||||
side,
|
||||
back,
|
||||
tail,
|
||||
belt,
|
||||
topSleeve,
|
||||
underSleeve,
|
||||
collarStand,
|
||||
collar,
|
||||
cuffFacing,
|
||||
pocket,
|
||||
pocketFlap,
|
||||
pocketLining,
|
||||
chestPocketWelt,
|
||||
chestPocketBag,
|
||||
innerPocketWelt,
|
||||
innerPocketBag,
|
||||
innerPocketTab,
|
||||
Carlita,
|
||||
}
|
||||
|
|
|
@ -1,9 +1,19 @@
|
|||
import { front } from './front.mjs'
|
||||
|
||||
function draftCarlitaSide (part) {
|
||||
let { paperless, sa, snippets, Snippet, store, complete, points, macro, Point, paths, Path } =
|
||||
part.shorthand()
|
||||
|
||||
function draftCarlitaSide({
|
||||
paperless,
|
||||
sa,
|
||||
snippets,
|
||||
Snippet,
|
||||
store,
|
||||
complete,
|
||||
points,
|
||||
macro,
|
||||
Point,
|
||||
paths,
|
||||
Path,
|
||||
part,
|
||||
}) {
|
||||
// Give points their original names
|
||||
for (let i of store.get('side')) points[i] = points[i + 'Rot2'].clone()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue