2025-04-12 07:48:39 +00:00
|
|
|
import { Bezier } from './bezier.mjs'
|
2022-08-28 02:14:39 +02:00
|
|
|
import { Attributes } from './attributes.mjs'
|
|
|
|
import { Design } from './design.mjs'
|
2023-04-16 17:18:02 -04:00
|
|
|
import { Pattern } from './pattern/index.mjs'
|
2022-09-17 10:24:13 +02:00
|
|
|
import { Part } from './part.mjs'
|
2022-08-28 02:14:39 +02:00
|
|
|
import { Point } from './point.mjs'
|
|
|
|
import { Path } from './path.mjs'
|
|
|
|
import { Snippet } from './snippet.mjs'
|
2022-09-07 16:16:33 +02:00
|
|
|
import { Store } from './store.mjs'
|
2023-04-16 17:18:02 -04:00
|
|
|
import { hidePresets } from './pattern/pattern-config.mjs'
|
2022-08-28 02:14:39 +02:00
|
|
|
import {
|
2022-09-18 15:11:10 +02:00
|
|
|
beamIntersectsCircle,
|
2022-08-28 02:14:39 +02:00
|
|
|
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,
|
2023-10-17 10:03:05 +02:00
|
|
|
cbqc,
|
2022-09-18 15:11:10 +02:00
|
|
|
circlesIntersect,
|
|
|
|
curveEdge,
|
2022-08-28 02:14:39 +02:00
|
|
|
curveIntersectsX,
|
|
|
|
curveIntersectsY,
|
|
|
|
curvesIntersect,
|
|
|
|
deg2rad,
|
2022-09-14 12:24:09 +02:00
|
|
|
generateStackTransform,
|
2023-04-28 15:46:33 -04:00
|
|
|
getTransformedBounds,
|
2022-09-18 15:11:10 +02:00
|
|
|
lineIntersectsCircle,
|
|
|
|
lineIntersectsCurve,
|
|
|
|
linesIntersect,
|
2023-06-09 20:44:19 +02:00
|
|
|
mergeI18n,
|
2023-06-11 14:10:17 +02:00
|
|
|
mergeOptions,
|
2022-09-18 15:11:10 +02:00
|
|
|
pctBasedOn,
|
|
|
|
pointOnBeam,
|
|
|
|
pointOnCurve,
|
|
|
|
pointOnLine,
|
|
|
|
rad2deg,
|
|
|
|
round,
|
|
|
|
splitCurve,
|
|
|
|
stretchToScale,
|
|
|
|
units,
|
2023-09-20 18:56:00 +02:00
|
|
|
goldenRatio,
|
2022-09-09 20:20:38 +02:00
|
|
|
} from './utils.mjs'
|
2025-04-01 16:15:20 +02:00
|
|
|
import about from '../about.json' with { type: 'json' }
|
|
|
|
|
|
|
|
const version = about.version
|
2018-07-23 14:16:39 +00:00
|
|
|
|
2022-08-28 02:14:39 +02:00
|
|
|
// Named exports
|
2022-06-12 21:49:34 +02:00
|
|
|
export {
|
2023-10-21 13:26:45 +02:00
|
|
|
// Constructors
|
2022-08-28 02:14:39 +02:00
|
|
|
Attributes,
|
2022-06-12 21:49:34 +02:00
|
|
|
Design,
|
|
|
|
Pattern,
|
|
|
|
Point,
|
|
|
|
Path,
|
2022-09-17 10:24:13 +02:00
|
|
|
Part,
|
2022-06-12 21:49:34 +02:00
|
|
|
Snippet,
|
2022-09-07 16:16:33 +02:00
|
|
|
Store,
|
2023-10-21 13:26:45 +02:00
|
|
|
// Various
|
2022-09-18 15:11:10 +02:00
|
|
|
version,
|
2022-08-28 02:14:39 +02:00
|
|
|
Bezier,
|
2023-10-21 13:26:45 +02:00
|
|
|
// Constants
|
|
|
|
cbqc,
|
|
|
|
goldenRatio,
|
2023-03-08 12:12:13 -06:00
|
|
|
hidePresets,
|
2022-09-18 15:11:10 +02:00
|
|
|
// Utils
|
|
|
|
beamIntersectsCircle,
|
2023-10-21 13:26:45 +02:00
|
|
|
beamIntersectsCurve,
|
2022-08-28 02:14:39 +02:00
|
|
|
beamIntersectsX,
|
|
|
|
beamIntersectsY,
|
2022-09-18 15:11:10 +02:00
|
|
|
beamsIntersect,
|
|
|
|
capitalize,
|
|
|
|
circlesIntersect,
|
|
|
|
curveEdge,
|
2022-08-28 02:14:39 +02:00
|
|
|
curveIntersectsX,
|
|
|
|
curveIntersectsY,
|
|
|
|
curvesIntersect,
|
|
|
|
deg2rad,
|
2022-09-14 12:24:09 +02:00
|
|
|
generateStackTransform,
|
2023-04-28 15:46:33 -04:00
|
|
|
getTransformedBounds,
|
2022-09-18 15:11:10 +02:00
|
|
|
lineIntersectsCircle,
|
|
|
|
lineIntersectsCurve,
|
|
|
|
linesIntersect,
|
2023-06-09 20:44:19 +02:00
|
|
|
mergeI18n,
|
2023-06-11 14:10:17 +02:00
|
|
|
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
|
|
|
}
|