1
0
Fork 0

bug: Small fixes after initial check

This commit is contained in:
Joost De Cock 2018-12-29 09:03:11 +01:00
parent a0b17a62bb
commit 13a71986e4
5 changed files with 15 additions and 5 deletions

View file

@ -95,7 +95,7 @@ export default {
"roundedBarrelCuff", "roundedBarrelCuff",
"angledBarrelCuff", "angledBarrelCuff",
"straightBarrelCuff", "straightBarrelCuff",
"roundedFrenchcuff", "roundedFrenchCuff",
"angledFrenchCuff", "angledFrenchCuff",
"straightFrenchCuff" "straightFrenchCuff"
], ],

View file

@ -108,18 +108,19 @@ let settings1 = { ...settings };
pattern1.use(freesewing.plugins.banner); pattern1.use(freesewing.plugins.banner);
pattern1.use(freesewing.plugins.debug); pattern1.use(freesewing.plugins.debug);
pattern1.settings.options.yokeDart = 0; pattern1.settings.options.yokeDart = 0;
pattern1.settings.options.lengthBonus = 0.1; pattern1.settings.options.lengthBonus = 0.2;
pattern1.settings.options.hemStyle = "baseball"; pattern1.settings.options.hipsEase = 0.1;
pattern1.settings.options.hemStyle = "slashed";
pattern1.settings.options.buttonPlacketType = "cut-on"; pattern1.settings.options.buttonPlacketType = "cut-on";
pattern1.settings.options.buttonPlacketStyle = "classic"; pattern1.settings.options.buttonPlacketStyle = "classic";
pattern1.settings.options.buttonholePlacketType = "cut-on"; pattern1.settings.options.buttonholePlacketType = "cut-on";
pattern1.settings.options.buttonholePlacketStyle = "seamless"; pattern1.settings.options.buttonholePlacketStyle = "seamless";
pattern1.settings.options.cuffButtonRows = 2; pattern1.settings.options.cuffButtonRows = 2;
pattern1.settings.options.barrelCuffNarrowButton = "yes"; pattern1.settings.options.barrelCuffNarrowButton = "yes";
pattern1.settings.options.cuffStyle = "straightBarrelCuff"; pattern1.settings.options.cuffStyle = "roundedFrenchCuff";
pattern1.settings.options.splitYoke = "yes"; pattern1.settings.options.splitYoke = "yes";
pattern1.settings.sa = 10; pattern1.settings.sa = 10;
//pattern1.settings.only = ["frontRight", "frontLeft"]; //pattern1.settings.only = ["front", "back"];
pattern1.draft(); pattern1.draft();
document.getElementById("svg1").innerHTML = pattern1.render(); document.getElementById("svg1").innerHTML = pattern1.render();

View file

@ -35,6 +35,10 @@ export default part => {
.length() .length()
); );
// Hip shaping
points.hips = points.hips.shift(180, store.get("hipsReduction") / 4);
points.hem = points.hem.shift(180, store.get("hipsReduction") / 4);
// Waist shaping // Waist shaping
let reduce = store.get("waistReduction"); let reduce = store.get("waistReduction");
if (reduce / 4 > options.minimalDartShaping) { if (reduce / 4 > options.minimalDartShaping) {

View file

@ -35,6 +35,10 @@ export default part => {
.length() .length()
); );
// Hip shaping
points.hips = points.hips.shift(180, store.get("hipsReduction") / 4);
points.hem = points.hem.shift(180, store.get("hipsReduction") / 4);
// Waist shaping // Waist shaping
let reduce = store.get("waistReduction"); let reduce = store.get("waistReduction");
if (reduce / 4 > options.minimalDartShaping) reduce = reduce / 8; if (reduce / 4 > options.minimalDartShaping) reduce = reduce / 8;

View file

@ -7,6 +7,7 @@ export const calculateReduction = function(part) {
let hips = measurements.hipsCircumference * (1 + options.hipsEase); let hips = measurements.hipsCircumference * (1 + options.hipsEase);
let waistReduction = chest - waist; let waistReduction = chest - waist;
let hipsReduction = chest - hips; 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 your waist > chest, this pattern is not going to work for you as-is.
if (waistReduction < 0) waistReduction = 0; if (waistReduction < 0) waistReduction = 0;