
Fixes #117 Co-authored-by: joostdecock <joost@joost.at> Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/224 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Jonathan Haas <haasjona@gmail.com> Co-committed-by: Jonathan Haas <haasjona@gmail.com>
94 lines
1.7 KiB
JavaScript
94 lines
1.7 KiB
JavaScript
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 {
|
|
beamIntersectsCircle,
|
|
beamIntersectsX,
|
|
beamIntersectsY,
|
|
beamsIntersect,
|
|
beamIntersectsCurve,
|
|
capitalize,
|
|
cbqc,
|
|
circlesIntersect,
|
|
curveEdge,
|
|
curveIntersectsX,
|
|
curveIntersectsY,
|
|
curvesIntersect,
|
|
deg2rad,
|
|
generateStackTransform,
|
|
getTransformedBounds,
|
|
lineIntersectsCircle,
|
|
lineIntersectsCurve,
|
|
linesIntersect,
|
|
mergeI18n,
|
|
mergeOptions,
|
|
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
|
|
|
|
// Named exports
|
|
export {
|
|
// Constructors
|
|
Attributes,
|
|
Design,
|
|
Pattern,
|
|
Point,
|
|
Path,
|
|
Part,
|
|
Snippet,
|
|
Store,
|
|
// Various
|
|
version,
|
|
Bezier,
|
|
// Constants
|
|
cbqc,
|
|
goldenRatio,
|
|
hidePresets,
|
|
// Utils
|
|
beamIntersectsCircle,
|
|
beamIntersectsCurve,
|
|
beamIntersectsX,
|
|
beamIntersectsY,
|
|
beamsIntersect,
|
|
capitalize,
|
|
circlesIntersect,
|
|
curveEdge,
|
|
curveIntersectsX,
|
|
curveIntersectsY,
|
|
curvesIntersect,
|
|
deg2rad,
|
|
generateStackTransform,
|
|
getTransformedBounds,
|
|
lineIntersectsCircle,
|
|
lineIntersectsCurve,
|
|
linesIntersect,
|
|
mergeI18n,
|
|
mergeOptions,
|
|
pctBasedOn,
|
|
pointOnBeam,
|
|
pointOnCurve,
|
|
pointOnLine,
|
|
rad2deg,
|
|
round,
|
|
splitCurve,
|
|
stretchToScale,
|
|
units,
|
|
}
|