1
0
Fork 0
freesewing/packages/holmes/src/index.js
2021-08-24 16:40:15 +01:00

18 lines
545 B
JavaScript

import freesewing from '@freesewing/core'
import plugins from '@freesewing/plugin-bundle'
import gorePlugin from '@freesewing/plugin-gore'
import config from '../config'
import draftGore from './gore'
import draftVisor from './visor'
import draftEar from './ear'
// Create new design
const Pattern = new freesewing.Design(config, [plugins, gorePlugin])
// Attach the draft methods to the prototype
Pattern.prototype.draftGore = draftGore
Pattern.prototype.draftVisor = draftVisor
Pattern.prototype.draftEar = draftEar
export default Pattern