chore(simon): Cleaned up notches. See #790
This commit is contained in:
parent
fb2538b0bf
commit
530e82130d
3 changed files with 10 additions and 18 deletions
|
@ -113,8 +113,6 @@ export default (part) => {
|
||||||
on: [
|
on: [
|
||||||
'waist',
|
'waist',
|
||||||
'armholePitch',
|
'armholePitch',
|
||||||
'shoulder',
|
|
||||||
'neck',
|
|
||||||
'hips',
|
'hips',
|
||||||
'cfHips',
|
'cfHips',
|
||||||
'cfWaist',
|
'cfWaist',
|
||||||
|
|
|
@ -1,14 +1,4 @@
|
||||||
export default (part) => {
|
export default (part) => {
|
||||||
part.paths = {} // This removed paperless dimensions from brian block
|
|
||||||
for (let pid of [
|
|
||||||
'__scaleboxLead',
|
|
||||||
'__scaleboxMetric',
|
|
||||||
'__scaleboxImperial',
|
|
||||||
'__scaleboxText',
|
|
||||||
'__scaleboxTitle',
|
|
||||||
'__scaleboxLink'
|
|
||||||
])
|
|
||||||
delete part.points[pid]
|
|
||||||
let {
|
let {
|
||||||
measurements,
|
measurements,
|
||||||
sa,
|
sa,
|
||||||
|
@ -19,9 +9,16 @@ export default (part) => {
|
||||||
complete,
|
complete,
|
||||||
paperless,
|
paperless,
|
||||||
macro,
|
macro,
|
||||||
options
|
options,
|
||||||
|
snippets,
|
||||||
|
Snippet
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
|
// Remove inherited paths, snippets, and scalebox
|
||||||
|
for (let p in paths) delete paths[p]
|
||||||
|
for (let s in snippets) delete snippets[s]
|
||||||
|
macro('scalebox', false)
|
||||||
|
|
||||||
// Sleeve width depends on cuff style
|
// Sleeve width depends on cuff style
|
||||||
let width = measurements.wrist * (1 + options.cuffEase + options.cuffOverlap)
|
let width = measurements.wrist * (1 + options.cuffEase + options.cuffOverlap)
|
||||||
if (
|
if (
|
||||||
|
@ -115,6 +112,8 @@ export default (part) => {
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
|
snippets.backNotch = new Snippet('bnotch', points.backNotch)
|
||||||
|
snippets.frontNotch = new Snippet('notch', points.frontNotch)
|
||||||
points.placketEnd = points.cuffLeftCusp.shift(
|
points.placketEnd = points.cuffLeftCusp.shift(
|
||||||
90,
|
90,
|
||||||
options.sleevePlacketLength * measurements.shoulderToWrist
|
options.sleevePlacketLength * measurements.shoulderToWrist
|
||||||
|
|
|
@ -63,11 +63,6 @@ export default part => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
macro('sprinkle', {
|
|
||||||
snippet: 'notch',
|
|
||||||
on: ['neck', 'shoulder']
|
|
||||||
})
|
|
||||||
|
|
||||||
if (sa) {
|
if (sa) {
|
||||||
paths.sa = paths.saBase.offset(sa).attr('class', 'fabric sa')
|
paths.sa = paths.saBase.offset(sa).attr('class', 'fabric sa')
|
||||||
if (options.splitYoke) {
|
if (options.splitYoke) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue