1
0
Fork 0

chore: Linter changes

This commit is contained in:
Joost De Cock 2021-04-24 10:16:31 +02:00
parent dfdfc46ded
commit f191151ee4
354 changed files with 2467 additions and 2472 deletions

View file

@ -10,7 +10,7 @@ export default {
difficulty: 1,
tags: ['example'],
optionGroups: {
fit: ['fixme']
fit: ['fixme'],
},
measurements: [],
dependencies: {
@ -102,7 +102,7 @@ export default {
'utils_curveintersectsx',
'utils_splitcurve',
'docs_overview',
'docs_coords'
'docs_coords',
],
options: {
focus: '',
@ -110,7 +110,7 @@ export default {
fixme: {
pct: 50,
min: 0,
max: 100
}
}
max: 100,
},
},
}

View file

@ -101,7 +101,7 @@ const Pattern = new freesewing.Design(config, [
pluginBundle,
buttonsPlugin,
mirrorPlugin,
bartackPlugin
bartackPlugin,
])
// Attach draft methods to prototype
@ -190,7 +190,7 @@ let methods = {
draftUtils_curveintersectsy,
draftUtils_splitcurve,
draftDocs_overview,
draftDocs_coords
draftDocs_coords,
}
for (let m of Object.keys(methods)) Pattern.prototype[m] = methods[m]

View file

@ -24,7 +24,7 @@ export default (part) => {
'top',
'left',
'bottom',
'right'
'right',
])
snippets[i] = new Snippet('notch', paths.demo.edge(i))

View file

@ -11,17 +11,17 @@ export default (part) => {
macro('pd', {
path: paths.example,
d: -20
d: -20,
})
macro('pd', {
path: new Path().move(points.B).line(points.A),
d: 10
d: 10,
})
macro('pd', {
path: new Path().move(points.B).curve(points.BCp2, points.CCp1, points.C),
d: -10
d: -10,
})
return part

View file

@ -16,12 +16,12 @@ export default (part) => {
macro('ld', {
from: points.B,
to: points.step1,
noStartMarker: true
noStartMarker: true,
})
macro('ld', {
from: points.step1,
to: points.step2,
noStartMarker: true
noStartMarker: true,
})
return part

View file

@ -8,7 +8,7 @@ export default (part) => {
macro('bartack', {
anchor: points.a,
angle: 30,
length: 15
length: 15,
})
return box(part, 60, 30)

View file

@ -13,12 +13,12 @@ export default (part) => {
paths.a = new Path().move(points.a).curve(points.b, points.c, points.d).setRender(false)
macro('bartackAlong', {
path: paths.a
path: paths.a,
})
macro('sprinkle', {
snippet: 'notch',
on: ['e', 'f']
on: ['e', 'f'],
})
return box(part, 60, 30)

View file

@ -15,12 +15,12 @@ export default (part) => {
macro('bartackFractionAlong', {
path: paths.a,
start: 0.2,
end: 0.8
end: 0.8,
})
macro('sprinkle', {
snippet: 'notch',
on: ['e', 'f']
on: ['e', 'f'],
})
return box(part, 60, 30)

View file

@ -16,7 +16,7 @@ export default (part) => {
macro('cutonfold', {
from: points.bottomLeft,
to: points.bottomRight,
grainline: true
grainline: true,
})
return part

View file

@ -18,31 +18,31 @@ export default (part) => {
macro('vd', {
from: points.A,
to: points.B,
x: points.A.x - 15
x: points.A.x - 15,
})
macro('hd', {
from: points.B,
to: points.C,
y: points.B.y + 15
y: points.B.y + 15,
})
macro('ld', {
from: points.C,
to: points.D,
d: -15
d: -15,
})
macro('ld', {
from: points.C,
to: points.D,
d: -30,
text: 'Custom text'
text: 'Custom text',
})
macro('pd', {
path: new Path().move(points.A).curve(points.A, points.DCp1, points.D),
d: -15
d: -15,
})
return part

View file

@ -8,7 +8,7 @@ export default (part) => {
macro('grainline', {
from: points.grainlineFrom,
to: points.grainlineTo
to: points.grainlineTo,
})
return box(part, 110, 15)

View file

@ -14,12 +14,12 @@ export default (part) => {
macro('mirror', {
mirror: [points.b, points.d],
points: [points.mid],
paths: [paths.a]
paths: [paths.a],
})
macro('sprinkle', {
snippet: 'notch',
on: ['mid', 'mirroredMid']
on: ['mid', 'mirroredMid'],
})
return box(part, 100, 40)

View file

@ -20,7 +20,7 @@ export default (part) => {
via: points.bottomLeft,
radius: 10,
prefix: 'bl',
render: true
render: true,
})
macro('round', {
from: points.bottomRight,
@ -28,7 +28,7 @@ export default (part) => {
via: points.topRight,
radius: 20,
prefix: 'tr',
render: true
render: true,
})
return part

View file

@ -15,7 +15,7 @@ export default (part) => {
macro('sprinkle', {
snippet: 'button',
on: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']
on: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'],
})
return box(part, 100, 25)

View file

@ -9,7 +9,7 @@ export default (part) => {
at: points.title,
nr: 4,
title: 'sleeve',
prefix: 'test'
prefix: 'test',
})
return box(part, 200, 70)

View file

@ -6,7 +6,7 @@ export default (part) => {
macro('ld', {
from: points.from,
to: points.to
to: points.to,
})
return part

View file

@ -7,7 +7,7 @@ export default (part) => {
macro('hd', {
from: points.from,
to: points.to,
y: 25
y: 25,
})
return part

View file

@ -7,7 +7,7 @@ export default (part) => {
macro('vd', {
from: points.to,
to: points.from,
x: 50
x: 50,
})
return part

View file

@ -11,7 +11,7 @@ export default (part) => {
macro('ld', {
from: points.B,
to: points.A,
d: -10
d: -10,
})
return box(part, 100, 45)

View file

@ -13,13 +13,13 @@ export default (part) => {
macro('ld', {
from: points.C,
to: points.A,
d: -10
d: -10,
})
macro('ld', {
from: points.B,
to: points.A,
d: 20
d: 20,
})
return part

View file

@ -14,7 +14,7 @@ export default (part) => {
macro('ld', {
from: points.C,
to: points.B,
d: -10
d: -10,
})
return box(part, 110, 75)

View file

@ -15,7 +15,7 @@ export default (part) => {
macro('ld', {
from: points.C,
to: points.A,
d: -10
d: -10,
})
return box(part, 110, 80)

View file

@ -14,7 +14,7 @@ export default (part) => {
from: points.A,
to: points.B,
text: 'translate(120,60)',
noStartMarker: true
noStartMarker: true,
})
return box(part, 150, 85)