Removal of Mini option and some i18n
This commit is contained in:
parent
526eb77396
commit
9eaf2515b0
5 changed files with 49 additions and 18 deletions
|
@ -86,24 +86,52 @@
|
|||
"d": "This setting raises the waist in the back. Our waist does not sit horizontally, but is angled up at the back. This seting allows you to raise this in the back if you need it for a good fit."
|
||||
},
|
||||
"fitWaist": {
|
||||
"t": "FIXME: Give this option a name",
|
||||
"d": "FIXME: Give this option a description"
|
||||
"t": "Fit the garment to the waist",
|
||||
"d": "Traditionally, wrap pants are not fitted to the waist, and just use the flexibility of the fabric to adjust."
|
||||
},
|
||||
"fitWaistNo": {
|
||||
"t": "Do not fit the garment to the waist",
|
||||
"d": "The traditional wrap pants."
|
||||
},
|
||||
"fitWaistYes": {
|
||||
"t": "Fit the garment to the waist",
|
||||
"d": "Adjust the crotch cutout to make the waist fit better."
|
||||
},
|
||||
"frontPocketStyle": {
|
||||
"t": "FIXME: Give this option a name",
|
||||
"d": "FIXME: Give this option a description"
|
||||
"t": "Front pocket style",
|
||||
"d": "A welt pocket, or a pocket hidden in the waistband."
|
||||
},
|
||||
"frontPocketStyle.welt": {
|
||||
"t": "Welt style Front pocket",
|
||||
"d": "The front pocket will be a welt pocket, slanted, and hidden by the overlap."
|
||||
},
|
||||
"frontPocketStyle.waistband": {
|
||||
"t": "Waistband Front pocket",
|
||||
"d": "The front pocket will be hidden in the seam of the waistband."
|
||||
},
|
||||
"knotInFront": {
|
||||
"t": "FIXME: Give this option a name",
|
||||
"d": "FIXME: Give this option a description"
|
||||
"t": "Placement of the knot",
|
||||
"d": "The knot of the wrap straps can be place in the front or back."
|
||||
},
|
||||
"knotInFrontNo": {
|
||||
"t": "Knot in the back",
|
||||
"d": "The knot of the wrap straps will be in the back."
|
||||
},
|
||||
"knotInFrontYes": {
|
||||
"t": "Knot in the front",
|
||||
"d": "The knot of the wrap straps will be in the front."
|
||||
},
|
||||
"separateWaistband": {
|
||||
"t": "FIXME: Give this option a name",
|
||||
"d": "FIXME: Give this option a description"
|
||||
"t": "Create a separate waistband",
|
||||
"d": "Create a separate waistband, or have a hem the size of the waistband."
|
||||
},
|
||||
"showMini": {
|
||||
"t": "FIXME: Give this option a name",
|
||||
"d": "FIXME: Give this option a description"
|
||||
"separateWaistbandNo": {
|
||||
"t": "No separate waistband",
|
||||
"d": "The waistband is created by a folded hem."
|
||||
},
|
||||
"separateWaistbandYes": {
|
||||
"t": "Separate waistband",
|
||||
"d": "The waistband is a separate piece, and sewn onto the pants."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,10 @@ export const cutout = {
|
|||
name: 'waralee.cutout',
|
||||
from: pantsProto,
|
||||
draft: ({ options, Path, points, paths, Snippet, snippets, sa, macro, expand, part }) => {
|
||||
if (expand) {
|
||||
return part.hide()
|
||||
}
|
||||
|
||||
const separateWaistband = options.separateWaistband || 'waistband' == options.frontPocketStyle
|
||||
|
||||
paths.seam = new Path()
|
||||
|
@ -17,7 +21,7 @@ export const cutout = {
|
|||
.close()
|
||||
.attr('class', 'fabric')
|
||||
|
||||
paths.cutout.hide()
|
||||
// paths.cutout.hide()
|
||||
|
||||
points.title = points.mWaist.shift(270, 75)
|
||||
macro('title', {
|
||||
|
@ -66,6 +70,6 @@ export const cutout = {
|
|||
x: points.mWaist.x + 15,
|
||||
})
|
||||
|
||||
return part.hide(expand)
|
||||
return part
|
||||
},
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ export const mini = {
|
|||
return part.hide()
|
||||
}
|
||||
|
||||
const mini = options.minimizer
|
||||
const mini = points.bWaistBackOverlapSeam.dist(points.fWaistFrontOverlapSeam) / 150
|
||||
const separateWaistband = options.separateWaistband || 'waistband' == options.frontPocketStyle
|
||||
|
||||
for (const p in points) {
|
||||
|
@ -175,7 +175,6 @@ export const mini = {
|
|||
force: true,
|
||||
})
|
||||
}
|
||||
|
||||
return part.setHidden(!options.showMini && !expand)
|
||||
return part
|
||||
},
|
||||
}
|
||||
|
|
|
@ -182,6 +182,6 @@ export const pants = {
|
|||
}
|
||||
}
|
||||
|
||||
return part.setHidden(options.showMini && !expand)
|
||||
return part
|
||||
},
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ export const pocket = {
|
|||
}
|
||||
}
|
||||
|
||||
if ('welt' == options.frontPocketStyle) {
|
||||
if ('welt' != options.frontPocketStyle) {
|
||||
macro('hd', {
|
||||
id: 1,
|
||||
from: points.topLeft,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue