diff --git a/lucy/config/index.js b/lucy/config/index.js index 37d11347403..71c4f6c5bc5 100644 --- a/lucy/config/index.js +++ b/lucy/config/index.js @@ -22,14 +22,15 @@ export default { 'sewing pattern', ], optionGroups: { - fit: ['size'], + fit: ['length', 'width'], }, measurements: [], dependencies: {}, inject: {}, hide: [], - parts: ['box'], + parts: ['pocket'], options: { - size: { pct: 50, min: 10, max: 100 }, + length: { pct: 50, min: 10, max: 100 }, + width: { pct: 50, min: 10, max: 100 }, }, } diff --git a/lucy/src/index.js b/lucy/src/index.js index 79f79fffeb3..f19fa3a5dcd 100644 --- a/lucy/src/index.js +++ b/lucy/src/index.js @@ -1,12 +1,12 @@ import freesewing from '@freesewing/core' import plugins from '@freesewing/plugin-bundle' import config from '../config' -import draftBox from './box' +import draftPocket from './pocket' // Create new design const Pattern = new freesewing.Design(config, plugins) // Attach the draft methods to the prototype -Pattern.prototype.draftBox = draftBox +Pattern.prototype.draftPocket = draftPocket export default Pattern