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

19 lines
545 B
JavaScript
Raw Normal View History

2019-09-13 15:56:35 +01:00
import freesewing from '@freesewing/core'
import plugins from '@freesewing/plugin-bundle'
import gorePlugin from '@freesewing/plugin-gore'
2019-09-13 15:56:35 +01:00
import config from '../config'
2019-09-13 15:56:35 +01:00
import draftGore from './gore'
2021-08-24 16:40:15 +01:00
import draftVisor from './visor'
2019-09-13 15:56:35 +01:00
import draftEar from './ear'
// Create new design
const Pattern = new freesewing.Design(config, [plugins, gorePlugin])
2019-09-13 15:56:35 +01:00
// Attach the draft methods to the prototype
Pattern.prototype.draftGore = draftGore
2021-08-24 16:40:15 +01:00
Pattern.prototype.draftVisor = draftVisor
Pattern.prototype.draftEar = draftEar
2019-09-13 15:56:35 +01:00
export default Pattern