1
0
Fork 0

fix(simon): Support drafting for non-human measurements

Closes #1319
This commit is contained in:
joostdecock 2021-09-12 15:29:59 +02:00
parent 569ddedef8
commit 3a283f5b7e
28 changed files with 130 additions and 117 deletions

View file

@ -1,7 +1,7 @@
import { addButtons } from './shared'
export default (part) => {
let {
const {
utils,
sa,
Point,
@ -23,11 +23,11 @@ export default (part) => {
return part
}
for (let id in paths) {
for (const id in paths) {
if (id !== 'seam') delete part.paths[id]
}
macro('flip')
let width = options.buttonPlacketWidth
const width = store.get('buttonPlacketWidth')
points.placketTopIn = utils.lineIntersectsCurve(
new Point(width / -2, points.cfNeck.y + 20),
new Point(width / -2, points.cfNeck.y - 20),