From 34ee68b5d73edb07f6e47c055572456fd95f47d1 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 12 Sep 2021 18:23:42 +0200 Subject: [PATCH] fix(hortensia): Remove option --- packages/hortensia/config/index.js | 2 +- packages/hortensia/src/frontpanel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hortensia/config/index.js b/packages/hortensia/config/index.js index 6cf84260eb9..49701b74233 100644 --- a/packages/hortensia/config/index.js +++ b/packages/hortensia/config/index.js @@ -29,7 +29,7 @@ export default { pctHandleSpace: 50, pctHandleVert: 42, strapLength: { pct: 160, min: 75, max: 250 }, - handleWidth: { mm: 20, min: 7, max: 30 }, + handleWidth: { pct: 10, min: 5, max: 30 }, size: { pct: 50, min: 20, max: 200 }, zipperSize: { dflt: '#5', list: ['#3', '#4', '#4.5', '#5', '#6', '#8', '#10', 'Invisible'] }, }, diff --git a/packages/hortensia/src/frontpanel.js b/packages/hortensia/src/frontpanel.js index 8f9a2c3872a..c1732bb4d8a 100644 --- a/packages/hortensia/src/frontpanel.js +++ b/packages/hortensia/src/frontpanel.js @@ -43,7 +43,7 @@ export default function (part) { .attr('class', 'fabric') let pctHandleVert = options.pctHandleVert - let handleWidth = options.handleWidth + let handleWidth = options.width * options.handleWidth let handleSpace = (h - handleWidth * 2) * (options.pctHandleSpace / 100) if (handleSpace > options.maxHandleSpaceWidth) { handleSpace = options.maxHandleSpaceWidth