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

43 lines
765 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import Design from './design'
import Pattern from './pattern'
import Point from './point'
import Path from './path'
import Snippet from './snippet'
import * as utils from './utils'
2022-08-25 11:47:54 +02:00
import pkg from '../package.json' assert { type: 'json' }
const { version } = pkg
2018-07-23 14:16:39 +00:00
/*
* Named exports will become the default in FreeSewing v3
*/
export {
version,
Design,
Pattern,
Point,
Path,
Snippet,
utils,
}
// This is a helper for configuration files
export const pctBasedOn = utils.pctBasedOn
// This is a helper for manual layouts
export const generatePartTransform = utils.generatePartTransform
/*
* Default exports will be removed in FreeSewing v3
*/
2018-07-23 11:12:06 +00:00
export default {
version,
2019-02-16 07:28:56 +01:00
Design,
Pattern,
Point,
Path,
Snippet,
2018-07-26 13:43:12 +00:00
utils,
pctBasedOn,
2019-08-03 15:03:33 +02:00
}