fix(hugo): Seam allowance on pocket. Closes #1731
This commit is contained in:
parent
e32beaee70
commit
91ddfd4580
2 changed files with 24 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
||||||
Unreleased:
|
Unreleased:
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
|
hugo:
|
||||||
|
- Seam allowance on pocket is incorrectly marked for cut-on-fold
|
||||||
|
Closes [#1731](https://github.com/freesewing/freesewing/issues/1731)
|
||||||
simon:
|
simon:
|
||||||
- Remove debug outline when enabling box pleat setting
|
- Remove debug outline when enabling box pleat setting
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,27 @@
|
||||||
export default function (part) {
|
export default function (part) {
|
||||||
// Remove clutter
|
// Remove clutter
|
||||||
let pocket = part.paths.pocket
|
const pocket = part.paths.pocket
|
||||||
part.paths = {}
|
part.paths = {}
|
||||||
part.snippets = {}
|
part.snippets = {}
|
||||||
|
|
||||||
let { utils, store, sa, points, Path, paths, complete, paperless, macro } = part.shorthand()
|
const { utils, store, sa, points, Path, paths, complete, paperless, macro } = part.shorthand()
|
||||||
|
|
||||||
paths.seam = pocket.line(points.cfRibbing).line(points.pocketHem).attr('class', 'fabric', true)
|
paths.seam = pocket
|
||||||
|
.line(points.cfRibbing)
|
||||||
|
.line(points.pocketHem)
|
||||||
|
.close()
|
||||||
|
.attr('class', 'fabric', true)
|
||||||
paths.seam.render = true
|
paths.seam.render = true
|
||||||
|
|
||||||
|
paths.saBase = new Path()
|
||||||
|
.move(points.cfRibbing)
|
||||||
|
.line(points.pocketHem)
|
||||||
|
.join(paths.seam
|
||||||
|
.split(points.pocketCf)
|
||||||
|
.shift()
|
||||||
|
)
|
||||||
|
.setRender(false)
|
||||||
|
|
||||||
store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2)
|
store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2)
|
||||||
|
|
||||||
let facing = new Path()
|
let facing = new Path()
|
||||||
|
@ -41,7 +54,11 @@ export default function (part) {
|
||||||
points.title = points.cfRibbing.shiftFractionTowards(points.pocketTop, 0.5)
|
points.title = points.cfRibbing.shiftFractionTowards(points.pocketTop, 0.5)
|
||||||
macro('title', { at: points.title, nr: 4, title: 'pocket' })
|
macro('title', { at: points.title, nr: 4, title: 'pocket' })
|
||||||
if (sa) {
|
if (sa) {
|
||||||
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
paths.sa = paths.saBase.offset(sa)
|
||||||
|
.line(points.pocketCf)
|
||||||
|
.move(points.cfRibbing)
|
||||||
|
paths.sa.line(paths.sa.start())
|
||||||
|
.attr('class', 'fabric sa')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue