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

14 lines
350 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import freesewing from '@freesewing/core'
import plugins from '@freesewing/plugin-bundle'
import config from '../config'
2019-05-06 17:01:44 +02:00
// Parts
2019-08-03 15:03:33 +02:00
import draftTest from './test'
2019-05-06 17:01:44 +02:00
// Create design
2019-08-03 15:03:33 +02:00
const Pattern = new freesewing.Design(config, plugins)
2019-05-06 17:01:44 +02:00
// Attach draft methods to prototype
2019-08-03 15:03:33 +02:00
Pattern.prototype.draftTest = part => draftTest(part)
2019-05-06 17:01:44 +02:00
2019-08-03 15:03:33 +02:00
export default Pattern