1
0
Fork 0

construction: Replaced create with Design constructor

This commit is contained in:
Joost De Cock 2019-02-16 11:23:45 +01:00
parent c0f4217430
commit 13bef2cc4c
3 changed files with 8 additions and 8 deletions

View file

@ -1376,11 +1376,11 @@
}
},
"freesewing": {
"version": "0.29.4",
"resolved": "https://registry.npmjs.org/freesewing/-/freesewing-0.29.4.tgz",
"integrity": "sha512-k2S/t+NOv3nV/kB+4niehpeZuc9TPmA+F2SGRGArhSoEpHksdQFvpn7yPKly86RqfzXoyq0Sq2/QETAlb7o4tg==",
"version": "0.30.2",
"resolved": "https://registry.npmjs.org/freesewing/-/freesewing-0.30.2.tgz",
"integrity": "sha512-gtcjClabLVGnMjK5fWi5bz1S6nhb6jheCZeBJ+RiQfov/2FP/zFhS8NHlahtN1UTmNo2t8ecBEhgEoiHBmFn/w==",
"requires": {
"bezier-js": "^2.2.15",
"bezier-js": "2.3.2",
"bin-pack": "1.0.2"
}
},

View file

@ -47,7 +47,7 @@
},
"dependencies": {
"@freesewing/plugin-bundle": "0.7.3",
"freesewing": "0.29.4"
"freesewing": "0.30.2"
},
"devDependencies": {
"@babel/core": "7.2.2",

View file

@ -7,10 +7,10 @@ import draftSide from "./side";
import draftFront from "./front";
import draftInset from "./inset";
// Create pattern
const Bruce = freesewing.create(config, plugins);
// Create design
const Bruce = new freesewing.Design(config, plugins);
// Attach per-part draft methods to prototype
// Attach draft methods to prototype
Bruce.prototype.draftBack = part => draftBack(part);
Bruce.prototype.draftSide = part => draftSide(part);
Bruce.prototype.draftInset = part => draftInset(part);