1
0
Fork 0

🔧 Reconfigure packages

This commit is contained in:
Joost De Cock 2019-05-31 10:20:20 +02:00
parent 0847d37f85
commit b8c8f741aa
33 changed files with 326 additions and 394 deletions

View file

@ -27,27 +27,27 @@ export default {
},
measurements: ["headCircumference"],
dependencies: {
step4: "step3",
step5: "step4",
step6: "step5",
step7: "step6",
step8: "step7",
step9: "step8",
step10: "step9",
step11: "step10"
step4: "step3"
//step5: "step4",
//step6: "step5",
//step7: "step6",
//step8: "step7",
//step9: "step8",
//step10: "step9",
//step11: "step10"
},
inject: {
step4: "step3",
step5: "step4",
step6: "step5",
step7: "step6",
step8: "step7",
step9: "step8",
step10: "step9",
step11: "step10"
step4: "step3"
//step5: "step4",
//step6: "step5",
//step7: "step6",
//step8: "step7",
//step9: "step8",
//step10: "step9",
//step11: "step10"
},
hide: [],
parts: ["step1", "step2", "bib"],
parts: ["step1", "step2", "step3"],
options: {
size: { pct: 50, min: 10, max: 100 },
neckRatio: { pct: 80, min: 70, max: 90 },

View file

@ -39,8 +39,8 @@
},
"dependencies": {},
"devDependencies": {
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react": "^16.8",
"react-dom": "^16.8",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"babel-eslint": "10.0.1",
"eslint": "^5.16.0",

View file

@ -38,10 +38,6 @@ export default function(part) {
points.logo = new Point(0, 0);
snippets.logo = new Snippet("logo", points.logo);
// Paperless?
if (paperless) {
}
}
return part;

View file

@ -1,6 +1,7 @@
export default function(part) {
let { Point, points, Path, paths, measurements, options } = part.shorthand();
return part;
let tweak = 1;
let target = (measurements.headCircumference * options.neckRatio) / 4;
let delta = Infinity;
@ -26,15 +27,5 @@ export default function(part) {
else tweak = tweak * 1.02;
} while (Math.abs(delta) > 1);
// Complete?
if (complete) {
if (sa) {
}
// Paperless?
if (paperless) {
}
}
return part;
}

View file

@ -1,6 +1,7 @@
export default function(part) {
let { Point, points, Path, paths, measurements, options } = part.shorthand();
return part;
points.rightCp2 = points.rightCp1.flipY();
points.bottomCp1 = points.bottomCp2.flipX();
@ -20,15 +21,5 @@ export default function(part) {
.curve(points.rightCp2, points.topCp1, points.top)
.close();
// Complete?
if (complete) {
if (sa) {
}
// Paperless?
if (paperless) {
}
}
return part;
}

View file

@ -20,15 +20,5 @@ export default function(part) {
.line(points.topLeft)
.close();
// Complete?
if (complete) {
if (sa) {
}
// Paperless?
if (paperless) {
}
}
return part;
}

View file

@ -25,15 +25,5 @@ export default function(part) {
.curve(points.edgeRightCp, points.edgeTopRightCp, points.edgeTop)
.close();
// Complete?
if (complete) {
if (sa) {
}
// Paperless?
if (paperless) {
}
}
return part;
}

View file

@ -30,15 +30,5 @@ export default function(part) {
render: true
});
// Complete?
if (complete) {
if (sa) {
}
// Paperless?
if (paperless) {
}
}
return part;
}