1
0
Fork 0

bug: Only add scalebox when complete is true

This commit is contained in:
Joost De Cock 2018-12-29 13:38:43 +01:00
parent 36e1901c1f
commit fefb660c59
6 changed files with 24 additions and 37 deletions

View file

@ -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;

View file

@ -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,

View file

@ -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,

View file

@ -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"

View file

@ -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;