1
0
Fork 0

fix(hugo): Do not render pocket facing hint when complete is falsy

This commit is contained in:
Joost De Cock 2020-04-18 17:52:32 +02:00
parent eb4764d1d6
commit 3565035ff4

View file

@ -17,10 +17,8 @@ export default function(part) {
debug debug
} = part.shorthand() } = part.shorthand()
paths.seam = pocket paths.seam = pocket.line(points.cfRibbing).line(points.pocketHem).attr('class', 'fabric', true)
.line(points.cfRibbing) paths.seam.render = true
.line(points.pocketHem)
.attr('class', 'fabric', true)
store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2) store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2)
@ -41,9 +39,11 @@ export default function(part) {
.line(facing.start()) .line(facing.start())
.join(facing) .join(facing)
.attr('class', ' fabric help') .attr('class', ' fabric help')
paths.facing.render = false
// Complete pattern? // Complete pattern?
if (complete) { if (complete) {
paths.facing.render = true
macro('grainline', { macro('grainline', {
from: points.cfRibbing.shift(0, 15), from: points.cfRibbing.shift(0, 15),
to: points.pocketCf.shift(0, 15) to: points.pocketCf.shift(0, 15)