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

22 lines
699 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-04-07 17:01:58 +02:00
// Parts
2019-08-03 15:03:33 +02:00
import draftTop from './top'
import draftSide from './side'
import draftBrimBottom from './brimbottom'
import draftBrimTop from './brimtop'
import draftBrimInterfacing from './briminterfacing'
2019-04-07 17:01:58 +02:00
// Create new design
2019-08-03 15:03:33 +02:00
const Pattern = new freesewing.Design(config, plugins)
2019-04-07 17:01:58 +02:00
// Attachdraft methods to prototype
2019-08-03 15:03:33 +02:00
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
2019-08-03 15:03:33 +02:00
export default Pattern