flo-mat 1.2.0 → 2.0.0
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/.mocharc.cjs +17 -0
- package/README.md +12 -1
- package/browser/index.js +7348 -0
- package/browser/index.min.js +2 -1
- package/browser/index.min.js.LICENSE.txt +2907 -0
- package/browser/index.module.js +7369 -0
- package/browser/index.module.min.js +2 -0
- package/browser/index.module.min.js.LICENSE.txt +2907 -0
- package/node/circle.js +3 -7
- package/node/circle.js.map +1 -1
- package/node/compare-curvatures-at-interface.d.ts +19 -0
- package/node/compare-curvatures-at-interface.js +125 -0
- package/node/compare-curvatures-at-interface.js.map +1 -0
- package/node/contact-point.d.ts +2 -2
- package/node/contact-point.js +3 -6
- package/node/contact-point.js.map +1 -1
- package/node/cp-node/clone.d.ts +1 -1
- package/node/cp-node/clone.js +4 -7
- package/node/cp-node/clone.js.map +1 -1
- package/node/cp-node/remove.d.ts +2 -2
- package/node/cp-node/remove.js +1 -4
- package/node/cp-node/remove.js.map +1 -1
- package/node/cp-node.d.ts +4 -5
- package/node/cp-node.js +8 -12
- package/node/cp-node.js.map +1 -1
- package/node/curve.d.ts +2 -2
- package/node/curve.js +10 -14
- package/node/curve.js.map +1 -1
- package/node/debug/cp-node-for-debugging.d.ts +2 -2
- package/node/debug/cp-node-for-debugging.js +1 -2
- package/node/debug/debug-elem-types.d.ts +8 -8
- package/node/debug/debug-elem-types.js +1 -2
- package/node/debug/debug.d.ts +5 -7
- package/node/debug/debug.js +67 -10
- package/node/debug/debug.js.map +1 -1
- package/node/debug/functions/draw-elem/bounding-hull.js +3 -6
- package/node/debug/functions/draw-elem/bounding-hull.js.map +1 -1
- package/node/debug/functions/draw-elem/branch.d.ts +1 -1
- package/node/debug/functions/draw-elem/branch.js +5 -8
- package/node/debug/functions/draw-elem/branch.js.map +1 -1
- package/node/debug/functions/draw-elem/culls.d.ts +1 -1
- package/node/debug/functions/draw-elem/culls.js +1 -4
- package/node/debug/functions/draw-elem/culls.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-circle-percent.js +1 -4
- package/node/debug/functions/draw-elem/draw-circle-percent.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-elem.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-elem.js +34 -37
- package/node/debug/functions/draw-elem/draw-elem.js.map +1 -1
- package/node/debug/functions/draw-elem/dull-corner.d.ts +1 -1
- package/node/debug/functions/draw-elem/dull-corner.js +5 -7
- package/node/debug/functions/draw-elem/dull-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/leaves.d.ts +1 -1
- package/node/debug/functions/draw-elem/leaves.js +3 -6
- package/node/debug/functions/draw-elem/leaves.js.map +1 -1
- package/node/debug/functions/draw-elem/loop.d.ts +1 -1
- package/node/debug/functions/draw-elem/loop.js +1 -4
- package/node/debug/functions/draw-elem/loop.js.map +1 -1
- package/node/debug/functions/draw-elem/loops.d.ts +1 -1
- package/node/debug/functions/draw-elem/loops.js +1 -4
- package/node/debug/functions/draw-elem/loops.js.map +1 -1
- package/node/debug/functions/draw-elem/loose-bounding-box.js +3 -6
- package/node/debug/functions/draw-elem/loose-bounding-box.js.map +1 -1
- package/node/debug/functions/draw-elem/mat.d.ts +1 -1
- package/node/debug/functions/draw-elem/mat.js +7 -10
- package/node/debug/functions/draw-elem/mat.js.map +1 -1
- package/node/debug/functions/draw-elem/max-vertex.d.ts +1 -1
- package/node/debug/functions/draw-elem/max-vertex.js +3 -6
- package/node/debug/functions/draw-elem/max-vertex.js.map +1 -1
- package/node/debug/functions/draw-elem/min-y.d.ts +1 -1
- package/node/debug/functions/draw-elem/min-y.js +9 -12
- package/node/debug/functions/draw-elem/min-y.js.map +1 -1
- package/node/debug/functions/draw-elem/one-prong-at-dull-corner.d.ts +1 -1
- package/node/debug/functions/draw-elem/one-prong-at-dull-corner.js +7 -10
- package/node/debug/functions/draw-elem/one-prong-at-dull-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/one-prong.d.ts +1 -1
- package/node/debug/functions/draw-elem/one-prong.js +9 -12
- package/node/debug/functions/draw-elem/one-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/sharp-corner.d.ts +1 -1
- package/node/debug/functions/draw-elem/sharp-corner.js +3 -6
- package/node/debug/functions/draw-elem/sharp-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/three-prong.d.ts +1 -1
- package/node/debug/functions/draw-elem/three-prong.js +9 -12
- package/node/debug/functions/draw-elem/three-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/tight-bounding-box.js +3 -6
- package/node/debug/functions/draw-elem/tight-bounding-box.js.map +1 -1
- package/node/debug/functions/draw-elem/two-prong.d.ts +1 -1
- package/node/debug/functions/draw-elem/two-prong.js +9 -12
- package/node/debug/functions/draw-elem/two-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/vertex.d.ts +1 -1
- package/node/debug/functions/draw-elem/vertex.js +7 -10
- package/node/debug/functions/draw-elem/vertex.js.map +1 -1
- package/node/debug/functions/general.d.ts +1 -1
- package/node/debug/functions/general.js +3 -6
- package/node/debug/functions/general.js.map +1 -1
- package/node/debug/functions/three-prong.js +24 -27
- package/node/debug/functions/three-prong.js.map +1 -1
- package/node/debug/functions/two-prong.d.ts +1 -1
- package/node/debug/functions/two-prong.js +10 -13
- package/node/debug/functions/two-prong.js.map +1 -1
- package/node/debug/three-prong-for-debugging.d.ts +4 -4
- package/node/debug/three-prong-for-debugging.js +4 -7
- package/node/debug/three-prong-for-debugging.js.map +1 -1
- package/node/debug/two-prong-for-debugging.d.ts +5 -5
- package/node/debug/two-prong-for-debugging.js +1 -2
- package/node/find-mats.d.ts +12 -9
- package/node/find-mats.js +47 -53
- package/node/find-mats.js.map +1 -1
- package/node/get-boundary-bezier-parts-to-next.d.ts +3 -3
- package/node/get-boundary-bezier-parts-to-next.js +1 -4
- package/node/get-boundary-bezier-parts-to-next.js.map +1 -1
- package/node/get-boundary-beziers-to-next.d.ts +1 -1
- package/node/get-boundary-beziers-to-next.js +8 -8
- package/node/get-boundary-beziers-to-next.js.map +1 -1
- package/node/get-bounding-box-.d.ts +2 -0
- package/node/get-bounding-box-.js +5 -0
- package/node/get-bounding-box-.js.map +1 -0
- package/node/get-branches.d.ts +1 -1
- package/node/get-branches.js +7 -10
- package/node/get-branches.js.map +1 -1
- package/node/get-curve/get-curve-between.d.ts +1 -1
- package/node/get-curve/get-curve-between.js +21 -24
- package/node/get-curve/get-curve-between.js.map +1 -1
- package/node/get-curve/get-edge-direction.d.ts +1 -1
- package/node/get-curve/get-edge-direction.js +12 -15
- package/node/get-curve/get-edge-direction.js.map +1 -1
- package/node/get-curve-to-next.d.ts +1 -1
- package/node/get-curve-to-next.js +3 -6
- package/node/get-curve-to-next.js.map +1 -1
- package/node/get-interface-ccw.d.ts +24 -0
- package/node/get-interface-ccw.js +98 -0
- package/node/get-interface-ccw.js.map +1 -0
- package/node/index.d.ts +35 -36
- package/node/index.js +32 -56
- package/node/index.js.map +1 -1
- package/node/loop/get-max-coordinate.js +1 -4
- package/node/loop/get-max-coordinate.js.map +1 -1
- package/node/loop.d.ts +1 -1
- package/node/loop.js +1 -4
- package/node/loop.js.map +1 -1
- package/node/mat/add-to-cp-graph.d.ts +5 -5
- package/node/mat/add-to-cp-graph.js +5 -8
- package/node/mat/add-to-cp-graph.js.map +1 -1
- package/node/mat/bezier-piece.d.ts +1 -1
- package/node/mat/bezier-piece.js +1 -2
- package/node/mat/closest-boundary-point/closest-points-on-curve.d.ts +1 -1
- package/node/mat/closest-boundary-point/closest-points-on-curve.js +15 -14
- package/node/mat/closest-boundary-point/closest-points-on-curve.js.map +1 -1
- package/node/mat/closest-boundary-point/cull-bezier-pieces.d.ts +1 -1
- package/node/mat/closest-boundary-point/cull-bezier-pieces.js +7 -10
- package/node/mat/closest-boundary-point/cull-bezier-pieces.js.map +1 -1
- package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.d.ts +1 -1
- package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.js +5 -8
- package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.js.map +1 -1
- package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.d.ts +1 -1
- package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.js +7 -8
- package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.js.map +1 -1
- package/node/mat/closest-boundary-point/get-best-distance-squared.d.ts +1 -1
- package/node/mat/closest-boundary-point/get-best-distance-squared.js +6 -9
- package/node/mat/closest-boundary-point/get-best-distance-squared.js.map +1 -1
- package/node/mat/closest-boundary-point/get-close-boundary-points.d.ts +2 -2
- package/node/mat/closest-boundary-point/get-close-boundary-points.js +9 -12
- package/node/mat/closest-boundary-point/get-close-boundary-points.js.map +1 -1
- package/node/mat/closest-boundary-point/get-closest-boundary-point.d.ts +3 -3
- package/node/mat/closest-boundary-point/get-closest-boundary-point.js +10 -13
- package/node/mat/closest-boundary-point/get-closest-boundary-point.js.map +1 -1
- package/node/mat/corner.js +1 -2
- package/node/mat/create-new-cp-tree.d.ts +3 -3
- package/node/mat/create-new-cp-tree.js +5 -7
- package/node/mat/create-new-cp-tree.js.map +1 -1
- package/node/mat/elem-type-two-prong.js +1 -2
- package/node/mat/find-mat/add-1-prong.d.ts +4 -4
- package/node/mat/find-mat/add-1-prong.js +9 -12
- package/node/mat/find-mat/add-1-prong.js.map +1 -1
- package/node/mat/find-mat/add-2-prong.d.ts +5 -5
- package/node/mat/find-mat/add-2-prong.js +19 -22
- package/node/mat/find-mat/add-2-prong.js.map +1 -1
- package/node/mat/find-mat/add-3-prong.d.ts +5 -5
- package/node/mat/find-mat/add-3-prong.js +7 -10
- package/node/mat/find-mat/add-3-prong.js.map +1 -1
- package/node/mat/find-mat/add-debug-info.d.ts +2 -2
- package/node/mat/find-mat/add-debug-info.js +8 -13
- package/node/mat/find-mat/add-debug-info.js.map +1 -1
- package/node/mat/find-mat/create-get-interesting-points-on-loop.d.ts +3 -3
- package/node/mat/find-mat/create-get-interesting-points-on-loop.js +29 -16
- package/node/mat/find-mat/create-get-interesting-points-on-loop.js.map +1 -1
- package/node/mat/find-mat/create-initial-cp-graph.d.ts +4 -4
- package/node/mat/find-mat/create-initial-cp-graph.js +7 -9
- package/node/mat/find-mat/create-initial-cp-graph.js.map +1 -1
- package/node/mat/find-mat/find-2-prong/add-debug-info.d.ts +5 -5
- package/node/mat/find-mat/find-2-prong/add-debug-info.js +3 -6
- package/node/mat/find-mat/find-2-prong/add-debug-info.js.map +1 -1
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.d.ts +1 -1
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js +5 -8
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js.map +1 -1
- package/node/mat/find-mat/find-2-prong/find-2-prong.d.ts +5 -5
- package/node/mat/find-mat/find-2-prong/find-2-prong.js +37 -39
- package/node/mat/find-mat/find-2-prong/find-2-prong.js.map +1 -1
- package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js +1 -4
- package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js.map +1 -1
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.d.ts +5 -5
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js +7 -10
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js.map +1 -1
- package/node/mat/find-mat/find-2-prong/x-for-debugging.d.ts +1 -1
- package/node/mat/find-mat/find-2-prong/x-for-debugging.js +1 -2
- package/node/mat/find-mat/find-3-prong/calc-better-x.d.ts +2 -2
- package/node/mat/find-mat/find-3-prong/calc-better-x.js +10 -13
- package/node/mat/find-mat/find-3-prong/calc-better-x.js.map +1 -1
- package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.d.ts +2 -2
- package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.js +6 -8
- package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.js.map +1 -1
- package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.d.ts +3 -3
- package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.js +29 -32
- package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.js.map +1 -1
- package/node/mat/find-mat/find-3-prong/find-3-prong.d.ts +3 -3
- package/node/mat/find-mat/find-3-prong/find-3-prong.js +14 -12
- package/node/mat/find-mat/find-3-prong/find-3-prong.js.map +1 -1
- package/node/mat/find-mat/find-3-prong/get-closest-points.d.ts +2 -2
- package/node/mat/find-mat/find-3-prong/get-closest-points.js +3 -6
- package/node/mat/find-mat/find-3-prong/get-closest-points.js.map +1 -1
- package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.d.ts +4 -4
- package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.js +3 -6
- package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.js.map +1 -1
- package/node/mat/find-mat/find-and-add-2-prongs.d.ts +4 -4
- package/node/mat/find-mat/find-and-add-2-prongs.js +9 -12
- package/node/mat/find-mat/find-and-add-2-prongs.js.map +1 -1
- package/node/mat/find-mat/find-and-add-3-prongs.d.ts +3 -3
- package/node/mat/find-mat/find-and-add-3-prongs.js +8 -11
- package/node/mat/find-mat/find-and-add-3-prongs.js.map +1 -1
- package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.d.ts +3 -3
- package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.js +11 -14
- package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.js.map +1 -1
- package/node/mat/find-mat/get-potential-2-prongs.d.ts +1 -1
- package/node/mat/find-mat/get-potential-2-prongs.js +3 -6
- package/node/mat/find-mat/get-potential-2-prongs.js.map +1 -1
- package/node/mat/find-mat/get-sharp-corners.d.ts +1 -1
- package/node/mat/find-mat/get-sharp-corners.js +3 -6
- package/node/mat/find-mat/get-sharp-corners.js.map +1 -1
- package/node/mat/geometry/get-closest-square-distance-to-rect.js +21 -15
- package/node/mat/geometry/get-closest-square-distance-to-rect.js.map +1 -1
- package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js +5 -8
- package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js.map +1 -1
- package/node/mat/get-boundary-piece-beziers.d.ts +2 -2
- package/node/mat/get-boundary-piece-beziers.js +6 -9
- package/node/mat/get-boundary-piece-beziers.js.map +1 -1
- package/node/mat/get-contact-circles-at-interface.d.ts +2 -2
- package/node/mat/get-contact-circles-at-interface.js +7 -10
- package/node/mat/get-contact-circles-at-interface.js.map +1 -1
- package/node/mat/get-largest-vertex.d.ts +1 -1
- package/node/mat/get-largest-vertex.js +1 -4
- package/node/mat/get-largest-vertex.js.map +1 -1
- package/node/mat/get-leaves.d.ts +1 -1
- package/node/mat/get-leaves.js +1 -4
- package/node/mat/get-leaves.js.map +1 -1
- package/node/mat/get-neighboring-cps.d.ts +3 -3
- package/node/mat/get-neighboring-cps.js +5 -8
- package/node/mat/get-neighboring-cps.js.map +1 -1
- package/node/mat/get-two-prong-type.d.ts +2 -2
- package/node/mat/get-two-prong-type.js +1 -4
- package/node/mat/get-two-prong-type.js.map +1 -1
- package/node/mat/is-another-cp-closeby.d.ts +5 -5
- package/node/mat/is-another-cp-closeby.js +8 -11
- package/node/mat/is-another-cp-closeby.js.map +1 -1
- package/node/mat/simplify-mat-map-only.d.ts +1 -1
- package/node/mat/simplify-mat-map-only.js +10 -14
- package/node/mat/simplify-mat-map-only.js.map +1 -1
- package/node/mat/to-scale-axis/add-debug-info.d.ts +1 -1
- package/node/mat/to-scale-axis/add-debug-info.js +1 -4
- package/node/mat/to-scale-axis/add-debug-info.js.map +1 -1
- package/node/mat/to-scale-axis/cull-non-cycles.d.ts +1 -1
- package/node/mat/to-scale-axis/cull-non-cycles.js +5 -8
- package/node/mat/to-scale-axis/cull-non-cycles.js.map +1 -1
- package/node/mat/to-scale-axis/cull.d.ts +2 -2
- package/node/mat/to-scale-axis/cull.js +75 -8
- package/node/mat/to-scale-axis/cull.js.map +1 -1
- package/node/mat/trim-mat.d.ts +1 -1
- package/node/mat/trim-mat.js +6 -9
- package/node/mat/trim-mat.js.map +1 -1
- package/node/mat.d.ts +3 -3
- package/node/mat.js +1 -2
- package/node/point-on-shape.d.ts +2 -2
- package/node/point-on-shape.js +23 -34
- package/node/point-on-shape.js.map +1 -1
- package/node/simplify-mat.d.ts +4 -3
- package/node/simplify-mat.js +14 -16
- package/node/simplify-mat.js.map +1 -1
- package/node/svg/get-loop-bounds.d.ts +2 -2
- package/node/svg/get-loop-bounds.js +11 -13
- package/node/svg/get-loop-bounds.js.map +1 -1
- package/node/svg/get-min-y-pos.d.ts +3 -2
- package/node/svg/get-min-y-pos.js +3 -6
- package/node/svg/get-min-y-pos.js.map +1 -1
- package/node/svg/get-shape-bounds.d.ts +5 -5
- package/node/svg/get-shape-bounds.js +5 -8
- package/node/svg/get-shape-bounds.js.map +1 -1
- package/node/sweep-line/sweep-line.js +1 -4
- package/node/sweep-line/sweep-line.js.map +1 -1
- package/node/to-scale-axis.d.ts +2 -1
- package/node/to-scale-axis.js +18 -21
- package/node/to-scale-axis.js.map +1 -1
- package/node/traverse-edges.d.ts +1 -1
- package/node/traverse-edges.js +1 -4
- package/node/traverse-edges.js.map +1 -1
- package/node/traverse-vertices.d.ts +1 -1
- package/node/traverse-vertices.js +1 -4
- package/node/traverse-vertices.js.map +1 -1
- package/package.json +34 -31
- package/src/circle.ts +0 -6
- package/src/compare-curvatures-at-interface.ts +197 -0
- package/src/contact-point.ts +2 -3
- package/src/cp-node/clone.ts +1 -2
- package/src/cp-node/remove.ts +2 -3
- package/src/cp-node.ts +6 -8
- package/src/curve.ts +3 -4
- package/src/debug/cp-node-for-debugging.ts +2 -3
- package/src/debug/debug-elem-types.ts +8 -10
- package/src/debug/debug.ts +22 -17
- package/src/debug/functions/draw-elem/bounding-hull.ts +0 -1
- package/src/debug/functions/draw-elem/branch.ts +2 -3
- package/src/debug/functions/draw-elem/culls.ts +1 -2
- package/src/debug/functions/draw-elem/draw-elem.ts +18 -19
- package/src/debug/functions/draw-elem/dull-corner.ts +3 -3
- package/src/debug/functions/draw-elem/leaves.ts +2 -4
- package/src/debug/functions/draw-elem/loop.ts +1 -2
- package/src/debug/functions/draw-elem/loops.ts +1 -2
- package/src/debug/functions/draw-elem/loose-bounding-box.ts +0 -1
- package/src/debug/functions/draw-elem/mat.ts +3 -5
- package/src/debug/functions/draw-elem/max-vertex.ts +1 -2
- package/src/debug/functions/draw-elem/min-y.ts +5 -7
- package/src/debug/functions/draw-elem/one-prong-at-dull-corner.ts +1 -2
- package/src/debug/functions/draw-elem/one-prong.ts +2 -3
- package/src/debug/functions/draw-elem/sharp-corner.ts +1 -2
- package/src/debug/functions/draw-elem/three-prong.ts +2 -4
- package/src/debug/functions/draw-elem/tight-bounding-box.ts +0 -1
- package/src/debug/functions/draw-elem/two-prong.ts +2 -3
- package/src/debug/functions/draw-elem/vertex.ts +1 -2
- package/src/debug/functions/general.ts +2 -3
- package/src/debug/functions/three-prong.ts +3 -4
- package/src/debug/functions/two-prong.ts +6 -14
- package/src/debug/three-prong-for-debugging.ts +4 -5
- package/src/debug/two-prong-for-debugging.ts +5 -6
- package/src/find-mats.ts +34 -39
- package/src/get-boundary-bezier-parts-to-next.ts +5 -6
- package/src/get-boundary-beziers-to-next.ts +8 -7
- package/src/get-bounding-box-.ts +7 -0
- package/src/get-branches.ts +2 -3
- package/src/get-curve/get-curve-between.ts +2 -3
- package/src/get-curve/get-edge-direction.ts +2 -5
- package/src/get-curve-to-next.ts +2 -3
- package/src/get-interface-ccw.ts +112 -0
- package/src/index.ts +34 -48
- package/src/loop/get-max-coordinate.ts +0 -1
- package/src/loop.ts +1 -2
- package/src/mat/add-to-cp-graph.ts +7 -8
- package/src/mat/bezier-piece.ts +1 -2
- package/src/mat/closest-boundary-point/closest-points-on-curve.ts +19 -17
- package/src/mat/closest-boundary-point/cull-bezier-pieces.ts +4 -5
- package/src/mat/closest-boundary-point/cull-by-loose-bounding-box.ts +4 -5
- package/src/mat/closest-boundary-point/cull-by-tight-boundary-box.ts +7 -5
- package/src/mat/closest-boundary-point/get-best-distance-squared.ts +1 -2
- package/src/mat/closest-boundary-point/get-close-boundary-points.ts +4 -11
- package/src/mat/closest-boundary-point/get-closest-boundary-point.ts +5 -6
- package/src/mat/cmp-cp-on-delta.ts +2 -3
- package/src/mat/create-new-cp-tree.ts +5 -5
- package/src/mat/find-mat/add-1-prong.ts +7 -8
- package/src/mat/find-mat/add-2-prong.ts +11 -12
- package/src/mat/find-mat/add-3-prong.ts +7 -8
- package/src/mat/find-mat/add-debug-info.ts +8 -7
- package/src/mat/find-mat/create-get-interesting-points-on-loop.ts +22 -8
- package/src/mat/find-mat/create-initial-cp-graph.ts +7 -8
- package/src/mat/find-mat/find-2-prong/add-debug-info.ts +9 -10
- package/src/mat/find-mat/find-2-prong/cull-bezier-pieces.ts +4 -7
- package/src/mat/find-mat/find-2-prong/find-2-prong.ts +19 -17
- package/src/mat/find-mat/find-2-prong/get-initial-bezier-pieces.ts +7 -8
- package/src/mat/find-mat/find-2-prong/x-for-debugging.ts +1 -2
- package/src/mat/find-mat/find-3-prong/calc-better-x.ts +3 -6
- package/src/mat/find-mat/find-3-prong/calc-initial-3-prong-center.ts +3 -8
- package/src/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.ts +10 -14
- package/src/mat/find-mat/find-3-prong/find-3-prong.ts +13 -8
- package/src/mat/find-mat/find-3-prong/get-closest-points.ts +2 -5
- package/src/mat/find-mat/find-and-add-2-prongs-on-all-paths.ts +5 -6
- package/src/mat/find-mat/find-and-add-2-prongs.ts +9 -10
- package/src/mat/find-mat/find-and-add-3-prongs.ts +8 -9
- package/src/mat/find-mat/find-and-add-hole-closing-2-prongs.ts +7 -8
- package/src/mat/find-mat/get-potential-2-prongs.ts +1 -2
- package/src/mat/find-mat/get-sharp-corners.ts +1 -2
- package/src/mat/find-mat/get-total-abs-curvature.ts +2 -3
- package/src/mat/find-mat/get-total-by.ts +2 -3
- package/src/mat/geometry/get-closest-square-distance-to-rect.ts +15 -4
- package/src/mat/geometry/get-closest-squared-distance-to-rotated-rect.ts +0 -1
- package/src/mat/get-boundary-piece-beziers.ts +5 -6
- package/src/mat/get-contact-circles-at-interface.ts +3 -4
- package/src/mat/get-edges-as-array.ts +2 -3
- package/src/mat/get-largest-three-prong.ts +1 -2
- package/src/mat/get-largest-vertex.ts +1 -2
- package/src/mat/get-leaves.ts +1 -2
- package/src/mat/get-neighboring-cps.ts +5 -6
- package/src/mat/get-two-prong-type.ts +2 -3
- package/src/mat/is-another-cp-closeby.ts +6 -7
- package/src/mat/simplify-mat-map-only.ts +5 -7
- package/src/mat/to-scale-axis/add-debug-info.ts +2 -3
- package/src/mat/to-scale-axis/add-to-tree.ts +3 -4
- package/src/mat/to-scale-axis/calc-groups.ts +1 -2
- package/src/mat/to-scale-axis/create-spacial-tree.ts +3 -4
- package/src/mat/to-scale-axis/cull-non-cycles.ts +2 -3
- package/src/mat/to-scale-axis/cull.ts +3 -4
- package/src/mat/to-scale-axis/get-engulfed-vertices.ts +3 -4
- package/src/mat/to-scale-axis/t-tree.ts +1 -2
- package/src/mat/to-scale-axis/traverse-spacial-tree.ts +2 -4
- package/src/mat/trim-mat.ts +4 -5
- package/src/mat.ts +3 -5
- package/src/point-on-shape.ts +10 -12
- package/src/simplify-mat.ts +11 -13
- package/src/svg/get-curvature-at-interface.ts +1 -3
- package/src/svg/get-extreme.ts +2 -3
- package/src/svg/get-loop-bounds.ts +4 -4
- package/src/svg/get-min-y-pos.ts +2 -6
- package/src/svg/get-shape-bounds.ts +2 -3
- package/src/sweep-line/are-boxes-intersecting.ts +1 -1
- package/src/to-scale-axis.ts +15 -16
- package/src/traverse-edges.ts +1 -2
- package/src/traverse-vertices.ts +1 -2
- package/test/lib-load.spec.ts +0 -1
- package/tsconfig.json +6 -31
- package/webpack.config.cjs +132 -0
- package/.nycrc +0 -4
- package/node/mat/cmp-cp-on-delta.d.ts +0 -14
- package/node/mat/cmp-cp-on-delta.js +0 -45
- package/node/mat/cmp-cp-on-delta.js.map +0 -1
- package/node/mat/find-mat/get-total-abs-curvature.d.ts +0 -5
- package/node/mat/find-mat/get-total-abs-curvature.js +0 -13
- package/node/mat/find-mat/get-total-abs-curvature.js.map +0 -1
- package/node/mat/find-mat/get-total-by.d.ts +0 -10
- package/node/mat/find-mat/get-total-by.js +0 -22
- package/node/mat/find-mat/get-total-by.js.map +0 -1
- package/node/mat/get-edges-as-array.d.ts +0 -4
- package/node/mat/get-edges-as-array.js +0 -12
- package/node/mat/get-edges-as-array.js.map +0 -1
- package/node/mat/get-largest-three-prong.d.ts +0 -4
- package/node/mat/get-largest-three-prong.js +0 -13
- package/node/mat/get-largest-three-prong.js.map +0 -1
- package/node/mat/to-scale-axis/add-to-tree.d.ts +0 -13
- package/node/mat/to-scale-axis/add-to-tree.js +0 -39
- package/node/mat/to-scale-axis/add-to-tree.js.map +0 -1
- package/node/mat/to-scale-axis/calc-groups.d.ts +0 -28
- package/node/mat/to-scale-axis/calc-groups.js +0 -66
- package/node/mat/to-scale-axis/calc-groups.js.map +0 -1
- package/node/mat/to-scale-axis/create-spacial-tree.d.ts +0 -9
- package/node/mat/to-scale-axis/create-spacial-tree.js +0 -24
- package/node/mat/to-scale-axis/create-spacial-tree.js.map +0 -1
- package/node/mat/to-scale-axis/get-engulfed-vertices.d.ts +0 -12
- package/node/mat/to-scale-axis/get-engulfed-vertices.js +0 -95
- package/node/mat/to-scale-axis/get-engulfed-vertices.js.map +0 -1
- package/node/mat/to-scale-axis/t-tree.d.ts +0 -6
- package/node/mat/to-scale-axis/t-tree.js +0 -3
- package/node/mat/to-scale-axis/t-tree.js.map +0 -1
- package/node/mat/to-scale-axis/traverse-spacial-tree.d.ts +0 -11
- package/node/mat/to-scale-axis/traverse-spacial-tree.js +0 -25
- package/node/mat/to-scale-axis/traverse-spacial-tree.js.map +0 -1
- package/node/svg/get-curvature-at-interface.d.ts +0 -9
- package/node/svg/get-curvature-at-interface.js +0 -49
- package/node/svg/get-curvature-at-interface.js.map +0 -1
- package/node/svg/get-extreme.d.ts +0 -9
- package/node/svg/get-extreme.js +0 -16
- package/node/svg/get-extreme.js.map +0 -1
- package/node/sweep-line/are-boxes-intersecting.d.ts +0 -11
- package/node/sweep-line/are-boxes-intersecting.js +0 -42
- package/node/sweep-line/are-boxes-intersecting.js.map +0 -1
- package/test/mocha.opts +0 -4
- package/webpack.config.js +0 -25
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.oneProngAtDullCorner = void 0;
|
|
4
|
-
const point_on_shape_1 = require("../../../point-on-shape");
|
|
5
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
6
3
|
/** @hidden */
|
|
7
4
|
function oneProngAtDullCorner(g, pos) {
|
|
8
5
|
//let oCircle = PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
9
|
-
let oCircle =
|
|
10
|
-
let $center =
|
|
11
|
-
let $circle =
|
|
12
|
-
let $pos =
|
|
6
|
+
let oCircle = getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
7
|
+
let $center = drawFs.dot(g, pos.p, 0.1, 'orange');
|
|
8
|
+
let $circle = drawFs.dot(g, oCircle.center, 0.25, 'orange');
|
|
9
|
+
let $pos = drawFs.circle(g, oCircle, 'orange thin10 nofill');
|
|
13
10
|
return [...$center, ...$circle, ...$pos];
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
export { oneProngAtDullCorner };
|
|
16
13
|
//# sourceMappingURL=one-prong-at-dull-corner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-prong-at-dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong-at-dull-corner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"one-prong-at-dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong-at-dull-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,4BAA4B,CAAC;AAGhF,cAAc;AACd,SAAS,oBAAoB,CAAC,CAAc,EAAE,GAAkB;IAC5D,gFAAgF;IAChF,IAAI,OAAO,GAAG,mBAAmB,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;IAEjE,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClD,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5D,IAAI,IAAI,GAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IAEnE,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1C,CAAC;AAGD,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPointOnShape } from '../../../point-on-shape';
|
|
1
|
+
import { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
2
|
/** @hidden */
|
|
3
3
|
declare function drawOneProng(g: SVGGElement, pos: IPointOnShape, classes: string, delay?: number): SVGCircleElement[];
|
|
4
4
|
export { drawOneProng };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const point_on_shape_1 = require("../../../point-on-shape");
|
|
5
|
-
const circle_1 = require("../../../circle");
|
|
6
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
3
|
+
import { scaleCircle } from '../../../circle.js';
|
|
7
4
|
/** @hidden */
|
|
8
5
|
const scaleFactor = 0.5;
|
|
9
6
|
/** @hidden */
|
|
10
7
|
function drawOneProng(g, pos, classes, delay = 0) {
|
|
11
|
-
let circle =
|
|
8
|
+
let circle = scaleCircle(
|
|
12
9
|
//PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos),
|
|
13
|
-
|
|
14
|
-
let $center =
|
|
15
|
-
let $circle =
|
|
16
|
-
let $pos =
|
|
10
|
+
getOsculatingCircle(Number.POSITIVE_INFINITY, pos), 1);
|
|
11
|
+
let $center = drawFs.dot(g, pos.p, 0.1 * scaleFactor, 'gray', delay);
|
|
12
|
+
let $circle = drawFs.dot(g, circle.center, 0.25 * scaleFactor, 'gray', delay);
|
|
13
|
+
let $pos = drawFs.circle(g, circle, 'gray thin10 nofill', delay);
|
|
17
14
|
return [...$center, ...$circle, ...$pos];
|
|
18
15
|
}
|
|
19
|
-
|
|
16
|
+
export { drawOneProng };
|
|
20
17
|
//# sourceMappingURL=one-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"one-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzD,cAAc;AACd,MAAM,WAAW,GAAG,GAAG,CAAC;AAGxB,cAAc;AACd,SAAS,YAAY,CAAC,CAAc,EAAE,GAAkB,EAAE,OAAe,EAAE,KAAK,GAAG,CAAC;IAChF,IAAI,MAAM,GAAG,WAAW;IACpB,kEAAkE;IAClE,mBAAmB,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC,EAClD,CAAC,CACJ,CAAC;IAEF,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,GAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACnE,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5E,IAAI,IAAI,GAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;IAEvE,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1C,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sharpCorner = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function sharpCorner(g, curve) {
|
|
7
4
|
const scaleFactor = 1;
|
|
8
5
|
let p = curve.ps[curve.ps.length - 1];
|
|
9
|
-
let $pos =
|
|
6
|
+
let $pos = drawFs.dot(g, p, 0.6 * scaleFactor, 'green');
|
|
10
7
|
return $pos;
|
|
11
8
|
}
|
|
12
|
-
|
|
9
|
+
export { sharpCorner };
|
|
13
10
|
//# sourceMappingURL=sharp-corner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharp-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/sharp-corner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharp-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/sharp-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,WAAW,CAAC,CAAc,EAAE,KAAY;IAChD,MAAM,WAAW,GAAG,CAAC,CAAC;IAEtB,IAAI,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC;IACpC,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,GAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAEtD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThreeProngForDebugging } from '../../three-prong-for-debugging';
|
|
1
|
+
import { ThreeProngForDebugging } from '../../three-prong-for-debugging.js';
|
|
2
2
|
/** @hidden */
|
|
3
3
|
declare function threeProng(g: SVGGElement, threeProng: ThreeProngForDebugging): SVGCircleElement[];
|
|
4
4
|
export { threeProng };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.threeProng = void 0;
|
|
4
|
-
const circle_1 = require("../../../circle");
|
|
5
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { scaleCircle } from '../../../circle.js';
|
|
6
3
|
/** @hidden */
|
|
7
4
|
const scaleFactor = 0.3;
|
|
8
5
|
/** @hidden */
|
|
9
6
|
function threeProng(g, threeProng) {
|
|
10
|
-
let circle =
|
|
7
|
+
let circle = scaleCircle(threeProng.circle, 1);
|
|
11
8
|
let poss = threeProng.poss;
|
|
12
|
-
let $cp1 =
|
|
13
|
-
let $cp2 =
|
|
14
|
-
let $cp3 =
|
|
15
|
-
let $center =
|
|
16
|
-
let $circle =
|
|
9
|
+
let $cp1 = drawFs.dot(g, poss[0].p, 0.1 * 1 * scaleFactor, 'blue');
|
|
10
|
+
let $cp2 = drawFs.dot(g, poss[1].p, 0.1 * 2 * scaleFactor, 'blue');
|
|
11
|
+
let $cp3 = drawFs.dot(g, poss[2].p, 0.1 * 3 * scaleFactor, 'blue');
|
|
12
|
+
let $center = drawFs.dot(g, circle.center, 0.3 * scaleFactor, 'blue');
|
|
13
|
+
let $circle = drawFs.circle(g, circle, 'blue thin2 nofill');
|
|
17
14
|
return [...$center, ...$cp1, ...$cp2, ...$cp3, ...$circle];
|
|
18
15
|
}
|
|
19
|
-
|
|
16
|
+
export { threeProng };
|
|
20
17
|
//# sourceMappingURL=three-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"three-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/three-prong.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"three-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/three-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzD,cAAc;AACd,MAAM,WAAW,GAAG,GAAG,CAAC;AAGxB,cAAc;AACd,SAAS,UAAU,CAAC,CAAc,EAAE,UAAkC;IACrE,IAAI,MAAM,GAAG,WAAW,CACvB,UAAU,CAAC,MAAM,EACjB,CAAC,CACD,CAAC;IACF,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAE3B,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACpE,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAE5D,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,CAAC;AAC5D,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tightBoundingBox = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function tightBoundingBox(g, box) {
|
|
7
|
-
let $box =
|
|
4
|
+
let $box = drawFs.polygon(g, box, 'thin5 pinker nofill');
|
|
8
5
|
return $box;
|
|
9
6
|
}
|
|
10
|
-
|
|
7
|
+
export { tightBoundingBox };
|
|
11
8
|
//# sourceMappingURL=tight-bounding-box.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tight-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/tight-bounding-box.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tight-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/tight-bounding-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,cAAc;AACd,SAAS,gBAAgB,CAAC,CAAc,EAAE,GAAe;IACxD,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC;IAEzD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TwoProngForDebugging } from '../../two-prong-for-debugging';
|
|
1
|
+
import { TwoProngForDebugging } from '../../two-prong-for-debugging.js';
|
|
2
2
|
/** @hidden */
|
|
3
3
|
declare function twoProng(g: SVGGElement, twoProng: TwoProngForDebugging): SVGElement[];
|
|
4
4
|
export { twoProng };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.twoProng = void 0;
|
|
4
|
-
const get_two_prong_type_1 = require("../../../mat/get-two-prong-type");
|
|
5
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getTwoProngType } from '../../../mat/get-two-prong-type.js';
|
|
6
3
|
/** @hidden */
|
|
7
4
|
function twoProng(g, twoProng) {
|
|
8
5
|
let scaleFactor = 0.3;
|
|
@@ -13,7 +10,7 @@ function twoProng(g, twoProng) {
|
|
|
13
10
|
let $cp2 = [];
|
|
14
11
|
let color;
|
|
15
12
|
let thin;
|
|
16
|
-
switch (
|
|
13
|
+
switch (getTwoProngType(twoProng)) {
|
|
17
14
|
case 'twoProng_regular': {
|
|
18
15
|
color = 'red ';
|
|
19
16
|
thin = '2';
|
|
@@ -26,15 +23,15 @@ function twoProng(g, twoProng) {
|
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
25
|
if (twoProng.failed) {
|
|
29
|
-
$failedDot =
|
|
26
|
+
$failedDot = drawFs.dot(g, twoProng.pos.p, 1 * scaleFactor, 'black');
|
|
30
27
|
}
|
|
31
28
|
else if (!twoProng.failed) {
|
|
32
|
-
$center =
|
|
33
|
-
$circle =
|
|
34
|
-
$cp1 =
|
|
35
|
-
$cp2 =
|
|
29
|
+
$center = drawFs.dot(g, twoProng.circle.center, 1 * scaleFactor, 'yellow');
|
|
30
|
+
$circle = drawFs.circle(g, twoProng.circle, color + 'thin' + thin + ' nofill');
|
|
31
|
+
$cp1 = drawFs.dot(g, twoProng.pos.p, 0.035 * scaleFactor, color);
|
|
32
|
+
$cp2 = drawFs.dot(g, twoProng.z, 0.07 * scaleFactor, color);
|
|
36
33
|
}
|
|
37
34
|
return [...$failedDot, ...$center, ...$circle, ...$cp1, ...$cp2];
|
|
38
35
|
}
|
|
39
|
-
|
|
36
|
+
export { twoProng };
|
|
40
37
|
//# sourceMappingURL=two-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/two-prong.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"two-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/two-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,cAAc;AACd,SAAS,QAAQ,CAAC,CAAc,EAAE,QAA8B;IAC/D,IAAI,WAAW,GAAG,GAAG,CAAC;IAEtB,IAAI,UAAU,GAAkB,EAAE,CAAC;IACnC,IAAI,OAAO,GAAqB,EAAE,CAAC;IACnC,IAAI,OAAO,GAAqB,EAAE,CAAC;IACnC,IAAI,IAAI,GAAwB,EAAE,CAAC;IACnC,IAAI,IAAI,GAAwB,EAAE,CAAC;IAEnC,IAAI,KAAK,CAAC;IACV,IAAI,IAAI,CAAC;IAET,QAAQ,eAAe,CAAC,QAAQ,CAAC,EAAE;QAClC,KAAK,kBAAkB,CAAC,CAAC;YACxB,KAAK,GAAG,MAAM,CAAC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{ drawFs } from 'flo-draw';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function vertex(g, cpNode, classes, delay, visible = true) {
|
|
7
4
|
let visibleClass = visible ? '' : ' invisible';
|
|
@@ -10,22 +7,22 @@ function vertex(g, cpNode, classes, delay, visible = true) {
|
|
|
10
7
|
let cps = cpNode.getCpNodesOnCircle();
|
|
11
8
|
console.log(cps);
|
|
12
9
|
let $svgs = [];
|
|
13
|
-
let $circle =
|
|
14
|
-
let $crossHair =
|
|
10
|
+
let $circle = drawFs.circle(g, circle, 'red ' + THIN + ' nofill ' + visibleClass, delay);
|
|
11
|
+
let $crossHair = drawFs.crossHair(g, circle.center, 'red ' + THIN + ' nofill ' + visibleClass, 3, delay);
|
|
15
12
|
$svgs = [...$circle, ...$crossHair];
|
|
16
13
|
for (let i = 0; i < cps.length; i++) {
|
|
17
14
|
let cp = cps[i];
|
|
18
15
|
let edgeCircle = cp.next.cp.circle;
|
|
19
|
-
let $circle =
|
|
20
|
-
let $crossHair =
|
|
16
|
+
let $circle = drawFs.circle(g, edgeCircle, 'pink ' + THIN + ' nofill ' + visibleClass, delay);
|
|
17
|
+
let $crossHair = drawFs.crossHair(g, edgeCircle.center, 'pink ' + THIN + ' nofill ' + visibleClass, 3, delay);
|
|
21
18
|
$svgs.push(...$circle, ...$crossHair);
|
|
22
19
|
let p1 = circle.center;
|
|
23
20
|
let p2 = edgeCircle.center;
|
|
24
21
|
let thin = i === 0 ? 'thin10' : (i === 1 ? 'thin20' : 'thin35');
|
|
25
|
-
let $line =
|
|
22
|
+
let $line = drawFs.line(g, [p1, p2], 'yellow ' + thin + ' nofill ' + visibleClass, delay);
|
|
26
23
|
$svgs.push(...$line);
|
|
27
24
|
}
|
|
28
25
|
return $svgs;
|
|
29
26
|
}
|
|
30
|
-
|
|
27
|
+
export { vertex };
|
|
31
28
|
//# sourceMappingURL=vertex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/vertex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/vertex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,MAAM,CAAC,CAAc,EAAE,MAAc,EAAE,OAAgB,EAAG,KAAc,EAAE,UAAmB,IAAI;IACzG,IAAI,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;IAE/C,IAAI,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC;IAE9B,MAAM,IAAI,GAAG,QAAQ,CAAC;IAEtB,IAAI,GAAG,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEhB,IAAI,KAAK,GAAiB,EAAE,CAAC;IAE7B,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,KAAK,CAAC,CAAC;IACzF,IAAI,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAEzG,KAAK,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;IAEpC,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAChC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,IAAI,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;QAEnC,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,KAAK,CAAC,CAAC;QAC9F,IAAI,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QAE9G,KAAK,CAAC,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC,CAAA;QAErC,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC;QAC3B,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAChE,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,GAAG,IAAI,GAAI,UAAU,GAAG,YAAY,EAAE,KAAK,CAAC,CAAC;QAE3F,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;KACrB;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generalDebugFunctions = void 0;
|
|
4
|
-
const point_on_shape_1 = require("../../point-on-shape");
|
|
1
|
+
import { posToHumanString } from '../../point-on-shape.js';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
let i = 0;
|
|
7
4
|
/**
|
|
@@ -17,7 +14,7 @@ function nameObj(o, pre = '') {
|
|
|
17
14
|
* @param cpNodes A boundary piece given by two CpNodes.
|
|
18
15
|
*/
|
|
19
16
|
function δToString(cpNodes) {
|
|
20
|
-
return cpNodes.map(cpNode =>
|
|
17
|
+
return cpNodes.map(cpNode => posToHumanString(cpNode.cp.pointOnShape));
|
|
21
18
|
}
|
|
22
19
|
/**
|
|
23
20
|
* @hidden
|
|
@@ -52,5 +49,5 @@ let generalDebugFunctions /*: IGeneralDebugFunctions*/ = {
|
|
|
52
49
|
pointsToStr,
|
|
53
50
|
nameObj,
|
|
54
51
|
};
|
|
55
|
-
|
|
52
|
+
export { generalDebugFunctions };
|
|
56
53
|
//# sourceMappingURL=general.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.js","sourceRoot":"","sources":["../../../src/debug/functions/general.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"general.js","sourceRoot":"","sources":["../../../src/debug/functions/general.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAa3D,cAAc;AACd,IAAI,CAAC,GAAG,CAAC,CAAC;AACV;;;GAGG;AACH,SAAS,OAAO,CAAC,CAAM,EAAE,MAAc,EAAE;IACxC,CAAC,CAAC,IAAI,GAAG,EAAE,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC;AACzB,CAAC;AAGD;;;;GAIG;AACH,SAAS,SAAS,CAAC,OAAiB;IACnC,OAAO,OAAO,CAAC,GAAG,CACjB,MAAM,CAAC,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,CAClD,CAAC;AACH,CAAC;AAGD;;;;GAIG;AACH,SAAS,UAAU,CAAC,OAAmB;IACtC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAC/B,CAAC;AAGD;;;;GAIG;AACH,SAAS,WAAW,CAAC,EAAc,EAAE,aAAa,GAAG,CAAC;IACrD,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;AAClD,CAAC;AAGD;;;;;GAKG;AACH,SAAS,UAAU,CAAC,CAAW,EAAE,gBAAwB,CAAC;IACzD,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;AACzE,CAAC;AAGD,cAAc;AACd,IAAI,qBAAqB,CAAA,4BAA4B,GAAG;IACvD,SAAS;IACT,UAAU;IACV,UAAU;IACV,WAAW;IACX,OAAO;CACP,CAAA;AAGD,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.threeProngDebugFunctions = void 0;
|
|
4
|
-
const flo_vector2d_1 = require("flo-vector2d");
|
|
5
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { equal, getObjClosestTo } from 'flo-vector2d';
|
|
6
3
|
/**
|
|
7
4
|
* @hidden
|
|
8
5
|
* Draws 3 lines from the given 3-prong center to its 3 contact points.
|
|
@@ -16,9 +13,9 @@ function drawSpokes(g, n) {
|
|
|
16
13
|
//_debug_.fs.draw.line(g, [poss[0].p, cc], 'thin5 red');
|
|
17
14
|
//_debug_.fs.draw.line(g, [poss[1].p, cc], 'thin5 red');
|
|
18
15
|
//_debug_.fs.draw.line(g, [poss[2].p, cc], 'thin5 red');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
drawFs.line(g, [poss[0].p, cc], 'thin5 red');
|
|
17
|
+
drawFs.line(g, [poss[1].p, cc], 'thin5 red');
|
|
18
|
+
drawFs.line(g, [poss[2].p, cc], 'thin5 red');
|
|
22
19
|
}
|
|
23
20
|
/**
|
|
24
21
|
* @hidden
|
|
@@ -68,12 +65,12 @@ function traceConvergence(g, n_, idx) {
|
|
|
68
65
|
for (let i = startIndx; i < endIndx; i++) {
|
|
69
66
|
let circle = candidateThreeProngs[i].circle;
|
|
70
67
|
if (forDebugging.bestIndx === i) {
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
drawFs.dot(g, circle.center, 0.2, 'green');
|
|
69
|
+
drawFs.circle(g, circle, 'black thin10 nofill');
|
|
73
70
|
}
|
|
74
71
|
else {
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
drawFs.dot(g, circle.center, 0.2, 'cyan');
|
|
73
|
+
drawFs.circle(g, circle, 'cyan thin5 nofill');
|
|
77
74
|
}
|
|
78
75
|
}
|
|
79
76
|
}
|
|
@@ -115,12 +112,12 @@ function showBoundary(g, n, idx) {
|
|
|
115
112
|
let pS = posS.p;
|
|
116
113
|
let pE = posE.p;
|
|
117
114
|
let r = 1 + (i * 0.5);
|
|
118
|
-
if (
|
|
119
|
-
|
|
115
|
+
if (equal(pS, pE)) {
|
|
116
|
+
drawFs.crossHair(g, pS, 'red thin10 nofill', r);
|
|
120
117
|
}
|
|
121
118
|
else {
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
drawFs.crossHair(g, pS, 'green thin10 nofill', r);
|
|
120
|
+
drawFs.crossHair(g, pE, 'blue thin10 nofill', r);
|
|
124
121
|
}
|
|
125
122
|
}
|
|
126
123
|
j++;
|
|
@@ -141,7 +138,7 @@ function logδs(n) {
|
|
|
141
138
|
function logNearest(showSpokes = true, showTrace = true, showBoundaries = true) {
|
|
142
139
|
return function (g, p, showDelay = 1000) {
|
|
143
140
|
let generated = _debug_.generated;
|
|
144
|
-
let threeProng =
|
|
141
|
+
let threeProng = getObjClosestTo(p, generated.elems.threeProng, threeProng => threeProng.circle ? threeProng.circle.center : [0, 0]);
|
|
145
142
|
let circle = threeProng.circle;
|
|
146
143
|
//let g = threeProng.generated.g;
|
|
147
144
|
console.log(threeProng);
|
|
@@ -150,28 +147,28 @@ function logNearest(showSpokes = true, showTrace = true, showBoundaries = true)
|
|
|
150
147
|
radius: circle.radius || 1
|
|
151
148
|
};
|
|
152
149
|
//let draw = _debug_.fs.draw;
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
drawFs.circle(g, circle2, 'blue thin10 nofill', showDelay);
|
|
151
|
+
drawFs.crossHair(g, circle.center, 'red thin2 nofill', 2, showDelay);
|
|
155
152
|
if (showSpokes) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
drawFs.line(g, [threeProng.poss[0].p, circle.center], 'blue thin5 nofill', showDelay);
|
|
154
|
+
drawFs.line(g, [threeProng.poss[1].p, circle.center], 'blue thin5 nofill', showDelay);
|
|
155
|
+
drawFs.line(g, [threeProng.poss[2].p, circle.center], 'blue thin5 nofill', showDelay);
|
|
159
156
|
}
|
|
160
157
|
if (showBoundaries) {
|
|
161
158
|
let boundaries = threeProng.boundaries;
|
|
162
159
|
let boundaryS = boundaries[0];
|
|
163
160
|
let boundaryE = boundaries[boundaries.length - 1];
|
|
164
|
-
|
|
161
|
+
drawFs.beziers(g, boundaryS, 'red thin20 nofill', showDelay);
|
|
165
162
|
for (let i = 1; i < boundaries.length - 1; i++) {
|
|
166
163
|
let boundary = boundaries[i];
|
|
167
|
-
|
|
164
|
+
drawFs.beziers(g, boundary, 'green thin20 nofill', showDelay);
|
|
168
165
|
}
|
|
169
|
-
|
|
166
|
+
drawFs.beziers(g, boundaryE, 'blue thin20 nofill', showDelay);
|
|
170
167
|
}
|
|
171
168
|
if (showTrace) {
|
|
172
169
|
let traces = threeProng.traces;
|
|
173
170
|
for (let trace of traces) {
|
|
174
|
-
|
|
171
|
+
drawFs.polyline(g, trace, 'red thin5 nofill', showDelay);
|
|
175
172
|
}
|
|
176
173
|
}
|
|
177
174
|
};
|
|
@@ -184,5 +181,5 @@ let threeProngDebugFunctions = {
|
|
|
184
181
|
logδs,
|
|
185
182
|
logNearest
|
|
186
183
|
};
|
|
187
|
-
|
|
184
|
+
export { threeProngDebugFunctions };
|
|
188
185
|
//# sourceMappingURL=three-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"three-prong.js","sourceRoot":"","sources":["../../../src/debug/functions/three-prong.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"three-prong.js","sourceRoot":"","sources":["../../../src/debug/functions/three-prong.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAmBtD;;;;GAIG;AACH,SAAS,UAAU,CAAC,CAAc,EAAE,CAAS;IAC5C,IAAI,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACvD,iCAAiC;IACjC,IAAI,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAE3B,wDAAwD;IACxD,wDAAwD;IACxD,wDAAwD;IAExD,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC;AAC9C,CAAC;AAGD;;;;;;GAMG;AACH,SAAS,gBAAgB,CAAC,CAAc,EAAE,EAAU,EAAE,GAAW;IAChE,IAAI,KAAK,CAAC;IACV,IAAI,KAAK,CAAC;IACV,IAAI,EAAE,KAAK,SAAS,EAAE;QACrB,KAAK,GAAG,CAAC,CAAC;QACV,K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-
|
|
2
|
-
|
|
3
|
-
exports.twoProngDebugFunctions = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
5
|
-
const flo_vector2d_1 = require("flo-vector2d");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getObjClosestTo, distanceBetween, squaredDistanceBetween } from 'flo-vector2d';
|
|
6
3
|
/**
|
|
7
4
|
* @hidden
|
|
8
5
|
*/
|
|
@@ -33,7 +30,7 @@ function drawNormal(g, n, showDelay = 1000, type = 'twoProng_regular') {
|
|
|
33
30
|
if (!twoProng) {
|
|
34
31
|
return;
|
|
35
32
|
}
|
|
36
|
-
|
|
33
|
+
drawFs.line(g, [twoProng.pos.p, twoProng.circle.center], 'thin10 blue', showDelay);
|
|
37
34
|
}
|
|
38
35
|
/**
|
|
39
36
|
* @hidden
|
|
@@ -56,7 +53,7 @@ function logδBasic(n, type = 'twoProng_regular') {
|
|
|
56
53
|
function logNearest(g, p, showDelay = 1000, type = 'twoProng_regular') {
|
|
57
54
|
let closestPerLoops = [];
|
|
58
55
|
let generated = _debug_.generated;
|
|
59
|
-
let twoProng =
|
|
56
|
+
let twoProng = getObjClosestTo(p, generated.elems[type], twoProng => twoProng.circle.center);
|
|
60
57
|
closestPerLoops.push(twoProng);
|
|
61
58
|
console.log(twoProng);
|
|
62
59
|
let n;
|
|
@@ -88,7 +85,7 @@ function traceConvergence(g, n, finalOnly, showDelay = 1000, range = undefined,
|
|
|
88
85
|
x: x.x,
|
|
89
86
|
y: x.y,
|
|
90
87
|
z: x.z,
|
|
91
|
-
d: x.z ?
|
|
88
|
+
d: x.z ? squaredDistanceBetween(x.y.p, x.z.p) : 0,
|
|
92
89
|
t: x.t,
|
|
93
90
|
})));
|
|
94
91
|
for (let i = 0; i < xs.length; i++) {
|
|
@@ -99,11 +96,11 @@ function traceConvergence(g, n, finalOnly, showDelay = 1000, range = undefined,
|
|
|
99
96
|
continue;
|
|
100
97
|
}
|
|
101
98
|
let x = twoProngInfo.xs[i];
|
|
102
|
-
let circle = { center: x.x, radius:
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
let circle = { center: x.x, radius: distanceBetween(x.x, x.y.p) };
|
|
100
|
+
drawFs.crossHair(g, x.x, 'red thin10 nofill', undefined, showDelay);
|
|
101
|
+
drawFs.circle(g, circle, 'blue thin10 nofill', showDelay);
|
|
105
102
|
if (x.z !== undefined) {
|
|
106
|
-
|
|
103
|
+
drawFs.crossHair(g, x.z.p, 'yellow thin10 nofill', 2, showDelay);
|
|
107
104
|
}
|
|
108
105
|
}
|
|
109
106
|
twoProngDebugFunctions.drawNormal(g, n, showDelay);
|
|
@@ -117,5 +114,5 @@ let twoProngDebugFunctions = {
|
|
|
117
114
|
traceConvergence,
|
|
118
115
|
logNearest,
|
|
119
116
|
};
|
|
120
|
-
|
|
117
|
+
export { twoProngDebugFunctions };
|
|
121
118
|
//# sourceMappingURL=two-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-prong.js","sourceRoot":"","sources":["../../../src/debug/functions/two-prong.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"two-prong.js","sourceRoot":"","sources":["../../../src/debug/functions/two-prong.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAoBxF;;GAEG;AACH,SAAS,IAAI,CAAC,CAAS,EAAE,OAA0B,kBAAkB;IACpE,IAAI,CAAC,GAAE,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAChB,CAAC;AAGD;;GAEG;AACH,SAAS,GAAG,CAAC,CAAS,EAAE,OAA0B,kBAAkB;IACnE,IAAI,QAAQ,GAAG,OAAO,CAAC,SAAS,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E,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC;QAC1D,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;YACtB,MAAM,CAAC,SAAS,CACf,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,sBAAsB,EAAE,CAAC,EAAE,SAAS,CAC9C,CAAC;SACF;KACD;IAED,sBAAsB,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AACpD,CAAC;AAGD,cAAc;AACd,IAAI,sBAAsB,GAA4B;IACrD,IAAI;IACJ,GAAG;IACH,UAAU;IACV,SAAS;IACT,gBAAgB;IAChB,UAAU;CACV,CAAA;AAGD,OAAO,EAA2B,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CpNode } from '../cp-node';
|
|
2
|
-
import { IPointOnShape } from '../point-on-shape';
|
|
3
|
-
import { Circle } from '../circle';
|
|
4
|
-
import { Generated } from './debug';
|
|
1
|
+
import { CpNode } from '../cp-node.js';
|
|
2
|
+
import { IPointOnShape } from '../point-on-shape.js';
|
|
3
|
+
import { Circle } from '../circle.js';
|
|
4
|
+
import { Generated } from './debug.js';
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
* Used for debugging only. A three-prong is a maximally inscribed circle that
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createEmptyThreeProngForDebugging = void 0;
|
|
4
|
-
const point_on_shape_1 = require("../point-on-shape");
|
|
1
|
+
import { posToHumanString } from '../point-on-shape.js';
|
|
5
2
|
function createEmptyThreeProngForDebugging() {
|
|
6
3
|
return {
|
|
7
4
|
generated: undefined,
|
|
@@ -16,9 +13,9 @@ function createEmptyThreeProngForDebugging() {
|
|
|
16
13
|
traces: undefined,
|
|
17
14
|
};
|
|
18
15
|
}
|
|
19
|
-
exports.createEmptyThreeProngForDebugging = createEmptyThreeProngForDebugging;
|
|
20
16
|
function cpsSimple(threeProngForDebugging) {
|
|
21
|
-
return threeProngForDebugging.cpss.map(δ => [
|
|
22
|
-
|
|
17
|
+
return threeProngForDebugging.cpss.map(δ => [posToHumanString(δ[0].cp.pointOnShape),
|
|
18
|
+
posToHumanString(δ[1].cp.pointOnShape)]);
|
|
23
19
|
}
|
|
20
|
+
export { createEmptyThreeProngForDebugging };
|
|
24
21
|
//# sourceMappingURL=three-prong-for-debugging.js.map
|