sparkles: Paperless back
This commit is contained in:
parent
44a17f627d
commit
4af4a9281c
2 changed files with 118 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
import { calculateReduction } from "./shared";
|
||||
|
||||
export default part => {
|
||||
part.paths = {}; // Removes paperless dimensions from brian
|
||||
let {
|
||||
store,
|
||||
measurements,
|
||||
|
@ -220,6 +221,120 @@ export default part => {
|
|||
|
||||
// Paperless?
|
||||
if (paperless) {
|
||||
if (reduce / 4 > options.minimalDartShaping) {
|
||||
macro("vd", {
|
||||
from: points.dartBottom,
|
||||
to: points.dartCenterIn,
|
||||
x: points.dartCenterIn.x - 15
|
||||
});
|
||||
macro("vd", {
|
||||
from: points.dartCenterIn,
|
||||
to: points.dartTop,
|
||||
x: points.dartCenterIn.x - 15
|
||||
});
|
||||
macro("hd", {
|
||||
from: points.dartCenterIn,
|
||||
to: points.dartCenterOut,
|
||||
y: points.dartBottom.y + 15
|
||||
});
|
||||
macro("hd", {
|
||||
from: points.dartCenterOut,
|
||||
to: points.waist
|
||||
});
|
||||
macro("hd", {
|
||||
from: points.cbWaist,
|
||||
to: points.dartCenterIn
|
||||
});
|
||||
} else {
|
||||
macro("hd", {
|
||||
from: points.cbWaist,
|
||||
to: points.waist
|
||||
});
|
||||
}
|
||||
let bottomRight;
|
||||
if (typeof points.slashEnd !== "undefined") {
|
||||
macro("hd", {
|
||||
from: points.cbHem,
|
||||
to: points.slashEnd,
|
||||
y: points.cbHem.y + 15 + 3 * sa
|
||||
});
|
||||
macro("vd", {
|
||||
from: points.slashEnd,
|
||||
to: points.slashStart,
|
||||
x: points.slashStart.x + 15 + 3 * sa
|
||||
});
|
||||
bottomRight = points.slashEnd;
|
||||
} else if (typeof points.bballStart !== "undefined") {
|
||||
macro("hd", {
|
||||
from: points.cbHem,
|
||||
to: points.bballStart,
|
||||
y: points.cbHem.y + 15 + 3 * sa
|
||||
});
|
||||
macro("vd", {
|
||||
from: points.bballStart,
|
||||
to: points.bballEnd,
|
||||
x: points.hips.x + 15 + sa
|
||||
});
|
||||
bottomRight = points.bballStart;
|
||||
} else bottomRight = points.hem;
|
||||
macro("hd", {
|
||||
from: points.cbHem,
|
||||
to: points.hips,
|
||||
y: points.cbHem.y + 30 + 3 * sa
|
||||
});
|
||||
macro("vd", {
|
||||
from: bottomRight,
|
||||
to: points.hips,
|
||||
x: points.hips.x + 30 + sa
|
||||
});
|
||||
macro("vd", {
|
||||
from: bottomRight,
|
||||
to: points.waist,
|
||||
x: points.hips.x + 45 + sa
|
||||
});
|
||||
macro("vd", {
|
||||
from: bottomRight,
|
||||
to: points.armhole,
|
||||
x: points.hips.x + 60 + sa
|
||||
});
|
||||
if (options.yokeDart > 0) {
|
||||
macro("vd", {
|
||||
from: points.armhole,
|
||||
to: points.yokeDartEdge,
|
||||
x: points.armhole.x + 15 + sa
|
||||
});
|
||||
macro("vd", {
|
||||
from: points.armhole,
|
||||
to: points.yokeDartTip,
|
||||
x: points.armhole.x + 30 + sa
|
||||
});
|
||||
macro("hd", {
|
||||
from: points.cbYoke,
|
||||
to: points.yokeDartTip,
|
||||
y: points.cbYoke.y - 15 - sa
|
||||
});
|
||||
macro("hd", {
|
||||
from: points.cbYoke,
|
||||
to: points.yokeDartEdge,
|
||||
y: points.cbYoke.y - 30 - sa
|
||||
});
|
||||
} else {
|
||||
macro("vd", {
|
||||
from: points.armhole,
|
||||
to: points.armholePitch,
|
||||
x: points.armhole.x + 15 + sa
|
||||
});
|
||||
macro("hd", {
|
||||
from: points.cbYoke,
|
||||
to: points.armholePitch,
|
||||
y: points.cbYoke.y - 15 - sa
|
||||
});
|
||||
}
|
||||
macro("vd", {
|
||||
from: points.cbHem,
|
||||
to: points.cbYoke,
|
||||
x: points.cbHem.x - 15
|
||||
});
|
||||
}
|
||||
|
||||
return part;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue