2019-04-29 09:01:51 +02:00
|
|
|
import freesewing from "@freesewing/core";
|
2018-12-22 11:39:04 +01:00
|
|
|
import plugins from "@freesewing/plugin-bundle";
|
2018-12-29 12:18:32 +01:00
|
|
|
import config from "../config";
|
2018-12-19 12:14:48 +01:00
|
|
|
// Parts
|
|
|
|
import draftBack from "./back";
|
|
|
|
import draftSide from "./side";
|
|
|
|
import draftFront from "./front";
|
|
|
|
import draftInset from "./inset";
|
|
|
|
|
2019-02-16 11:23:45 +01:00
|
|
|
// Create design
|
|
|
|
const Bruce = new freesewing.Design(config, plugins);
|
2018-09-04 16:51:39 +02:00
|
|
|
|
2019-02-16 11:23:45 +01:00
|
|
|
// Attach draft methods to prototype
|
2018-12-19 12:14:48 +01:00
|
|
|
Bruce.prototype.draftBack = part => draftBack(part);
|
|
|
|
Bruce.prototype.draftSide = part => draftSide(part);
|
|
|
|
Bruce.prototype.draftInset = part => draftInset(part);
|
|
|
|
Bruce.prototype.draftFront = part => draftFront(part);
|
2018-09-04 16:51:39 +02:00
|
|
|
|
2018-12-19 12:14:48 +01:00
|
|
|
export default Bruce;
|
2019-04-29 09:01:51 +02:00
|
|
|
export { config };
|