From b4c0ea4863313f35eb26486604275e72e8b90118 Mon Sep 17 00:00:00 2001 From: woutervdub Date: Tue, 19 Oct 2021 10:58:36 -0700 Subject: [PATCH] Bugfix Strap from mm to pct --- packages/hortensia/config/index.js | 2 +- packages/hortensia/src/strap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hortensia/config/index.js b/packages/hortensia/config/index.js index 49701b74233..8e4ead88ab6 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: { pct: 10, min: 5, max: 30 }, + handleWidth: { pct: 8.6, min: 4, max: 25 }, 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/strap.js b/packages/hortensia/src/strap.js index a475ca20668..a8c1f3a398f 100644 --- a/packages/hortensia/src/strap.js +++ b/packages/hortensia/src/strap.js @@ -2,7 +2,7 @@ export default function (part) { let { store, options, Point, Path, points, paths, complete, sa, paperless, macro } = part.shorthand() - let w = options.handleWidth + let w = store.get('width') * options.handleWidth let h = store.get('depth') * options.strapLength if (sa > w * 0.8) { sa = w * 0.8