1
0
Fork 0

sparkles: Paperless sleeves

This commit is contained in:
Joost De Cock 2019-03-17 16:53:09 +01:00
parent c076157efc
commit cd881bbbe8
2 changed files with 160 additions and 2 deletions

View file

@ -1,5 +1,5 @@
export default function(part) {
let { sa, snippets, Snippet, utils, store, complete, points, measurements, options, macro, Point, paths, Path } = part.shorthand();
let { paperless, sa, snippets, Snippet, utils, store, complete, points, measurements, options, macro, Point, paths, Path } = part.shorthand();
// Vent
let slope = 15;
@ -97,6 +97,78 @@ export default function(part) {
});
if (sa) paths.sa = paths.seam.offset(sa).attr("class", "fabric sa");
if (paperless) {
macro("ld", {
from: points.usWristLeft,
to: points.usWristRight,
d: 15
});
macro("ld", {
from: points.usWristLeft,
to: points.ventFoldRight,
d: 30
});
macro("ld", {
from: points.hemLeft,
to: points.ventRight,
d: -15 - sa
});
macro("ld", {
from: points.hemLeft,
to: points.usWristLeft,
d: 15 + sa
});
macro("ld", {
from: points.usWristRight,
to: points.ventSlopeStart,
d: 15
});
macro("ld", {
from: points.ventFoldRight,
to: points.ventSlopeEnd,
d: 15
});
macro("ld", {
from: points.usWristRight,
to: points.ventFoldRight,
d: -15
});
macro("vd", {
from: points.usWristLeft,
to: points.usElbowLeft,
x: points.usLeftEdge.x - sa - 15
});
macro("vd", {
from: points.usWristLeft,
to: points.usLeftEdge,
x: points.usLeftEdge.x - sa - 30
});
macro("vd", {
from: points.usLeftEdge,
to: points.usTip,
x: points.usLeftEdge.x - sa - 30
});
macro("vd", {
from: points.usWristLeft,
to: points.usTip,
x: points.usLeftEdge.x - sa - 45
});
macro("ld", {
from: points.usElbowLeft,
to: points.elbowRight,
});
macro("hd", {
from: points.usLeftEdge,
to: points.usTip,
y: points.usTip.y - sa - 15
});
macro("hd", {
from: points.usLeftEdge,
to: points.elbowRight,
y: points.usTip.y - sa - 30
});
}
}
return part;