1
0
Fork 0

🚨 Fixed linter warnings

This commit is contained in:
Joost De Cock 2019-08-23 14:30:32 +02:00
parent c42ba3ea72
commit 868d401a75
6 changed files with 18 additions and 524 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -19,7 +19,6 @@ const LineDrawing = props => {
LineDrawing.propTypes = { LineDrawing.propTypes = {
size: PropTypes.number, size: PropTypes.number,
viewBox: PropTypes.string,
pattern: PropTypes.string, pattern: PropTypes.string,
style: PropTypes.object style: PropTypes.object
} }

View file

@ -166,11 +166,9 @@ export const withoutBreasts = {
headCircumference: 590, headCircumference: 590,
hipsCircumference: 995, hipsCircumference: 995,
hipsToUpperLeg: 220, hipsToUpperLeg: 220,
naturalWaist: 925,
naturalWaistToHip: 120, naturalWaistToHip: 120,
neckCircumference: 416, neckCircumference: 416,
shoulderSlope: 55, shoulderSlope: 55,
shoulderToElbow: 415,
shoulderToShoulder: 470, shoulderToShoulder: 470,
shoulderToWrist: 690, shoulderToWrist: 690,
upperLegCircumference: 630, upperLegCircumference: 630,

View file

@ -40,18 +40,16 @@ export default part => {
} }
paths.seam.close().attr('class', 'fabric') paths.seam.close().attr('class', 'fabric')
if (complete) { if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
points.title = new Point(points.dartWaistLeft.x / 2, points.waist.y) points.title = new Point(points.dartWaistLeft.x / 2, points.waist.y)
macro('title', { macro('title', {
nr: 3, nr: 3,
at: points.title, at: points.title,
title: 'frontFacing' title: 'frontFacing'
}) })
points.logo = points.closureTop.shiftFractionTowards(points.dartWaistLeft, 0.5) points.logo = points.closureTop.shiftFractionTowards(points.dartWaistLeft, 0.5)
snippets.logo = new Snippet('logo', points.logo) snippets.logo = new Snippet('logo', points.logo)
}
return part return part
} }

View file

@ -24,17 +24,15 @@ export default part => {
paths.seam.curve(points.splitDartHemRightCp2, points.splitHemCp1, points.hem) paths.seam.curve(points.splitDartHemRightCp2, points.splitHemCp1, points.hem)
} else paths.seam.line(points.hem) } else paths.seam.line(points.hem)
if (complete) { if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
if (sa) paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa') points.title = points.armhole.shiftFractionTowards(points.dartTop, 0.5)
points.title = points.armhole.shiftFractionTowards(points.dartTop, 0.5) macro('title', {
macro('title', { nr: 4,
nr: 4, at: points.title,
at: points.title, title: 'frontLining'
title: 'frontLining' })
}) points.logo = points.dartWaistRight.shiftFractionTowards(points.waist, 0.5)
points.logo = points.dartWaistRight.shiftFractionTowards(points.waist, 0.5) snippets.logo = new Snippet('logo', points.logo)
snippets.logo = new Snippet('logo', points.logo)
}
return part return part
} }