bug: Only add scalebox when complete is true
This commit is contained in:
parent
36e1901c1f
commit
fefb660c59
6 changed files with 24 additions and 37 deletions
|
@ -28,7 +28,6 @@ export default part => {
|
|||
return part;
|
||||
}
|
||||
|
||||
console.log(options);
|
||||
for (let id of Object.keys(part.paths)) delete part.paths[id];
|
||||
let width = options.buttonholePlacketWidth;
|
||||
let fold = options.buttonholePlacketFoldWidth;
|
||||
|
|
|
@ -49,7 +49,6 @@ export default part => {
|
|||
// Paperless?
|
||||
if (paperless) {
|
||||
paperlessBarrelCuff(part);
|
||||
console.log("trre", points.topRightRoundStart);
|
||||
macro("vd", {
|
||||
from: points.rightAngleBottom,
|
||||
to: points.rightAngleTop,
|
||||
|
|
|
@ -69,7 +69,6 @@ export default part => {
|
|||
// Paperless?
|
||||
if (paperless) {
|
||||
paperlessBarrelCuff(part);
|
||||
console.log("trre", points.topRightRoundStart);
|
||||
macro("vd", {
|
||||
from: points.topRightRoundStart,
|
||||
to: points.topRightRoundEnd,
|
||||
|
|
|
@ -14,18 +14,19 @@ export default part => {
|
|||
paths
|
||||
} = part.shorthand();
|
||||
macro("flip");
|
||||
points.scalebox = points.waist.shiftFractionTowards(points.cfWaist, 0.5);
|
||||
macro("scalebox", { at: points.scalebox });
|
||||
|
||||
if (complete && paperless) {
|
||||
frontDimensions(part, "right");
|
||||
macro("ld", {
|
||||
from: points.shoulder,
|
||||
to: points.neck,
|
||||
d: 15 + sa
|
||||
});
|
||||
paths.hemSa.attr("data-text-dy", 7, true);
|
||||
paths.saFrench.attr("data-text-dy", 7, true);
|
||||
if (complete) {
|
||||
points.scalebox = points.waist.shiftFractionTowards(points.cfWaist, 0.5);
|
||||
macro("scalebox", { at: points.scalebox });
|
||||
if (paperless) {
|
||||
frontDimensions(part, "right");
|
||||
macro("ld", {
|
||||
from: points.shoulder,
|
||||
to: points.neck,
|
||||
d: 15 + sa
|
||||
});
|
||||
paths.hemSa.attr("data-text-dy", 7, true);
|
||||
paths.saFrench.attr("data-text-dy", 7, true);
|
||||
}
|
||||
}
|
||||
|
||||
return options.buttonPlacketStyle === "seamless"
|
||||
|
|
|
@ -7,7 +7,6 @@ export const calculateReduction = function(part) {
|
|||
let hips = measurements.hipsCircumference * (1 + options.hipsEase);
|
||||
let waistReduction = chest - waist;
|
||||
let hipsReduction = chest - hips;
|
||||
console.log("hipsEase", options.hipsEase, hips, hipsReduction);
|
||||
|
||||
// If your waist > chest, this pattern is not going to work for you as-is.
|
||||
if (waistReduction < 0) waistReduction = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue