2019-08-03 15:03:33 +02:00
|
|
|
import freesewing from '@freesewing/core'
|
|
|
|
import plugins from '@freesewing/plugin-bundle'
|
|
|
|
import config from '../config'
|
2019-02-10 14:58:26 +01:00
|
|
|
// Parts
|
2019-08-03 15:03:33 +02:00
|
|
|
import draftTop from './top'
|
2019-02-10 14:58:26 +01:00
|
|
|
|
2019-02-16 11:47:41 +01:00
|
|
|
// Create design
|
2019-08-03 15:03:33 +02:00
|
|
|
const Pattern = new freesewing.Design(config, plugins)
|
2019-02-13 15:55:14 +01:00
|
|
|
|
2019-02-10 14:58:26 +01:00
|
|
|
// Part draft method
|
2021-01-31 09:22:15 +01:00
|
|
|
Pattern.prototype.draftTop = (part) => draftTop(part)
|
2019-02-10 14:58:26 +01:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
export default Pattern
|