1
0
Fork 0
freesewing/packages/florent/src/index.js

22 lines
714 B
JavaScript
Raw Normal View History

import freesewing from "@freesewing/core";
2019-04-07 17:01:58 +02:00
import plugins from "@freesewing/plugin-bundle";
import config from "../config";
// Parts
import draftTop from "./top";
import draftSide from "./side";
import draftBrimBottom from "./brimbottom";
import draftBrimTop from "./brimtop";
import draftBrimInterfacing from "./briminterfacing";
// Create new design
const Pattern = new freesewing.Design(config, plugins);
2019-04-07 17:01:58 +02:00
// Attachdraft methods to prototype
Pattern.prototype.draftTop = draftTop;
Pattern.prototype.draftSide = draftSide;
Pattern.prototype.draftBrimBottom = draftBrimBottom;
Pattern.prototype.draftBrimTop = draftBrimTop;
Pattern.prototype.draftBrimInterfacing = draftBrimInterfacing;
2019-04-07 17:01:58 +02:00
export default Pattern;