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

43 lines
789 B
JavaScript
Raw Normal View History

2022-08-26 18:51:02 +02:00
import Design from './design.mjs'
import Pattern from './pattern.mjs'
import Point from './point.mjs'
import Path from './path.mjs'
import Snippet from './snippet.mjs'
import * as utils from './utils.mjs'
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
}