1
0
Fork 0

fix: No more setRender() use hide() unhide() instead

This commit is contained in:
Joost De Cock 2022-09-18 19:14:25 +02:00
parent a5114804a4
commit c5138aad99
41 changed files with 117 additions and 153 deletions

View file

@ -168,7 +168,7 @@ export const cup = {
paths.frontCurve = new Path() paths.frontCurve = new Path()
.move(points.topLeft) .move(points.topLeft)
.curve_(points.frontCurveControl, points.lefti) .curve_(points.frontCurveControl, points.lefti)
.setRender(false) .hide()
points.frontNotch = paths.frontCurve.shiftFractionAlong(0.5) points.frontNotch = paths.frontCurve.shiftFractionAlong(0.5)
snippets.frontNotch = new Snippet('notch', points.frontNotch) snippets.frontNotch = new Snippet('notch', points.frontNotch)
snippets.lefti = new Snippet('notch', points.lefti) snippets.lefti = new Snippet('notch', points.lefti)
@ -363,7 +363,7 @@ export const cup = {
.move(points.lefti) .move(points.lefti)
.curve_(points.leftControlOffset, points.middleDart) .curve_(points.leftControlOffset, points.middleDart)
.curve_(points.rightControlOffset, points.rightiOffset) .curve_(points.rightControlOffset, points.rightiOffset)
.setRender(false) .hide()
paths.dart = new Path() paths.dart = new Path()
.move( .move(
points.bustA.shiftOutwards(points.leftDart, points.topRight.dist(points.rightiOffset)) points.bustA.shiftOutwards(points.leftDart, points.topRight.dist(points.rightiOffset))
@ -372,7 +372,7 @@ export const cup = {
.line( .line(
points.bustA.shiftOutwards(points.rightDart, points.topRight.dist(points.rightiOffset)) points.bustA.shiftOutwards(points.rightDart, points.topRight.dist(points.rightiOffset))
) )
.setRender(false) .hide()
for (let p of paths.curve.intersects(paths.dart)) { for (let p of paths.curve.intersects(paths.dart)) {
points.rightDarti = points.bustA.shiftFractionTowards(p, 1) points.rightDarti = points.bustA.shiftFractionTowards(p, 1)
} }
@ -381,11 +381,11 @@ export const cup = {
} }
let leftCurve = paths.curve.reverse().split(points.leftDarti) let leftCurve = paths.curve.reverse().split(points.leftDarti)
for (let i in leftCurve) { for (let i in leftCurve) {
paths.leftCurve = leftCurve[i].setRender(false) paths.leftCurve = leftCurve[i].hide()
} }
let rightCurve = paths.curve.split(points.rightDarti) let rightCurve = paths.curve.split(points.rightDarti)
for (let i in rightCurve) { for (let i in rightCurve) {
paths.rightCurve = rightCurve[i].setRender(false) paths.rightCurve = rightCurve[i].hide()
} }
store.set('gatherLength', paths.leftCurve.length() + paths.rightCurve.length()) store.set('gatherLength', paths.leftCurve.length() + paths.rightCurve.length())
} }

View file

@ -251,7 +251,7 @@ export const back = {
.line(points.hps) .line(points.hps)
._curve(points.cbNeckCp1, points.cbNeck) ._curve(points.cbNeckCp1, points.cbNeck)
.close() .close()
.setRender(false) .hide()
if (complete) { if (complete) {
points.titleAnchor = new Point(points.hps.x, points.armholePitchCp2.y) points.titleAnchor = new Point(points.hps.x, points.armholePitchCp2.y)

View file

@ -200,7 +200,7 @@ export const frontSideDart = {
.curve_(points.armholePitchCp2, points.shoulder) .curve_(points.armholePitchCp2, points.shoulder)
.line(points.hps) .line(points.hps)
.curve(points.hpsCp2, points.cfNeckCp1, points.cfNeck) .curve(points.hpsCp2, points.cfNeckCp1, points.cfNeck)
.setRender(false) .hide()
if (complete) { if (complete) {
points.titleAnchor = new Point(points.armholePitch.x / 2, points.armholePitchCp2.y) points.titleAnchor = new Point(points.armholePitch.x / 2, points.armholePitchCp2.y)

View file

@ -122,7 +122,7 @@ function draftBenjaminBase({
.curve(points.knotTopCp2, points.tip1TopCp1, points.tip1Top) .curve(points.knotTopCp2, points.tip1TopCp1, points.tip1Top)
.curve(points.tip1TopCp2, points.transitionTopRightCp1, points.transitionTopRight) .curve(points.tip1TopCp2, points.transitionTopRightCp1, points.transitionTopRight)
.line(points.bandTopRight) .line(points.bandTopRight)
.setRender(false) .hide()
} else { } else {
paths.bow = new Path() paths.bow = new Path()
.move(points.bandBottomRight) .move(points.bandBottomRight)
@ -132,7 +132,7 @@ function draftBenjaminBase({
.line(points.tip2Top) .line(points.tip2Top)
.line(points.transitionTopRight) .line(points.transitionTopRight)
.line(points.bandTopRight) .line(points.bandTopRight)
.setRender(false) .hide()
} }
// Complete? // Complete?

View file

@ -29,7 +29,7 @@ function draftBenjaminBow1({
.line(points.bandTopLeft) .line(points.bandTopLeft)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(true) .unhide()
if (complete) { if (complete) {
// Paperless? // Paperless?
@ -41,7 +41,7 @@ function draftBenjaminBow1({
}) })
} }
if (sa) { if (sa) {
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa').setRender(true) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa').unhide()
} }
macro('title', { macro('title', {
at: points.titleAnchor, at: points.titleAnchor,

View file

@ -32,7 +32,7 @@ function draftBenjaminBow2({
.line(points.bandTopLeft) .line(points.bandTopLeft)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(true) .unhide()
if (complete) { if (complete) {
// Paperless? // Paperless?
@ -44,7 +44,7 @@ function draftBenjaminBow2({
}) })
} }
if (sa) { if (sa) {
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa').setRender(true) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa').unhide()
} }
macro('title', { macro('title', {
at: points.titleAnchor, at: points.titleAnchor,

View file

@ -32,7 +32,7 @@ function draftBenjaminBow3({
.line(points.bandTopLeft) .line(points.bandTopLeft)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(true) .unhide()
if (complete) { if (complete) {
// Paperless? // Paperless?
@ -44,7 +44,7 @@ function draftBenjaminBow3({
}) })
} }
if (sa) { if (sa) {
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa').setRender(true) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa').unhide()
} }
macro('title', { macro('title', {
at: points.titleAnchor, at: points.titleAnchor,

View file

@ -45,8 +45,8 @@ function draftBruceInset({
.line(points.tip) .line(points.tip)
.curve(points.tipCpBottom, points.tipCpTop, points.topLeft) .curve(points.tipCpBottom, points.tipCpTop, points.topLeft)
.line(points.bottomLeft) .line(points.bottomLeft)
.setRender(false) .hide()
paths.hemBase = new Path().move(points.bottomLeft).line(points.bottomRight).setRender(false) paths.hemBase = new Path().move(points.bottomLeft).line(points.bottomRight).hide()
paths.seam = paths.saBase.join(paths.hemBase).close().attr('class', 'fabric') paths.seam = paths.saBase.join(paths.hemBase).close().attr('class', 'fabric')
// Complete pattern? // Complete pattern?

View file

@ -26,8 +26,8 @@ export function draftPanel1ab({
.join(bottom.split(points.bottomABsplit)[0]) .join(bottom.split(points.bottomABsplit)[0])
.line(points.topABsplit) .line(points.topABsplit)
.join(top.split(points.topABsplit)[1]) .join(top.split(points.topABsplit)[1])
.setRender(false) .hide()
paths.panel1a = paths.panel1a_nonfold.clone().close().attr('class', 'fabric').setRender(true) paths.panel1a = paths.panel1a_nonfold.clone().close().attr('class', 'fabric').unhide()
paths.panel1b = bottom paths.panel1b = bottom
.split(points.bottomABsplit)[1] .split(points.bottomABsplit)[1]
.curve(points.hipsGap1Cp, points.waistGap1LeftCp1, points.waistGap1Left) .curve(points.hipsGap1Cp, points.waistGap1LeftCp1, points.waistGap1Left)

View file

@ -26,8 +26,8 @@ function draftCharlieBackPocketFacing({
.line(points.waistbandLeft) .line(points.waistbandLeft)
._curve(points.cpLeft, points.curveStartLeft) ._curve(points.cpLeft, points.curveStartLeft)
.line(points.bottomLeft) .line(points.bottomLeft)
.setRender(false) .hide()
paths.seam = paths.saBase.clone().close().setRender(true).attr('class', 'fabric') paths.seam = paths.saBase.clone().close().unhide().attr('class', 'fabric')
if (complete) { if (complete) {
paths.opening = new Path() paths.opening = new Path()

View file

@ -136,7 +136,7 @@ function draftCharlieBack({
.insop('dart', new Path().line(points.pocketCenter)) .insop('dart', new Path().line(points.pocketCenter))
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
paths.saBase.setRender(false) paths.saBase.hide()
if (complete) { if (complete) {
paths.pocketLine = new Path() paths.pocketLine = new Path()

View file

@ -26,13 +26,8 @@ function draftCharlieFlyExtension({ points, paths, Path, complete, macro, sa, pa
) )
.line(points.styleWaistIn) .line(points.styleWaistIn)
.line(points.flyTop) .line(points.flyTop)
.setRender(false) .hide()
paths.seam = paths.saBase paths.seam = paths.saBase.clone().line(points.flyCorner).close().hide().attr('class', 'fabric')
.clone()
.line(points.flyCorner)
.close()
.setRender(true)
.attr('class', 'fabric')
if (complete) { if (complete) {
macro('cutonfold', { macro('cutonfold', {

View file

@ -66,7 +66,7 @@ function draftCharlieWaistbandCurved({
paths.waistbandTop = new Path() paths.waistbandTop = new Path()
.move(points.cfRightTop) .move(points.cfRightTop)
.curve(points.cfRightTopCp, points.cfLeftTopCp, points.cfLeftTop) .curve(points.cfRightTopCp, points.cfLeftTopCp, points.cfLeftTop)
.setRender(false) .hide()
paths.waistbandBottom = new Path() paths.waistbandBottom = new Path()
.move(points.cfRightBottom) .move(points.cfRightBottom)
@ -87,8 +87,8 @@ function draftCharlieWaistbandCurved({
.curve(points.cfRightTopCp, points.cfLeftTopCp, points.cfLeftTop) .curve(points.cfRightTopCp, points.cfLeftTopCp, points.cfLeftTop)
.line(points.cfLeftBottom) .line(points.cfLeftBottom)
.close() .close()
.setRender(false) .hide()
paths.seam = paths.saBase.clone().attr('class', 'fabric').setRender(true) paths.seam = paths.saBase.clone().attr('class', 'fabric').unhide()
if (complete) { if (complete) {
log.info(`Top of waistband: ${units(paths.waistbandTop.length())}`) log.info(`Top of waistband: ${units(paths.waistbandTop.length())}`)

View file

@ -49,8 +49,8 @@ function draftCharlieWaistband({
.line(points.topRight) .line(points.topRight)
.line(points.bottomRight) .line(points.bottomRight)
.line(points.bottomLeft) .line(points.bottomLeft)
.setRender(false) .hide()
paths.seam = paths.saBase.clone().close().attr('class', 'fabric').setRender(true) paths.seam = paths.saBase.clone().close().attr('class', 'fabric').unhide()
if (complete) { if (complete) {
macro('sprinkle', { macro('sprinkle', {

View file

@ -54,17 +54,14 @@ function draftCorneliusFront({
.line(points.flyTop) .line(points.flyTop)
.line(points.flyBottom) .line(points.flyBottom)
.curve(points.pFBcpZ, points.pZcpFB, points.pZ) .curve(points.pFBcpZ, points.pZcpFB, points.pZ)
.setRender(false) .hide()
paths.flyFold = new Path().move(points.pW).line(points.pZ).attr('class', 'fabric dashed') paths.flyFold = new Path().move(points.pW).line(points.pZ).attr('class', 'fabric dashed')
store.set('flyLength', paths.flyFold.length()) store.set('flyLength', paths.flyFold.length())
store.set('frontWaistLength', paths.waistSeam.line(points.flyTop).length()) store.set('frontWaistLength', paths.waistSeam.line(points.flyTop).length())
paths.crotchSeam = new Path() paths.crotchSeam = new Path().move(points.pZ).curve(points.pZcpR, points.pRcpZ, points.pR).hide()
.move(points.pZ)
.curve(points.pZcpR, points.pRcpZ, points.pR)
.setRender(false)
points.pRcpK = points.pR points.pRcpK = points.pR
.shiftFractionTowards(points.pF, options.pctRtoKin) .shiftFractionTowards(points.pF, options.pctRtoKin)
@ -73,20 +70,14 @@ function draftCorneliusFront({
.shiftFractionTowards(points.pH, -1 * (options.pctKtoRout + options.fullness)) .shiftFractionTowards(points.pH, -1 * (options.pctKtoRout + options.fullness))
.shiftFractionTowards(points.pR, options.pctKtoRup) .shiftFractionTowards(points.pR, options.pctKtoRup)
paths.insideSeam = new Path() paths.insideSeam = new Path().move(points.pR).curve(points.pRcpK, points.pKcpR, points.pK).hide()
.move(points.pR)
.curve(points.pRcpK, points.pKcpR, points.pK)
.setRender(false)
store.set('insideSeam', paths.insideSeam.length()) store.set('insideSeam', paths.insideSeam.length())
let tempP = points.pH.shift(270, halfInch * 1.5) let tempP = points.pH.shift(270, halfInch * 1.5)
points.pKcpH = points.pK.shiftFractionTowards(tempP, options.pctKtoH) points.pKcpH = points.pK.shiftFractionTowards(tempP, options.pctKtoH)
points.pJcpH = points.pJ.shiftFractionTowards(tempP, options.pctKtoH) points.pJcpH = points.pJ.shiftFractionTowards(tempP, options.pctKtoH)
paths.legSeam = new Path() paths.legSeam = new Path().move(points.pK).curve(points.pKcpH, points.pJcpH, points.pJ).hide()
.move(points.pK)
.curve(points.pKcpH, points.pJcpH, points.pJ)
.setRender(false)
store.set('frontLegSeam', paths.legSeam.length()) store.set('frontLegSeam', paths.legSeam.length())
@ -103,7 +94,7 @@ function draftCorneliusFront({
points.pocketWaist = paths.waistSeam.shiftAlong(waist / 2 / 4.5) points.pocketWaist = paths.waistSeam.shiftAlong(waist / 2 / 4.5)
points.pocketSide = paths.sideSeam.shiftAlong(paths.sideSeam.length() - (waist / 2 / 4.5) * 3.5) points.pocketSide = paths.sideSeam.shiftAlong(paths.sideSeam.length() - (waist / 2 / 4.5) * 3.5)
paths.pocketSeam = new Path().move(points.pocketSide).line(points.pocketWaist).setRender(false) paths.pocketSeam = new Path().move(points.pocketSide).line(points.pocketWaist).hide()
paths.waistSeam = paths.waistSeam.split(points.pocketWaist)[1] paths.waistSeam = paths.waistSeam.split(points.pocketWaist)[1]
paths.sideSeam = paths.sideSeam.split(points.pocketSide)[0] paths.sideSeam = paths.sideSeam.split(points.pocketSide)[0]

View file

@ -86,9 +86,9 @@ function draftCorneliusFrontpoints({
.move(points.pJ) .move(points.pJ)
.curve(points.pJcpA, points.pAextraCPj, points.pAextra) .curve(points.pJcpA, points.pAextraCPj, points.pAextra)
.curve(points.pAextraCPu, points.pUcpA, points.pU) .curve(points.pAextraCPu, points.pUcpA, points.pU)
.setRender(false) .hide()
paths.waistSeam = new Path().move(points.pU).line(points.pD).line(points.pW).setRender(false) paths.waistSeam = new Path().move(points.pU).line(points.pD).line(points.pW).hide()
points.pocketWaist = paths.waistSeam.shiftAlong(waist / 2 / 4.5) points.pocketWaist = paths.waistSeam.shiftAlong(waist / 2 / 4.5)
points.pocketFacingTL = paths.waistSeam.shiftAlong(waist / 2 / 4.5 + halfInch * 3) points.pocketFacingTL = paths.waistSeam.shiftAlong(waist / 2 / 4.5 + halfInch * 3)

View file

@ -15,9 +15,9 @@ function draftCorneliusPocket({
}) { }) {
let halfInch = store.get('halfInch') let halfInch = store.get('halfInch')
paths.waistSeam = paths.waistSeam.split(points.pocketFacingTL)[0].setRender(false) paths.waistSeam = paths.waistSeam.split(points.pocketFacingTL)[0].hide()
paths.sideSeam = paths.sideSeam.split(points.pocketFacingBR)[1].setRender(false) paths.sideSeam = paths.sideSeam.split(points.pocketFacingBR)[1].hide()
points.brCPtl = points.pocketFacingBR.shift( points.brCPtl = points.pocketFacingBR.shift(
points.pocketFacingBR.angle(points.pocketSide) + 90, points.pocketFacingBR.angle(points.pocketSide) + 90,
@ -31,7 +31,7 @@ function draftCorneliusPocket({
paths.facingInside = new Path() paths.facingInside = new Path()
.move(points.pocketFacingTL) .move(points.pocketFacingTL)
.curve(points.tlCPbr, points.brCPtl, points.pocketFacingBR) .curve(points.tlCPbr, points.brCPtl, points.pocketFacingBR)
.setRender(false) .hide()
paths.pocketFold = new Path() paths.pocketFold = new Path()
.move(points.pocketTL) .move(points.pocketTL)
@ -63,7 +63,7 @@ function draftCorneliusPocket({
.join(paths.pocketBottom) .join(paths.pocketBottom)
.join(paths.sideSeam) .join(paths.sideSeam)
.close() .close()
.setRender(true) .hide()
.attr('class', 'fabric') .attr('class', 'fabric')
if (complete) { if (complete) {

View file

@ -17,7 +17,7 @@ function draftCorneliusPocketFacing({
let halfInch = store.get('halfInch') let halfInch = store.get('halfInch')
let waist = store.get('waist') let waist = store.get('waist')
paths.waistSeam = paths.waistSeam.split(points.pocketFacingTL)[0].setRender(false) paths.waistSeam = paths.waistSeam.split(points.pocketFacingTL)[0].hide()
// Adding sa to this point so it allows for the pocket seam to be finished without the facing being included // Adding sa to this point so it allows for the pocket seam to be finished without the facing being included
points.pocketFacingBR = paths.sideSeam.shiftAlong( points.pocketFacingBR = paths.sideSeam.shiftAlong(
@ -29,8 +29,8 @@ function draftCorneliusPocketFacing({
paths.sideSeam = new Path() paths.sideSeam = new Path()
.move(points.pAextra) .move(points.pAextra)
.curve(points.pAextraCPu, points.pUcpA, points.pU) .curve(points.pAextraCPu, points.pUcpA, points.pU)
.setRender(false) .hide()
else paths.sideSeam = paths.sideSeam.split(points.pocketFacingBR)[1].setRender(false) else paths.sideSeam = paths.sideSeam.split(points.pocketFacingBR)[1].hide()
points.brCPtl = points.pocketFacingBR.shift( points.brCPtl = points.pocketFacingBR.shift(
points.pocketFacingBR.angle(points.pocketSide) + 90, points.pocketFacingBR.angle(points.pocketSide) + 90,
@ -44,13 +44,13 @@ function draftCorneliusPocketFacing({
paths.facingInside = new Path() paths.facingInside = new Path()
.move(points.pocketFacingTL) .move(points.pocketFacingTL)
.curve(points.tlCPbr, points.brCPtl, points.pocketFacingBR) .curve(points.tlCPbr, points.brCPtl, points.pocketFacingBR)
.setRender(false) .hide()
paths.seam = paths.waistSeam paths.seam = paths.waistSeam
.join(paths.facingInside) .join(paths.facingInside)
.join(paths.sideSeam) .join(paths.sideSeam)
.close() .close()
.setRender(true) .hide()
.attr('class', 'fabric') .attr('class', 'fabric')
if (complete) { if (complete) {

View file

@ -145,13 +145,13 @@ function draftHiBelly({
.curve(points.belly04cp2, points.belly03cp1, points.belly03) .curve(points.belly04cp2, points.belly03cp1, points.belly03)
.curve(points.belly03cp2, points.belly02cp1, points.belly02) .curve(points.belly03cp2, points.belly02cp1, points.belly02)
.curve(points.belly02cp2, points.belly01cp1, points.belly01) .curve(points.belly02cp2, points.belly01cp1, points.belly01)
.setRender(false) .hide()
paths.bottom = new Path() paths.bottom = new Path()
.move(points.belly09) .move(points.belly09)
.curve(points.belly09cp2, points.belly08cp1, points.belly08) .curve(points.belly09cp2, points.belly08cp1, points.belly08)
.curve(points.belly08cp2, points.belly07cp1, points.belly07) .curve(points.belly08cp2, points.belly07cp1, points.belly07)
.curve(points.belly07cp2, points.belly06cp1, points.belly06) .curve(points.belly07cp2, points.belly06cp1, points.belly06)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.belly01) .move(points.belly01)
.curve(points.belly01cp2, points.belly10cp1, points.belly10) .curve(points.belly01cp2, points.belly10cp1, points.belly10)
@ -161,7 +161,7 @@ function draftHiBelly({
.curve(points.belly05cp2, points.belly04cp1, points.belly04) .curve(points.belly05cp2, points.belly04cp1, points.belly04)
.join(paths.top) .join(paths.top)
.close() .close()
.setRender(true) .unhide()
store.set( store.set(
'bellyFinLength', 'bellyFinLength',

View file

@ -401,7 +401,7 @@ function draftHiBody({
.curve(points.body17cp1, points.body18cp2, points.body18) .curve(points.body17cp1, points.body18cp2, points.body18)
.curve(points.body18cp1, points.body19cp2, points.body19) .curve(points.body18cp1, points.body19cp2, points.body19)
.curve(points.body19cp1, points.body01cp2, points.body01) .curve(points.body19cp1, points.body01cp2, points.body01)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.body01) .move(points.body01)
@ -409,7 +409,7 @@ function draftHiBody({
.curve(points.body02cp1, points.body03cp2, points.body03) .curve(points.body02cp1, points.body03cp2, points.body03)
.join(paths.allButDart) .join(paths.allButDart)
.close() .close()
.setRender(true) .hide()
let gillPath = new Path() let gillPath = new Path()
.move(points.body17) .move(points.body17)

View file

@ -31,8 +31,8 @@ function draftHolmesEar({
.move(points.bottom) .move(points.bottom)
.curve(points.bottomC, points.topC, points.top) .curve(points.bottomC, points.topC, points.top)
.curve(points.topCFlipped, points.bottomCFlipped, points.bottomFlipped) .curve(points.topCFlipped, points.bottomCFlipped, points.bottomFlipped)
.setRender(false) .hide()
paths.hemBase = new Path().move(points.bottomFlipped).line(points.bottom).setRender(false) paths.hemBase = new Path().move(points.bottomFlipped).line(points.bottom).hide()
paths.seam = paths.saBase.join(paths.hemBase).close() paths.seam = paths.saBase.join(paths.hemBase).close()
// Complete? // Complete?
if (complete) { if (complete) {

View file

@ -53,13 +53,13 @@ function draftHolmesVisor({
.move(points.in2) .move(points.in2)
.curve(points.in2C, points.in1C, points.in1) .curve(points.in2C, points.in1C, points.in1)
.curve(points.in1CFlipped, points.in2CFlipped, points.in2Flipped) .curve(points.in1CFlipped, points.in2CFlipped, points.in2Flipped)
.setRender(false) .hide()
paths.saOuter = new Path() paths.saOuter = new Path()
.move(points.in2Flipped) .move(points.in2Flipped)
.curve(points.ex2CFlipped, points.ex1CFlipped, points.ex1) .curve(points.ex2CFlipped, points.ex1CFlipped, points.ex1)
.curve(points.ex1C, points.ex2C, points.in2) .curve(points.ex1C, points.ex2C, points.in2)
.setRender(false) .hide()
paths.seam = paths.saOuter.join(paths.saInner).close() paths.seam = paths.saOuter.join(paths.saInner).close()
// Complete? // Complete?

View file

@ -53,15 +53,15 @@ function lunetiusLacerna({
points.bottomShoulderCp2 = points.bottomLeft.shiftFractionTowards(points.bottomShoulder, 0.5) points.bottomShoulderCp2 = points.bottomLeft.shiftFractionTowards(points.bottomShoulder, 0.5)
// Add paths // Add paths
paths.fold = new Path().move(points.bottom).line(points.top).setRender(false) paths.fold = new Path().move(points.bottom).line(points.top).hide()
paths.hem = new Path() paths.hem = new Path()
.move(points.topLeft) .move(points.topLeft)
.line(points.middleLeft) .line(points.middleLeft)
.curve(points.bottomShoulderCp1, points.bottomShoulderCp2, points.bottomShoulder) .curve(points.bottomShoulderCp1, points.bottomShoulderCp2, points.bottomShoulder)
.line(points.bottom) .line(points.bottom)
.setRender(false) .hide()
paths.saBase = new Path().move(points.top).line(points.topLeft).setRender(false) paths.saBase = new Path().move(points.top).line(points.topLeft).hide()
paths.seam = paths.saBase.join(paths.hem).join(paths.fold).attr('class', 'fabric').setRender(true) paths.seam = paths.saBase.join(paths.hem).join(paths.fold).attr('class', 'fabric').hide()
// Complete? // Complete?
if (complete) { if (complete) {

View file

@ -21,7 +21,7 @@ function nobleBackOutside({
.move(points.shoulderDart) .move(points.shoulderDart)
.curve(points.shoulderDart, points.shoulderDartCpUp, points.dartTip) .curve(points.shoulderDart, points.shoulderDartCpUp, points.dartTip)
.curve(points.shoulderDartCpDown, points.dartRightCp, points.dartBottomRight) .curve(points.shoulderDartCpDown, points.dartRightCp, points.dartBottomRight)
.setRender(false) .hide()
paths.outsideSeam = new Path() paths.outsideSeam = new Path()
.move(points.dartBottomRight) .move(points.dartBottomRight)

View file

@ -32,12 +32,12 @@ function nobleFrontOutside({
points.waistUpDartRight points.waistUpDartRight
) )
.curve(points.waistUpDartRightCpDown, points.waistCpUp, points.waistDartRight) .curve(points.waistUpDartRightCpDown, points.waistCpUp, points.waistDartRight)
.setRender(false) .hide()
paths.armhole = new Path() paths.armhole = new Path()
.move(points.armhole) .move(points.armhole)
.curve(points.armholeCp2, points.armholePitchCp1, points.armholePitch) .curve(points.armholeCp2, points.armholePitchCp1, points.armholePitch)
.curve_(points.armholePitchCp2, points.shoulder) .curve_(points.armholePitchCp2, points.shoulder)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.waistDartRight) .move(points.waistDartRight)
@ -53,7 +53,7 @@ function nobleFrontOutside({
.move(points.armholeDartOutside) .move(points.armholeDartOutside)
.curve(points.armholeCircleOutsideCp1, points.waistCircleOutsideCp1, points.waistUpDartRight) .curve(points.armholeCircleOutsideCp1, points.waistCircleOutsideCp1, points.waistUpDartRight)
.curve(points.waistUpDartRightCpDown, points.waistCpUp, points.waistDartRight) .curve(points.waistUpDartRightCpDown, points.waistCpUp, points.waistDartRight)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.waistDartRight) .move(points.waistDartRight)

View file

@ -153,7 +153,7 @@ function octoplushyArmSection(
.move(points.armBottomLeft) .move(points.armBottomLeft)
.curve(points.armBottomLeftCp1, points.armBottomCp2, points.armBottom) .curve(points.armBottomLeftCp1, points.armBottomCp2, points.armBottom)
.curve(points.armBottomCp1, points.armBottomRightCp2, points.armBottomRight) .curve(points.armBottomCp1, points.armBottomRightCp2, points.armBottomRight)
.setRender(false) .hide()
if (options.type == 'squid') { if (options.type == 'squid') {
if (partNumber == 1) { if (partNumber == 1) {
paths.armBottom = new Path() paths.armBottom = new Path()
@ -162,7 +162,7 @@ function octoplushyArmSection(
.curve(points.tentacleLeftCp1, points.armBottomCp2, points.armBottom) .curve(points.tentacleLeftCp1, points.armBottomCp2, points.armBottom)
.curve(points.armBottomCp1, points.tentacleRightCp2, points.tentacleRight) .curve(points.armBottomCp1, points.tentacleRightCp2, points.tentacleRight)
.curve(points.tentacleRightCp1, points.armBottomRightCp2, points.armBottomRight) .curve(points.tentacleRightCp1, points.armBottomRightCp2, points.armBottomRight)
.setRender(false) .hide()
} }
} }

View file

@ -60,7 +60,7 @@ function octoplushyEye(
.curve(points.rightCp1, points.topCp2, points.top) .curve(points.rightCp1, points.topCp2, points.top)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(true) .hide()
points.logo = points.top.shiftFractionTowards(points.bottom, 0.3) points.logo = points.top.shiftFractionTowards(points.bottom, 0.3)
points.titleAnchor = points.bottom points.titleAnchor = points.bottom
.shiftFractionTowards(points.top, 0.25) .shiftFractionTowards(points.top, 0.25)
@ -83,7 +83,7 @@ function octoplushyEye(
.line(points.tl) .line(points.tl)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(true) .hide()
points.logo = points.tl points.logo = points.tl
.shiftFractionTowards(points.bl, 0.5) .shiftFractionTowards(points.bl, 0.5)

View file

@ -78,7 +78,7 @@ function octoplushyHeadSection(
.move(points.circleTop) .move(points.circleTop)
.curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft) .curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft)
.curve(points.sectionLeftCp1, points.sectionBottomCp2, points.circleBottom) .curve(points.sectionLeftCp1, points.sectionBottomCp2, points.circleBottom)
.setRender(true) .unhide()
let iteration = 0 let iteration = 0
let diff = 0 let diff = 0
@ -106,7 +106,7 @@ function octoplushyHeadSection(
.move(points.circleTop) .move(points.circleTop)
.curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft) .curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft)
.curve(points.sectionLeftCp1, points.sectionBottomCp2, points.circleBottom) .curve(points.sectionLeftCp1, points.sectionBottomCp2, points.circleBottom)
.setRender(false) .hide()
points.sectionBottomLeft = utils.curveIntersectsY( points.sectionBottomLeft = utils.curveIntersectsY(
points.sectionLeft, points.sectionLeft,
@ -299,7 +299,7 @@ function octoplushyHeadSection(
.move(points.armBottomLeft) .move(points.armBottomLeft)
.curve(points.armBottomLeftCp1, points.armBottomCp2, points.armBottom) .curve(points.armBottomLeftCp1, points.armBottomCp2, points.armBottom)
.curve(points.armBottomCp1, points.armBottomRightCp2, points.armBottomRight) .curve(points.armBottomCp1, points.armBottomRightCp2, points.armBottomRight)
.setRender(false) .hide()
if (options.type == 'squid') { if (options.type == 'squid') {
paths.sectionLeft = new Path() paths.sectionLeft = new Path()
@ -307,20 +307,20 @@ function octoplushyHeadSection(
.curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft) .curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft)
.curve(points.sectionLeftCp1, points.sectionMidLeftCp2, points.sectionMidLeft) .curve(points.sectionLeftCp1, points.sectionMidLeftCp2, points.sectionMidLeft)
.curve(points.sectionMidLeftCp1, points.sectionBottomLeftCp2, points.sectionBottomLeft) .curve(points.sectionMidLeftCp1, points.sectionBottomLeftCp2, points.sectionBottomLeft)
.setRender(false) .hide()
paths.sectionRight = new Path() paths.sectionRight = new Path()
.move(points.sectionBottomRight) .move(points.sectionBottomRight)
.curve(points.sectionBottomRightCp1, points.sectionMidRightCp2, points.sectionMidRight) .curve(points.sectionBottomRightCp1, points.sectionMidRightCp2, points.sectionMidRight)
.curve(points.sectionMidRightCp1, points.sectionRightCp2, points.sectionRight) .curve(points.sectionMidRightCp1, points.sectionRightCp2, points.sectionRight)
.setRender(false) .hide()
paths.skirtLeft = new Path() paths.skirtLeft = new Path()
.move(points.sectionBottomLeft) .move(points.sectionBottomLeft)
.curve(points.sectionBottomLeftCp1, points.armTopLeftCp2, points.armTopLeft) .curve(points.sectionBottomLeftCp1, points.armTopLeftCp2, points.armTopLeft)
.setRender(false) .hide()
paths.skirtRight = new Path() paths.skirtRight = new Path()
.move(points.armTopRight) .move(points.armTopRight)
.curve(points.armTopRightCp1, points.sectionBottomRightCp2, points.sectionBottomRight) .curve(points.armTopRightCp1, points.sectionBottomRightCp2, points.sectionBottomRight)
.setRender(false) .hide()
if (partNumber == 1) { if (partNumber == 1) {
paths.sectionLeft = new Path() paths.sectionLeft = new Path()
.move(points.sectionTop) .move(points.sectionTop)
@ -330,45 +330,45 @@ function octoplushyHeadSection(
.curve(points.finSectionCp1, points.sectionLeftCp2, points.sectionLeft) .curve(points.finSectionCp1, points.sectionLeftCp2, points.sectionLeft)
.curve(points.sectionLeftCp1, points.sectionMidLeftCp2, points.sectionMidLeft) .curve(points.sectionLeftCp1, points.sectionMidLeftCp2, points.sectionMidLeft)
.curve(points.sectionMidLeftCp1, points.sectionBottomLeftCp2, points.sectionBottomLeft) .curve(points.sectionMidLeftCp1, points.sectionBottomLeftCp2, points.sectionBottomLeft)
.setRender(false) .hide()
paths.armBottom = new Path() paths.armBottom = new Path()
.move(points.armBottomLeft) .move(points.armBottomLeft)
.curve(points.armBottomLeftCp1, points.tentacleLeftCp2, points.tentacleLeft) .curve(points.armBottomLeftCp1, points.tentacleLeftCp2, points.tentacleLeft)
.curve(points.tentacleLeftCp1, points.armBottomCp2, points.armBottom) .curve(points.tentacleLeftCp1, points.armBottomCp2, points.armBottom)
.curve(points.armBottomCp1, points.tentacleRightCp2, points.tentacleRight) .curve(points.armBottomCp1, points.tentacleRightCp2, points.tentacleRight)
.curve(points.tentacleRightCp1, points.armBottomRightCp2, points.armBottomRight) .curve(points.tentacleRightCp1, points.armBottomRightCp2, points.armBottomRight)
.setRender(false) .hide()
} }
} else { } else {
paths.sectionLeft = new Path() paths.sectionLeft = new Path()
.move(points.sectionTop) .move(points.sectionTop)
.curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft) .curve(points.sectionTopCp1, points.sectionLeftCp2, points.sectionLeft)
.curve(points.sectionLeftCp1, points.sectionBottomLeftCp2, points.sectionBottomLeft) .curve(points.sectionLeftCp1, points.sectionBottomLeftCp2, points.sectionBottomLeft)
.setRender(false) .hide()
paths.sectionRight = new Path() paths.sectionRight = new Path()
.move(points.sectionBottomRight) .move(points.sectionBottomRight)
.curve(points.sectionBottomRightCp1, points.sectionRightCp2, points.sectionRight) .curve(points.sectionBottomRightCp1, points.sectionRightCp2, points.sectionRight)
.setRender(false) .hide()
if (points.skirtBottomLeft.sitsRoughlyOn(points.armTopLeft)) { if (points.skirtBottomLeft.sitsRoughlyOn(points.armTopLeft)) {
paths.skirtLeft = new Path() paths.skirtLeft = new Path()
.move(points.sectionBottomLeft) .move(points.sectionBottomLeft)
.curve(points.sectionBottomLeftCp1, points.skirtBottomLeft, points.skirtBottomLeft) .curve(points.sectionBottomLeftCp1, points.skirtBottomLeft, points.skirtBottomLeft)
.setRender(false) .hide()
paths.skirtRight = new Path() paths.skirtRight = new Path()
.move(points.armTopRight) .move(points.armTopRight)
.curve(points.skirtBottomRight, points.sectionBottomRightCp2, points.sectionBottomRight) .curve(points.skirtBottomRight, points.sectionBottomRightCp2, points.sectionBottomRight)
.setRender(false) .hide()
} else { } else {
paths.skirtLeft = new Path() paths.skirtLeft = new Path()
.move(points.sectionBottomLeft) .move(points.sectionBottomLeft)
.curve(points.sectionBottomLeftCp1, points.skirtBottomLeft, points.skirtBottomLeft) .curve(points.sectionBottomLeftCp1, points.skirtBottomLeft, points.skirtBottomLeft)
.curve(points.skirtBottomLeft, points.armTopLeftCp2, points.armTopLeft) .curve(points.skirtBottomLeft, points.armTopLeftCp2, points.armTopLeft)
.setRender(false) .hide()
paths.skirtRight = new Path() paths.skirtRight = new Path()
.move(points.armTopRight) .move(points.armTopRight)
.curve(points.armTopRightCp1, points.skirtBottomRight, points.skirtBottomRight) .curve(points.armTopRightCp1, points.skirtBottomRight, points.skirtBottomRight)
.curve(points.skirtBottomRight, points.sectionBottomRightCp2, points.sectionBottomRight) .curve(points.skirtBottomRight, points.sectionBottomRightCp2, points.sectionBottomRight)
.setRender(false) .hide()
} }
} }
@ -385,16 +385,6 @@ function octoplushyHeadSection(
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
// paths.box = new Path()
// .move(points.topLeft)
// .line(points.bottomLeft)
// .line(points.bottomRight)
// .line(points.topRight)
// .line(points.topLeft)
// .close()
// .attr('class', 'fabric')
// .setRender(false)
// Complete? // Complete?
if (complete) { if (complete) {
points.logo = points.sectionTop.shiftFractionTowards( points.logo = points.sectionTop.shiftFractionTowards(

View file

@ -39,13 +39,9 @@ function penelopeBack(params) {
.line(points.vTop) .line(points.vTop)
.line(points.vLeg) .line(points.vLeg)
.line(points.vHem) .line(points.vHem)
.setRender(false) .hide()
paths.leftSide = new Path() paths.leftSide = new Path().move(points.lWaist).line(points.lVent).join(paths.vent).hide()
.move(points.lWaist)
.line(points.lVent)
.join(paths.vent)
.setRender(false)
paths.hem = paths.hem.line(points.vLeg) paths.hem = paths.hem.line(points.vLeg)
} }

View file

@ -125,7 +125,7 @@ export function BuildMainShape(
waistCurve = new Path() waistCurve = new Path()
.move(points.lWaist) .move(points.lWaist)
.curve(points.lWaistCP, points.rWaistCPleft, points.rWaist) .curve(points.lWaistCP, points.rWaistCPleft, points.rWaist)
.setRender(false) .hide()
if (nrOfDarts > 0) { if (nrOfDarts > 0) {
curve1 = addDartToCurve( curve1 = addDartToCurve(
@ -199,7 +199,7 @@ export function BuildMainShape(
.move(points.lLeg) .move(points.lLeg)
.line(points.rLeg) .line(points.rLeg)
.attr('class', 'fabric stroke-sm') .attr('class', 'fabric stroke-sm')
.setRender(false) .hide()
if (store.get('hem') > 0) { if (store.get('hem') > 0) {
// Create the inverse of the curve from the leg to the waist // Create the inverse of the curve from the leg to the waist
@ -214,18 +214,18 @@ export function BuildMainShape(
sideSeamPath = sideSeamHemPath.join(sideSeamPath) sideSeamPath = sideSeamHemPath.join(sideSeamPath)
paths.hem.setRender(true) paths.hem.unhide()
} }
paths.leftSide = new Path().move(points.lWaist).line(points.lHem).setRender(false) paths.leftSide = new Path().move(points.lWaist).line(points.lHem).hide()
paths.bottom = new Path().move(points.lHem).line(points.rHem).setRender(false) paths.bottom = new Path().move(points.lHem).line(points.rHem).hide()
paths.sideSeam = sideSeamPath.setRender(false) paths.sideSeam = sideSeamPath.hide()
// Turn the path in the other direction, to comply with the counter-clockwise guideline // Turn the path in the other direction, to comply with the counter-clockwise guideline
paths.waist = waistPath.reverse().setRender(false) paths.waist = waistPath.reverse().hide()
paths.waistSA = waistPathSA.reverse().setRender(false) paths.waistSA = waistPathSA.reverse().hide()
points.titleAnchor = new Point(measurements.waist / 6, measurements.waistToSeat) points.titleAnchor = new Point(measurements.waist / 6, measurements.waistToSeat)
points.logoAnchor = points.titleAnchor.shift(270, 75) points.logoAnchor = points.titleAnchor.shift(270, 75)

View file

@ -143,13 +143,13 @@ function addDartToCurve(part, curvePath, distance, dartSize, dartDepth) {
let curveLeftOfDart = new part.Path() let curveLeftOfDart = new part.Path()
.move(curvePaths[0].ops[0].to) .move(curvePaths[0].ops[0].to)
.curve(curvePaths[0].ops[1].cp1, leftDartCP, dartLeft) .curve(curvePaths[0].ops[1].cp1, leftDartCP, dartLeft)
.setRender(false) .hide()
let curveRightOfDart = new part.Path() let curveRightOfDart = new part.Path()
.move(dartRight) .move(dartRight)
.curve(rightDartCP, curvePaths[1].ops[1].cp2, curvePaths[1].ops[1].to) .curve(rightDartCP, curvePaths[1].ops[1].cp2, curvePaths[1].ops[1].to)
.setRender(false) .hide()
let dart = new part.Path().move(dartLeft).line(dartBottom).line(dartRight).setRender(false) let dart = new part.Path().move(dartLeft).line(dartBottom).line(dartRight).hide()
let curveWithDart = { let curveWithDart = {
left: curveLeftOfDart, left: curveLeftOfDart,

View file

@ -24,7 +24,7 @@ function teaganBack({
points.shoulderCp1 = points.shoulderCp1.shiftFractionTowards(points.shoulder, 0.25) points.shoulderCp1 = points.shoulderCp1.shiftFractionTowards(points.shoulder, 0.25)
// Draw seamline // Draw seamline
paths.hemBase = new Path().move(points.cfHem).line(points.hem).setRender(false) paths.hemBase = new Path().move(points.cfHem).line(points.hem).hide()
paths.saBase = new Path() paths.saBase = new Path()
.move(points.hem) .move(points.hem)
.curve_(points.waistCp2, points.armhole) .curve_(points.waistCp2, points.armhole)
@ -32,14 +32,14 @@ function teaganBack({
.curve(points.armholeHollowCp2, points.shoulderCp1, points.shoulder) .curve(points.armholeHollowCp2, points.shoulderCp1, points.shoulder)
.line(points.neck) .line(points.neck)
.curve(points.neckCp2, points.cbNeckCp1, points.cbNeck) .curve(points.neckCp2, points.cbNeckCp1, points.cbNeck)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.cfHem) .move(points.cfHem)
.join(paths.hemBase) .join(paths.hemBase)
.join(paths.saBase) .join(paths.saBase)
.line(points.cfHem) .line(points.cfHem)
.close() .close()
.setRender(true) .hide()
.attr('class', 'fabric') .attr('class', 'fabric')
// Set store values required to draft sleevecap // Set store values required to draft sleevecap

View file

@ -25,7 +25,7 @@ function teaganSleeve({
.curve(points.capQ2Cp2, points.capQ3Cp1, points.capQ3) .curve(points.capQ2Cp2, points.capQ3Cp1, points.capQ3)
.edge('top') .edge('top')
paths.hemBase = new Path().move(points.hemLeft).line(points.hemRight).setRender(false) paths.hemBase = new Path().move(points.hemLeft).line(points.hemRight).hide()
paths.saBase = new Path() paths.saBase = new Path()
.move(points.hemRight) .move(points.hemRight)
.line(points.bicepsRight) .line(points.bicepsRight)
@ -35,7 +35,7 @@ function teaganSleeve({
.curve(points.capQ3Cp2, points.capQ4Cp1, points.capQ4) .curve(points.capQ3Cp2, points.capQ4Cp1, points.capQ4)
.curve(points.capQ4Cp2, points.bicepsLeft, points.bicepsLeft) .curve(points.capQ4Cp2, points.bicepsLeft, points.bicepsLeft)
.line(points.hemLeft) .line(points.hemLeft)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.hemLeft) .move(points.hemLeft)
.join(paths.hemBase) .join(paths.hemBase)

View file

@ -62,14 +62,10 @@ function tiberiusTunica({
points.armholeLeft = points.topLeft.shift(-90, armhole) points.armholeLeft = points.topLeft.shift(-90, armhole)
// draw paths // draw paths
paths.saBase = new Path() paths.saBase = new Path().move(points.top).line(points.topLeft).line(points.bottomLeft).hide()
.move(points.top) paths.hem = new Path().move(points.bottomLeft).line(points.bottom).hide()
.line(points.topLeft) paths.fold = new Path().move(points.bottom).line(points.top).hide()
.line(points.bottomLeft) paths.seam = paths.saBase.join(paths.hem).join(paths.fold).unhide().attr('class', 'fabric')
.setRender(false)
paths.hem = new Path().move(points.bottomLeft).line(points.bottom).setRender(false)
paths.fold = new Path().move(points.bottom).line(points.top).setRender(false)
paths.seam = paths.saBase.join(paths.hem).join(paths.fold).setRender(true).attr('class', 'fabric')
// clavi // clavi
if (options.clavi) { if (options.clavi) {

View file

@ -177,7 +177,7 @@ function ursulaBack({
points.backLegOpeningRightCp1, points.backLegOpeningRightCp1,
points.backLegOpeningRight points.backLegOpeningRight
) )
.setRender(false) .hide()
: new Path() : new Path()
.move(points.backGussetRight) .move(points.backGussetRight)
.curve(points.backGussetRightCp1, points.backFlareRightCp2, points.backFlareRight) .curve(points.backGussetRightCp1, points.backFlareRightCp2, points.backFlareRight)
@ -186,13 +186,13 @@ function ursulaBack({
points.backLegOpeningRightCp1, points.backLegOpeningRightCp1,
points.backLegOpeningRight points.backLegOpeningRight
) )
.setRender(false) .hide()
store.set('backLegOpeningLength', paths.backLegOpening.length()) store.set('backLegOpeningLength', paths.backLegOpening.length())
paths.backWaistBand = new Path() paths.backWaistBand = new Path()
.move(points.backWaistBandRight) .move(points.backWaistBandRight)
.curve(points.backWaistBandRightCp1, points.backWaistBandLeftCp1, points.backWaistBandLeft) .curve(points.backWaistBandRightCp1, points.backWaistBandLeftCp1, points.backWaistBandLeft)
.setRender(false) .hide()
store.set('backWaistBandLength', paths.backWaistBand.length()) store.set('backWaistBandLength', paths.backWaistBand.length())
// Complete? // Complete?

View file

@ -131,13 +131,13 @@ function ursulaFront({
paths.frontLegOpening = new Path() paths.frontLegOpening = new Path()
.move(points.frontGussetRight) .move(points.frontGussetRight)
.curve(points.frontGussetRightCp1, points.frontLegOpeningRightCp1, points.frontLegOpeningRight) .curve(points.frontGussetRightCp1, points.frontLegOpeningRightCp1, points.frontLegOpeningRight)
.setRender(false) .hide()
store.set('frontLegOpeningLength', paths.frontLegOpening.length()) store.set('frontLegOpeningLength', paths.frontLegOpening.length())
paths.frontWaistBand = new Path() paths.frontWaistBand = new Path()
.move(points.frontWaistBandRight) .move(points.frontWaistBandRight)
.curve(points.frontWaistBandRightCp1, points.frontWaistBandLeftCp1, points.frontWaistBandLeft) .curve(points.frontWaistBandRightCp1, points.frontWaistBandLeftCp1, points.frontWaistBandLeft)
.setRender(false) .hide()
store.set('frontWaistBandLength', paths.frontWaistBand.length()) store.set('frontWaistBandLength', paths.frontWaistBand.length())
// Complete? // Complete?

View file

@ -54,7 +54,7 @@ function walburgaBase({
.line(points.triangleLeft) .line(points.triangleLeft)
.line(points.bottomMiddle) .line(points.bottomMiddle)
.line(points.triangle) .line(points.triangle)
.setRender(false) .hide()
paths.seam = new Path() paths.seam = new Path()
.move(points.top) .move(points.top)
.line(points.topLeft) .line(points.topLeft)
@ -112,7 +112,7 @@ function walburgaBase({
) )
) )
.line(points.triangle) .line(points.triangle)
.setRender(false) .hide()
// Insop the start // Insop the start
paths.sa = paths.saBase paths.sa = paths.saBase
@ -124,7 +124,7 @@ function walburgaBase({
.line(points.topLeft.shift(90, sa)) .line(points.topLeft.shift(90, sa))
) )
.attr('class', 'fabric sa') .attr('class', 'fabric sa')
.setRender(true) .unhide()
} }
// Paperless? // Paperless?

View file

@ -89,11 +89,7 @@ function walburgaFront({
if (sa) { if (sa) {
if (options.neckline === true) { if (options.neckline === true) {
// Insop the start // Insop the start
paths.saHelper = new Path() paths.saHelper = new Path().move(points.neckomid).line(points.neckotop).offset(sa).hide()
.move(points.neckomid)
.line(points.neckotop)
.offset(sa)
.setRender(false)
paths.sa = paths.saBase paths.sa = paths.saBase
.insop( .insop(
'start', 'start',
@ -116,7 +112,7 @@ function walburgaFront({
.line(points.topLeft.shift(90, sa)) .line(points.topLeft.shift(90, sa))
) )
.attr('class', 'fabric sa') .attr('class', 'fabric sa')
.setRender(true) .unhide()
} }
} }

View file

@ -38,7 +38,7 @@ function waraleeFacings({
.line(points.frontTL) .line(points.frontTL)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(options.frontPocket && 'welt' == options.frontPocketStyle) .setHidden(!(options.frontPocket && 'welt' == options.frontPocketStyle))
paths.backSeam = new Path() paths.backSeam = new Path()
.move(points.backTL) .move(points.backTL)
@ -48,7 +48,7 @@ function waraleeFacings({
.line(points.backTL) .line(points.backTL)
.close() .close()
.attr('class', 'fabric') .attr('class', 'fabric')
.setRender(options.backPocket) .setHidden(!options.backPocket)
// Complete? // Complete?
if (complete) { if (complete) {

View file

@ -160,7 +160,7 @@ function waraleeWaistband(
.line(points.bl) .line(points.bl)
.line(points.br) .line(points.br)
.close() .close()
.setRender(false) .hide()
// Complete? // Complete?
if (complete) { if (complete) {

View file

@ -50,7 +50,7 @@ function yuriGusset({
points.logo = points.title.shift(-75, 100) points.logo = points.title.shift(-75, 100)
snippets.logo = new Snippet('logo', points.logo) snippets.logo = new Snippet('logo', points.logo)
if (sa) { if (sa) {
paths.saBase = new Path().move(points.right).line(points.top).setRender(false) paths.saBase = new Path().move(points.right).line(points.top).hide()
paths.sa = paths.curve paths.sa = paths.curve
.offset(3 * sa) .offset(3 * sa)
.join(paths.saBase.offset(sa)) .join(paths.saBase.offset(sa))