2019-05-02 18:13:10 +02:00
|
|
|
import freesewing from "@freesewing/core";
|
2019-05-03 12:26:59 +02:00
|
|
|
import plugins from "@freesewing/plugin-bundle";
|
2019-04-12 19:36:32 +02:00
|
|
|
import config from "../config";
|
|
|
|
import draftBox from "./box";
|
|
|
|
|
2019-05-02 18:13:10 +02:00
|
|
|
// Create new design
|
|
|
|
const Pattern = new freesewing.Design(config, plugins);
|
2019-04-12 19:36:32 +02:00
|
|
|
|
2019-05-02 18:13:10 +02:00
|
|
|
// Attach the draft methods to the prototype
|
|
|
|
Pattern.prototype.draftBox = draftBox;
|
2019-04-12 19:36:32 +02:00
|
|
|
|
2019-05-02 18:13:10 +02:00
|
|
|
export default Pattern;
|