🚧 Progress on paths/beziers
This commit is contained in:
parent
2b4aa77986
commit
6f52ccfd2e
5 changed files with 75 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue