1
0
Fork 0

construction: Replaced create with Design constructor

This commit is contained in:
Joost De Cock 2019-02-16 11:41:53 +01:00
parent 99cfbd7635
commit 8dde6378a7
4 changed files with 180 additions and 326 deletions

View file

@ -19,10 +19,14 @@ import draftSleevePlacketUnderlap from "./sleeveplacket-underlap";
import draftSleevePlacketOverlap from "./sleeveplacket-overlap";
import draftCuff from "./cuff";
// Create pattern
const Simon = freesewing.create(config, [plugins, flipPlugin, buttonPlugin]);
// Create design
const Simon = new freesewing.Design(config, [
plugins,
flipPlugin,
buttonPlugin
]);
// Attach per-part draft methods to prototype
// Attach draft methods to prototype
Simon.prototype.draftBase = function(part) {
return new Brian(this.settings).draftBase(part);
};