flo-mat 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/__tests__/find-2-prong/get-medial/get-closest-points.spec.ts +49 -0
- package/__tests__/specific-cases/specific-cases.spec.ts +6 -0
- package/browser/index.js +9994 -12650
- package/browser/index.min.js +1 -1
- package/node/closest-boundary-point/foot-and-endpoint-info.d.ts +0 -3
- package/node/closest-boundary-point/get-close-boundary-points-certified.d.ts +1 -1
- package/node/closest-boundary-point/get-close-boundary-points-certified.js +2 -2
- package/node/closest-boundary-point/get-close-boundary-points-certified.js.map +1 -1
- package/node/closest-boundary-point/get-potential-closest-points-on-curve-certified.d.ts +1 -2
- package/node/closest-boundary-point/get-potential-closest-points-on-curve-certified.js +34 -24
- package/node/closest-boundary-point/get-potential-closest-points-on-curve-certified.js.map +1 -1
- package/node/closest-boundary-point/root-interval-to-distance-squared-interval.d.ts +1 -1
- package/node/closest-boundary-point/root-interval-to-distance-squared-interval.js +6 -9
- package/node/closest-boundary-point/root-interval-to-distance-squared-interval.js.map +1 -1
- package/node/cp-node/fs/insert-cp-node.d.ts +2 -2
- package/node/cp-node/fs/insert-cp-node.js.map +1 -1
- package/node/cp-node/fs/is-on-same-loop.d.ts +3 -0
- package/node/cp-node/fs/is-on-same-loop.js +6 -0
- package/node/cp-node/fs/is-on-same-loop.js.map +1 -0
- package/node/cp-node/fs/is-order-correct.d.ts +2 -2
- package/node/cp-node/fs/is-order-correct.js.map +1 -1
- package/node/cp-node/fs/traverse-cp.js.map +1 -1
- package/node/cp-node/fs/traverse-vertices.d.ts +1 -1
- package/node/cp-node/fs/traverse-vertices.js.map +1 -1
- package/node/debug/debug.d.ts +10 -15
- package/node/debug/debug.js +35 -46
- package/node/debug/debug.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-branch.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-branch.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-cp-node.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-cp-node.js +2 -2
- package/node/debug/functions/draw-elem/draw-cp-node.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-leaves.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-leaves.js +2 -2
- package/node/debug/functions/draw-elem/draw-leaves.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-mat.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-mat.js +1 -2
- package/node/debug/functions/draw-elem/draw-mat.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-min-y.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-min-y.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-three-prong.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-three-prong.js +2 -2
- package/node/debug/functions/draw-elem/draw-three-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-vertex.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-vertex.js +0 -2
- package/node/debug/functions/draw-elem/draw-vertex.js.map +1 -1
- package/node/error-analysis/gamma.d.ts +32 -0
- package/node/error-analysis/gamma.js +39 -0
- package/node/error-analysis/gamma.js.map +1 -0
- package/node/find-2-prong/add-1-prong.js +1 -4
- package/node/find-2-prong/add-1-prong.js.map +1 -1
- package/node/find-2-prong/find-2-prong.js +5 -5
- package/node/find-2-prong/find-2-prong.js.map +1 -1
- package/node/find-2-prong/get-medial/get-closest-points.js +27 -23
- package/node/find-2-prong/get-medial/get-closest-points.js.map +1 -1
- package/node/find-3-prong/calc-better-x.d.ts +1 -1
- package/node/find-3-prong/calc-better-x.js +6 -4
- package/node/find-3-prong/calc-better-x.js.map +1 -1
- package/node/find-3-prong/calc-initial-3-prong-center.d.ts +1 -1
- package/node/find-3-prong/calc-initial-3-prong-center.js +4 -3
- package/node/find-3-prong/calc-initial-3-prong-center.js.map +1 -1
- package/node/find-3-prong/find-3-prong-for-delta3s.js +22 -5
- package/node/find-3-prong/find-3-prong-for-delta3s.js.map +1 -1
- package/node/find-3-prong/find-and-add-3-prong.d.ts +2 -2
- package/node/find-3-prong/find-and-add-3-prong.js +15 -0
- package/node/find-3-prong/find-and-add-3-prong.js.map +1 -1
- package/node/find-3-prong/find-and-add-3-prongs-on-loop.js +8 -21
- package/node/find-3-prong/find-and-add-3-prongs-on-loop.js.map +1 -1
- package/node/find-3-prong/find-and-add-3-prongs.d.ts +1 -4
- package/node/find-3-prong/find-and-add-3-prongs.js +1 -2
- package/node/find-3-prong/find-and-add-3-prongs.js.map +1 -1
- package/node/find-3-prong/get-closest-points.d.ts +1 -1
- package/node/find-3-prong/get-closest-points.js +2 -2
- package/node/find-3-prong/get-closest-points.js.map +1 -1
- package/node/find-3-prong/timed-cc.d.ts +3 -0
- package/node/find-3-prong/timed-cc.js +5 -0
- package/node/find-3-prong/timed-cc.js.map +1 -0
- package/node/find-mat/create-initial-cp-tree.d.ts +2 -2
- package/node/find-mat/create-initial-cp-tree.js +2 -2
- package/node/find-mat/create-initial-cp-tree.js.map +1 -1
- package/node/find-mat/find-mat.d.ts +4 -4
- package/node/find-mat/find-mat.js +1 -2
- package/node/find-mat/find-mat.js.map +1 -1
- package/node/find-mat/find-mats.js +2 -2
- package/node/find-mat/find-mats.js.map +1 -1
- package/node/find-mat/get-meta.d.ts +1 -6
- package/node/find-mat/get-meta.js +4 -25
- package/node/find-mat/get-meta.js.map +1 -1
- package/node/index.d.ts +5 -2
- package/node/index.js +4 -1
- package/node/index.js.map +1 -1
- package/node/mat/create-new-cp-trees.d.ts +2 -2
- package/node/mat/create-new-cp-trees.js +2 -2
- package/node/mat/create-new-cp-trees.js.map +1 -1
- package/node/mat/get-cp-node-to-left-or-same.d.ts +2 -2
- package/node/mat/get-cp-node-to-left-or-same.js +2 -1
- package/node/mat/get-cp-node-to-left-or-same.js.map +1 -1
- package/node/mat/mat-meta.d.ts +2 -2
- package/node/point-on-shape/get-osculating-circle.js +2 -1
- package/node/point-on-shape/get-osculating-circle.js.map +1 -1
- package/node/reconstruct-from-mat/filter-zero-length.d.ts +10 -0
- package/node/reconstruct-from-mat/filter-zero-length.js +14 -0
- package/node/reconstruct-from-mat/filter-zero-length.js.map +1 -0
- package/node/reconstruct-from-mat/get-all-on-loop-by-loop.d.ts +7 -0
- package/node/reconstruct-from-mat/get-all-on-loop-by-loop.js +38 -0
- package/node/reconstruct-from-mat/get-all-on-loop-by-loop.js.map +1 -0
- package/node/reconstruct-from-mat/get-bezier-piece-length.d.ts +3 -0
- package/node/reconstruct-from-mat/get-bezier-piece-length.js +6 -0
- package/node/reconstruct-from-mat/get-bezier-piece-length.js.map +1 -0
- package/node/reconstruct-from-mat/get-boundary.d.ts +7 -0
- package/node/reconstruct-from-mat/get-boundary.js +18 -0
- package/node/reconstruct-from-mat/get-boundary.js.map +1 -0
- package/node/reconstruct-from-mat/get-cp-nodess-for-sat.d.ts +4 -0
- package/node/reconstruct-from-mat/get-cp-nodess-for-sat.js +15 -0
- package/node/reconstruct-from-mat/get-cp-nodess-for-sat.js.map +1 -0
- package/node/reconstruct-from-mat/get-matching-beziers.d.ts +10 -0
- package/node/reconstruct-from-mat/get-matching-beziers.js +29 -0
- package/node/reconstruct-from-mat/get-matching-beziers.js.map +1 -0
- package/node/reconstruct-from-mat/get-mbss-by-loop-per-sat.d.ts +6 -0
- package/node/reconstruct-from-mat/get-mbss-by-loop-per-sat.js +10 -0
- package/node/reconstruct-from-mat/get-mbss-by-loop-per-sat.js.map +1 -0
- package/node/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.d.ts +7 -0
- package/node/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.js +47 -0
- package/node/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.js.map +1 -0
- package/node/reconstruct-from-mat/get-sats2.d.ts +10 -0
- package/node/reconstruct-from-mat/get-sats2.js +16 -0
- package/node/reconstruct-from-mat/get-sats2.js.map +1 -0
- package/node/reconstruct-from-mat/is-fully-terminating.d.ts +3 -0
- package/node/reconstruct-from-mat/is-fully-terminating.js +19 -0
- package/node/reconstruct-from-mat/is-fully-terminating.js.map +1 -0
- package/node/reconstruct-from-mat/matched-beziers.d.ts +10 -0
- package/node/reconstruct-from-mat/matched-beziers.js +2 -0
- package/node/reconstruct-from-mat/matched-beziers.js.map +1 -0
- package/node/reconstruct-from-mat/reconstruct-from-mat.d.ts +4 -0
- package/node/reconstruct-from-mat/reconstruct-from-mat.js +28 -0
- package/node/reconstruct-from-mat/reconstruct-from-mat.js.map +1 -0
- package/node/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.d.ts +12 -0
- package/node/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.js +46 -0
- package/node/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.js.map +1 -0
- package/node/reconstruct-from-mat/split-tri-path.d.ts +5 -0
- package/node/reconstruct-from-mat/split-tri-path.js +209 -0
- package/node/reconstruct-from-mat/split-tri-path.js.map +1 -0
- package/node/sat/add-debug-info.js +1 -2
- package/node/sat/add-debug-info.js.map +1 -1
- package/node/utils/clip.d.ts +2 -0
- package/node/utils/clip.js +6 -0
- package/node/utils/clip.js.map +1 -0
- package/package.json +6 -7
- package/src/closest-boundary-point/foot-and-endpoint-info.ts +0 -3
- package/src/closest-boundary-point/get-close-boundary-points-certified.ts +0 -2
- package/src/closest-boundary-point/get-potential-closest-points-on-curve-certified.ts +41 -27
- package/src/closest-boundary-point/root-interval-to-distance-squared-interval.ts +5 -10
- package/src/cp-node/fs/insert-cp-node.ts +2 -2
- package/src/cp-node/fs/is-on-same-loop.ts +15 -0
- package/src/cp-node/fs/is-order-correct.ts +2 -2
- package/src/cp-node/fs/traverse-cp.ts +1 -1
- package/src/cp-node/fs/traverse-vertices.ts +1 -2
- package/src/debug/debug.ts +54 -72
- package/src/debug/functions/check-ordering.ts +0 -1
- package/src/debug/functions/draw-elem/draw-branch.ts +1 -3
- package/src/debug/functions/draw-elem/draw-cp-node.ts +3 -4
- package/src/debug/functions/draw-elem/draw-leaves.ts +3 -3
- package/src/debug/functions/draw-elem/draw-mat.ts +2 -5
- package/src/debug/functions/draw-elem/draw-min-y.ts +2 -2
- package/src/debug/functions/draw-elem/draw-three-prong.ts +3 -3
- package/src/debug/functions/draw-elem/draw-vertex.ts +1 -4
- package/src/error-analysis/gamma.ts +9 -2
- package/src/find-2-prong/add-1-prong.ts +1 -5
- package/src/find-2-prong/find-2-prong.ts +7 -6
- package/src/find-2-prong/get-medial/get-closest-points.ts +24 -26
- package/src/find-3-prong/calc-better-x.ts +7 -4
- package/src/find-3-prong/calc-initial-3-prong-center.ts +2 -3
- package/src/find-3-prong/find-3-prong-for-delta3s.ts +23 -5
- package/src/find-3-prong/find-and-add-3-prong.ts +18 -4
- package/src/find-3-prong/find-and-add-3-prongs-on-loop.ts +7 -23
- package/src/find-3-prong/find-and-add-3-prongs.ts +5 -3
- package/src/find-3-prong/get-closest-points.ts +0 -2
- package/src/find-3-prong/timed-cc.ts +9 -0
- package/src/find-mat/create-initial-cp-tree.ts +3 -3
- package/src/find-mat/find-mat.ts +6 -8
- package/src/find-mat/find-mats.ts +4 -2
- package/src/find-mat/get-meta.ts +3 -38
- package/src/index.ts +6 -3
- package/src/mat/create-new-cp-trees.ts +3 -3
- package/src/mat/get-cp-node-to-left-or-same.ts +4 -3
- package/src/mat/mat-meta.ts +2 -2
- package/src/point-on-shape/get-osculating-circle.ts +2 -1
- package/src/reconstruct-from-mat/filter-zero-length.ts +23 -0
- package/src/reconstruct-from-mat/get-all-on-loop-by-loop.ts +52 -0
- package/src/reconstruct-from-mat/get-bezier-piece-length.ts +12 -0
- package/src/reconstruct-from-mat/get-boundary.ts +32 -0
- package/src/reconstruct-from-mat/get-cp-nodess-for-sat.ts +24 -0
- package/src/reconstruct-from-mat/get-matching-beziers.ts +46 -0
- package/src/reconstruct-from-mat/get-mbss-by-loop-per-sat.ts +19 -0
- package/src/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.ts +69 -0
- package/src/reconstruct-from-mat/get-sats2.ts +25 -0
- package/src/reconstruct-from-mat/is-fully-terminating.ts +27 -0
- package/src/reconstruct-from-mat/matched-beziers.ts +14 -0
- package/src/reconstruct-from-mat/reconstruct-from-mat.ts +45 -0
- package/src/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.ts +62 -0
- package/src/reconstruct-from-mat/split-tri-path.ts +280 -0
- package/src/sat/add-debug-info.ts +1 -2
- package/src/utils/clip.ts +13 -0
- package/wallaby.mjs +1 -0
- package/node/closest-boundary-point/get-p-from-box.d.ts +0 -3
- package/node/closest-boundary-point/get-p-from-box.js +0 -11
- package/node/closest-boundary-point/get-p-from-box.js.map +0 -1
- package/node/debug/functions/general.d.ts +0 -48
- package/node/debug/functions/general.js +0 -53
- package/node/debug/functions/general.js.map +0 -1
- package/node/point-on-shape/pos-to-human-string.d.ts +0 -8
- package/node/point-on-shape/pos-to-human-string.js +0 -12
- package/node/point-on-shape/pos-to-human-string.js.map +0 -1
- package/src/debug/elem-type-two-prong.ts +0 -8
- package/src/debug/functions/cmp-cp-on-delta.ts +0 -54
- package/src/debug/functions/general.ts +0 -79
- package/src/debug/functions/three-prong.ts +0 -249
- package/src/debug/functions/two-prong.ts +0 -203
- package/src/find-2-prong/add-debug-info.ts +0 -45
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { Curve } from "flo-boolean";
|
|
2
2
|
interface FootAndEndpointInfo {
|
|
3
3
|
readonly curve: Curve;
|
|
4
|
-
readonly p: number[];
|
|
5
4
|
readonly t: number;
|
|
6
|
-
readonly d: number;
|
|
7
|
-
readonly box: number[][];
|
|
8
5
|
readonly dSquaredI: number[];
|
|
9
6
|
}
|
|
10
7
|
export { FootAndEndpointInfo };
|
|
@@ -10,5 +10,5 @@ import type { PrePointOnShape } from '../point-on-shape/point-on-shape.js';
|
|
|
10
10
|
*
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
declare function getCloseBoundaryPointsCertified(
|
|
13
|
+
declare function getCloseBoundaryPointsCertified(curvePieces: CurvePiece[], x: number[]): PrePointOnShape[];
|
|
14
14
|
export { getCloseBoundaryPointsCertified };
|
|
@@ -11,12 +11,12 @@ import { toP } from '../point-on-shape/to-p.js';
|
|
|
11
11
|
*
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
function getCloseBoundaryPointsCertified(
|
|
14
|
+
function getCloseBoundaryPointsCertified(curvePieces, x) {
|
|
15
15
|
curvePieces = cullCurvePieces1(curvePieces, x);
|
|
16
16
|
const pInfos = [];
|
|
17
17
|
for (let i = 0; i < curvePieces.length; i++) {
|
|
18
18
|
const curvePiece = curvePieces[i];
|
|
19
|
-
const _pInfos = getPotentialClosestPointsOnCurveCertified(
|
|
19
|
+
const _pInfos = getPotentialClosestPointsOnCurveCertified(curvePiece.curve, x, curvePiece.ts);
|
|
20
20
|
pInfos.push(..._pInfos);
|
|
21
21
|
}
|
|
22
22
|
/** the minimum max interval value */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-close-boundary-points-certified.js","sourceRoot":"","sources":["../../src/closest-boundary-point/get-close-boundary-points-certified.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yCAAyC,EAAE,MAAM,sDAAsD,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAGhD;;;;;;;;;GASG;AACH,SAAS,+BAA+B,CAChC,
|
|
1
|
+
{"version":3,"file":"get-close-boundary-points-certified.js","sourceRoot":"","sources":["../../src/closest-boundary-point/get-close-boundary-points-certified.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yCAAyC,EAAE,MAAM,sDAAsD,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAGhD;;;;;;;;;GASG;AACH,SAAS,+BAA+B,CAChC,WAAyB,EACzB,CAAW;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,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,GAAG,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAErB,OAAO;YACH,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK;SAC/B,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAGD,OAAO,EAAE,+BAA+B,EAAE,CAAC"}
|
|
@@ -3,10 +3,9 @@ import type { FootAndEndpointInfo } from './foot-and-endpoint-info.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*
|
|
6
|
-
* @param maxCoordPowerOf2
|
|
7
6
|
* @param curve the curve
|
|
8
7
|
* @param x the point from which to check
|
|
9
8
|
* @param tRange The allowed t range
|
|
10
9
|
*/
|
|
11
|
-
declare function getPotentialClosestPointsOnCurveCertified(
|
|
10
|
+
declare function getPotentialClosestPointsOnCurveCertified(curve: Curve, x: number[], tRange: [number, number]): FootAndEndpointInfo[];
|
|
12
11
|
export { getPotentialClosestPointsOnCurveCertified };
|
|
@@ -1,42 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getFootPointsOnBezierPolysCertified, getIntervalBox } from 'flo-bezier3';
|
|
1
|
+
import { roots } from 'flo-poly';
|
|
2
|
+
import { evalDeCasteljauDd, getFootPointsOnBezierPolysCertified, getIntervalBox } from 'flo-bezier3';
|
|
3
3
|
import { rootIntervalToDistanceSquaredInterval } from './root-interval-to-distance-squared-interval.js';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { squaredDistanceBetweenDd } from "../find-2-prong/squared-distance-between-dd.js";
|
|
5
|
+
import { eps } from '../error-analysis/gamma.js';
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*
|
|
9
|
-
* @param maxCoordPowerOf2
|
|
10
9
|
* @param curve the curve
|
|
11
10
|
* @param x the point from which to check
|
|
12
11
|
* @param tRange The allowed t range
|
|
13
12
|
*/
|
|
14
|
-
function getPotentialClosestPointsOnCurveCertified(
|
|
13
|
+
function getPotentialClosestPointsOnCurveCertified(curve, x, tRange) {
|
|
15
14
|
const [tS, tE] = tRange;
|
|
16
|
-
const ps = curve
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
const { ps } = curve;
|
|
16
|
+
const infos = [];
|
|
17
|
+
if (tS !== tE) {
|
|
18
|
+
const { polyDd: pDd, polyE: pDd_, getPolyExact } = getFootPointsOnBezierPolysCertified(ps, x);
|
|
19
|
+
const ris = roots(pDd, tS, tE, pDd_, getPolyExact) || [];
|
|
20
|
+
infos.push(...ris.map(ri => {
|
|
21
|
+
const { tS: ts, tE: te, t: _t } = ri;
|
|
22
|
+
const t = _t < 0 ? 0 : _t > 1 ? 1 : _t;
|
|
23
|
+
const box = getIntervalBox(ps, [ts, te]);
|
|
24
|
+
const dSquaredI = rootIntervalToDistanceSquaredInterval(box, x);
|
|
25
|
+
const t_ = t === 0 ? 1 : t;
|
|
26
|
+
const curve_ = t === 0 ? curve.prev : curve;
|
|
27
|
+
return {
|
|
28
|
+
curve: curve_,
|
|
29
|
+
t: t_,
|
|
30
|
+
dSquaredI
|
|
31
|
+
};
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
const ts = tRange.slice();
|
|
35
|
+
if (tS === tE) {
|
|
36
|
+
ts.push(tS);
|
|
37
|
+
}
|
|
38
|
+
infos.push(...ts.map(t => {
|
|
39
|
+
const p = evalDeCasteljauDd(ps, [0, t]).map(v => v[0] + v[1]);
|
|
40
|
+
const d = squaredDistanceBetweenDd(p, x);
|
|
41
|
+
const dSquaredI = [d * (1 - eps), d * (1 + eps)];
|
|
29
42
|
const t_ = t === 0 ? 1 : t;
|
|
30
43
|
const curve_ = t === 0 ? curve.prev : curve;
|
|
31
44
|
return {
|
|
32
45
|
curve: curve_,
|
|
33
|
-
p: p_,
|
|
34
46
|
t: t_,
|
|
35
|
-
|
|
36
|
-
dSquaredI,
|
|
37
|
-
box
|
|
47
|
+
dSquaredI
|
|
38
48
|
};
|
|
39
|
-
});
|
|
49
|
+
}));
|
|
40
50
|
return infos;
|
|
41
51
|
}
|
|
42
52
|
export { getPotentialClosestPointsOnCurveCertified };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-potential-closest-points-on-curve-certified.js","sourceRoot":"","sources":["../../src/closest-boundary-point/get-potential-closest-points-on-curve-certified.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"get-potential-closest-points-on-curve-certified.js","sourceRoot":"","sources":["../../src/closest-boundary-point/get-potential-closest-points-on-curve-certified.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,mCAAmC,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,EAAE,qCAAqC,EAAE,MAAM,iDAAiD,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AAGjD;;;;;;GAMG;AACH,SAAS,yCAAyC,CAC1C,KAAY,EACZ,CAAW,EACX,MAAwB;IAE5B,MAAM,CAAC,EAAE,EAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,KAAK,GAA0B,EAAE,CAAC;IAExC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACZ,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,GAC5C,mCAAmC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAE/C,MAAM,GAAG,GAAG,KAAK,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AC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAE7D,MAAM,CAAC,GAAG,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAEzC,MAAM,SAAS,GAAG,CAAC,CAAC,GAAC,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,GAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAE7C,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QAE5C,OAAO;YACH,KAAK,EAAE,MAAM;YACb,CAAC,EAAE,EAAE;YACL,SAAS;SACZ,CAAA;IACL,CAAC,CAAC,CAAC,CAAC;IAEJ,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,yCAAyC,EAAE,CAAA"}
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
|
-
declare function rootIntervalToDistanceSquaredInterval(
|
|
12
|
+
declare function rootIntervalToDistanceSquaredInterval(box: number[][], p: number[]): number[];
|
|
13
13
|
export { rootIntervalToDistanceSquaredInterval };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { twoDiff,
|
|
2
|
-
import { ddMultDd, ddAddDd } from 'double-double';
|
|
3
|
-
// We *have* to do the below to improve performance with bundlers❗ The assignee is a getter❗ The assigned is a pure function❗
|
|
4
|
-
const estimate = eEstimate;
|
|
1
|
+
import { twoDiff, ddMultDd, ddAddDd } from 'double-double';
|
|
5
2
|
const td = twoDiff;
|
|
6
|
-
// const emult = eMult;
|
|
7
|
-
// const eadd = eAdd;
|
|
8
3
|
const qmq = ddMultDd;
|
|
9
4
|
const qaq = ddAddDd;
|
|
10
5
|
const eps = Number.EPSILON;
|
|
@@ -19,7 +14,7 @@ const eps = Number.EPSILON;
|
|
|
19
14
|
*
|
|
20
15
|
* @internal
|
|
21
16
|
*/
|
|
22
|
-
function rootIntervalToDistanceSquaredInterval(
|
|
17
|
+
function rootIntervalToDistanceSquaredInterval(box, p) {
|
|
23
18
|
const bl = box[0];
|
|
24
19
|
const tr = box[1];
|
|
25
20
|
const minX = bl[0];
|
|
@@ -48,8 +43,10 @@ function rootIntervalToDistanceSquaredInterval(maxCoordPowerOf2, box, p) {
|
|
|
48
43
|
// const dc1 = estimate(dc1Exact);
|
|
49
44
|
const dc1Dd = qaq(qmq(ax, ax), qmq(by, by)); // ax**2 + bx**2
|
|
50
45
|
const dc1 = dc1Dd[1];
|
|
51
|
-
const dc1Min = dc1
|
|
52
|
-
const dc1Max = dc1
|
|
46
|
+
// const dc1Min = dc1*(1 - 2**maxCoordPowerOf2*eps); // distance minus max error
|
|
47
|
+
// const dc1Max = dc1*(1 + 2**maxCoordPowerOf2*eps); // distance plus max error
|
|
48
|
+
const dc1Min = dc1 * (1 - eps); // distance minus max error
|
|
49
|
+
const dc1Max = dc1 * (1 + eps); // distance plus max error
|
|
53
50
|
if (dc1Min <= minDSquared) {
|
|
54
51
|
minDSquared = dc1Min;
|
|
55
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-interval-to-distance-squared-interval.js","sourceRoot":"","sources":["../../src/closest-boundary-point/root-interval-to-distance-squared-interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"root-interval-to-distance-squared-interval.js","sourceRoot":"","sources":["../../src/closest-boundary-point/root-interval-to-distance-squared-interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE3D,M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M,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,EAAC,EAAE,CAAC,EAAC,GAAG,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC,CAAC,CAAE,gBAAgB;QAC3D,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAErB,iFAAiF;QACjF,gFAAgF;QAChF,MAAM,MAAM,GAAG,GAAG,GAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAE,2BAA2B;QAC1D,MAAM,MAAM,GAAG,GAAG,GAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAE,0BAA0B;QAEzD,IAAI,MAAM,IAAI,WAAW,EAAE,CAAC;YACxB,WAAW,GAAG,MAAM,CAAC;QACzB,CAAC;QAED,IAAI,MAAM,IAAI,WAAW,EAAE,CAAC;YACxB,WAAW,GAAG,MAAM,CAAC;QACzB,CAAC;IACL,CAAC;IAED,OAAO,CAAC,WAAW,EAAC,WAAW,CAAC,CAAC;AACrC,CAAC;AAGD,OAAO,EAAE,qCAAqC,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CpNode } from "../cp-node.js";
|
|
2
2
|
import type { PointOnShape } from "../../point-on-shape/point-on-shape.js";
|
|
3
|
-
import {
|
|
4
|
-
declare function insertCpNode(insertIfOrderWrong: boolean, isHoleClosing: boolean, isIntersection: boolean, cpTree:
|
|
3
|
+
import { RbTree } from "flo-ll-rb-tree";
|
|
4
|
+
declare function insertCpNode(insertIfOrderWrong: boolean, isHoleClosing: boolean, isIntersection: boolean, cpTree: RbTree<CpNode>, pos: PointOnShape, _prev: CpNode | undefined, lastInsertId: {
|
|
5
5
|
id: number;
|
|
6
6
|
}): CpNode | undefined;
|
|
7
7
|
export { insertCpNode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-cp-node.js","sourceRoot":"","sources":["../../../src/cp-node/fs/insert-cp-node.ts"],"names":[],"mappings":"AAIA,OAAO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CAAC,CAAC;IAEtB,OAAO,MAAgB,CAAC;AAC5B,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-on-same-loop.js","sourceRoot":"","sources":["../../../src/cp-node/fs/is-on-same-loop.ts"],"names":[],"mappings":"AAGA,SAAS,YAAY,CACb,OAAe,EACf,OAAe;IAEnB,OAAO,CACH,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI;QAC/B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAClC,CAAC;AACN,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CpNode } from "../cp-node.js";
|
|
2
|
-
import {
|
|
2
|
+
import { RbTree } from "flo-ll-rb-tree";
|
|
3
3
|
import { PointOnShape } from "../../point-on-shape/point-on-shape.js";
|
|
4
|
-
declare function isOrderCorrect(cpTree:
|
|
4
|
+
declare function isOrderCorrect(cpTree: RbTree<CpNode>, pos: PointOnShape, next: CpNode): boolean;
|
|
5
5
|
export { isOrderCorrect };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-order-correct.js","sourceRoot":"","sources":["../../../src/cp-node/fs/is-order-correct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,SAAS,cAAc,CACf,
|
|
1
|
+
{"version":3,"file":"is-order-correct.js","sourceRoot":"","sources":["../../../src/cp-node/fs/is-order-correct.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,SAAS,cAAc,CACf,MAAsB,EACtB,GAAiB,EACjB,IAAY;IAEhB,MAAM,CAAC,GAAG,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC9C,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;Q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|
|
1
|
+
{"version":3,"file":"traverse-cp.js","sourceRoot":"","sources":["../../../src/cp-node/fs/traverse-cp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD;;;;;;;;GAQG;AACH,SAAS,UAAU,CACX,OAAe;IAEnB,IAAI,MAAM,GAAG,OAAO,CAAC;IAErB,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;QACxB,OAAO,CAAC,MAAM,CAAC,CAAC,CAAE,mBAAmB;IACzC,CAAC;IAED,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,GAAG,CAAC;QACA,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAExB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;QACtC,MAAM,GAAG,MAAM,KAAK,IAAI;YAChB,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB;YAC9C,CAAC,CAAC,MAAM,GAAG,IAAI,CAAA,CAAa,iBAAiB;IAEzD,CAAC,QAAQ,MAAM,KAAK,OAAO,EAAE;IAE7B,OAAO,UAAU,CAAC;AACtB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-vertices.js","sourceRoot":"","sources":["../../../src/cp-node/fs/traverse-vertices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traverse-vertices.js","sourceRoot":"","sources":["../../../src/cp-node/fs/traverse-vertices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAG5E;;;;;;;;GAQG;AACH,SAAS,gBAAgB,CACjB,OAAe,EACf,wBAAkD;IAEtD,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAElC,wEAAwE;IACxE,gBAAgB;IAChB,MAAM,OAAO,GACT,cAAc,CAAC,OAAO,CAAC;SACtB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;SACxC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEhC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;QACrB,OAAO,GAAG,CAAC,MAAM,EAAE,CAAC;YAChB,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,EAAG,CAAC;YACtB,wBAAwB,CAAC,EAAE,CAAC,CAAC;YAC7B,GAAG,CAAC,IAAI,CAAC,GAAG,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9C,CAAC;IACL,CAAC;AACL,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
package/node/debug/debug.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DebugElems } from './debug-elem-types.js';
|
|
1
|
+
import type { DrawElemFunctions } from './functions/draw-elem/draw-elem.js';
|
|
2
|
+
import type { DebugElems } from './debug-elem-types.js';
|
|
4
3
|
/** @internal */
|
|
5
4
|
interface Debug {
|
|
6
5
|
/** Generated by debug object for later inspection */
|
|
7
|
-
|
|
6
|
+
elems: GeneratedElems;
|
|
7
|
+
timing: Timing;
|
|
8
8
|
/**
|
|
9
9
|
* These functions are meant to be used in the console, e.g. in the
|
|
10
10
|
* console try typing d.fs.twoProng.traceConvergence(0);
|
|
11
11
|
*/
|
|
12
|
-
fs:
|
|
13
|
-
directives:
|
|
12
|
+
fs: DebugFunctions;
|
|
13
|
+
directives: Directives;
|
|
14
14
|
}
|
|
15
15
|
/** @internal */
|
|
16
16
|
type GeneratedElems = {
|
|
17
17
|
[T in keyof DebugElems]: DebugElems[T][];
|
|
18
18
|
};
|
|
19
19
|
/** @internal */
|
|
20
|
-
interface
|
|
20
|
+
interface Timing {
|
|
21
21
|
holeClosers: number;
|
|
22
22
|
oneAnd2Prongs: number;
|
|
23
23
|
threeProngs: number;
|
|
@@ -25,16 +25,11 @@ interface ITiming {
|
|
|
25
25
|
simplifyMat: number;
|
|
26
26
|
}
|
|
27
27
|
/** @internal */
|
|
28
|
-
interface
|
|
29
|
-
elems: GeneratedElems;
|
|
30
|
-
timing: ITiming;
|
|
31
|
-
}
|
|
32
|
-
/** @internal */
|
|
33
|
-
interface IDebugFunctions extends IGeneralDebugFunctions {
|
|
28
|
+
interface DebugFunctions {
|
|
34
29
|
drawElem: DrawElemFunctions;
|
|
35
30
|
}
|
|
36
31
|
/** @internal */
|
|
37
|
-
interface
|
|
32
|
+
interface Directives {
|
|
38
33
|
stopAfterHoleClosers: boolean;
|
|
39
34
|
stopAfterHoleClosersNum: number;
|
|
40
35
|
stopAfterTwoProngs: boolean;
|
|
@@ -43,4 +38,4 @@ interface IDirectives {
|
|
|
43
38
|
stopAfterThreeProngsNum: number;
|
|
44
39
|
}
|
|
45
40
|
declare function enableDebugForMat(debugOn: boolean): void;
|
|
46
|
-
export { Debug, GeneratedElems,
|
|
41
|
+
export { Debug, GeneratedElems, Timing, DebugFunctions, Directives, enableDebugForMat };
|
package/node/debug/debug.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { generalDebugFunctions } from './functions/general.js';
|
|
2
1
|
import { drawElemFs } from './functions/draw-elem/draw-elem.js';
|
|
3
2
|
function enableDebugForMat(debugOn) {
|
|
4
3
|
if (!debugOn) {
|
|
@@ -8,59 +7,49 @@ function enableDebugForMat(debugOn) {
|
|
|
8
7
|
let debug = window._debug_;
|
|
9
8
|
debug = {
|
|
10
9
|
...debug,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
...(!debug ? {} : !debug.generated ? {} : debug.generated),
|
|
10
|
+
elems: {
|
|
11
|
+
...debug?.elems,
|
|
14
12
|
// @ts-ignore
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
oneAnd2Prongs: 0,
|
|
45
|
-
threeProngs: 0,
|
|
46
|
-
sats: 0,
|
|
47
|
-
simplifyMat: 0,
|
|
48
|
-
}
|
|
13
|
+
oneProng: [],
|
|
14
|
+
// oneProngAtDullCorner : [],
|
|
15
|
+
twoProng: [],
|
|
16
|
+
// twoProng_regular : [],
|
|
17
|
+
// twoProng_failed : [],
|
|
18
|
+
// twoProng_notAdded : [],
|
|
19
|
+
// twoProng_deleted : [],
|
|
20
|
+
// twoProng_holeClosing : [],
|
|
21
|
+
looseBoundingBox: [],
|
|
22
|
+
tightBoundingBox: [],
|
|
23
|
+
// sharpCorner : [],
|
|
24
|
+
// dullCorner : [],
|
|
25
|
+
vertex: [],
|
|
26
|
+
threeProng: [],
|
|
27
|
+
boundingHull: [],
|
|
28
|
+
mat: [],
|
|
29
|
+
// sat : [],
|
|
30
|
+
cpNode: [],
|
|
31
|
+
maxVertex: [],
|
|
32
|
+
leaves: [],
|
|
33
|
+
// culls : [],
|
|
34
|
+
},
|
|
35
|
+
timing: {
|
|
36
|
+
...debug?.timing,
|
|
37
|
+
holeClosers: 0,
|
|
38
|
+
oneAnd2Prongs: 0,
|
|
39
|
+
threeProngs: 0,
|
|
40
|
+
sats: 0,
|
|
41
|
+
simplifyMat: 0,
|
|
49
42
|
},
|
|
50
43
|
fs: {
|
|
51
|
-
|
|
52
|
-
...(!debug ? {} : !debug.fs ? {} : debug.fs),
|
|
53
|
-
// @ts-ignore
|
|
44
|
+
...debug?.fs,
|
|
54
45
|
drawElem: {
|
|
55
|
-
|
|
56
|
-
...(!debug ? {} : !debug.fs ? {} : !debug.fs.drawElem ? {} : debug.fs.drawElem),
|
|
46
|
+
...debug?.fs?.drawElem,
|
|
57
47
|
...drawElemFs
|
|
58
|
-
}
|
|
59
|
-
...generalDebugFunctions
|
|
48
|
+
}
|
|
60
49
|
},
|
|
61
50
|
directives: {
|
|
62
51
|
//...debug?.directives,
|
|
63
|
-
...
|
|
52
|
+
...debug?.directives,
|
|
64
53
|
stopAfterHoleClosers: false,
|
|
65
54
|
stopAfterHoleClosersNum: undefined,
|
|
66
55
|
stopAfterTwoProngs: false,
|
package/node/debug/debug.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug/debug.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug/debug.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAiDhE,SAAS,iBAAiB,CAAC,OAAgB;IACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACV,MAAc,CAAC,OAAO,GAAG,SAAS,CAAC;QACpC,OAAO;IACX,CAAC;IAED,IAAI,KAAK,GAAW,MAAc,CAAC,OAAO,CAAC;IAE3C,KAAK,GAAG;QACJ,GAAG,KAAK;QACR,KAAK,EAAE;YACH,GAAG,KAAK,EAAE,KAAK;YACf,aAAa;YAEb,QAAQ,EAAe,EAAE;YACzB,6BAA6B;YAC7B,QAAQ,EAAe,EAAE;YACzB,6BAA6B;YAC7B,6BAA6B;YAC7B,6BAA6B;YAC7B,6BAA6B;YAC7B,6BAA6B;YAC7B,gBAAgB,EAAO,EAAE;YACzB,gBAAgB,EAAO,EAAE;YACzB,6BAA6B;YAC7B,6BAA6B;YAC7B,MAAM,EAAiB,EAAE;YACzB,UAAU,EAAa,EAAE;YACzB,YAAY,EAAW,EAAE;YACzB,GAAG,EAAoB,EAAE;YACzB,6BAA6B;YAC7B,MAAM,EAAiB,EAAE;YACzB,SAAS,EAAc,EAAE;YACzB,MAAM,EAAiB,EAAE;YACzB,6BAA6B;SAChC;QACD,MAAM,EAAE;YACJ,GAAG,KAAK,EAAE,MAAM;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,CAAC;YAChB,WAAW,EAAE,CAAC;YACd,IAAI,EAAE,CAAC;YACP,WAAW,EAAE,CAAC;SACjB;QACD,EAAE,EAAE;YACA,GAAG,KAAK,EAAE,EAAE;YACZ,QAAQ,EAAE;gBACN,GAAG,KAAK,EAAE,EAAE,EAAE,QAAQ;gBACtB,GAAG,UAAU;aAChB;SACJ;QACD,UAAU,EAAE;YACR,uBAAuB;YACvB,GAAG,KAAK,EAAE,UAAU;YACpB,oBAAoB,EAAE,KAAK;YAC3B,uBAAuB,EAAE,SAAU;YACnC,kBAAkB,EAAE,KAAK;YACzB,qBAAqB,EAAE,SAAU;YACjC,oBAAoB,EAAE,KAAK;YAC3B,uBAAuB,EAAE,SAAU;SACtC;KACJ,CAAC;IAED,MAAc,CAAC,OAAO,GAAG,KAAK,CAAC;AACpC,CAAC;AAGD,OAAO,EAEyB,iBAAiB,EAChD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CpNode } from '../../../cp-node/cp-node.js';
|
|
1
|
+
import type { CpNode } from '../../../cp-node/cp-node.js';
|
|
2
2
|
/** @internal */
|
|
3
3
|
declare function drawBranch(g: SVGGElement, branch: CpNode[], classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
|
|
4
4
|
export { drawBranch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-branch.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-branch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draw-branch.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-branch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGjF,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,MAAgB,EAChB,OAAO,GAAG,qBAAqB,EAC/B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAGnB,MAAM,KAAK,GAAiB,EAAE,CAAC;IAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,MAAM,GAAG,GAAiB,EAAE,CAAC;IAC7B,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;QAC1B,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;QACxC,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;QAC1B,CAAC,EAAE,CAAC;QACJ,4DAA4D;QAC5D,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,gBAAgB;IAEhB,KAAK,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAE/D,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CpNode } from '../../../cp-node/cp-node.js';
|
|
1
|
+
import type { CpNode } from '../../../cp-node/cp-node.js';
|
|
2
2
|
/** @internal */
|
|
3
3
|
declare function drawCpNode(g: SVGGElement, cpNode: CpNode, classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
|
|
4
4
|
export { drawCpNode };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
2
|
import { scaleCircle } from '../../../geometry/circle.js';
|
|
3
|
-
import {
|
|
3
|
+
import { getAllOnCircle } from '../../../cp-node/fs/get-all-on-circle.js';
|
|
4
4
|
/** @internal */
|
|
5
5
|
function drawCpNode(g, cpNode, classes = 'blue thin2 nofill', delay = 0, scaleFactor = 1) {
|
|
6
6
|
const circle = scaleCircle(cpNode.pointOnShape.circle, 1);
|
|
7
7
|
const { center: c, radius: r } = circle;
|
|
8
|
-
const poss =
|
|
8
|
+
const poss = getAllOnCircle(cpNode)
|
|
9
9
|
.map(cpNode => cpNode.pointOnShape);
|
|
10
10
|
const { dot, circle: drawCircle, crossHair } = drawFs;
|
|
11
11
|
const $circle = drawCircle(g, circle, classes, delay);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-cp-node.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-cp-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"draw-cp-node.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-cp-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG1E,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,MAAc,EACd,OAAO,GAAG,mBAAmB,EAC7B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,MAAM,GAAG,WAAW,CACtB,MAAM,CAAC,YAAY,CA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AM,CAAiB,CAAC;AACpE,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CpNode } from '../../../cp-node/cp-node.js';
|
|
1
|
+
import type { CpNode } from '../../../cp-node/cp-node.js';
|
|
2
2
|
/** @internal */
|
|
3
3
|
declare function drawLeaves(g: SVGGElement, leaves: CpNode[], classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
|
|
4
4
|
export { drawLeaves };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { CpNodeFs } from '../../../cp-node/cp-node-fs.js';
|
|
3
2
|
import { drawCirclePercent } from './draw-circle-percent.js';
|
|
3
|
+
import { getAllOnCircle } from '../../../cp-node/fs/get-all-on-circle.js';
|
|
4
4
|
/** @internal */
|
|
5
5
|
function drawLeaves(g, leaves, classes = 'thin10 deeppink nofill', delay = 0, scaleFactor = 1) {
|
|
6
6
|
const $elems = [];
|
|
@@ -10,7 +10,7 @@ function drawLeaves(g, leaves, classes = 'thin10 deeppink nofill', delay = 0, sc
|
|
|
10
10
|
const { circle } = cp;
|
|
11
11
|
const { center: c, radius: r } = circle;
|
|
12
12
|
const $center = [drawCirclePercent(g, c, 0.5, 'pinker thin5 nofill')];
|
|
13
|
-
const poss =
|
|
13
|
+
const poss = getAllOnCircle(cpNode)
|
|
14
14
|
.map(cpNode => cpNode.pointOnShape);
|
|
15
15
|
const $ls = [];
|
|
16
16
|
const $cps = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-leaves.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-leaves.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draw-leaves.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-leaves.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,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AC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACtD,6DAA6D;QAE7D,MAAM,CAAC,IAAI,CAAC,GAAG;YACX,GAAG,OAAO;YACV,GAAG,IAAI;YACP,GAAG,GAAG;YACN,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
2
|
import { traverseEdges } from '../../../cp-node/fs/traverse-edges.js';
|
|
3
3
|
import { getMatCurveToNext } from '../../../cp-node/fs/get-mat-curve-to-next.js';
|
|
4
|
-
import {
|
|
5
|
-
const { isTerminating } = CpNodeFs;
|
|
4
|
+
import { isTerminating } from '../../../cp-node/fs/is-terminating.js';
|
|
6
5
|
const altClasses = [
|
|
7
6
|
'thin10 blue nofill',
|
|
8
7
|
'thin10 red nofill'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-mat.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-mat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draw-mat.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-mat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGtE,MAAM,UAAU,GAAG;IACf,oBAAoB;IACpB,mBAAmB;CACtB,CAAC;AAEF,gBAAgB;AAChB,SAAS,OAAO,CACR,CAAc,EACd,GAAQ,EACR,QAAiB,EACjB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IACxB,IAAI,CAAC,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,CAAC;IAAC,CAAC;IAE3B,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;QAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;IAAC,CAAC;IAExD,MAAM,KAAK,GAAiB,EAAE,CAAC;IAE/B,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;QAC3B,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QAEtC,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QAExB,KAAK,CAAC,IAAI,CAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,GAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACjE,CAAC,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-min-y.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draw-min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-min-y.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,IAAI,CAAC,CAAc,EAAE,GAAiB;IAC3C,MAAM,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE/C,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CACvB,CAAC,EAAE,CAAC,EAAE,mBAAmB,CAChC,CAAC;IAEF,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CpNode } from '../../../cp-node/cp-node.js';
|
|
1
|
+
import type { CpNode } from '../../../cp-node/cp-node.js';
|
|
2
2
|
/** @internal */
|
|
3
3
|
declare function drawThreeProng(g: SVGGElement, threeProng: CpNode, classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
|
|
4
4
|
export { drawThreeProng };
|