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

@ -11,13 +11,13 @@ export default function(part) {
sa,
paperless,
macro
} = part.shorthand();
} = part.shorthand()
let w = 500 * options.size;
points.topLeft = new Point(0, 0);
points.topRight = new Point(w, 0);
points.bottomLeft = new Point(0, w / 2);
points.bottomRight = new Point(w, w / 2);
let w = 500 * options.size
points.topLeft = new Point(0, 0)
points.topRight = new Point(w, 0)
points.bottomLeft = new Point(0, w / 2)
points.bottomRight = new Point(w, w / 2)
paths.seam = new Path()
.move(points.topLeft)
@ -26,35 +26,35 @@ export default function(part) {
.line(points.topRight)
.line(points.topLeft)
.close()
.attr("class", "fabric");
.attr('class', 'fabric')
// Complete?
if (complete) {
points.logo = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5);
snippets.logo = new Snippet("logo", points.logo);
points.logo = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5)
snippets.logo = new Snippet('logo', points.logo)
points.text = points.logo
.shift(-90, w / 8)
.attr("data-text", "hello")
.attr("data-text-class", "center");
.attr('data-text', 'hello')
.attr('data-text-class', 'center')
if (sa) {
paths.sa = paths.seam.offset(sa).attr("class", "fabric sa");
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
}
}
// Paperless?
if (paperless) {
macro("hd", {
macro('hd', {
from: points.bottomLeft,
to: points.bottomRight,
y: points.bottomLeft.y + sa + 15
});
macro("vd", {
})
macro('vd', {
from: points.bottomRight,
to: points.topRight,
x: points.topRight.x + sa + 15
});
})
}
return part;
return part
}