2021-02-02 06:57:24 -08:00
|
|
|
import freesewing from '@freesewing/core'
|
|
|
|
import plugins from '@freesewing/plugin-bundle'
|
|
|
|
import config from '../config'
|
2021-02-18 07:47:53 -08:00
|
|
|
import draftFrontpoints from './frontpoints'
|
2021-02-02 06:57:24 -08:00
|
|
|
import draftFront from './front'
|
|
|
|
import draftBack from './back'
|
2021-02-09 07:20:18 -08:00
|
|
|
import draftLegband from './legband'
|
2021-02-20 13:59:20 -08:00
|
|
|
import draftLegbandkeystone from './legbandkeystone'
|
2021-02-18 07:47:53 -08:00
|
|
|
import draftWaistband from './waistband'
|
|
|
|
import draftPocketfacing from './pocketfacing'
|
|
|
|
import draftPocket from './pocket'
|
2021-10-20 13:03:27 -07:00
|
|
|
import draftZipperguard from './zipperguard'
|
2021-02-18 07:47:53 -08:00
|
|
|
// import draftPlacket from './placket'
|
2021-02-02 06:57:24 -08:00
|
|
|
|
|
|
|
// Create new design
|
2022-06-14 13:09:09 +02:00
|
|
|
const Cornelius = new freesewing.Design(config, plugins)
|
2021-02-02 06:57:24 -08:00
|
|
|
|
|
|
|
// Attach the draft methods to the prototype
|
2022-06-14 13:09:09 +02:00
|
|
|
Cornelius.prototype.draftFrontpoints = draftFrontpoints
|
|
|
|
Cornelius.prototype.draftFront = draftFront
|
|
|
|
Cornelius.prototype.draftBack = draftBack
|
|
|
|
Cornelius.prototype.draftLegband = draftLegband
|
|
|
|
Cornelius.prototype.draftLegbandkeystone = draftLegbandkeystone
|
|
|
|
Cornelius.prototype.draftWaistband = draftWaistband
|
|
|
|
Cornelius.prototype.draftPocketfacing = draftPocketfacing
|
|
|
|
Cornelius.prototype.draftPocket = draftPocket
|
|
|
|
Cornelius.prototype.draftZipperguard = draftZipperguard
|
|
|
|
// Cornelius.prototype.draftPlacket = draftPlacket
|
2021-02-02 06:57:24 -08:00
|
|
|
|
2022-06-14 13:09:09 +02:00
|
|
|
// Named exports
|
|
|
|
export { config, Cornelius }
|
|
|
|
|
|
|
|
// Default export
|
|
|
|
export default Cornelius
|