chore: Remove plugin-bundle from designs
This commit is contained in:
parent
9c1b1eb390
commit
8df9fd8860
74 changed files with 4 additions and 186 deletions
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
export const front = {
|
||||
name: 'albert.front',
|
||||
measurements: ['chest', 'hpsToWaistBack', 'waist', 'waistToKnee', 'hips'],
|
||||
|
@ -9,7 +7,6 @@ export const front = {
|
|||
bibLength: { pct: 75, min: 0, max: 90, menu: 'style' },
|
||||
lengthBonus: { pct: 0, min: -20, max: 25, menu: 'style' },
|
||||
},
|
||||
plugins: pluginBundle,
|
||||
draft: ({
|
||||
options,
|
||||
measurements,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { pctBasedOn } from '@freesewing/core'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
export const neckTie = {
|
||||
name: 'bee.neckTie',
|
||||
|
@ -24,7 +23,6 @@ export const neckTie = {
|
|||
neckTieColours: { dflt: 'one', list: ['one', 'two'], menu: 'style' },
|
||||
reversible: { bool: false, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: ({
|
||||
store,
|
||||
sa,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
export const back = {
|
||||
name: 'bella.back',
|
||||
measurements: [
|
||||
|
@ -49,7 +47,6 @@ export const back = {
|
|||
frontShoulderWidth: { pct: 95, max: 98, min: 92, menu: 'advanced' },
|
||||
highBustWidth: { pct: 86, max: 92, min: 80, menu: 'advanced' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: ({
|
||||
store,
|
||||
sa,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftBenjaminBase({
|
||||
store,
|
||||
sa,
|
||||
|
@ -229,6 +227,5 @@ export const base = {
|
|||
},
|
||||
ribbonWidth: { pct: 6, min: 5, max: 8, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftBenjaminBase,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
export const bib = {
|
||||
name: 'bob.bib',
|
||||
measurements: [],
|
||||
|
@ -10,7 +8,6 @@ export const bib = {
|
|||
lengthRatio: { pct: 75, min: 55, max: 85, menu: 'fit' },
|
||||
headSize: { pct: 100, min: 10, max: 200, snap: 5, menu: 'size' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: ({
|
||||
Point,
|
||||
points,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { base } from './base.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftBreannaBack({
|
||||
sa,
|
||||
|
@ -291,6 +290,5 @@ function draftBreannaBack({
|
|||
export const back = {
|
||||
from: base,
|
||||
name: 'breanna.back',
|
||||
plugins: [pluginBundle],
|
||||
draft: draftBreannaBack,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { withCondition as bustPlugin } from '@freesewing/plugin-bust'
|
||||
|
||||
export const base = {
|
||||
|
@ -37,7 +36,7 @@ export const base = {
|
|||
frontArmholeDeeper: { pct: 0.2, min: 0, max: 0.5, menu: 'advanced' },
|
||||
shoulderSlopeReduction: { pct: 0, min: 0, max: 80, menu: 'advanced' },
|
||||
},
|
||||
plugins: [pluginBundle, bustPlugin],
|
||||
plugins: [bustPlugin],
|
||||
draft: ({
|
||||
measurements,
|
||||
options,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { init } from './init.mjs'
|
||||
|
||||
function draftBruceBack({
|
||||
|
@ -185,6 +184,5 @@ export const back = {
|
|||
legStretch: { pct: 40, min: 25, max: 45, menu: 'fit' },
|
||||
backRise: { pct: 5, min: 0, max: 10, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftBruceBack,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { panels } from './panels.mjs'
|
||||
import { draftPanel1ab } from './panel1ab.mjs'
|
||||
|
||||
|
@ -76,6 +75,5 @@ function draftCathrinPanel1(params) {
|
|||
export const panel1 = {
|
||||
name: 'cathrin.panel1',
|
||||
from: panels,
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCathrinPanel1,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { panels } from './panels.mjs'
|
||||
|
||||
function draftCathrinPanel2({ macro, sa, points, paths, Point, complete, paperless, part }) {
|
||||
|
@ -75,6 +74,5 @@ function draftCathrinPanel2({ macro, sa, points, paths, Point, complete, paperle
|
|||
export const panel2 = {
|
||||
name: 'cathrin.panel2',
|
||||
from: panels,
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCathrinPanel2,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { panels } from './panels.mjs'
|
||||
|
||||
function draftCathrinPanel3({ macro, sa, points, paths, Point, complete, paperless, part }) {
|
||||
|
@ -75,6 +74,5 @@ function draftCathrinPanel3({ macro, sa, points, paths, Point, complete, paperle
|
|||
export const panel3 = {
|
||||
name: 'cathrin.panel3',
|
||||
from: panels,
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCathrinPanel3,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { panels } from './panels.mjs'
|
||||
|
||||
function draftCathrinPanel4({
|
||||
|
@ -89,6 +88,5 @@ function draftCathrinPanel4({
|
|||
export const panel4 = {
|
||||
name: 'cathrin.panel4',
|
||||
from: panels,
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCathrinPanel4,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { panels } from './panels.mjs'
|
||||
|
||||
function draftCathrinPanel5({ macro, sa, points, paths, Point, complete, paperless, part }) {
|
||||
|
@ -75,6 +74,5 @@ function draftCathrinPanel5({ macro, sa, points, paths, Point, complete, paperle
|
|||
export const panel5 = {
|
||||
name: 'cathrin.panel5',
|
||||
from: panels,
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCathrinPanel5,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { panels } from './panels.mjs'
|
||||
|
||||
function draftCathrinPanel6({ macro, sa, points, paths, Point, complete, paperless, part }) {
|
||||
|
@ -80,6 +79,5 @@ function draftCathrinPanel6({ macro, sa, points, paths, Point, complete, paperle
|
|||
export const panel6 = {
|
||||
name: 'cathrin.panel6',
|
||||
from: panels,
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCathrinPanel6,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { frontpoints } from './frontpoints.mjs'
|
||||
|
||||
function draftCorneliusFront({
|
||||
|
@ -247,6 +246,5 @@ export const front = {
|
|||
pctKtoRup: 0.25,
|
||||
pctKtoH: 0.7,
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftCorneliusFront,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { Design } from '@freesewing/core'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { gorePlugin } from '@freesewing/plugin-gore'
|
||||
import { data } from '../data.mjs'
|
||||
import { i18n } from '../i18n/index.mjs'
|
||||
|
@ -34,7 +33,7 @@ const Examples = new Design({
|
|||
// Settings
|
||||
settings_sa,
|
||||
],
|
||||
plugins: [pluginBundle, gorePlugin],
|
||||
plugins: [gorePlugin],
|
||||
})
|
||||
|
||||
// Named exports
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function florenceMask({
|
||||
points,
|
||||
Point,
|
||||
|
@ -144,6 +142,5 @@ export const mask = {
|
|||
height: { pct: 26, min: 23, max: 29, menu: 'fit' },
|
||||
curve: { pct: 12.5, min: 10, max: 15, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: florenceMask,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftFlorentBrimBottom({
|
||||
paperless,
|
||||
sa,
|
||||
|
@ -104,6 +102,5 @@ export const brimBottom = {
|
|||
// Percentages
|
||||
headEase: { pct: 2, min: 0, max: 5, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftFlorentBrimBottom,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftFlorentTop({
|
||||
paperless,
|
||||
sa,
|
||||
|
@ -236,6 +234,5 @@ export const top = {
|
|||
// Percentages
|
||||
headEase: { pct: 2, min: 0, max: 5, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftFlorentTop,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftHiBody({
|
||||
store,
|
||||
sa,
|
||||
|
@ -662,6 +660,5 @@ export const body = {
|
|||
nosePointiness: { pct: 0, min: -5, max: +10, menu: 'style' },
|
||||
aggressive: { bool: false, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHiBody,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { createTeeth } from './teeth.mjs'
|
||||
|
||||
function draftHiLowerTeeth({
|
||||
|
@ -124,6 +123,5 @@ function draftHiLowerTeeth({
|
|||
|
||||
export const lowerTeeth = {
|
||||
name: 'hi.lowerTeeth',
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHiLowerTeeth,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { createTeeth } from './teeth.mjs'
|
||||
|
||||
function draftHiUpperTeeth({
|
||||
|
@ -124,6 +123,5 @@ function draftHiUpperTeeth({
|
|||
|
||||
export const upperTeeth = {
|
||||
name: 'hi.upperTeeth',
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHiUpperTeeth,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftHolmesEar({
|
||||
Point,
|
||||
points,
|
||||
|
@ -104,6 +102,5 @@ export const ear = {
|
|||
earWidth: { pct: 100, min: 80, max: 150, menu: 'style' },
|
||||
buttonhole: { bool: false, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHolmesEar,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { pluginGore } from '@freesewing/plugin-gore'
|
||||
|
||||
function draftHolmesGore({
|
||||
|
@ -103,6 +102,6 @@ export const gore = {
|
|||
lengthRatio: { pct: 55, min: 40, max: 60, menu: 'style' },
|
||||
gores: { count: 6, min: 4, max: 20, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle, pluginGore],
|
||||
plugins: [pluginGore],
|
||||
draft: draftHolmesGore,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { pctBasedOn } from '@freesewing/core'
|
||||
|
||||
function draftHolmesVisor({
|
||||
|
@ -126,6 +125,5 @@ export const visor = {
|
|||
visorWidth: { pct: 5, min: 1, max: 17, snap: 5, ...pctBasedOn('head'), menu: 'style' },
|
||||
visorLength: { pct: 100, min: 80, max: 150, menu: 'advanced' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHolmesVisor,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { bottomsidepanel } from './bottomsidepanel.mjs'
|
||||
|
||||
function draftHortensiaSidepanel({
|
||||
|
@ -233,6 +232,5 @@ export const sidepanel = {
|
|||
menu: 'style',
|
||||
},
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHortensiaSidepanel,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { back as brianBack } from '@freesewing/brian'
|
||||
import { sharedDimensions } from './shared.mjs'
|
||||
|
||||
|
@ -97,6 +96,5 @@ export const back = {
|
|||
ribbingHeight: { pct: 10, min: 5, max: 15, menu: 'style' },
|
||||
hipsEase: { pct: 8, min: 4, max: 12, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHueyBack,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { draftRibbing } from './shared.mjs'
|
||||
|
||||
function draftHueyCuff({ complete, points, measurements, options, macro, part }) {
|
||||
|
@ -23,6 +22,5 @@ export const cuff = {
|
|||
options: {
|
||||
ribbingStretch: { pct: 15, min: 0, max: 30, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHueyCuff,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { draftRibbing } from './shared.mjs'
|
||||
|
||||
function draftHueyWaistband({ complete, points, measurements, options, macro, part }) {
|
||||
|
@ -22,6 +21,5 @@ export const waistband = {
|
|||
options: {
|
||||
ribbingStretch: { pct: 15, min: 0, max: 30, menu: 'fit' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftHueyWaistband,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendBartack({ points, Point, macro, part }) {
|
||||
points.bartack = new Point(40, 20).attr('data-text', 'bartack').attr('data-text-dy', -2)
|
||||
|
@ -15,6 +14,5 @@ function legendBartack({ points, Point, macro, part }) {
|
|||
|
||||
export const bartack = {
|
||||
name: 'legend.bartack',
|
||||
plugins: pluginBundle,
|
||||
draft: legendBartack,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendButtons({ points, Point, snippets, Snippet, part }) {
|
||||
points.a = new Point(30, 10)
|
||||
|
@ -15,6 +14,5 @@ function legendButtons({ points, Point, snippets, Snippet, part }) {
|
|||
|
||||
export const buttons = {
|
||||
name: 'legend.buttons',
|
||||
plugins: pluginBundle,
|
||||
draft: legendButtons,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendCutonfold({ points, Point, macro, part }) {
|
||||
points.a = new Point(10, 20)
|
||||
|
@ -15,6 +14,5 @@ function legendCutonfold({ points, Point, macro, part }) {
|
|||
|
||||
export const cutonfold = {
|
||||
name: 'legend.cutonfold',
|
||||
plugins: pluginBundle,
|
||||
draft: legendCutonfold,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendDimension({ points, Point, macro, part }) {
|
||||
points.a = new Point(10, 20)
|
||||
|
@ -15,6 +14,5 @@ function legendDimension({ points, Point, macro, part }) {
|
|||
|
||||
export const dimension = {
|
||||
name: 'legend.dimension',
|
||||
plugins: pluginBundle,
|
||||
draft: legendDimension,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendGrainline({ points, Point, macro, part }) {
|
||||
points.a = new Point(10, 20)
|
||||
|
@ -15,6 +14,5 @@ function legendGrainline({ points, Point, macro, part }) {
|
|||
|
||||
export const grainline = {
|
||||
name: 'legend.grainline',
|
||||
plugins: pluginBundle,
|
||||
draft: legendGrainline,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box, drawLine } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
const allFabricTypes = ['fabric', 'lining', 'canvas', 'interfacing', 'various']
|
||||
const allLineTypes = ['note', 'mark', 'contrast', 'help']
|
||||
|
@ -70,26 +69,21 @@ function legendOtherLines({ points, Point, paths, Path, part }) {
|
|||
|
||||
export const fabricLines = {
|
||||
name: 'legend.fabricLines',
|
||||
plugins: pluginBundle,
|
||||
draft: legendFabricLines,
|
||||
}
|
||||
export const lineStrokes = {
|
||||
name: 'legend.lineStrokes',
|
||||
plugins: pluginBundle,
|
||||
draft: legendLineStrokes,
|
||||
}
|
||||
export const lineWidths = {
|
||||
name: 'legend.lineWidths',
|
||||
plugins: pluginBundle,
|
||||
draft: legendLineWidths,
|
||||
}
|
||||
export const saLines = {
|
||||
name: 'legend.saLines',
|
||||
plugins: pluginBundle,
|
||||
draft: legendSaLines,
|
||||
}
|
||||
export const otherLines = {
|
||||
name: 'legend.otherLines',
|
||||
plugins: pluginBundle,
|
||||
draft: legendOtherLines,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendLogo({ points, Point, snippets, Snippet, part }) {
|
||||
points.a = new Point(50, 40)
|
||||
|
@ -11,6 +10,5 @@ function legendLogo({ points, Point, snippets, Snippet, part }) {
|
|||
|
||||
export const logo = {
|
||||
name: 'legend.logo',
|
||||
plugins: pluginBundle,
|
||||
draft: legendLogo,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendNotches({ points, Point, snippets, Snippet, part }) {
|
||||
points.a = new Point(30, 10)
|
||||
|
@ -15,6 +14,5 @@ function legendNotches({ points, Point, snippets, Snippet, part }) {
|
|||
|
||||
export const notches = {
|
||||
name: 'legend.notches',
|
||||
plugins: pluginBundle,
|
||||
draft: legendNotches,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendSa({ points, Point, paths, Path, part }) {
|
||||
points.a = new Point(10, 40)
|
||||
|
@ -21,6 +20,5 @@ function legendSa({ points, Point, paths, Path, part }) {
|
|||
|
||||
export const sa = {
|
||||
name: 'legend.sa',
|
||||
plugins: pluginBundle,
|
||||
draft: legendSa,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendScalebox({ points, Point, macro, part }) {
|
||||
points.a = new Point(55, 25)
|
||||
|
@ -10,6 +9,5 @@ function legendScalebox({ points, Point, macro, part }) {
|
|||
|
||||
export const scalebox = {
|
||||
name: 'legend.scalebox',
|
||||
plugins: pluginBundle,
|
||||
draft: legendScalebox,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendSnaps({ points, Point, snippets, Snippet, part }) {
|
||||
points.a = new Point(30, 10)
|
||||
|
@ -15,6 +14,5 @@ function legendSnaps({ points, Point, snippets, Snippet, part }) {
|
|||
|
||||
export const snaps = {
|
||||
name: 'legend.snaps',
|
||||
plugins: pluginBundle,
|
||||
draft: legendSnaps,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendTextSize({ points, Point, paths, Path, part }) {
|
||||
points.xxxs1 = new Point(0, 10)
|
||||
|
@ -106,6 +105,5 @@ function legendTextSize({ points, Point, paths, Path, part }) {
|
|||
|
||||
export const textSize = {
|
||||
name: 'legend.textSize',
|
||||
plugins: pluginBundle,
|
||||
draft: legendTextSize,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { box } from './shared.mjs'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function legendTitle({ points, Point, macro, part }) {
|
||||
points.a = new Point(30, 30)
|
||||
|
@ -15,6 +14,5 @@ function legendTitle({ points, Point, macro, part }) {
|
|||
|
||||
export const title = {
|
||||
name: 'legend.title',
|
||||
plugins: pluginBundle,
|
||||
draft: legendTitle,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draft({
|
||||
options,
|
||||
Point,
|
||||
|
@ -121,6 +119,5 @@ export const pocket = {
|
|||
length: { pct: 50, min: 30, max: 100, menu: 'style' },
|
||||
edge: { pct: 25, min: 20, max: 50, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function lunetiusLacerna({
|
||||
Point,
|
||||
points,
|
||||
|
@ -175,6 +173,5 @@ export const lacerna = {
|
|||
menu: 'style',
|
||||
},
|
||||
},
|
||||
plugins: pluginBundle,
|
||||
draft: lunetiusLacerna,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftBackPanel({
|
||||
options,
|
||||
Point,
|
||||
|
@ -124,6 +122,5 @@ export const backPanel = {
|
|||
size: { pct: 100, min: 15, max: 200, menu: 'style' },
|
||||
taperRatio: { pct: 60, min: 50, max: 100, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftBackPanel,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftBodyLiner({
|
||||
options,
|
||||
Point,
|
||||
|
@ -217,6 +215,5 @@ export const bodyLiner = {
|
|||
flapHeightRatio: { pct: 83, min: 60, max: 100, menu: 'style' },
|
||||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftBodyLiner,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftFrontOrganiserBase({
|
||||
options,
|
||||
Point,
|
||||
|
@ -89,6 +87,5 @@ export const frontOrganiserBase = {
|
|||
flapHeightRatio: { pct: 83, min: 60, max: 100, menu: 'style' },
|
||||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftFrontOrganiserBase,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftFrontOrganiserFront({
|
||||
options,
|
||||
Point,
|
||||
|
@ -112,6 +110,5 @@ export const frontOrganiserFront = {
|
|||
flapHeightRatio: { pct: 83, min: 60, max: 100, menu: 'style' },
|
||||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftFrontOrganiserFront,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftFrontPanel({
|
||||
options,
|
||||
Point,
|
||||
|
@ -183,6 +181,5 @@ export const frontPanel = {
|
|||
flapHeightRatio: { pct: 83, min: 60, max: 100, menu: 'style' },
|
||||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftFrontPanel,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftInternalOrganiser({
|
||||
options,
|
||||
Point,
|
||||
|
@ -100,6 +98,5 @@ export const internalOrganiser = {
|
|||
flapHeightRatio: { pct: 83, min: 60, max: 100, menu: 'style' },
|
||||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftInternalOrganiser,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftLidOnePiece({
|
||||
options,
|
||||
Point,
|
||||
|
@ -113,6 +111,5 @@ export const lidOnePiece = {
|
|||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
onePieceLid: { bool: false, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftLidOnePiece,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftSidePanel({
|
||||
options,
|
||||
Point,
|
||||
|
@ -82,6 +80,5 @@ export const sidePanel = {
|
|||
flapHeightRatio: { pct: 83, min: 60, max: 100, menu: 'style' },
|
||||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftSidePanel,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftStrapAttachments({
|
||||
options,
|
||||
Point,
|
||||
|
@ -129,6 +127,5 @@ export const strapAttachments = {
|
|||
taperRatio: { pct: 60, min: 50, max: 100, menu: 'style' },
|
||||
useCommonWebbingSizes: { bool: true, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftStrapAttachments,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftTwoPieceLidBottom({
|
||||
options,
|
||||
Point,
|
||||
|
@ -105,6 +103,5 @@ export const twoPieceLidBottom = {
|
|||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
onePieceLid: { bool: false, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftTwoPieceLidBottom,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function draftTwoPieceLidTop({
|
||||
options,
|
||||
Point,
|
||||
|
@ -113,6 +111,5 @@ export const twoPieceLidTop = {
|
|||
openingRatio: { pct: 66, min: 30, max: 90, menu: 'style' },
|
||||
onePieceLid: { bool: false, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: draftTwoPieceLidTop,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function octoplushyHeadSection(
|
||||
partNumber,
|
||||
{
|
||||
|
@ -624,12 +622,10 @@ const options = {
|
|||
export const headSection1 = {
|
||||
name: 'octoplushy.headSection1',
|
||||
options,
|
||||
plugins: [ pluginBundle ],
|
||||
draft: (params) => octoplushyHeadSection(0, params),
|
||||
}
|
||||
export const headSection2 = {
|
||||
name: 'octoplushy.headSection2',
|
||||
options,
|
||||
plugins: [ pluginBundle ],
|
||||
draft: (params) => octoplushyHeadSection(1, params),
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { measurements, optionalMeasurements, options, BuildMainShape } from './shape.mjs'
|
||||
|
||||
function penelopeBack(params) {
|
||||
|
@ -137,6 +136,5 @@ export const back = {
|
|||
measurements,
|
||||
optionalMeasurements,
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: penelopeBack,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { measurements, optionalMeasurements, options, BuildMainShape } from './shape.mjs'
|
||||
|
||||
function penelopeFront(params) {
|
||||
|
@ -62,6 +61,5 @@ export const front = {
|
|||
measurements,
|
||||
optionalMeasurements,
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: penelopeFront,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { waistEase } from './shape.mjs'
|
||||
|
||||
function penelopeWaistband({
|
||||
|
@ -94,6 +93,5 @@ export const waistband = {
|
|||
waistBand: { bool: true, menu: 'style' },
|
||||
waistBandWidth: { pct: 10, min: 5, max: 20, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: penelopeWaistband,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
export const demo = {
|
||||
name: 'rendertest.demo',
|
||||
options: {
|
||||
|
@ -20,7 +18,6 @@ export const demo = {
|
|||
],
|
||||
},
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: (params) => {
|
||||
const { store, options, Path, paths, Point, part } = params
|
||||
// Keep things in store
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { draftRingSector } from './shared.mjs'
|
||||
import { pctBasedOn } from '@freesewing/core'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { elastics } from '@freesewing/snapseries'
|
||||
|
||||
function sandySkirt({
|
||||
|
@ -214,7 +213,6 @@ function sandySkirt({
|
|||
export const skirt = {
|
||||
name: 'sandy.skirt',
|
||||
measurements: ['waist', 'waistToFloor', 'waistToHips', 'hips'],
|
||||
plugins: pluginBundle,
|
||||
options: {
|
||||
minimumOverlap: 15, // Lower than this and we don't draw a button
|
||||
seamlessFullCircle: { bool: false, menu: 'construction' },
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { pctBasedOn } from '@freesewing/core'
|
||||
import { elastics } from '@freesewing/snapseries'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function shinBack({
|
||||
store,
|
||||
|
@ -186,7 +185,6 @@ function shinBack({
|
|||
export const back = {
|
||||
name: 'shin.back',
|
||||
measurements: ['hips', 'upperLeg', 'waistToUpperLeg', 'waistToHips'],
|
||||
plugins: [pluginBundle],
|
||||
options: {
|
||||
frontFactor: 0.58,
|
||||
legFrontFactor: 0.48,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { withCondition as bustPlugin } from '@freesewing/plugin-bust'
|
||||
|
||||
function tamikoTop({
|
||||
|
@ -188,7 +187,7 @@ function tamikoTop({
|
|||
|
||||
export const top = {
|
||||
name: 'tamiko.top',
|
||||
plugins: [pluginBundle, bustPlugin],
|
||||
plugins: [bustPlugin],
|
||||
draft: tamikoTop,
|
||||
measurements: ['shoulderToShoulder', 'chest', 'hpsToWaistBack', 'shoulderSlope', 'waistToHips'],
|
||||
optionalMeasurements: ['highBust'],
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function tiberiusTunica({
|
||||
Point,
|
||||
points,
|
||||
|
@ -180,7 +178,6 @@ function tiberiusTunica({
|
|||
|
||||
export const tunica = {
|
||||
name: 'tiberius.tunica',
|
||||
plugins: [pluginBundle],
|
||||
measurements: [
|
||||
'head',
|
||||
'shoulderToElbow',
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { pctBasedOn } from '@freesewing/core'
|
||||
import { elastics } from '@freesewing/snapseries'
|
||||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function titanBack({
|
||||
points,
|
||||
|
@ -539,7 +538,6 @@ function titanBack({
|
|||
|
||||
export const back = {
|
||||
name: 'titan.back',
|
||||
plugins: [pluginBundle],
|
||||
measurements: [
|
||||
'crossSeam',
|
||||
'crossSeamFront',
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import {
|
||||
calculateHelpers,
|
||||
draftTieShape,
|
||||
|
@ -116,7 +115,6 @@ export const fabricTail = {
|
|||
name: 'trayvon.fabricTail',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonFabricTail,
|
||||
}
|
||||
|
||||
|
@ -124,6 +122,5 @@ export const fabricTip = {
|
|||
name: 'trayvon.fabricTip',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonFabricTip,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import { draftTieShape, tieShapeDimensions, calculateHelpers, options } from './shared.mjs'
|
||||
|
||||
function trayvonInterfacingTail(params) {
|
||||
|
@ -71,13 +70,11 @@ export const interfacingTail = {
|
|||
name: 'trayvon.interfacingTail',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonInterfacingTail,
|
||||
}
|
||||
export const interfacingTip = {
|
||||
name: 'trayvon.interfacingTip',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonInterfacingTip,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import {
|
||||
calculateHelpers,
|
||||
draftTieShape,
|
||||
|
@ -123,7 +122,6 @@ export const liningTail = {
|
|||
name: 'trayvon.liningTail',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonLiningTail,
|
||||
}
|
||||
|
||||
|
@ -131,6 +129,5 @@ export const liningTip = {
|
|||
name: 'trayvon.liningTip',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonLiningTip,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function trayvonFabricLoop({
|
||||
points,
|
||||
Point,
|
||||
|
@ -56,6 +54,5 @@ function trayvonFabricLoop({
|
|||
export const fabricLoop = {
|
||||
name: 'trayvon.fabricLoop',
|
||||
measurements: ['hpsToWaistBack', 'waistToHips', 'neck'],
|
||||
plugins: [pluginBundle],
|
||||
draft: trayvonFabricLoop,
|
||||
}
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
// This tutorial design is kinda weird, so we've
|
||||
// setup this part to hold options & measurements config
|
||||
export const configpart = {
|
||||
name: 'tutorial.configpart',
|
||||
measurements: ['head'],
|
||||
plugins: [pluginBundle],
|
||||
options: {
|
||||
size: { pct: 50, min: 10, max: 100 },
|
||||
neckRatio: { pct: 80, min: 70, max: 90 },
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
export const front = {
|
||||
name: 'unice.front',
|
||||
measurements: ['waist', 'seat', 'waistToSeat', 'waistToUpperLeg', 'hips', 'waistToHips'],
|
||||
|
@ -19,7 +17,6 @@ export const front = {
|
|||
useCrossSeam: { bool: true, menu: 'fit' },
|
||||
adjustStretch: { bool: true, menu: 'fit' }, // to not stretch fabric to the limits
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: ({
|
||||
utils,
|
||||
store,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function ursulaFront({
|
||||
options,
|
||||
Point,
|
||||
|
@ -216,6 +214,5 @@ export const front = {
|
|||
frontDip: { pct: 5.0, min: -5, max: 15, menu: 'style' },
|
||||
taperToGusset: { pct: 70, min: 5, max: 100, menu: 'style' },
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: ursulaFront,
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
|
||||
function walburgaBase({
|
||||
Point,
|
||||
points,
|
||||
|
@ -211,6 +209,5 @@ export const base = {
|
|||
neckline,
|
||||
neckoRatio,
|
||||
},
|
||||
plugins: [pluginBundle],
|
||||
draft: walburgaBase,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||
import * as options from './options.mjs'
|
||||
|
||||
function waraleePantsProto({ options, measurements, Point, Path, points, paths, store, part }) {
|
||||
|
@ -314,6 +313,5 @@ export const pantsProto = {
|
|||
measurements: ['seat', 'inseam', 'crotchDepth', 'waistToHips'],
|
||||
optionalMeasurements: ['waist', 'waistBack'],
|
||||
options,
|
||||
plugins: [pluginBundle],
|
||||
draft: waraleePantsProto,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue