construction: Replaced create with Design constructor
This commit is contained in:
parent
99cfbd7635
commit
8dde6378a7
4 changed files with 180 additions and 326 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue