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
package/node/debug/debug.js
CHANGED
|
@@ -1,19 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const two_prong_1 = require("./functions/two-prong");
|
|
6
|
-
const three_prong_1 = require("./functions/three-prong");
|
|
7
|
-
const draw_elem_1 = require("./functions/draw-elem/draw-elem");
|
|
1
|
+
import { generalDebugFunctions } from './functions/general.js';
|
|
2
|
+
import { twoProngDebugFunctions } from './functions/two-prong.js';
|
|
3
|
+
import { threeProngDebugFunctions } from './functions/three-prong.js';
|
|
4
|
+
import { drawElemFunctions } from './functions/draw-elem/draw-elem.js';
|
|
8
5
|
function enableDebugForMat(debugOn) {
|
|
9
|
-
var _a, _b, _c;
|
|
10
6
|
if (!debugOn) {
|
|
11
7
|
window._debug_ = undefined;
|
|
12
8
|
return;
|
|
13
9
|
}
|
|
14
10
|
let debug = window._debug_;
|
|
15
|
-
debug =
|
|
11
|
+
debug = {
|
|
12
|
+
...debug,
|
|
13
|
+
generated: {
|
|
14
|
+
//...debug?.generated,
|
|
15
|
+
...(!debug ? {} : !debug.generated ? {} : debug.generated),
|
|
16
|
+
elems: {
|
|
17
|
+
//...debug?.generated?.elems,
|
|
18
|
+
...(!debug ? {} : !debug.generated ? {} : !debug.generated.elems ? {} : debug.generated.elems),
|
|
19
|
+
twoProng_regular: [],
|
|
20
|
+
twoProng_failed: [],
|
|
21
|
+
twoProng_notAdded: [],
|
|
22
|
+
twoProng_deleted: [],
|
|
23
|
+
twoProng_holeClosing: [],
|
|
24
|
+
looseBoundingBox: [],
|
|
25
|
+
tightBoundingBox: [],
|
|
26
|
+
oneProng: [],
|
|
27
|
+
oneProngAtDullCorner: [],
|
|
28
|
+
sharpCorner: [],
|
|
29
|
+
dullCorner: [],
|
|
30
|
+
vertex: [],
|
|
31
|
+
threeProng: [],
|
|
32
|
+
boundingHull: [],
|
|
33
|
+
mat: [],
|
|
34
|
+
sat: [],
|
|
35
|
+
cpNode: [],
|
|
36
|
+
maxVertex: [],
|
|
37
|
+
leaves: [],
|
|
38
|
+
culls: [],
|
|
39
|
+
},
|
|
40
|
+
timing: {
|
|
41
|
+
//...debug?.generated?.timing,
|
|
42
|
+
...(!debug ? {} : !debug.generated ? {} : !debug.generated.timing ? {} : debug.generated.timing),
|
|
43
|
+
holeClosers: 0,
|
|
44
|
+
oneAnd2Prongs: 0,
|
|
45
|
+
threeProngs: 0,
|
|
46
|
+
sats: 0,
|
|
47
|
+
simplifyMat: 0,
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
fs: {
|
|
51
|
+
//...debug?.fs,
|
|
52
|
+
...(!debug ? {} : !debug.fs ? {} : debug.fs),
|
|
53
|
+
drawElem: {
|
|
54
|
+
//...debug?.fs?.drawElem,
|
|
55
|
+
...(!debug ? {} : !debug.fs ? {} : !debug.fs.drawElem ? {} : debug.fs.drawElem),
|
|
56
|
+
...drawElemFunctions
|
|
57
|
+
},
|
|
58
|
+
...generalDebugFunctions,
|
|
59
|
+
twoProng: twoProngDebugFunctions,
|
|
60
|
+
threeProng: threeProngDebugFunctions,
|
|
61
|
+
},
|
|
62
|
+
directives: {
|
|
63
|
+
//...debug?.directives,
|
|
64
|
+
...(!debug ? {} : !debug.directives ? {} : debug.directives),
|
|
65
|
+
stopAfterHoleClosers: false,
|
|
66
|
+
stopAfterHoleClosersNum: undefined,
|
|
67
|
+
stopAfterTwoProngs: false,
|
|
68
|
+
stopAfterTwoProngsNum: undefined,
|
|
69
|
+
stopAfterThreeProngs: false,
|
|
70
|
+
stopAfterThreeProngsNum: undefined,
|
|
71
|
+
}
|
|
72
|
+
};
|
|
16
73
|
window._debug_ = debug;
|
|
17
74
|
}
|
|
18
|
-
|
|
75
|
+
export { enableDebugForMat };
|
|
19
76
|
//# sourceMappingURL=debug.js.map
|
package/node/debug/debug.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug/debug.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug/debug.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.boundingHull = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function boundingHull(g, hull, style = 'thin5 black nofill') {
|
|
7
|
-
let $polygon =
|
|
4
|
+
let $polygon = drawFs.polygon(g, hull, style);
|
|
8
5
|
return $polygon;
|
|
9
6
|
}
|
|
10
|
-
|
|
7
|
+
export { boundingHull };
|
|
11
8
|
//# sourceMappingURL=bounding-hull.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounding-hull.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/bounding-hull.ts"],"names":[],"mappings":"
|
|
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,cAAc;AACd,SAAS,YAAY,CACb,CAAc,EACd,IAAgB,EAChB,QAAgB,oBAAoB;IAE3C,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAE9C,OAAO,QAAQ,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.drawBranch = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
5
|
-
const get_curve_to_next_1 = require("../../../get-curve-to-next");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getCurveToNext } from '../../../get-curve-to-next.js';
|
|
6
3
|
/** @hidden */
|
|
7
4
|
function drawBranch(g, branch, delay) {
|
|
8
5
|
let classes = 'thin5 purple nofill';
|
|
@@ -13,14 +10,14 @@ function drawBranch(g, branch, delay) {
|
|
|
13
10
|
continue;
|
|
14
11
|
}
|
|
15
12
|
//let bezier = cpNode.matCurveToNextVertex;
|
|
16
|
-
let bezier =
|
|
13
|
+
let bezier = getCurveToNext(cpNode);
|
|
17
14
|
if (!bezier) {
|
|
18
15
|
continue;
|
|
19
16
|
}
|
|
20
17
|
i++;
|
|
21
|
-
$svgs.push(...
|
|
18
|
+
$svgs.push(...drawFs.bezier(g, bezier, classes, delay));
|
|
22
19
|
}
|
|
23
20
|
return $svgs;
|
|
24
21
|
}
|
|
25
|
-
|
|
22
|
+
export { drawBranch };
|
|
26
23
|
//# sourceMappingURL=branch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/branch.ts"],"names":[],"mappings":"
|
|
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;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,cAAc;AACd,SAAS,UAAU,CAAC,CAAc,EAAE,MAAgB,EAAE,KAAc;IAEhE,IAAI,OAAO,GAAG,qBAAqB,CAAC;IAEpC,IAAI,KAAK,GAAiB,EAAE,CAAC;IAC7B,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE;QACvB,IAAI,MAAM,CAAC,aAAa,EAAE,EAAE;YAAE,SAAS;SAAE;QACzC,2CAA2C;QAC3C,IAAI,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QACpC,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,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.culls = void 0;
|
|
4
1
|
/** @hidden */
|
|
5
2
|
function culls(g, culls) {
|
|
6
3
|
let $elems = [];
|
|
@@ -10,7 +7,6 @@ function culls(g, culls) {
|
|
|
10
7
|
}
|
|
11
8
|
return $elems;
|
|
12
9
|
}
|
|
13
|
-
exports.culls = culls;
|
|
14
10
|
/** @hidden */
|
|
15
11
|
function drawCircle(g, center, radiusPercent, classes) {
|
|
16
12
|
const XMLNS = 'http://www.w3.org/2000/svg';
|
|
@@ -22,4 +18,5 @@ function drawCircle(g, center, radiusPercent, classes) {
|
|
|
22
18
|
g.appendChild($circle);
|
|
23
19
|
return $circle;
|
|
24
20
|
}
|
|
21
|
+
export { culls };
|
|
25
22
|
//# sourceMappingURL=culls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"culls.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/culls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"culls.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/culls.ts"],"names":[],"mappings":"AAGA,cAAc;AACd,SAAS,KAAK,CAAC,CAAc,EAAE,KAAe;IAC1C,IAAI,MAAM,GAAiB,EAAE,CAAC;IAE9B,KAAK,IAAI,MAAM,IAAI,KAAK,EAAE;QACtB,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;QAEtB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC;KAC3D;IAEJ,OAAO,MAAM,CAAC;AACf,CAAC;AAGD,cAAc;AACd,SAAS,UAAU,CACX,CAAc,EACd,MAAgB,EAChB,aAAqB,EACrB,OAAe;IAEnB,MAAM,KAAK,GAAG,4BAA4B,CAAC;IAE3C,IAAI,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACxD,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,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.drawCirclePercent = void 0;
|
|
4
1
|
/** @hidden */
|
|
5
2
|
function drawCirclePercent(g, center, radiusPercent, classes) {
|
|
6
3
|
const XMLNS = 'http://www.w3.org/2000/svg';
|
|
@@ -12,5 +9,5 @@ function drawCirclePercent(g, center, radiusPercent, classes) {
|
|
|
12
9
|
g.appendChild($circle);
|
|
13
10
|
return $circle;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
export { drawCirclePercent };
|
|
16
13
|
//# sourceMappingURL=draw-circle-percent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-circle-percent.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-circle-percent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draw-circle-percent.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-circle-percent.ts"],"names":[],"mappings":"AACA,cAAc;AACd,SAAS,iBAAiB,CAClB,CAAc,EACd,MAAgB,EAChB,aAAqB,EACrB,OAAe;IAEnB,MAAM,KAAK,GAAG,4BAA4B,CAAC;IAE3C,IAAI,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACxD,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,4 +1,4 @@
|
|
|
1
|
-
import { IDebugElems } from '../../debug-elem-types';
|
|
1
|
+
import { IDebugElems } from '../../debug-elem-types.js';
|
|
2
2
|
/** @hidden */
|
|
3
3
|
declare type TDrawElemFunctions = {
|
|
4
4
|
[T in keyof IDebugElems]: (g: SVGGElement, elem: IDebugElems[T], classes?: string, delay?: number) => SVGElement[];
|
|
@@ -1,49 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const leaves_1 = require("./leaves");
|
|
16
|
-
const culls_1 = require("./culls");
|
|
17
|
-
const one_prong_at_dull_corner_1 = require("./one-prong-at-dull-corner");
|
|
1
|
+
import { drawOneProng } from './one-prong.js';
|
|
2
|
+
import { twoProng } from './two-prong.js';
|
|
3
|
+
import { threeProng } from './three-prong.js';
|
|
4
|
+
import { vertex } from './vertex.js';
|
|
5
|
+
import { boundingHull } from './bounding-hull.js';
|
|
6
|
+
import { looseBoundingBox } from './loose-bounding-box.js';
|
|
7
|
+
import { tightBoundingBox } from './tight-bounding-box.js';
|
|
8
|
+
import { sharpCorner } from './sharp-corner.js';
|
|
9
|
+
import { dullCorner } from './dull-corner.js';
|
|
10
|
+
import { drawMat } from './mat.js';
|
|
11
|
+
import { maxVertex } from './max-vertex.js';
|
|
12
|
+
import { leaves } from './leaves.js';
|
|
13
|
+
import { culls } from './culls.js';
|
|
14
|
+
import { oneProngAtDullCorner } from './one-prong-at-dull-corner.js';
|
|
18
15
|
/** @hidden */
|
|
19
16
|
function notImplementedYet(g, elem) {
|
|
20
17
|
return []; // TODO - implement relevant drawing function
|
|
21
18
|
}
|
|
22
19
|
/** @hidden */
|
|
23
20
|
let drawElemFunctions = {
|
|
24
|
-
oneProng:
|
|
25
|
-
oneProngAtDullCorner
|
|
26
|
-
twoProng_regular:
|
|
27
|
-
twoProng_failed:
|
|
28
|
-
twoProng_notAdded:
|
|
29
|
-
twoProng_deleted:
|
|
30
|
-
twoProng_holeClosing:
|
|
31
|
-
threeProng
|
|
21
|
+
oneProng: drawOneProng,
|
|
22
|
+
oneProngAtDullCorner,
|
|
23
|
+
twoProng_regular: twoProng,
|
|
24
|
+
twoProng_failed: twoProng,
|
|
25
|
+
twoProng_notAdded: twoProng,
|
|
26
|
+
twoProng_deleted: twoProng,
|
|
27
|
+
twoProng_holeClosing: twoProng,
|
|
28
|
+
threeProng,
|
|
32
29
|
//minY,
|
|
33
|
-
boundingHull
|
|
34
|
-
looseBoundingBox
|
|
35
|
-
tightBoundingBox
|
|
36
|
-
sharpCorner
|
|
37
|
-
dullCorner
|
|
38
|
-
vertex
|
|
39
|
-
mat:
|
|
40
|
-
sat:
|
|
30
|
+
boundingHull,
|
|
31
|
+
looseBoundingBox,
|
|
32
|
+
tightBoundingBox,
|
|
33
|
+
sharpCorner,
|
|
34
|
+
dullCorner,
|
|
35
|
+
vertex,
|
|
36
|
+
mat: drawMat('mat'),
|
|
37
|
+
sat: drawMat('sat'),
|
|
41
38
|
//loop,
|
|
42
39
|
//loops,
|
|
43
|
-
maxVertex
|
|
44
|
-
leaves
|
|
45
|
-
culls
|
|
40
|
+
maxVertex,
|
|
41
|
+
leaves,
|
|
42
|
+
culls,
|
|
46
43
|
cpNode: notImplementedYet
|
|
47
44
|
};
|
|
48
|
-
|
|
45
|
+
export { drawElemFunctions };
|
|
49
46
|
//# sourceMappingURL=draw-elem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draw-elem.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-elem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draw-elem.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-elem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAM,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAU,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAQ,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAY,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAM,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAO,MAAM,mBAAmB,CAAC;AACrD,OAAO,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;AAQrE,cAAc;AACd,SAAS,iBAAiB,CAA4C,CAAa,EAAE,IAAO;IAC3F,OAAO,EAAkB,CAAC,CAAC,6CAA6C;AACzE,CAAC;AAGD,cAAc;AACd,IAAI,iBAAiB,GAAuB;IAC3C,QAAQ,EAAE,YAAY;IACtB,oBAAoB;IAEpB,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,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dullCorner = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function dullCorner(g, curve) {
|
|
7
4
|
const scaleFactor = 1;
|
|
8
|
-
let
|
|
9
|
-
let
|
|
5
|
+
let ps = curve.ps;
|
|
6
|
+
let p = curve.ps[ps.length - 1];
|
|
7
|
+
let $pos = drawFs.dot(g, p, 0.5 * scaleFactor, 'orange');
|
|
10
8
|
return $pos;
|
|
11
9
|
}
|
|
12
|
-
|
|
10
|
+
export { dullCorner };
|
|
13
11
|
//# sourceMappingURL=dull-corner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/dull-corner.ts"],"names":[],"mappings":"
|
|
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,cAAc;AACd,SAAS,UAAU,CAAC,CAAc,EAAE,KAAY;IAC/C,MAAM,WAAW,GAAG,CAAC,CAAC;IAEtB,IAAI,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAClB,IAAI,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC;IAC9B,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,GAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAEvD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.leaves = void 0;
|
|
4
|
-
const draw_circle_percent_1 = require("./draw-circle-percent");
|
|
1
|
+
import { drawCirclePercent } from './draw-circle-percent.js';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function leaves(g, leaves) {
|
|
7
4
|
let $elems = [];
|
|
8
5
|
for (let cpNode of leaves) {
|
|
9
6
|
let cp = cpNode.cp;
|
|
10
7
|
let p = cp.circle.center;
|
|
11
|
-
$elems.push(
|
|
8
|
+
$elems.push(drawCirclePercent(g, p, 0.5, 'pinker thin5 nofill'));
|
|
12
9
|
}
|
|
13
10
|
return $elems;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
export { leaves };
|
|
16
13
|
//# sourceMappingURL=leaves.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaves.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/leaves.ts"],"names":[],"mappings":"
|
|
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,cAAc;AACd,SAAS,MAAM,CAAC,CAAc,EAAE,MAAgB;IAC5C,IAAI,MAAM,GAAiB,EAAE,CAAC;IAE9B,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE;QACvB,IAAI,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QACnB,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;QAEzB,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,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loop = void 0;
|
|
4
1
|
// TODO - finish
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function loop(g, loop) {
|
|
@@ -11,5 +8,5 @@ function loop(g, loop) {
|
|
|
11
8
|
*/
|
|
12
9
|
return [];
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
export { loop };
|
|
15
12
|
//# sourceMappingURL=loop.js.map
|
|
@@ -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":"AAEA,gBAAgB;AAChB,cAAc;AACd,SAAS,IAAI,CAAC,CAAc,EAAE,IAAU;IACpC;;;;MAIE;IACF,OAAO,EAAE,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loops = void 0;
|
|
4
1
|
// TODO - finish
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function loops(g, loops) {
|
|
7
4
|
return [];
|
|
8
5
|
}
|
|
9
|
-
|
|
6
|
+
export { loops };
|
|
10
7
|
//# sourceMappingURL=loops.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loops.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loops.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loops.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loops.ts"],"names":[],"mappings":"AAGA,gBAAgB;AAChB,cAAc;AACd,SAAS,KAAK,CAAC,CAAc,EAAE,KAAa;IACxC,OAAO,EAAE,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.looseBoundingBox = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from "flo-draw";
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function looseBoundingBox(g, box) {
|
|
7
4
|
let [[x0, y0], [x1, y1]] = box;
|
|
8
5
|
box = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
|
|
9
|
-
let $box =
|
|
6
|
+
let $box = drawFs.polygon(g, box, 'thin5 brown nofill');
|
|
10
7
|
return $box;
|
|
11
8
|
}
|
|
12
|
-
|
|
9
|
+
export { looseBoundingBox };
|
|
13
10
|
//# sourceMappingURL=loose-bounding-box.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loose-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/loose-bounding-box.ts"],"names":[],"mappings":"
|
|
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,cAAc;AACd,SAAS,gBAAgB,CAAC,CAAc,EAAE,GAAe;IAExD,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC;IAC9B,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,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAAC;IAExD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const traverse_edges_1 = require("../../../traverse-edges");
|
|
5
|
-
const flo_draw_1 = require("flo-draw");
|
|
6
|
-
const get_curve_to_next_1 = require("../../../get-curve-to-next");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { traverseEdges } from '../../../traverse-edges.js';
|
|
3
|
+
import { getCurveToNext } from '../../../get-curve-to-next.js';
|
|
7
4
|
/** @hidden */
|
|
8
5
|
function drawMat(type) {
|
|
9
6
|
let classes = type === 'mat'
|
|
@@ -16,19 +13,19 @@ function drawMat(type) {
|
|
|
16
13
|
}
|
|
17
14
|
let $svgs = [];
|
|
18
15
|
let i = 0;
|
|
19
|
-
|
|
16
|
+
traverseEdges(cpNode, cpNode => {
|
|
20
17
|
if (cpNode.isTerminating()) {
|
|
21
18
|
return;
|
|
22
19
|
}
|
|
23
|
-
let bezier =
|
|
20
|
+
let bezier = getCurveToNext(cpNode);
|
|
24
21
|
if (!bezier) {
|
|
25
22
|
return;
|
|
26
23
|
}
|
|
27
24
|
i++;
|
|
28
|
-
$svgs.push(...
|
|
25
|
+
$svgs.push(...drawFs.bezier(g, bezier, classes /*, i*500*/));
|
|
29
26
|
});
|
|
30
27
|
return $svgs;
|
|
31
28
|
};
|
|
32
29
|
}
|
|
33
|
-
|
|
30
|
+
export { drawMat };
|
|
34
31
|
//# sourceMappingURL=mat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mat.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/mat.ts"],"names":[],"mappings":"
|
|
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,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,cAAc;AACd,SAAS,OAAO,CAAC,IAAmB;IAEhC,IAAI,OAAO,GAAW,IAAI,KAAK,KAAK;QAChC,CAAC,CAAC,qBAAqB;QACvB,CAAC,CAAC,mBAAmB,CAAC;IAE1B,OAAO,CAAC,CAAc,EAAE,GAAQ,EAAE,EAAE;QAChC,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAExB,IAAI,CAAC,MAAM,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QAElC,IAAI,KAAK,GAAiB,EAAE,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;YAC3B,IAAI,MAAM,CAAC,aAAa,EAAE,EAAE;gBAAE,OAAO;aAAE;YAEvC,IAAI,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;YAEpC,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,CAAA,WAAW,CAAC,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACjB,CAAC,CAAA;AACL,CAAC;AAGD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maxVertex = void 0;
|
|
4
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
5
2
|
/** @hidden */
|
|
6
3
|
function maxVertex(g, cpNode) {
|
|
7
4
|
let circle = cpNode.cp.circle;
|
|
8
|
-
let $elems =
|
|
5
|
+
let $elems = drawFs.circle(g, circle, 'brown thin10 nofill');
|
|
9
6
|
return $elems;
|
|
10
7
|
}
|
|
11
|
-
|
|
8
|
+
export { maxVertex };
|
|
12
9
|
//# sourceMappingURL=max-vertex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"max-vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/max-vertex.ts"],"names":[],"mappings":"
|
|
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,cAAc;AACd,SAAS,SAAS,CAAC,CAAc,EAAE,MAAc;IAC7C,IAAI,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC;IAE9B,IAAI,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEhE,OAAO,MAAM,CAAC;AACf,CAAC;AAGD,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.minY = void 0;
|
|
4
|
-
const flo_bezier3_1 = require("flo-bezier3");
|
|
5
|
-
const flo_draw_1 = require("flo-draw");
|
|
1
|
+
import { toCubic, evalDeCasteljau } from 'flo-bezier3';
|
|
2
|
+
import { drawFs } from 'flo-draw';
|
|
6
3
|
/** @hidden */
|
|
7
4
|
function minY(g, pos) {
|
|
8
|
-
let p =
|
|
9
|
-
let ps =
|
|
10
|
-
console.log('x: ',
|
|
11
|
-
console.log('y: ',
|
|
12
|
-
console.log('t: ', pos.t);
|
|
13
|
-
let $elems =
|
|
5
|
+
let p = evalDeCasteljau(pos.curve.ps, pos.t);
|
|
6
|
+
let ps = toCubic(pos.curve.ps);
|
|
7
|
+
//console.log('x: ', getX(ps));
|
|
8
|
+
//console.log('y: ', getY(ps));
|
|
9
|
+
//console.log('t: ', pos.t);
|
|
10
|
+
let $elems = drawFs.crossHair(g, p, 'red thin10 nofill');
|
|
14
11
|
return $elems;
|
|
15
12
|
}
|
|
16
|
-
|
|
13
|
+
export { minY };
|
|
17
14
|
//# sourceMappingURL=min-y.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/min-y.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/min-y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,IAAI,CAAC,CAAc,EAAE,GAAkB;IAC5C,IAAI,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAE;IAE9C,IAAI,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,+BAA+B;IAC/B,+BAA+B;IAC/B,4BAA4B;IAE5B,IAAI,MAAM,GAAG,MAAM,CAAC,SAAS,CACrB,CAAC,EAAE,CAAC,EAAE,mBAAmB,CACnC,CAAC;IAEC,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|