2019-07-11 16:49:28 +02:00
|
|
|
import freesewing from "@freesewing/core";
|
|
|
|
import plugins from "@freesewing/plugin-bundle";
|
|
|
|
import config from "../config";
|
|
|
|
// Parts
|
|
|
|
import draftSkirt from "./skirt";
|
2019-07-12 10:04:42 +02:00
|
|
|
import draftWaistband from "./waistband";
|
2019-07-11 16:49:28 +02:00
|
|
|
|
|
|
|
// Create design
|
|
|
|
const Pattern = new freesewing.Design(config, plugins);
|
|
|
|
|
|
|
|
// Attach draft methods to prototype
|
|
|
|
Pattern.prototype.draftSkirt = part => draftSkirt(part);
|
2019-07-12 10:04:42 +02:00
|
|
|
Pattern.prototype.draftWaistband = part => draftWaistband(part);
|
2019-07-11 16:49:28 +02:00
|
|
|
|
|
|
|
export default Pattern;
|