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:
parent
56cb3fc9e9
commit
d22fbe78d9
1 changed files with 15 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue