1
0
Fork 0
freesewing/packages/ursula/src/index.js
Natalia cc00ec65ff feat(ursula): Initial release of Ursula
Ursula is a basic, highly-customizable underwear pattern
2021-06-26 10:31:54 +02:00

18 lines
576 B
JavaScript

import freesewing from '@freesewing/core'
import plugins from '@freesewing/plugin-bundle'
import config from '../config'
import draftFront from './front'
import draftBack from './back'
import draftGusset from './gusset'
import draftElastic from './elastic'
// Create new design
const Pattern = new freesewing.Design(config, plugins)
// Attach the draft methods to the prototype
Pattern.prototype.draftFront = draftFront
Pattern.prototype.draftBack = draftBack
Pattern.prototype.draftGusset = draftGusset
Pattern.prototype.draftElastic = draftElastic
export default Pattern