From ddcdc212aaab9e7c9ba03dee444703fb47e28f7c Mon Sep 17 00:00:00 2001 From: Zee Date: Sat, 19 Mar 2022 16:12:47 +0100 Subject: [PATCH] adding length and width options --- lucy/config/index.js | 7 ++++--- lucy/src/index.js | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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