2019-05-06 17:01:44 +02:00
|
|
|
import freesewing from "@freesewing/core";
|
|
|
|
import plugins from "@freesewing/plugin-bundle";
|
|
|
|
import config from "../config";
|
|
|
|
// Parts
|
2019-05-07 12:50:49 +02:00
|
|
|
import draftTest from "./test";
|
2019-05-06 17:01:44 +02:00
|
|
|
|
|
|
|
// Create design
|
|
|
|
const Pattern = new freesewing.Design(config, plugins);
|
|
|
|
|
|
|
|
// Attach draft methods to prototype
|
2019-05-07 12:50:49 +02:00
|
|
|
Pattern.prototype.draftTest = part => draftTest(part);
|
2019-05-06 17:01:44 +02:00
|
|
|
|
|
|
|
export default Pattern;
|