1
0
Fork 0
freesewing/packages/create-freesewing-pattern/template/default/src/index.js

13 lines
336 B
JavaScript
Raw Normal View History

2019-05-02 18:13:10 +02:00
import freesewing from "@freesewing/core";
import plugins from "@freesewing/plugins";
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-05-02 18:13:10 +02:00
// Attach the draft methods to the prototype
Pattern.prototype.draftBox = draftBox;
2019-05-02 18:13:10 +02:00
export default Pattern;