feat(models): Added menswear and womenswear named exports
This commit is contained in:
parent
717a653381
commit
9346e79205
3 changed files with 29 additions and 27 deletions
|
@ -43,4 +43,5 @@ The digits in the model refer to the neck circumference in cm.
|
||||||
|
|
||||||
- measurements: A list/array of measurement names
|
- measurements: A list/array of measurement names
|
||||||
- sizes: An object with `menswear` and `womenswear` keys that hold a list/array of sizes we provide
|
- sizes: An object with `menswear` and `womenswear` keys that hold a list/array of sizes we provide
|
||||||
|
- menswear: An object with the menswear models
|
||||||
|
- womenswear: An object with the womenswear models
|
||||||
|
|
|
@ -37,3 +37,30 @@ export const menswear48 = getMeasurements(48, false)
|
||||||
export const menswear50 = getMeasurements(50, false)
|
export const menswear50 = getMeasurements(50, false)
|
||||||
|
|
||||||
export { measurements }
|
export { measurements }
|
||||||
|
|
||||||
|
export const womenswear = {
|
||||||
|
womenswear28,
|
||||||
|
womenswear30,
|
||||||
|
womenswear32,
|
||||||
|
womenswear34,
|
||||||
|
womenswear36,
|
||||||
|
womenswear38,
|
||||||
|
womenswear40,
|
||||||
|
womenswear42,
|
||||||
|
womenswear44,
|
||||||
|
womenswear46,
|
||||||
|
}
|
||||||
|
|
||||||
|
export const menswear = {
|
||||||
|
menswear32,
|
||||||
|
menswear34,
|
||||||
|
menswear36,
|
||||||
|
menswear38,
|
||||||
|
menswear40,
|
||||||
|
menswear42,
|
||||||
|
menswear44,
|
||||||
|
menswear46,
|
||||||
|
menswear48,
|
||||||
|
menswear50,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,3 @@
|
||||||
/*
|
|
||||||
* This completes the list of measurements with the ones
|
|
||||||
* we can calculate based on what we already have
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
function complete(m) {
|
|
||||||
// Added by plugin-bust:
|
|
||||||
m.bust = m.chest
|
|
||||||
|
|
||||||
// Added by plugin-measurements:
|
|
||||||
m.crossSeamBack = [0,1].map(i => m.crossSeam[i] - m.crossSeamFront[i])
|
|
||||||
m.seatBackArc = [0,1].map(i => m.seatBack[i] / 2)
|
|
||||||
m.waistBackArc = [0,1].map(i => m.waistBack[i] / 2)
|
|
||||||
m.bustBack = [0,1].map(i => m.bust[i] - m.bustFront[i])
|
|
||||||
m.seatFront = [0,1].map(i => m.seat[i] - m.seatBack[i])
|
|
||||||
m.seatFrontArc = [0,1].map(i => m.seatFront[i] / 2)
|
|
||||||
m.waistFront = [0,1].map(i => m.waist[i] - m.waistBack[i])
|
|
||||||
m.waistFrontArc = [0,1].map(i => m.waistFront[i] / 2)
|
|
||||||
m.highBustBack = [0,1].map(i => m.highBust[i] - m.highBustFront[i])
|
|
||||||
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are a set of measurements of an average-sized [woman, man].
|
* These are a set of measurements of an average-sized [woman, man].
|
||||||
* We simply extrapolate for other sizes (based on neck)
|
* We simply extrapolate for other sizes (based on neck)
|
||||||
|
@ -70,8 +46,6 @@ const base = {
|
||||||
waistToUpperLeg: [285, 340],
|
waistToUpperLeg: [285, 340],
|
||||||
wrist: [165, 175],
|
wrist: [165, 175],
|
||||||
}
|
}
|
||||||
// Add auto-calculated measures
|
|
||||||
//const full = complete(base)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since linear measurements don't scale the same as circumference
|
* Since linear measurements don't scale the same as circumference
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue