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

95 lines
1.7 KiB
JavaScript
Raw Normal View History

import { Bezier } from './bezier.mjs'
import { Attributes } from './attributes.mjs'
import { Design } from './design.mjs'
import { Pattern } from './pattern/index.mjs'
import { Part } from './part.mjs'
import { Point } from './point.mjs'
import { Path } from './path.mjs'
import { Snippet } from './snippet.mjs'
import { Store } from './store.mjs'
import { hidePresets } from './pattern/pattern-config.mjs'
import {
2022-09-18 15:11:10 +02:00
beamIntersectsCircle,
beamIntersectsX,
beamIntersectsY,
2022-09-18 15:11:10 +02:00
beamsIntersect,
2023-04-28 16:42:35 +00:00
beamIntersectsCurve,
2022-09-18 15:11:10 +02:00
capitalize,
cbqc,
2022-09-18 15:11:10 +02:00
circlesIntersect,
curveEdge,
curveIntersectsX,
curveIntersectsY,
curvesIntersect,
deg2rad,
2022-09-14 12:24:09 +02:00
generateStackTransform,
getTransformedBounds,
2022-09-18 15:11:10 +02:00
lineIntersectsCircle,
lineIntersectsCurve,
linesIntersect,
mergeI18n,
mergeOptions,
2022-09-18 15:11:10 +02:00
pctBasedOn,
pointOnBeam,
pointOnCurve,
pointOnLine,
rad2deg,
round,
splitCurve,
stretchToScale,
units,
goldenRatio,
} from './utils.mjs'
import about from '../about.json' with { type: 'json' }
const version = about.version
2018-07-23 14:16:39 +00:00
// Named exports
export {
// Constructors
Attributes,
Design,
Pattern,
Point,
Path,
Part,
Snippet,
Store,
// Various
2022-09-18 15:11:10 +02:00
version,
Bezier,
// Constants
cbqc,
goldenRatio,
hidePresets,
2022-09-18 15:11:10 +02:00
// Utils
beamIntersectsCircle,
beamIntersectsCurve,
beamIntersectsX,
beamIntersectsY,
2022-09-18 15:11:10 +02:00
beamsIntersect,
capitalize,
circlesIntersect,
curveEdge,
curveIntersectsX,
curveIntersectsY,
curvesIntersect,
deg2rad,
2022-09-14 12:24:09 +02:00
generateStackTransform,
getTransformedBounds,
2022-09-18 15:11:10 +02:00
lineIntersectsCircle,
lineIntersectsCurve,
linesIntersect,
mergeI18n,
mergeOptions,
2022-09-18 15:11:10 +02:00
pctBasedOn,
pointOnBeam,
pointOnCurve,
pointOnLine,
rad2deg,
round,
splitCurve,
stretchToScale,
units,
2019-08-03 15:03:33 +02:00
}