1
0
Fork 0

Fix the cutting instructions for the Simon Yoke (#7378)

- Previously it said to cut 1 on the fold, which is wrong
- Now it says to cut 2 mirrored from main fabric
This commit is contained in:
Josh Munic 2025-03-22 01:45:50 -07:00 committed by GitHub
parent 56cb3fc9e9
commit d22fbe78d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,11 +1,25 @@
import { back } from './back.mjs' import { back } from './back.mjs'
import { splitYoke } from './options.mjs' import { splitYoke } from './options.mjs'
function simonYoke({ sa, Point, points, Path, paths, Snippet, snippets, macro, options, part }) { function simonYoke({
sa,
Point,
points,
Path,
paths,
Snippet,
snippets,
macro,
options,
store,
part,
}) {
for (const id in paths) { for (const id in paths) {
if (['backCollar', 'backArmhole', 'backArmholeYoke'].indexOf(id) === -1) delete part.paths[id] if (['backCollar', 'backArmhole', 'backArmholeYoke'].indexOf(id) === -1) delete part.paths[id]
} }
store.cutlist.setCut({ cut: 2, from: 'fabric' })
// Paths // Paths
paths.saBase = new Path().move(points.cbYoke).line(points.armholeYokeSplitPreBoxpleat) paths.saBase = new Path().move(points.cbYoke).line(points.armholeYokeSplitPreBoxpleat)
if (options.yokeHeight > 0) paths.saBase = paths.saBase.join(paths.backArmholeYoke) if (options.yokeHeight > 0) paths.saBase = paths.saBase.join(paths.backArmholeYoke)