adding length and width options
This commit is contained in:
parent
7eae745ce6
commit
ddcdc212aa
2 changed files with 6 additions and 5 deletions
|
@ -22,14 +22,15 @@ export default {
|
||||||
'sewing pattern',
|
'sewing pattern',
|
||||||
],
|
],
|
||||||
optionGroups: {
|
optionGroups: {
|
||||||
fit: ['size'],
|
fit: ['length', 'width'],
|
||||||
},
|
},
|
||||||
measurements: [],
|
measurements: [],
|
||||||
dependencies: {},
|
dependencies: {},
|
||||||
inject: {},
|
inject: {},
|
||||||
hide: [],
|
hide: [],
|
||||||
parts: ['box'],
|
parts: ['pocket'],
|
||||||
options: {
|
options: {
|
||||||
size: { pct: 50, min: 10, max: 100 },
|
length: { pct: 50, min: 10, max: 100 },
|
||||||
|
width: { pct: 50, min: 10, max: 100 },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import freesewing from '@freesewing/core'
|
import freesewing from '@freesewing/core'
|
||||||
import plugins from '@freesewing/plugin-bundle'
|
import plugins from '@freesewing/plugin-bundle'
|
||||||
import config from '../config'
|
import config from '../config'
|
||||||
import draftBox from './box'
|
import draftPocket from './pocket'
|
||||||
|
|
||||||
// Create new design
|
// Create new design
|
||||||
const Pattern = new freesewing.Design(config, plugins)
|
const Pattern = new freesewing.Design(config, plugins)
|
||||||
|
|
||||||
// Attach the draft methods to the prototype
|
// Attach the draft methods to the prototype
|
||||||
Pattern.prototype.draftBox = draftBox
|
Pattern.prototype.draftPocket = draftPocket
|
||||||
|
|
||||||
export default Pattern
|
export default Pattern
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue