fix(jaeger): Draft third button. Fixes #973
This commit is contained in:
parent
14fb6c9f4f
commit
6c33623c50
3 changed files with 11 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
||||||
the number of steps the path will be divided in per Mm (if it's a curve)
|
the number of steps the path will be divided in per Mm (if it's a curve)
|
||||||
default is 25
|
default is 25
|
||||||
See [#976](https://github.com/freesewing/freesewing/issues/976)
|
See [#976](https://github.com/freesewing/freesewing/issues/976)
|
||||||
|
jaeger:
|
||||||
|
- Draft a third button when it's requested
|
||||||
|
See [#973](https://github.com/freesewing/freesewing/issues/973)
|
||||||
|
|
||||||
2.15.1:
|
2.15.1:
|
||||||
date: 2021-04-24
|
date: 2021-04-24
|
||||||
|
|
|
@ -231,6 +231,9 @@ export default {
|
||||||
shoulderSlopeReduction: { pct: 30, min: 0, max: 50 },
|
shoulderSlopeReduction: { pct: 30, min: 0, max: 50 },
|
||||||
|
|
||||||
buttonLength: { pct: 30, min: 30, max: 60 },
|
buttonLength: { pct: 30, min: 30, max: 60 },
|
||||||
buttons: { count: 2, min: 1, max: 3 },
|
buttons: {
|
||||||
|
list: ['1', '2', '3'],
|
||||||
|
dflt: '2',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -403,6 +403,10 @@ export default function (part) {
|
||||||
if (options.buttons > 1) {
|
if (options.buttons > 1) {
|
||||||
points.button2 = new Point(points.cfWaist.x, points.cutawayPoint.y)
|
points.button2 = new Point(points.cfWaist.x, points.cutawayPoint.y)
|
||||||
buttons.push('button2')
|
buttons.push('button2')
|
||||||
|
if (options.buttons === 3) {
|
||||||
|
points.button3 = points.button1.shiftFractionTowards(points.button2, 0.5)
|
||||||
|
buttons.push('button3')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (let button of buttons)
|
for (let button of buttons)
|
||||||
snippets[button] = new Snippet('button', points[button]).attr('data-scale', 2)
|
snippets[button] = new Snippet('button', points[button]).attr('data-scale', 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue