fix(hugo): Do not render pocket outline when complete is falsy
This commit is contained in:
parent
3565035ff4
commit
4f81e3dc8d
1 changed files with 6 additions and 12 deletions
|
@ -64,19 +64,15 @@ export default function(part) {
|
|||
.curve(points.armholeCp2, points.armholeHollowCp1, points.armholeHollow)
|
||||
.line(points.raglanTipFront)
|
||||
.join(neckOpeningParts[0].reverse())
|
||||
paths.seam = paths.saBase
|
||||
.clone()
|
||||
.close()
|
||||
.attr('class', 'fabric')
|
||||
paths.saBase.render = false
|
||||
|
||||
paths.seam = paths.saBase.clone().close().attr('class', 'fabric')
|
||||
paths.pocket = new Path()
|
||||
.move(points.pocketHem)
|
||||
.line(points.pocketTip)
|
||||
.curve(points.pocketTip, points.pocketTopCp, points.pocketTop)
|
||||
.line(points.pocketCf)
|
||||
.attr('class', 'fabric help')
|
||||
|
||||
paths.saBase.render = false
|
||||
paths.pocket.render = false
|
||||
// Store shoulder seam length, neck opening path, shoulder slope and raglan length
|
||||
store.set('shoulderLength', points.neck.dist(points.shoulder))
|
||||
store.set('neckOpeningPartFront', neckOpeningParts[1])
|
||||
|
@ -95,6 +91,7 @@ export default function(part) {
|
|||
|
||||
// Complete pattern?
|
||||
if (complete) {
|
||||
paths.pocket.render = true
|
||||
macro('cutonfold', {
|
||||
from: points.cfNeck,
|
||||
to: points.cfRibbing,
|
||||
|
@ -112,10 +109,7 @@ export default function(part) {
|
|||
points.logo = points.title.shift(-90, 70)
|
||||
snippets.logo = new Snippet('logo', points.logo)
|
||||
if (sa) {
|
||||
paths.sa = paths.saBase
|
||||
.offset(sa)
|
||||
.line(points.cfNeck)
|
||||
.attr('class', 'fabric sa')
|
||||
paths.sa = paths.saBase.offset(sa).line(points.cfNeck).attr('class', 'fabric sa')
|
||||
paths.sa.move(points.cfRibbing).line(paths.sa.start())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue