1
0
Fork 0

🚧 Progress on paths/beziers

This commit is contained in:
Joost De Cock 2018-08-01 14:55:54 +02:00
parent 2b4aa77986
commit 6f52ccfd2e
5 changed files with 75 additions and 14 deletions

View file

@ -12,7 +12,8 @@ export default function pattern(config = false) {
this.config = {
parts: ["part"],
measurements: {},
options: {}
options: {},
units: "metric"
};
} else {
this.config = config;
@ -49,7 +50,7 @@ export default function pattern(config = false) {
this.options = {};
if (typeof config.options !== "undefined" && config.options.length > 0) {
for (let conf of config.options) {
if (conf.type === "percentage") this.options[conf.id] = conf.val / 100;
if (conf.type === "%") this.options[conf.id] = conf.val / 100;
else this.options[conf.id] = conf.val;
}
}