1
0
Fork 0

chore(simon): Cleaned up notches. See #790

This commit is contained in:
Joost De Cock 2021-01-16 15:57:26 +01:00
parent fb2538b0bf
commit 530e82130d
3 changed files with 10 additions and 18 deletions

View file

@ -113,8 +113,6 @@ export default (part) => {
on: [
'waist',
'armholePitch',
'shoulder',
'neck',
'hips',
'cfHips',
'cfWaist',

View file

@ -1,14 +1,4 @@
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 {
measurements,
sa,
@ -19,9 +9,16 @@ export default (part) => {
complete,
paperless,
macro,
options
options,
snippets,
Snippet
} = 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
let width = measurements.wrist * (1 + options.cuffEase + options.cuffOverlap)
if (
@ -115,6 +112,8 @@ export default (part) => {
// Complete pattern?
if (complete) {
snippets.backNotch = new Snippet('bnotch', points.backNotch)
snippets.frontNotch = new Snippet('notch', points.frontNotch)
points.placketEnd = points.cuffLeftCusp.shift(
90,
options.sleevePlacketLength * measurements.shoulderToWrist

View file

@ -63,11 +63,6 @@ export default part => {
})
}
macro('sprinkle', {
snippet: 'notch',
on: ['neck', 'shoulder']
})
if (sa) {
paths.sa = paths.saBase.offset(sa).attr('class', 'fabric sa')
if (options.splitYoke) {