1
0
Fork 0

🎨 Updated prettier config

This commit is contained in:
Joost De Cock 2019-08-03 15:03:33 +02:00
parent b8e632998b
commit 6710d76b08
401 changed files with 13193 additions and 15620 deletions

View file

@ -10,21 +10,19 @@ export default function(part) {
complete,
paperless,
macro
} = part.shorthand();
} = part.shorthand()
let width =
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) *
options.ribbingHeight *
2;
2
let length =
measurements.wristCircumference *
(1 + options.cuffEase) *
(1 - options.ribbingStretch);
measurements.wristCircumference * (1 + options.cuffEase) * (1 - options.ribbingStretch)
points.topLeft = new Point(0, 0);
points.bottomLeft = new Point(0, width);
points.topRight = new Point(length, 0);
points.bottomRight = new Point(length, width);
points.topLeft = new Point(0, 0)
points.bottomLeft = new Point(0, width)
points.topRight = new Point(length, 0)
points.bottomRight = new Point(length, width)
paths.seam = new Path()
.move(points.topLeft)
@ -33,34 +31,34 @@ export default function(part) {
.line(points.topRight)
.line(points.topLeft)
.close()
.attr("class", "fabric");
.attr('class', 'fabric')
// Complete pattern?
if (complete) {
if (sa) {
paths.sa = paths.seam.offset(sa);
paths.sa = paths.seam.offset(sa)
}
points.title = points.bottomLeft.shiftFractionTowards(points.topRight, 0.5);
macro("title", { at: points.title, nr: 9, title: "cuff" });
macro("grainline", {
points.title = points.bottomLeft.shiftFractionTowards(points.topRight, 0.5)
macro('title', { at: points.title, nr: 9, title: 'cuff' })
macro('grainline', {
from: points.bottomLeft.shift(0, 20),
to: points.topLeft.shift(0, 20)
});
})
}
// Paperless?
if (paperless) {
macro("vd", {
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
});
macro("hd", {
})
macro('hd', {
from: points.bottomLeft,
to: points.bottomRight,
y: points.bottomRight.y + sa + 15
});
})
}
return part;
return part
}