Bugfix Strap from mm to pct
This commit is contained in:
parent
6dccaa6f07
commit
b4c0ea4863
2 changed files with 2 additions and 2 deletions
|
@ -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'] },
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue