flo-mat 2.0.4 → 3.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/.quokka +4 -0
- package/browser/index.js +18434 -14538
- package/browser/index.min.js +1 -1
- package/node/closest-boundary-point/cull-bezier-pieces.d.ts +9 -0
- package/node/closest-boundary-point/cull-bezier-pieces.js +17 -0
- package/node/closest-boundary-point/cull-bezier-pieces.js.map +1 -0
- package/node/{mat/closest-boundary-point → closest-boundary-point}/cull-by-loose-bounding-box.d.ts +2 -2
- package/node/{mat/closest-boundary-point → closest-boundary-point}/cull-by-loose-bounding-box.js +2 -2
- package/node/closest-boundary-point/cull-by-loose-bounding-box.js.map +1 -0
- package/node/{mat/closest-boundary-point → closest-boundary-point}/cull-by-tight-boundary-box.d.ts +2 -2
- package/node/{mat/closest-boundary-point → closest-boundary-point}/cull-by-tight-boundary-box.js +1 -1
- package/node/closest-boundary-point/cull-by-tight-boundary-box.js.map +1 -0
- package/node/closest-boundary-point/dd-deflate-with-running-error.d.ts +25 -0
- package/node/closest-boundary-point/dd-deflate-with-running-error.js +68 -0
- package/node/closest-boundary-point/dd-deflate-with-running-error.js.map +1 -0
- package/node/closest-boundary-point/foot-and-endpoint-info.d.ts +10 -0
- package/node/closest-boundary-point/foot-and-endpoint-info.js +2 -0
- package/node/closest-boundary-point/foot-and-endpoint-info.js.map +1 -0
- package/node/{mat/closest-boundary-point → closest-boundary-point}/get-best-distance-squared.d.ts +2 -2
- package/node/{mat/closest-boundary-point → closest-boundary-point}/get-best-distance-squared.js +2 -3
- package/node/closest-boundary-point/get-best-distance-squared.js.map +1 -0
- package/node/closest-boundary-point/get-close-boundary-points-certified.d.ts +15 -0
- package/node/closest-boundary-point/get-close-boundary-points-certified.js +40 -0
- package/node/closest-boundary-point/get-close-boundary-points-certified.js.map +1 -0
- package/node/closest-boundary-point/get-closest-boundary-point-certified.d.ts +15 -0
- package/node/closest-boundary-point/get-closest-boundary-point-certified.js +42 -0
- package/node/closest-boundary-point/get-closest-boundary-point-certified.js.map +1 -0
- package/node/closest-boundary-point/get-p-from-box.d.ts +3 -0
- package/node/closest-boundary-point/get-p-from-box.js +11 -0
- package/node/closest-boundary-point/get-p-from-box.js.map +1 -0
- package/node/closest-boundary-point/get-potential-closest-points-on-curve-certified.d.ts +12 -0
- package/node/closest-boundary-point/get-potential-closest-points-on-curve-certified.js +93 -0
- package/node/closest-boundary-point/get-potential-closest-points-on-curve-certified.js.map +1 -0
- package/node/closest-boundary-point/root-interval-to-distance-squared-interval.d.ts +13 -0
- package/node/closest-boundary-point/root-interval-to-distance-squared-interval.js +58 -0
- package/node/closest-boundary-point/root-interval-to-distance-squared-interval.js.map +1 -0
- package/node/{contact-point.d.ts → contact-point/contact-point.d.ts} +3 -3
- package/node/{contact-point.js → contact-point/contact-point.js} +1 -5
- package/node/contact-point/contact-point.js.map +1 -0
- package/node/{compare-curvatures-at-interface.js → corner/compare-curvatures-at-interface.js} +2 -2
- package/node/corner/compare-curvatures-at-interface.js.map +1 -0
- package/node/{mat → corner}/corner.d.ts +1 -1
- package/node/{mat → corner}/corner.js.map +1 -1
- package/node/corner/get-corner.d.ts +15 -0
- package/node/{curve.js → corner/get-corner.js} +6 -17
- package/node/corner/get-corner.js.map +1 -0
- package/node/{get-interface-ccw.js → corner/get-interface-ccw.js} +18 -33
- package/node/corner/get-interface-ccw.js.map +1 -0
- package/node/cp-node/clone.d.ts +1 -1
- package/node/cp-node/clone.js +6 -4
- package/node/cp-node/clone.js.map +1 -1
- package/node/cp-node/cp-node.d.ts +196 -0
- package/node/cp-node/cp-node.js +249 -0
- package/node/cp-node/cp-node.js.map +1 -0
- package/node/cp-node/create-cp-node.d.ts +4 -0
- package/node/cp-node/create-cp-node.js +8 -0
- package/node/cp-node/create-cp-node.js.map +1 -0
- package/node/cp-node/enhance-cp-node.d.ts +24 -0
- package/node/cp-node/enhance-cp-node.js +20 -0
- package/node/cp-node/enhance-cp-node.js.map +1 -0
- package/node/{get-boundary-bezier-parts-to-next.js → cp-node/get-boundary-bezier-parts-to-next.js} +1 -1
- package/node/cp-node/get-boundary-bezier-parts-to-next.js.map +1 -0
- package/node/{get-boundary-beziers-to-next.d.ts → cp-node/get-boundary-beziers-to-next.d.ts} +1 -1
- package/node/{get-boundary-beziers-to-next.js → cp-node/get-boundary-beziers-to-next.js} +1 -1
- package/node/cp-node/get-boundary-beziers-to-next.js.map +1 -0
- package/node/cp-node/get-cp-node-ordering.d.ts +8 -0
- package/node/cp-node/get-cp-node-ordering.js +12 -0
- package/node/cp-node/get-cp-node-ordering.js.map +1 -0
- package/node/{get-curve-to-next.js → cp-node/get-curve-to-next.js} +1 -1
- package/node/cp-node/get-curve-to-next.js.map +1 -0
- package/node/cp-node/remove.d.ts +1 -1
- package/node/cp-node/traverse-cp.d.ts +12 -0
- package/node/cp-node/traverse-cp.js +26 -0
- package/node/cp-node/traverse-cp.js.map +1 -0
- package/node/{traverse-edges.js → cp-node/traverse-edges.js} +4 -3
- package/node/cp-node/traverse-edges.js.map +1 -0
- package/node/{traverse-vertices.js → cp-node/traverse-vertices.js} +4 -3
- package/node/cp-node/traverse-vertices.js.map +1 -0
- package/node/{curve.d.ts → curve/curve.d.ts} +4 -17
- package/node/curve/curve.js +14 -0
- package/node/curve/curve.js.map +1 -0
- package/node/debug/cp-node-for-debugging.d.ts +2 -2
- package/node/debug/debug-elem-types.d.ts +8 -8
- package/node/debug/debug.d.ts +6 -6
- package/node/debug/debug.js +2 -2
- package/node/debug/debug.js.map +1 -1
- package/node/debug/functions/draw-elem/bounding-hull.d.ts +2 -2
- package/node/debug/functions/draw-elem/bounding-hull.js +3 -3
- package/node/debug/functions/draw-elem/bounding-hull.js.map +1 -1
- package/node/debug/functions/draw-elem/branch.d.ts +2 -2
- package/node/debug/functions/draw-elem/branch.js +4 -3
- package/node/debug/functions/draw-elem/branch.js.map +1 -1
- package/node/debug/functions/draw-elem/culls.d.ts +2 -2
- package/node/debug/functions/draw-elem/culls.js +2 -2
- package/node/debug/functions/draw-elem/culls.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-circle-percent.d.ts +1 -1
- package/node/debug/functions/draw-elem/draw-circle-percent.js +1 -1
- package/node/debug/functions/draw-elem/draw-circle-percent.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-elem.d.ts +3 -3
- package/node/debug/functions/draw-elem/draw-elem.js +3 -3
- package/node/debug/functions/draw-elem/draw-elem.js.map +1 -1
- package/node/debug/functions/draw-elem/dull-corner.d.ts +3 -3
- package/node/debug/functions/draw-elem/dull-corner.js +3 -4
- package/node/debug/functions/draw-elem/dull-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/leaves.d.ts +2 -2
- package/node/debug/functions/draw-elem/leaves.js +1 -1
- package/node/debug/functions/draw-elem/leaves.js.map +1 -1
- package/node/debug/functions/draw-elem/loop.d.ts +2 -2
- package/node/debug/functions/draw-elem/loop.js +1 -2
- 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 +0 -1
- package/node/debug/functions/draw-elem/loops.js.map +1 -1
- package/node/debug/functions/draw-elem/loose-bounding-box.d.ts +2 -2
- package/node/debug/functions/draw-elem/loose-bounding-box.js +3 -3
- package/node/debug/functions/draw-elem/loose-bounding-box.js.map +1 -1
- package/node/debug/functions/draw-elem/mat.d.ts +3 -3
- package/node/debug/functions/draw-elem/mat.js +9 -7
- package/node/debug/functions/draw-elem/mat.js.map +1 -1
- package/node/debug/functions/draw-elem/max-vertex.d.ts +2 -2
- package/node/debug/functions/draw-elem/max-vertex.js +1 -1
- package/node/debug/functions/draw-elem/max-vertex.js.map +1 -1
- package/node/debug/functions/draw-elem/min-y.d.ts +3 -3
- package/node/debug/functions/draw-elem/min-y.js +2 -6
- 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 +2 -2
- package/node/debug/functions/draw-elem/one-prong-at-dull-corner.js +2 -2
- 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 +2 -2
- package/node/debug/functions/draw-elem/one-prong.js +6 -11
- package/node/debug/functions/draw-elem/one-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/sharp-corner.d.ts +3 -3
- package/node/debug/functions/draw-elem/sharp-corner.js +3 -4
- package/node/debug/functions/draw-elem/sharp-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/three-prong.d.ts +2 -2
- package/node/debug/functions/draw-elem/three-prong.js +8 -10
- package/node/debug/functions/draw-elem/three-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/tight-bounding-box.d.ts +2 -2
- package/node/debug/functions/draw-elem/tight-bounding-box.js +3 -3
- package/node/debug/functions/draw-elem/tight-bounding-box.js.map +1 -1
- package/node/debug/functions/draw-elem/two-prong.d.ts +2 -2
- package/node/debug/functions/draw-elem/two-prong.js +7 -8
- package/node/debug/functions/draw-elem/two-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/vertex.d.ts +4 -3
- package/node/debug/functions/draw-elem/vertex.js +11 -9
- package/node/debug/functions/draw-elem/vertex.js.map +1 -1
- package/node/debug/functions/general.d.ts +8 -8
- package/node/debug/functions/general.js +8 -8
- package/node/debug/functions/general.js.map +1 -1
- package/node/debug/functions/three-prong.d.ts +2 -2
- package/node/debug/functions/three-prong.js +10 -13
- package/node/debug/functions/three-prong.js.map +1 -1
- package/node/debug/functions/two-prong.d.ts +16 -5
- package/node/debug/functions/two-prong.js +56 -58
- package/node/debug/functions/two-prong.js.map +1 -1
- package/node/debug/three-prong-for-debugging.d.ts +6 -6
- package/node/debug/three-prong-for-debugging.js +1 -1
- package/node/debug/three-prong-for-debugging.js.map +1 -1
- package/node/debug/two-prong-for-debugging.d.ts +7 -7
- package/node/error-analysis/gamma.d.ts +26 -0
- package/node/error-analysis/gamma.js +35 -0
- package/node/error-analysis/gamma.js.map +1 -0
- package/node/find-2-prong/add-1-prong.d.ts +12 -0
- package/node/{mat/find-mat → find-2-prong}/add-1-prong.js +11 -11
- package/node/find-2-prong/add-1-prong.js.map +1 -0
- package/node/{mat/find-mat → find-2-prong}/add-2-prong.d.ts +6 -9
- package/node/{mat/find-mat → find-2-prong}/add-2-prong.js +26 -74
- package/node/find-2-prong/add-2-prong.js.map +1 -0
- package/node/find-2-prong/add-debug-info.d.ts +8 -0
- package/node/{mat/find-mat/find-2-prong → find-2-prong}/add-debug-info.js +5 -4
- package/node/find-2-prong/add-debug-info.js.map +1 -0
- package/node/find-2-prong/cull-bezier-pieces.d.ts +11 -0
- package/node/find-2-prong/cull-bezier-pieces.js +28 -0
- package/node/find-2-prong/cull-bezier-pieces.js.map +1 -0
- package/node/{mat/find-mat/find-2-prong → find-2-prong}/find-2-prong.d.ts +9 -13
- package/node/find-2-prong/find-2-prong.js +144 -0
- package/node/find-2-prong/find-2-prong.js.map +1 -0
- package/node/find-2-prong/find-and-add-2-prongs-on-all-paths.d.ts +15 -0
- package/node/{mat/find-mat → find-2-prong}/find-and-add-2-prongs-on-all-paths.js +5 -4
- package/node/find-2-prong/find-and-add-2-prongs-on-all-paths.js.map +1 -0
- package/node/{mat/find-mat → find-2-prong}/find-and-add-2-prongs.d.ts +5 -5
- package/node/find-2-prong/find-and-add-2-prongs.js +60 -0
- package/node/find-2-prong/find-and-add-2-prongs.js.map +1 -0
- package/node/{mat/find-mat → find-2-prong}/find-and-add-hole-closing-2-prongs.d.ts +3 -3
- package/node/{mat/find-mat → find-2-prong}/find-and-add-hole-closing-2-prongs.js +5 -5
- package/node/find-2-prong/find-and-add-hole-closing-2-prongs.js.map +1 -0
- package/node/find-2-prong/find-equidistant-point-on-line-dd.d.ts +10 -0
- package/node/find-2-prong/find-equidistant-point-on-line-dd.js +56 -0
- package/node/find-2-prong/find-equidistant-point-on-line-dd.js.map +1 -0
- package/node/find-2-prong/get-initial-bezier-pieces.d.ts +15 -0
- package/node/find-2-prong/get-initial-bezier-pieces.js +40 -0
- package/node/find-2-prong/get-initial-bezier-pieces.js.map +1 -0
- package/node/find-2-prong/reduce-radius.d.ts +8 -0
- package/node/find-2-prong/reduce-radius.js +72 -0
- package/node/find-2-prong/reduce-radius.js.map +1 -0
- package/node/find-2-prong/squared-distance-between-dd.d.ts +2 -0
- package/node/find-2-prong/squared-distance-between-dd.js +17 -0
- package/node/find-2-prong/squared-distance-between-dd.js.map +1 -0
- package/node/find-2-prong/x-for-debugging.d.ts +9 -0
- package/node/find-2-prong/x-for-debugging.js.map +1 -0
- package/node/{mat/find-mat → find-3-prong.ts}/add-3-prong.d.ts +12 -7
- package/node/find-3-prong.ts/add-3-prong.js +82 -0
- package/node/find-3-prong.ts/add-3-prong.js.map +1 -0
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/calc-better-x.d.ts +4 -4
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/calc-better-x.js +1 -1
- package/node/find-3-prong.ts/calc-better-x.js.map +1 -0
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/calc-initial-3-prong-center.d.ts +3 -3
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/calc-initial-3-prong-center.js +5 -7
- package/node/find-3-prong.ts/calc-initial-3-prong-center.js.map +1 -0
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/find-3-prong-for-delta3s.d.ts +6 -6
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/find-3-prong-for-delta3s.js +11 -12
- package/node/find-3-prong.ts/find-3-prong-for-delta3s.js.map +1 -0
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/find-3-prong.d.ts +5 -5
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/find-3-prong.js +52 -39
- package/node/find-3-prong.ts/find-3-prong.js.map +1 -0
- package/node/find-3-prong.ts/find-and-add-3-prongs.d.ts +5 -0
- package/node/find-3-prong.ts/find-and-add-3-prongs.js +74 -0
- package/node/find-3-prong.ts/find-and-add-3-prongs.js.map +1 -0
- package/node/{mat/find-mat/find-and-add-3-prongs.d.ts → find-3-prong.ts/find-and-add-all-3-prongs.d.ts} +3 -3
- package/node/find-3-prong.ts/find-and-add-all-3-prongs.js +66 -0
- package/node/find-3-prong.ts/find-and-add-all-3-prongs.js.map +1 -0
- package/node/{mat/find-mat/find-3-prong → find-3-prong.ts}/get-closest-points.d.ts +3 -3
- package/node/find-3-prong.ts/get-closest-points.js +14 -0
- package/node/find-3-prong.ts/get-closest-points.js.map +1 -0
- package/node/{mat/find-mat → find-mat}/add-debug-info.d.ts +4 -4
- package/node/{mat/find-mat → find-mat}/add-debug-info.js +6 -6
- package/node/find-mat/add-debug-info.js.map +1 -0
- package/node/{mat/find-mat → find-mat}/create-initial-cp-graph.d.ts +5 -5
- package/node/{mat/find-mat → find-mat}/create-initial-cp-graph.js +5 -6
- package/node/find-mat/create-initial-cp-graph.js.map +1 -0
- package/node/find-mat/find-mat.d.ts +10 -0
- package/node/find-mat/find-mat.js +57 -0
- package/node/find-mat/find-mat.js.map +1 -0
- package/node/{find-mats.d.ts → find-mat/find-mats.d.ts} +1 -1
- package/node/find-mat/find-mats.js +58 -0
- package/node/find-mat/find-mats.js.map +1 -0
- package/node/find-mat/fix-ordering.d.ts +8 -0
- package/node/find-mat/fix-ordering.js +59 -0
- package/node/find-mat/fix-ordering.js.map +1 -0
- package/node/find-mat/get-dull-corners.d.ts +5 -0
- package/node/find-mat/get-dull-corners.js +22 -0
- package/node/find-mat/get-dull-corners.js.map +1 -0
- package/node/find-mat/get-for-1-prongs-on-loop.d.ts +11 -0
- package/node/find-mat/get-for-1-prongs-on-loop.js +28 -0
- package/node/find-mat/get-for-1-prongs-on-loop.js.map +1 -0
- package/node/find-mat/get-for-2-prongs-on-loop.d.ts +11 -0
- package/node/find-mat/get-for-2-prongs-on-loop.js +30 -0
- package/node/find-mat/get-for-2-prongs-on-loop.js.map +1 -0
- package/node/find-mat/get-sharp-corners.d.ts +5 -0
- package/node/find-mat/get-sharp-corners.js +21 -0
- package/node/find-mat/get-sharp-corners.js.map +1 -0
- package/node/find-mat/get-size-params.d.ts +7 -0
- package/node/find-mat/get-size-params.js +33 -0
- package/node/find-mat/get-size-params.js.map +1 -0
- package/node/geometry/circle.js.map +1 -0
- package/node/geometry/get-bounding-box-.js.map +1 -0
- package/node/{mat/geometry → geometry}/get-closest-square-distance-to-rect.d.ts +1 -1
- package/node/{mat/geometry → geometry}/get-closest-square-distance-to-rect.js +1 -1
- package/node/geometry/get-closest-square-distance-to-rect.js.map +1 -0
- package/node/{mat/geometry → geometry}/get-closest-squared-distance-to-rotated-rect.d.ts +1 -1
- package/node/{mat/geometry → geometry}/get-closest-squared-distance-to-rotated-rect.js +1 -1
- package/node/geometry/get-closest-squared-distance-to-rotated-rect.js.map +1 -0
- package/node/get-curve/get-curve-between.d.ts +1 -1
- package/node/get-curve/get-curve-between.js +2 -2
- package/node/get-curve/get-curve-between.js.map +1 -1
- package/node/get-curve/get-edge-direction.d.ts +2 -2
- package/node/get-curve/get-edge-direction.js +2 -4
- package/node/get-curve/get-edge-direction.js.map +1 -1
- package/node/index.d.ts +24 -20
- package/node/index.js +21 -16
- package/node/index.js.map +1 -1
- package/node/loop/get-max-coordinate.d.ts +1 -1
- package/node/loop/get-max-coordinate.js +1 -1
- package/node/mat/add-to-cp-graph.d.ts +8 -7
- package/node/mat/add-to-cp-graph.js +6 -4
- package/node/mat/add-to-cp-graph.js.map +1 -1
- package/node/mat/bezier-piece.d.ts +2 -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.d.ts +1 -1
- package/node/mat/get-boundary-piece-beziers.d.ts +2 -2
- package/node/mat/get-boundary-piece-beziers.js +4 -4
- package/node/mat/get-boundary-piece-beziers.js.map +1 -1
- package/node/{get-branches.d.ts → mat/get-branches.d.ts} +1 -1
- package/node/{get-branches.js → mat/get-branches.js} +7 -6
- package/node/mat/get-branches.js.map +1 -0
- package/node/mat/get-largest-vertex.d.ts +2 -2
- package/node/mat/get-largest-vertex.js +1 -1
- package/node/mat/get-largest-vertex.js.map +1 -1
- package/node/mat/get-neighboring-cps.d.ts +6 -4
- package/node/mat/get-neighboring-cps.js +5 -3
- package/node/mat/get-neighboring-cps.js.map +1 -1
- package/node/mat/get-two-prong-type.d.ts +1 -1
- package/node/mat/get-two-prong-type.js +1 -1
- package/node/mat/get-two-prong-type.js.map +1 -1
- package/node/mat/is-another-cp-closeby.d.ts +9 -8
- package/node/mat/is-another-cp-closeby.js +21 -29
- package/node/mat/is-another-cp-closeby.js.map +1 -1
- package/node/{mat.d.ts → mat/mat.d.ts} +2 -2
- package/node/mat/mat.js.map +1 -0
- package/node/mat/simplify-mat-map-only.d.ts +1 -1
- package/node/mat/simplify-mat-map-only.js +4 -3
- package/node/mat/simplify-mat-map-only.js.map +1 -1
- package/node/{simplify-mat.d.ts → mat/simplify-mat.d.ts} +3 -5
- package/node/{simplify-mat.js → mat/simplify-mat.js} +11 -13
- package/node/mat/simplify-mat.js.map +1 -0
- package/node/mat/trim-mat.d.ts +1 -1
- package/node/mat/trim-mat.js +1 -1
- package/node/mat/trim-mat.js.map +1 -1
- package/node/point-on-shape/calc-pos-order.d.ts +13 -0
- package/node/point-on-shape/calc-pos-order.js +27 -0
- package/node/point-on-shape/calc-pos-order.js.map +1 -0
- package/node/point-on-shape/compare-poss.d.ts +10 -0
- package/node/point-on-shape/compare-poss.js +18 -0
- package/node/point-on-shape/compare-poss.js.map +1 -0
- package/node/point-on-shape/create-pos.d.ts +4 -0
- package/node/point-on-shape/create-pos.js +12 -0
- package/node/point-on-shape/create-pos.js.map +1 -0
- package/node/point-on-shape/get-osculating-circle.d.ts +10 -0
- package/node/point-on-shape/get-osculating-circle.js +25 -0
- package/node/point-on-shape/get-osculating-circle.js.map +1 -0
- package/node/point-on-shape/get-pos-corner.d.ts +7 -0
- package/node/point-on-shape/get-pos-corner.js +9 -0
- package/node/point-on-shape/get-pos-corner.js.map +1 -0
- package/node/point-on-shape/is-pos-corner.d.ts +6 -0
- package/node/point-on-shape/is-pos-corner.js +8 -0
- package/node/point-on-shape/is-pos-corner.js.map +1 -0
- package/node/point-on-shape/is-pos-dull-corner.d.ts +6 -0
- package/node/point-on-shape/is-pos-dull-corner.js +14 -0
- package/node/point-on-shape/is-pos-dull-corner.js.map +1 -0
- package/node/point-on-shape/is-pos-quite-sharp-corner.d.ts +6 -0
- package/node/point-on-shape/is-pos-quite-sharp-corner.js +14 -0
- package/node/point-on-shape/is-pos-quite-sharp-corner.js.map +1 -0
- package/node/point-on-shape/is-pos-sharp-corner.d.ts +6 -0
- package/node/point-on-shape/is-pos-sharp-corner.js +14 -0
- package/node/point-on-shape/is-pos-sharp-corner.js.map +1 -0
- package/node/point-on-shape/point-on-shape.d.ts +11 -0
- package/node/point-on-shape/point-on-shape.js +2 -0
- package/node/point-on-shape/point-on-shape.js.map +1 -0
- package/node/point-on-shape/pos-to-human-string.d.ts +8 -0
- package/node/point-on-shape/pos-to-human-string.js +12 -0
- package/node/point-on-shape/pos-to-human-string.js.map +1 -0
- package/node/{mat/to-scale-axis → sat}/add-debug-info.d.ts +2 -2
- package/node/{mat/to-scale-axis → sat}/add-debug-info.js +1 -1
- package/node/sat/add-debug-info.js.map +1 -0
- package/node/{mat/to-scale-axis → sat}/cull-non-cycles.d.ts +3 -3
- package/node/{mat/to-scale-axis → sat}/cull-non-cycles.js +6 -6
- package/node/sat/cull-non-cycles.js.map +1 -0
- package/node/{mat/to-scale-axis → sat}/cull.d.ts +3 -3
- package/node/{mat/to-scale-axis → sat}/cull.js +4 -4
- package/node/sat/cull.js.map +1 -0
- package/node/{mat → sat}/get-leaves.d.ts +2 -2
- package/node/sat/get-leaves.js +14 -0
- package/node/sat/get-leaves.js.map +1 -0
- package/node/{to-scale-axis.d.ts → sat/to-scale-axis.d.ts} +2 -2
- package/node/{to-scale-axis.js → sat/to-scale-axis.js} +11 -10
- package/node/sat/to-scale-axis.js.map +1 -0
- package/node/svg/get-loop-bounds.d.ts +7 -7
- package/node/svg/get-loop-bounds.js +11 -7
- package/node/svg/get-loop-bounds.js.map +1 -1
- package/node/svg/get-min-y-pos.d.ts +4 -4
- package/node/svg/get-min-y-pos.js +1 -1
- package/node/svg/get-shape-bounds.d.ts +6 -5
- package/node/svg/get-shape-bounds.js +6 -2
- package/node/svg/get-shape-bounds.js.map +1 -1
- package/node/sweep-line/sweep-line.d.ts +1 -1
- package/node/sweep-line/sweep-line.js +4 -4
- package/node/sweep-line/sweep-line.js.map +1 -1
- package/package.json +10 -10
- package/src/closest-boundary-point/closest-points-on-curve-precise.ts +75 -0
- package/src/closest-boundary-point/closest-points-on-curve.ts +72 -0
- package/src/closest-boundary-point/cull-bezier-pieces.ts +35 -0
- package/src/{mat/closest-boundary-point → closest-boundary-point}/cull-by-loose-bounding-box.ts +4 -3
- package/src/{mat/closest-boundary-point → closest-boundary-point}/cull-by-tight-boundary-box.ts +2 -2
- package/src/closest-boundary-point/dd-deflate-with-running-error.ts +88 -0
- package/src/closest-boundary-point/foot-and-endpoint-info.ts +16 -0
- package/src/{mat/closest-boundary-point → closest-boundary-point}/get-best-distance-squared.ts +3 -4
- package/src/closest-boundary-point/get-close-boundary-points-certified.ts +69 -0
- package/src/closest-boundary-point/get-closest-boundary-point-certified.ts +70 -0
- package/src/closest-boundary-point/get-p-from-box.ts +14 -0
- package/src/closest-boundary-point/get-potential-closest-points-on-curve-certified.ts +122 -0
- package/src/closest-boundary-point/root-interval-to-distance-squared-interval.ts +75 -0
- package/src/{contact-point.ts → contact-point/contact-point.ts} +4 -6
- package/src/{compare-curvatures-at-interface.ts → corner/compare-curvatures-at-interface.ts} +2 -2
- package/src/{mat → corner}/corner.ts +1 -1
- package/src/{curve.ts → corner/get-corner.ts} +10 -49
- package/src/{get-interface-ccw.ts → corner/get-interface-ccw.ts} +28 -35
- package/src/cp-node/clone.ts +17 -6
- package/src/cp-node/cp-node.ts +422 -0
- package/src/cp-node/create-cp-node.ts +21 -0
- package/src/cp-node/enhance-cp-node.ts +27 -0
- package/src/{get-boundary-bezier-parts-to-next.ts → cp-node/get-boundary-bezier-parts-to-next.ts} +3 -3
- package/src/{get-boundary-beziers-to-next.ts → cp-node/get-boundary-beziers-to-next.ts} +2 -2
- package/src/cp-node/get-cp-node-ordering.ts +17 -0
- package/src/{get-curve-to-next.ts → cp-node/get-curve-to-next.ts} +1 -1
- package/src/cp-node/remove.ts +1 -1
- package/src/cp-node/traverse-cp.ts +35 -0
- package/src/{traverse-edges.ts → cp-node/traverse-edges.ts} +5 -5
- package/src/{traverse-vertices.ts → cp-node/traverse-vertices.ts} +5 -5
- package/src/curve/curve.ts +46 -0
- package/src/debug/cp-node-for-debugging.ts +2 -2
- package/src/debug/debug-elem-types.ts +8 -8
- package/src/debug/debug.ts +11 -11
- package/src/debug/functions/draw-elem/bounding-hull.ts +5 -3
- package/src/debug/functions/draw-elem/branch.ts +4 -4
- package/src/debug/functions/draw-elem/culls.ts +3 -3
- package/src/debug/functions/draw-elem/draw-circle-percent.ts +1 -1
- package/src/debug/functions/draw-elem/draw-elem.ts +10 -6
- package/src/debug/functions/draw-elem/dull-corner.ts +10 -6
- package/src/debug/functions/draw-elem/leaves.ts +2 -2
- package/src/debug/functions/draw-elem/loop.ts +4 -3
- package/src/debug/functions/draw-elem/loops.ts +1 -2
- package/src/debug/functions/draw-elem/loose-bounding-box.ts +8 -3
- package/src/debug/functions/draw-elem/mat.ts +16 -8
- package/src/debug/functions/draw-elem/max-vertex.ts +2 -2
- package/src/debug/functions/draw-elem/min-y.ts +4 -9
- package/src/debug/functions/draw-elem/one-prong-at-dull-corner.ts +10 -2
- package/src/debug/functions/draw-elem/one-prong.ts +12 -15
- package/src/debug/functions/draw-elem/sharp-corner.ts +10 -6
- package/src/debug/functions/draw-elem/three-prong.ts +13 -11
- package/src/debug/functions/draw-elem/tight-bounding-box.ts +9 -3
- package/src/debug/functions/draw-elem/two-prong.ts +12 -8
- package/src/debug/functions/draw-elem/vertex.ts +12 -11
- package/src/debug/functions/general.ts +10 -10
- package/src/debug/functions/three-prong.ts +16 -20
- package/src/debug/functions/two-prong.ts +89 -77
- package/src/debug/three-prong-for-debugging.ts +17 -16
- package/src/debug/two-prong-for-debugging.ts +7 -7
- package/src/error-analysis/gamma.ts +41 -0
- package/src/{mat/find-mat → find-2-prong}/add-1-prong.ts +19 -16
- package/src/{mat/find-mat → find-2-prong}/add-2-prong.ts +45 -91
- package/src/find-2-prong/add-debug-info.ts +49 -0
- package/src/{mat/find-mat/find-2-prong → find-2-prong}/cull-bezier-pieces.ts +9 -11
- package/src/find-2-prong/find-2-prong.ts +191 -0
- package/src/{mat/find-mat → find-2-prong}/find-and-add-2-prongs-on-all-paths.ts +12 -9
- package/src/find-2-prong/find-and-add-2-prongs.ts +88 -0
- package/src/{mat/find-mat → find-2-prong}/find-and-add-hole-closing-2-prongs.ts +7 -7
- package/src/find-2-prong/find-equidistant-point-on-line-dd.ts +77 -0
- package/src/{mat/find-mat/find-2-prong → find-2-prong}/find-equidistant-point-on-line.ts +1 -1
- package/src/find-2-prong/get-initial-bezier-pieces.ts +61 -0
- package/src/find-2-prong/pyth-trips.ts +146 -0
- package/src/find-2-prong/reduce-radius.ts +98 -0
- package/src/find-2-prong/squared-distance-between-dd.ts +25 -0
- package/src/find-2-prong/x-for-debugging.ts +13 -0
- package/src/find-3-prong.ts/add-3-prong.ts +110 -0
- package/src/{mat/find-mat/find-3-prong → find-3-prong.ts}/calc-better-x.ts +5 -5
- package/src/{mat/find-mat/find-3-prong → find-3-prong.ts}/calc-initial-3-prong-center.ts +11 -12
- package/src/{mat/find-mat/find-3-prong → find-3-prong.ts}/find-3-prong-for-delta3s.ts +28 -28
- package/src/find-3-prong.ts/find-3-prong.ts +148 -0
- package/src/find-3-prong.ts/find-and-add-3-prongs.ts +111 -0
- package/src/find-3-prong.ts/find-and-add-all-3-prongs.ts +109 -0
- package/src/find-3-prong.ts/get-closest-points.ts +24 -0
- package/src/{mat/find-mat → find-mat}/add-debug-info.ts +10 -10
- package/src/{mat/find-mat → find-mat}/create-initial-cp-graph.ts +11 -12
- package/src/find-mat/find-mat.ts +89 -0
- package/src/find-mat/find-mats.ts +83 -0
- package/src/find-mat/fix-ordering.ts +69 -0
- package/src/find-mat/get-dull-corners.ts +34 -0
- package/src/find-mat/get-for-1-prongs-on-loop.ts +40 -0
- package/src/find-mat/get-for-2-prongs-on-loop.ts +44 -0
- package/src/find-mat/get-sharp-corners.ts +33 -0
- package/src/find-mat/get-size-params.ts +34 -0
- package/src/{mat/find-mat → find-mat}/get-total-by.ts +4 -4
- package/src/{mat/geometry → geometry}/get-closest-square-distance-to-rect.ts +1 -1
- package/src/{mat/geometry → geometry}/get-closest-squared-distance-to-rotated-rect.ts +2 -2
- package/src/get-curve/get-curve-between.ts +7 -7
- package/src/get-curve/get-edge-direction.ts +11 -11
- package/src/index.ts +64 -21
- package/src/loop/get-max-coordinate.ts +1 -1
- package/src/mat/add-to-cp-graph.ts +15 -12
- package/src/mat/bezier-piece.ts +2 -2
- package/src/mat/cmp-cp-on-delta.ts +6 -3
- package/src/mat/create-new-cp-tree.ts +6 -9
- package/src/mat/elem-type-two-prong.ts +1 -1
- package/src/mat/get-boundary-piece-beziers.ts +7 -7
- package/src/{get-branches.ts → mat/get-branches.ts} +8 -8
- package/src/mat/get-edges-as-array.ts +2 -2
- package/src/mat/get-largest-three-prong.ts +3 -3
- package/src/mat/get-largest-vertex.ts +2 -2
- package/src/mat/get-neighboring-cps.ts +9 -6
- package/src/mat/get-two-prong-type.ts +1 -1
- package/src/mat/is-another-cp-closeby.ts +29 -44
- package/src/{mat.ts → mat/mat.ts} +2 -2
- package/src/mat/simplify-mat-map-only.ts +5 -5
- package/src/{simplify-mat.ts → mat/simplify-mat.ts} +12 -14
- package/src/mat/trim-mat.ts +3 -3
- package/src/point-on-shape/calc-pos-order.ts +35 -0
- package/src/point-on-shape/compare-poss.ts +26 -0
- package/src/point-on-shape/create-pos.ts +21 -0
- package/src/point-on-shape/get-osculating-circle.ts +39 -0
- package/src/point-on-shape/get-pos-corner.ts +16 -0
- package/src/point-on-shape/is-pos-corner.ts +12 -0
- package/src/point-on-shape/is-pos-dull-corner.ts +16 -0
- package/src/point-on-shape/is-pos-quite-dull-corner.ts +17 -0
- package/src/point-on-shape/is-pos-quite-sharp-corner.ts +17 -0
- package/src/point-on-shape/is-pos-sharp-corner.ts +17 -0
- package/src/point-on-shape/point-on-shape.ts +15 -0
- package/src/point-on-shape/pos-to-human-string.ts +16 -0
- package/src/{mat/to-scale-axis → sat}/add-debug-info.ts +3 -3
- package/src/{mat/to-scale-axis → sat}/cull-non-cycles.ts +7 -7
- package/src/{mat/to-scale-axis → sat}/cull.ts +6 -6
- package/src/{mat → sat}/get-leaves.ts +4 -4
- package/src/{mat/to-scale-axis → sat}/t-tree.ts +2 -2
- package/src/{to-scale-axis.ts → sat/to-scale-axis.ts} +16 -16
- package/src/{mat/to-scale-axis → sat}/traverse-spacial-tree.ts +5 -5
- package/src/svg/get-loop-bounds.ts +22 -17
- package/src/svg/get-min-y-pos.ts +3 -3
- package/src/svg/get-shape-bounds.ts +12 -9
- package/src/sweep-line/are-boxes-intersecting.ts +1 -1
- package/src/sweep-line/sweep-line.ts +7 -7
- package/tsconfig.json +3 -7
- package/wallaby.mjs +32 -0
- package/node/circle.js.map +0 -1
- package/node/compare-curvatures-at-interface.js.map +0 -1
- package/node/contact-point.js.map +0 -1
- package/node/cp-node.d.ts +0 -202
- package/node/cp-node.js +0 -321
- package/node/cp-node.js.map +0 -1
- package/node/curve.js.map +0 -1
- package/node/find-mats.js +0 -123
- package/node/find-mats.js.map +0 -1
- package/node/get-boundary-bezier-parts-to-next.js.map +0 -1
- package/node/get-boundary-beziers-to-next.js.map +0 -1
- package/node/get-bounding-box-.js.map +0 -1
- package/node/get-branches.js.map +0 -1
- package/node/get-curve-to-next.js.map +0 -1
- package/node/get-interface-ccw.js.map +0 -1
- package/node/loop.d.ts +0 -16
- package/node/loop.js +0 -35
- package/node/loop.js.map +0 -1
- package/node/mat/closest-boundary-point/closest-points-on-curve.d.ts +0 -14
- package/node/mat/closest-boundary-point/closest-points-on-curve.js +0 -73
- package/node/mat/closest-boundary-point/closest-points-on-curve.js.map +0 -1
- package/node/mat/closest-boundary-point/cull-bezier-pieces.d.ts +0 -9
- package/node/mat/closest-boundary-point/cull-bezier-pieces.js +0 -20
- package/node/mat/closest-boundary-point/cull-bezier-pieces.js.map +0 -1
- package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.js.map +0 -1
- package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.js.map +0 -1
- package/node/mat/closest-boundary-point/get-best-distance-squared.js.map +0 -1
- package/node/mat/closest-boundary-point/get-close-boundary-points.d.ts +0 -17
- package/node/mat/closest-boundary-point/get-close-boundary-points.js +0 -81
- package/node/mat/closest-boundary-point/get-close-boundary-points.js.map +0 -1
- package/node/mat/closest-boundary-point/get-closest-boundary-point.d.ts +0 -18
- package/node/mat/closest-boundary-point/get-closest-boundary-point.js +0 -41
- package/node/mat/closest-boundary-point/get-closest-boundary-point.js.map +0 -1
- package/node/mat/find-mat/add-1-prong.d.ts +0 -12
- package/node/mat/find-mat/add-1-prong.js.map +0 -1
- package/node/mat/find-mat/add-2-prong.js.map +0 -1
- package/node/mat/find-mat/add-3-prong.js +0 -55
- package/node/mat/find-mat/add-3-prong.js.map +0 -1
- package/node/mat/find-mat/add-debug-info.js.map +0 -1
- package/node/mat/find-mat/create-get-interesting-points-on-loop.d.ts +0 -11
- package/node/mat/find-mat/create-get-interesting-points-on-loop.js +0 -52
- package/node/mat/find-mat/create-get-interesting-points-on-loop.js.map +0 -1
- package/node/mat/find-mat/create-initial-cp-graph.js.map +0 -1
- package/node/mat/find-mat/find-2-prong/add-debug-info.d.ts +0 -8
- package/node/mat/find-mat/find-2-prong/add-debug-info.js.map +0 -1
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.d.ts +0 -11
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js +0 -30
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js.map +0 -1
- package/node/mat/find-mat/find-2-prong/find-2-prong.js +0 -233
- package/node/mat/find-mat/find-2-prong/find-2-prong.js.map +0 -1
- package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.d.ts +0 -9
- package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js +0 -40
- package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js.map +0 -1
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.d.ts +0 -11
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js +0 -38
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js.map +0 -1
- package/node/mat/find-mat/find-2-prong/x-for-debugging.d.ts +0 -9
- package/node/mat/find-mat/find-2-prong/x-for-debugging.js.map +0 -1
- package/node/mat/find-mat/find-3-prong/calc-better-x.js.map +0 -1
- package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.js.map +0 -1
- package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.js.map +0 -1
- package/node/mat/find-mat/find-3-prong/find-3-prong.js.map +0 -1
- package/node/mat/find-mat/find-3-prong/get-closest-points.js +0 -17
- package/node/mat/find-mat/find-3-prong/get-closest-points.js.map +0 -1
- package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.d.ts +0 -15
- package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.js.map +0 -1
- package/node/mat/find-mat/find-and-add-2-prongs.js +0 -74
- package/node/mat/find-mat/find-and-add-2-prongs.js.map +0 -1
- package/node/mat/find-mat/find-and-add-3-prongs.js +0 -147
- package/node/mat/find-mat/find-and-add-3-prongs.js.map +0 -1
- package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.js.map +0 -1
- package/node/mat/find-mat/get-potential-2-prongs.d.ts +0 -4
- package/node/mat/find-mat/get-potential-2-prongs.js +0 -17
- package/node/mat/find-mat/get-potential-2-prongs.js.map +0 -1
- package/node/mat/find-mat/get-sharp-corners.d.ts +0 -4
- package/node/mat/find-mat/get-sharp-corners.js +0 -18
- package/node/mat/find-mat/get-sharp-corners.js.map +0 -1
- package/node/mat/geometry/get-closest-square-distance-to-rect.js.map +0 -1
- package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js.map +0 -1
- package/node/mat/get-contact-circles-at-interface.d.ts +0 -8
- package/node/mat/get-contact-circles-at-interface.js +0 -21
- package/node/mat/get-contact-circles-at-interface.js.map +0 -1
- package/node/mat/get-leaves.js +0 -13
- package/node/mat/get-leaves.js.map +0 -1
- package/node/mat/to-scale-axis/add-debug-info.js.map +0 -1
- package/node/mat/to-scale-axis/cull-non-cycles.js.map +0 -1
- package/node/mat/to-scale-axis/cull.js.map +0 -1
- package/node/mat.js.map +0 -1
- package/node/point-on-shape.d.ts +0 -73
- package/node/point-on-shape.js +0 -168
- package/node/point-on-shape.js.map +0 -1
- package/node/simplify-mat.js.map +0 -1
- package/node/to-scale-axis.js.map +0 -1
- package/node/traverse-edges.js.map +0 -1
- package/node/traverse-vertices.js.map +0 -1
- package/src/cp-node.ts +0 -388
- package/src/find-mats.ts +0 -171
- package/src/loop.ts +0 -56
- package/src/mat/closest-boundary-point/closest-point-on-curve-old.ts_ +0 -88
- package/src/mat/closest-boundary-point/closest-point-on-curve.ts_ +0 -95
- package/src/mat/closest-boundary-point/closest-points-on-curve.ts +0 -84
- package/src/mat/closest-boundary-point/cull-bezier-pieces.ts +0 -38
- package/src/mat/closest-boundary-point/get-close-boundary-points.ts +0 -107
- package/src/mat/closest-boundary-point/get-closest-boundary-point.ts +0 -64
- package/src/mat/find-mat/add-3-prong.ts +0 -75
- package/src/mat/find-mat/create-get-interesting-points-on-loop.ts +0 -73
- package/src/mat/find-mat/find-2-prong/add-debug-info.ts +0 -46
- package/src/mat/find-mat/find-2-prong/find-2-prong.ts +0 -316
- package/src/mat/find-mat/find-2-prong/get-initial-bezier-pieces.ts +0 -52
- package/src/mat/find-mat/find-2-prong/x-for-debugging.ts +0 -13
- package/src/mat/find-mat/find-3-prong/find-3-prong.ts +0 -106
- package/src/mat/find-mat/find-3-prong/get-closest-points.ts +0 -28
- package/src/mat/find-mat/find-and-add-2-prongs.ts +0 -108
- package/src/mat/find-mat/find-and-add-3-prongs.ts +0 -218
- package/src/mat/find-mat/get-potential-2-prongs.ts +0 -24
- package/src/mat/find-mat/get-sharp-corners.ts +0 -25
- package/src/mat/find-mat/get-total-abs-curvature.ts +0 -17
- package/src/mat/get-contact-circles-at-interface.ts +0 -26
- package/src/mat/to-scale-axis/add-to-tree.ts +0 -66
- package/src/mat/to-scale-axis/calc-groups.ts +0 -82
- package/src/mat/to-scale-axis/create-spacial-tree.ts +0 -41
- package/src/mat/to-scale-axis/get-engulfed-vertices.ts +0 -135
- package/src/point-on-shape.ts +0 -231
- package/src/svg/get-curvature-at-interface.ts +0 -55
- /package/node/{compare-curvatures-at-interface.d.ts → corner/compare-curvatures-at-interface.d.ts} +0 -0
- /package/node/{mat → corner}/corner.js +0 -0
- /package/node/{get-interface-ccw.d.ts → corner/get-interface-ccw.d.ts} +0 -0
- /package/node/{get-boundary-bezier-parts-to-next.d.ts → cp-node/get-boundary-bezier-parts-to-next.d.ts} +0 -0
- /package/node/{get-curve-to-next.d.ts → cp-node/get-curve-to-next.d.ts} +0 -0
- /package/node/{traverse-edges.d.ts → cp-node/traverse-edges.d.ts} +0 -0
- /package/node/{traverse-vertices.d.ts → cp-node/traverse-vertices.d.ts} +0 -0
- /package/node/{mat/find-mat/find-2-prong → find-2-prong}/x-for-debugging.js +0 -0
- /package/node/{circle.d.ts → geometry/circle.d.ts} +0 -0
- /package/node/{circle.js → geometry/circle.js} +0 -0
- /package/node/{get-bounding-box-.d.ts → geometry/get-bounding-box-.d.ts} +0 -0
- /package/node/{get-bounding-box-.js → geometry/get-bounding-box-.js} +0 -0
- /package/node/{mat.js → mat/mat.js} +0 -0
- /package/src/{circle.ts → geometry/circle.ts} +0 -0
- /package/src/{get-bounding-box-.ts → geometry/get-bounding-box-.ts} +0 -0
package/node/debug/debug.js
CHANGED
|
@@ -16,6 +16,8 @@ function enableDebugForMat(debugOn) {
|
|
|
16
16
|
elems: {
|
|
17
17
|
//...debug?.generated?.elems,
|
|
18
18
|
...(!debug ? {} : !debug.generated ? {} : !debug.generated.elems ? {} : debug.generated.elems),
|
|
19
|
+
oneProng: [],
|
|
20
|
+
oneProngAtDullCorner: [],
|
|
19
21
|
twoProng_regular: [],
|
|
20
22
|
twoProng_failed: [],
|
|
21
23
|
twoProng_notAdded: [],
|
|
@@ -23,8 +25,6 @@ function enableDebugForMat(debugOn) {
|
|
|
23
25
|
twoProng_holeClosing: [],
|
|
24
26
|
looseBoundingBox: [],
|
|
25
27
|
tightBoundingBox: [],
|
|
26
|
-
oneProng: [],
|
|
27
|
-
oneProngAtDullCorner: [],
|
|
28
28
|
sharpCorner: [],
|
|
29
29
|
dullCorner: [],
|
|
30
30
|
vertex: [],
|
package/node/debug/debug.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAsB,MAAM,oCAAoC,CAAC;AA4D3F,SAAS,iBAAiB,CAAC,OAAgB;IACvC,IAAI,CAAC,OAAO,EAAE;QACT,MAAc,CAAC,OAAO,GAAG,SAAS,CAAC;QACpC,OAAO;KACV;IAED,IAAI,KAAK,GAAW,MAAc,CAAC,OAAO,CAAC;IAE3C,KAAK,GAAG;QACJ,GAAG,KAAK;QACR,SAAS,EAAE;YACP,sBAAsB;YACtB,GAAG,CAAC,CAAC,K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(g: SVGGElement, hull: number[][],
|
|
1
|
+
/** @internal */
|
|
2
|
+
declare function boundingHull(g: SVGGElement, hull: number[][], classes?: string, delay?: number, scaleFactor?: number): SVGPathElement[];
|
|
3
3
|
export { boundingHull };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @
|
|
3
|
-
function boundingHull(g, hull,
|
|
4
|
-
const $polygon = drawFs.polygon(g, hull,
|
|
2
|
+
/** @internal */
|
|
3
|
+
function boundingHull(g, hull, classes = 'thin5 black nofill', delay = 0, scaleFactor = 1) {
|
|
4
|
+
const $polygon = drawFs.polygon(g, hull, classes, delay);
|
|
5
5
|
return $polygon;
|
|
6
6
|
}
|
|
7
7
|
export { boundingHull };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounding-hull.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/bounding-hull.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,
|
|
1
|
+
{"version":3,"file":"bounding-hull.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/bounding-hull.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,YAAY,CACb,CAAc,EACd,IAAgB,EAChB,OAAO,GAAG,oBAAoB,EAC9B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEtB,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEzD,OAAO,QAAQ,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { isTerminating } from '../../../cp-node/cp-node.js';
|
|
3
|
+
import { getCurveToNext } from '../../../cp-node/get-curve-to-next.js';
|
|
4
|
+
/** @internal */
|
|
4
5
|
function drawBranch(g, branch, delay) {
|
|
5
6
|
const classes = 'thin5 purple nofill';
|
|
6
7
|
const $svgs = [];
|
|
7
8
|
let i = 0;
|
|
8
9
|
for (const cpNode of branch) {
|
|
9
|
-
if (
|
|
10
|
+
if (isTerminating(cpNode)) {
|
|
10
11
|
continue;
|
|
11
12
|
}
|
|
12
13
|
//let bezier = cpNode.matCurveToNextVertex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/branch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/branch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAU,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAGvE,gBAAgB;AAChB,SAAS,UAAU,CAAC,CAAc,EAAE,MAAgB,EAAE,KAAc;IAEhE,MAAM,OAAO,GAAG,qBAAqB,CAAC;IAEtC,MAAM,KAAK,GAAiB,EAAE,CAAC;IAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE;QACzB,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE;YAAE,SAAS;SAAE;QACxC,2CAA2C;QAC3C,MAAM,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,MAAM,EAAE;YAAE,SAAS;SAAE;QAC1B,CAAC,EAAE,CAAC;QACJ,KAAK,CAAC,IAAI,CAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;KAC5D;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @
|
|
1
|
+
/** @internal */
|
|
2
2
|
function culls(g, culls) {
|
|
3
3
|
const $elems = [];
|
|
4
4
|
for (const circle of culls) {
|
|
@@ -7,7 +7,7 @@ function culls(g, culls) {
|
|
|
7
7
|
}
|
|
8
8
|
return $elems;
|
|
9
9
|
}
|
|
10
|
-
/** @
|
|
10
|
+
/** @internal */
|
|
11
11
|
function drawCircle(g, center, radiusPercent, classes) {
|
|
12
12
|
const XMLNS = 'http://www.w3.org/2000/svg';
|
|
13
13
|
const $circle = document.createElementNS(XMLNS, 'circle');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"culls.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/culls.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"culls.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/culls.ts"],"names":[],"mappings":"AAGA,gBAAgB;AAChB,SAAS,KAAK,CAAC,CAAc,EAAE,KAAe;IAC1C,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,KAAK,MAAM,MAAM,IAAI,KAAK,EAAE;QACxB,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC;KAC3D;IAEJ,OAAO,MAAM,CAAC;AACf,CAAC;AAGD,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,MAAgB,EAChB,aAAqB,EACrB,OAAe;IAEnB,MAAM,KAAK,GAAG,4BAA4B,CAAC;IAE3C,MAAM,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC1D,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC,CAAC;IAClE,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/C,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvB,OAAO,OAAO,CAAC;AACnB,CAAC;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-circle-percent.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-circle-percent.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"draw-circle-percent.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-circle-percent.ts"],"names":[],"mappings":"AACA,gBAAgB;AAChB,SAAS,iBAAiB,CAClB,CAAc,EACd,MAAgB,EAChB,aAAqB,EACrB,OAAe;IAEnB,MAAM,KAAK,GAAG,4BAA4B,CAAC;IAE3C,MAAM,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC1D,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC,CAAC;IAClE,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/C,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvB,OAAO,OAAO,CAAC;AACnB,CAAC;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IDebugElems } from '../../debug-elem-types.js';
|
|
2
|
-
/** @
|
|
2
|
+
/** @internal */
|
|
3
3
|
type TDrawElemFunctions = {
|
|
4
|
-
[T in keyof IDebugElems]: (g: SVGGElement, elem: IDebugElems[T], classes?: string, delay?: number) => SVGElement[];
|
|
4
|
+
[T in keyof IDebugElems]: (g: SVGGElement, elem: IDebugElems[T], classes?: string, delay?: number, scaleFactor?: number) => SVGElement[];
|
|
5
5
|
};
|
|
6
|
-
/** @
|
|
6
|
+
/** @internal */
|
|
7
7
|
declare const drawElemFunctions: TDrawElemFunctions;
|
|
8
8
|
export { drawElemFunctions, TDrawElemFunctions };
|
|
@@ -12,11 +12,11 @@ import { maxVertex } from './max-vertex.js';
|
|
|
12
12
|
import { leaves } from './leaves.js';
|
|
13
13
|
import { culls } from './culls.js';
|
|
14
14
|
import { oneProngAtDullCorner } from './one-prong-at-dull-corner.js';
|
|
15
|
-
/** @
|
|
15
|
+
/** @internal */
|
|
16
16
|
function notImplementedYet(g, elem) {
|
|
17
|
-
return [];
|
|
17
|
+
return [];
|
|
18
18
|
}
|
|
19
|
-
/** @
|
|
19
|
+
/** @internal */
|
|
20
20
|
const drawElemFunctions = {
|
|
21
21
|
oneProng: drawOneProng,
|
|
22
22
|
oneProngAtDullCorner,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-elem.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-elem.ts"],"names":[],"mappings":"A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O,EAAE,UAAU,EAAQ,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAW,MAAM,UAAU,CAAC;AAG5C,OAAO,EAAE,SAAS,EAAS,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAa,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAarE,gBAAgB;AAChB,SAAS,iBAAiB,CAA4C,CAAa,EAAE,IAAO;IAC3F,OAAO,EAAkB,CAAC;AAC3B,CAAC;AAGD,gBAAgB;AAChB,MAAM,iBAAiB,GAAuB;IAC7C,QAAQ,EAAE,YAAY;IACtB,oBAAoB;IACpB,gBAAgB,EAAE,QAAQ;IAC1B,eAAe,EAAE,QAAQ;IACzB,iBAAiB,EAAE,QAAQ;IAC3B,gBAAgB,EAAE,QAAQ;IAC1B,oBAAoB,EAAE,QAAQ;IAC9B,UAAU;IACV,OAAO;IACP,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,WAAW;IACX,UAAU;IACV,MAAM;IACN,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,OAAO;IACP,QAAQ;IACR,SAAS;IACT,MAAM;IACN,KAAK;IACL,MAAM,EAAE,iBAAiB;CACzB,CAAA;AAGD,OAAO,EAAE,iBAAiB,EAAsB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Curve } from '../../../curve.js';
|
|
2
|
-
/** @
|
|
3
|
-
declare function dullCorner(g: SVGGElement, curve: Curve): SVGCircleElement[];
|
|
1
|
+
import { Curve } from '../../../curve/curve.js';
|
|
2
|
+
/** @internal */
|
|
3
|
+
declare function dullCorner(g: SVGGElement, curve: Curve, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
|
|
4
4
|
export { dullCorner };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @
|
|
3
|
-
function dullCorner(g, curve) {
|
|
4
|
-
const scaleFactor = 1;
|
|
2
|
+
/** @internal */
|
|
3
|
+
function dullCorner(g, curve, classes = 'orange', delay = 0, scaleFactor = 1) {
|
|
5
4
|
const ps = curve.ps;
|
|
6
5
|
const p = curve.ps[ps.length - 1];
|
|
7
|
-
const $pos = drawFs.dot(g, p, 0.5 * scaleFactor,
|
|
6
|
+
const $pos = drawFs.dot(g, p, 0.1 * 0.5 * scaleFactor, classes, delay);
|
|
8
7
|
return $pos;
|
|
9
8
|
}
|
|
10
9
|
export { dullCorner };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/dull-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,
|
|
1
|
+
{"version":3,"file":"dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/dull-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,gBAAgB;AAChB,SAAS,UAAU,CACjB,CAAc,EACd,KAAY,EACN,OAAO,GAAG,QAAQ,EAClB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEtB,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,GAAC,GAAG,GAAC,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEnE,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaves.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/leaves.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,
|
|
1
|
+
{"version":3,"file":"leaves.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/leaves.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,gBAAgB;AAChB,SAAS,MAAM,CAAC,CAAc,EAAE,MAAgB;IAC5C,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE;QACzB,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QACrB,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;QAE3B,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC,CAAC;KACpE;IAEJ,OAAO,MAAM,CAAC;AACf,CAAC;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loop.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loop.ts"],"names":[],"mappings":"AAIA,gBAAgB;AAChB,SAAS,IAAI,CAAC,CAAc,EAAE,IAAU;IACpC;;;;MAIE;IACF,OAAO,EAAE,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loops.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loops.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"loops.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loops.ts"],"names":[],"mappings":"AAGA,cAAc;AACd,SAAS,KAAK,CAAC,CAAc,EAAE,KAAa;IACxC,OAAO,EAAE,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @
|
|
2
|
-
declare function looseBoundingBox(g: SVGGElement, box: number[][]): SVGPathElement[];
|
|
1
|
+
/** @internal */
|
|
2
|
+
declare function looseBoundingBox(g: SVGGElement, box: number[][], classes?: string, delay?: number, scaleFactor?: number): SVGPathElement[];
|
|
3
3
|
export { looseBoundingBox };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { drawFs } from "flo-draw";
|
|
2
|
-
/** @
|
|
3
|
-
function looseBoundingBox(g, box) {
|
|
2
|
+
/** @internal */
|
|
3
|
+
function looseBoundingBox(g, box, classes = 'thin5 brown nofill', delay = 0, scaleFactor = 1) {
|
|
4
4
|
const [[x0, y0], [x1, y1]] = box;
|
|
5
5
|
box = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
|
|
6
|
-
const $box = drawFs.polygon(g, box,
|
|
6
|
+
const $box = drawFs.polygon(g, box, classes, delay);
|
|
7
7
|
return $box;
|
|
8
8
|
}
|
|
9
9
|
export { looseBoundingBox };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loose-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loose-bounding-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,
|
|
1
|
+
{"version":3,"file":"loose-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loose-bounding-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,gBAAgB,CACvB,CAAc,EACd,GAAe,EACT,OAAO,GAAG,oBAAoB,EAC9B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEtB,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC;IAChC,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAC,EAAE,CAAC,EAAC,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEpD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mat } from '../../../mat.js';
|
|
2
|
-
/** @
|
|
3
|
-
declare function drawMat(type: 'mat' | 'sat'): (g: SVGGElement, mat: Mat) => SVGElement[];
|
|
1
|
+
import { Mat } from '../../../mat/mat.js';
|
|
2
|
+
/** @internal */
|
|
3
|
+
declare function drawMat(type: 'mat' | 'sat'): (g: SVGGElement, mat: Mat, classes_?: string, delay?: number, scaleFactor?: number) => SVGElement[];
|
|
4
4
|
export { drawMat };
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { traverseEdges } from '../../../traverse-edges.js';
|
|
3
|
-
import { getCurveToNext } from '../../../get-curve-to-next.js';
|
|
4
|
-
|
|
2
|
+
import { traverseEdges } from '../../../cp-node/traverse-edges.js';
|
|
3
|
+
import { getCurveToNext } from '../../../cp-node/get-curve-to-next.js';
|
|
4
|
+
import { isTerminating } from '../../../cp-node/cp-node.js';
|
|
5
|
+
/** @internal */
|
|
5
6
|
function drawMat(type) {
|
|
6
7
|
const classes = type === 'mat'
|
|
7
8
|
? 'thin5 purple nofill'
|
|
8
9
|
: 'thin10 red nofill';
|
|
9
|
-
return (g, mat) => {
|
|
10
|
+
return (g, mat, classes_, delay = 0, scaleFactor = 1) => {
|
|
10
11
|
const cpNode = mat.cpNode;
|
|
12
|
+
// if (!cpNode) { return undefined; }
|
|
11
13
|
if (!cpNode) {
|
|
12
|
-
return
|
|
14
|
+
return [];
|
|
13
15
|
}
|
|
14
16
|
const $svgs = [];
|
|
15
17
|
let i = 0;
|
|
16
18
|
traverseEdges(cpNode, cpNode => {
|
|
17
|
-
if (
|
|
19
|
+
if (isTerminating(cpNode)) {
|
|
18
20
|
return;
|
|
19
21
|
}
|
|
20
22
|
const bezier = getCurveToNext(cpNode);
|
|
@@ -22,7 +24,7 @@ function drawMat(type) {
|
|
|
22
24
|
return;
|
|
23
25
|
}
|
|
24
26
|
i++;
|
|
25
|
-
$svgs.push(...drawFs.bezier(g, bezier, classes
|
|
27
|
+
$svgs.push(...drawFs.bezier(g, bezier, classes, delay));
|
|
26
28
|
});
|
|
27
29
|
return $svgs;
|
|
28
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mat.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/mat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mat.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/mat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,gBAAgB;AAChB,SAAS,OAAO,CAAC,IAAmB;IAEhC,MAAM,OAAO,GAAW,IAAI,KAAK,KAAK;QAClC,CAAC,CAAC,qBAAqB;QACvB,CAAC,CAAC,mBAAmB,CAAC;IAE1B,OAAO,CACC,CAAc,EACd,GAAQ,EACR,QAAiB,EACjB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC,EAAgB,EAAE;QAErC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAE1B,qCAAqC;QACrC,IAAI,CAAC,MAAM,EAAE;YAAE,OAAO,EAAE,CAAC;SAAE;QAE3B,MAAM,KAAK,GAAiB,EAAE,CAAC;QAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;YAC3B,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE;gBAAE,OAAO;aAAE;YAEtC,MAAM,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;YAEtC,IAAI,CAAC,MAAM,EAAE;gBAAE,OAAO;aAAE;YAExB,CAAC,EAAE,CAAC;YAEJ,KAAK,CAAC,IAAI,CAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACjB,CAAC,CAAA;AACL,CAAC;AAGD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"max-vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/max-vertex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,
|
|
1
|
+
{"version":3,"file":"max-vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/max-vertex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,gBAAgB;AAChB,SAAS,SAAS,CAAC,CAAc,EAAE,MAAc;IAC7C,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC;IAEhC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAElE,OAAO,MAAM,CAAC;AACf,CAAC;AAGD,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** @
|
|
3
|
-
declare function minY(g: SVGGElement, pos:
|
|
1
|
+
import { PointOnShape } from '../../../point-on-shape/point-on-shape.js';
|
|
2
|
+
/** @internal */
|
|
3
|
+
declare function minY(g: SVGGElement, pos: PointOnShape): SVGElement[];
|
|
4
4
|
export { minY };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { evalDeCasteljau } from 'flo-bezier3';
|
|
2
2
|
import { drawFs } from 'flo-draw';
|
|
3
|
-
/** @
|
|
3
|
+
/** @internal */
|
|
4
4
|
function minY(g, pos) {
|
|
5
5
|
const p = evalDeCasteljau(pos.curve.ps, pos.t);
|
|
6
|
-
const ps = toCubic(pos.curve.ps);
|
|
7
|
-
//console.log('x: ', getX(ps));
|
|
8
|
-
//console.log('y: ', getY(ps));
|
|
9
|
-
//console.log('t: ', pos.t);
|
|
10
6
|
const $elems = drawFs.crossHair(g, p, 'red thin10 nofill');
|
|
11
7
|
return $elems;
|
|
12
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/min-y.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/min-y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,eAAe,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,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,CACnC,CAAC;IAEC,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PointOnShape } from '../../../point-on-shape/point-on-shape.js';
|
|
2
2
|
/** @hidden */
|
|
3
|
-
declare function oneProngAtDullCorner(g: SVGGElement, pos:
|
|
3
|
+
declare function oneProngAtDullCorner(g: SVGGElement, pos: PointOnShape, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
|
|
4
4
|
export { oneProngAtDullCorner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
2
|
+
import { getOsculatingCircle } from '../../../point-on-shape/get-osculating-circle.js';
|
|
3
3
|
/** @hidden */
|
|
4
|
-
function oneProngAtDullCorner(g, pos) {
|
|
4
|
+
function oneProngAtDullCorner(g, pos, classes, delay = 1000, scaleFactor = 1) {
|
|
5
5
|
//let oCircle = PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
6
6
|
const oCircle = getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
7
7
|
const $center = drawFs.dot(g, pos.p, 0.1, 'orange');
|
|
@@ -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":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAGvF,cAAc;AACd,SAAS,oBAAoB,CACrB,CAAc,EACd,GAAiB,EACjB,OAAgB,EAChB,KAAK,GAAG,IAAI,EACZ,WAAW,GAAG,CAAC;IAEnB,gFAAgF;IAChF,MAAM,OAAO,GAAG,mBAAmB,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;IAEnE,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IACpD,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IAErE,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 {
|
|
1
|
+
import { CpNode } from '../../../cp-node/cp-node.js';
|
|
2
2
|
/** @hidden */
|
|
3
|
-
declare function drawOneProng(g: SVGGElement,
|
|
3
|
+
declare function drawOneProng(g: SVGGElement, cpNodes: CpNode[], classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
|
|
4
4
|
export { drawOneProng };
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
3
|
-
import { scaleCircle } from '../../../circle.js';
|
|
4
2
|
/** @hidden */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const $center = drawFs.dot(g, pos.p, 0.1 * scaleFactor, 'gray', delay);
|
|
12
|
-
const $circle = drawFs.dot(g, circle.center, 0.25 * scaleFactor, 'gray', delay);
|
|
13
|
-
const $pos = drawFs.circle(g, circle, 'gray thin10 nofill', delay);
|
|
3
|
+
function drawOneProng(g, cpNodes, classes, delay = 0, scaleFactor = 1) {
|
|
4
|
+
const cp = cpNodes[0].cp;
|
|
5
|
+
const { circle, pointOnShape: pos } = cp;
|
|
6
|
+
const $center = drawFs.dot(g, pos.p, 0.02 * scaleFactor, 'deeppink', delay);
|
|
7
|
+
const $circle = drawFs.dot(g, circle.center, 0.05 * scaleFactor, 'deeppink', delay);
|
|
8
|
+
const $pos = drawFs.circle(g, circle, 'deeppink thin5 nofill', delay);
|
|
14
9
|
return [...$center, ...$circle, ...$pos];
|
|
15
10
|
}
|
|
16
11
|
export { drawOneProng };
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAIlC,cAAc;AACd,SAAS,YAAY,CACb,CAAc,EACd,OAAiB,EACjB,OAAgB,EAChB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,GAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IAClF,MAAM,IAAI,GAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAE5E,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1C,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Curve } from '../../../curve.js';
|
|
2
|
-
/** @
|
|
3
|
-
declare function sharpCorner(g: SVGGElement, curve: Curve): SVGCircleElement[];
|
|
1
|
+
import { Curve } from '../../../curve/curve.js';
|
|
2
|
+
/** @internal */
|
|
3
|
+
declare function sharpCorner(g: SVGGElement, curve: Curve, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
|
|
4
4
|
export { sharpCorner };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @
|
|
3
|
-
function sharpCorner(g, curve) {
|
|
4
|
-
const scaleFactor = 1;
|
|
2
|
+
/** @internal */
|
|
3
|
+
function sharpCorner(g, curve, classes = 'green', delay = 0, scaleFactor = 1) {
|
|
5
4
|
const p = curve.ps[curve.ps.length - 1];
|
|
6
|
-
const $pos = drawFs.dot(g, p, 0.6 * scaleFactor, 'green');
|
|
5
|
+
const $pos = drawFs.dot(g, p, 0.6 * scaleFactor, 'green', delay);
|
|
7
6
|
return $pos;
|
|
8
7
|
}
|
|
9
8
|
export { sharpCorner };
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,gBAAgB;AAChB,SAAS,WAAW,CAClB,CAAc,EACd,KAAY,EACN,OAAO,GAAG,OAAO,EACjB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEtB,MAAM,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC;IACtC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,GAAC,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ThreeProngForDebugging } from '../../three-prong-for-debugging.js';
|
|
2
|
-
/** @
|
|
3
|
-
declare function threeProng(g: SVGGElement, threeProng: ThreeProngForDebugging): SVGCircleElement[];
|
|
2
|
+
/** @internal */
|
|
3
|
+
declare function threeProng(g: SVGGElement, threeProng: ThreeProngForDebugging, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
|
|
4
4
|
export { threeProng };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { scaleCircle } from '../../../circle.js';
|
|
3
|
-
/** @
|
|
4
|
-
|
|
5
|
-
/** @hidden */
|
|
6
|
-
function threeProng(g, threeProng) {
|
|
2
|
+
import { scaleCircle } from '../../../geometry/circle.js';
|
|
3
|
+
/** @internal */
|
|
4
|
+
function threeProng(g, threeProng, classes, delay = 0, scaleFactor = 1) {
|
|
7
5
|
const circle = scaleCircle(threeProng.circle, 1);
|
|
8
6
|
const poss = threeProng.poss;
|
|
9
|
-
const $cp1 = drawFs.dot(g, poss[0].p, 0.
|
|
10
|
-
const $cp2 = drawFs.dot(g, poss[1].p, 0.
|
|
11
|
-
const $cp3 = drawFs.dot(g, poss[2].p, 0.
|
|
12
|
-
const $center = drawFs.dot(g, circle.center, 0.
|
|
13
|
-
const $circle = drawFs.circle(g, circle, 'blue thin2 nofill');
|
|
7
|
+
const $cp1 = drawFs.dot(g, poss[0].p, 0.01 * 1 * scaleFactor, 'blue', delay);
|
|
8
|
+
const $cp2 = drawFs.dot(g, poss[1].p, 0.01 * 2 * scaleFactor, 'blue', delay);
|
|
9
|
+
const $cp3 = drawFs.dot(g, poss[2].p, 0.01 * 3 * scaleFactor, 'blue', delay);
|
|
10
|
+
const $center = drawFs.dot(g, circle.center, 0.03 * scaleFactor, 'blue', delay);
|
|
11
|
+
const $circle = drawFs.circle(g, circle, 'blue thin2 nofill', delay);
|
|
14
12
|
return [...$center, ...$cp1, ...$cp2, ...$cp3, ...$circle];
|
|
15
13
|
}
|
|
16
14
|
export { threeProng };
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,6BAA6B,CAAC;AAGlE,gBAAgB;AAChB,SAAS,UAAU,CAC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|
+
/** @internal */
|
|
2
|
+
declare function tightBoundingBox(g: SVGGElement, box: number[][], classes?: string, delay?: number, scaleFactor?: number): SVGPathElement[];
|
|
3
3
|
export { tightBoundingBox };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @
|
|
3
|
-
function tightBoundingBox(g, box) {
|
|
4
|
-
const $box = drawFs.polygon(g, box, 'thin5 pinker nofill');
|
|
2
|
+
/** @internal */
|
|
3
|
+
function tightBoundingBox(g, box, classes = 'thin5 pinker nofill', delay = 0, scaleFactor = 1) {
|
|
4
|
+
const $box = drawFs.polygon(g, box, 'thin5 pinker nofill', delay);
|
|
5
5
|
return $box;
|
|
6
6
|
}
|
|
7
7
|
export { tightBoundingBox };
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,gBAAgB;AAChB,SAAS,gBAAgB,CACvB,CAAc,EACd,GAAe,EACT,OAAO,GAAG,qBAAqB,EAC/B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEtB,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAElE,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|