flo-mat 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +69 -0
- package/README.md +9 -27
- package/browser/index.js +29604 -7008
- package/browser/index.min.js +1 -2
- package/node/circle.d.ts +20 -20
- package/node/circle.js +31 -31
- package/node/circle.js.map +1 -1
- package/node/compare-curvatures-at-interface.d.ts +19 -19
- package/node/compare-curvatures-at-interface.js +124 -124
- package/node/compare-curvatures-at-interface.js.map +1 -1
- package/node/contact-point.d.ts +26 -26
- package/node/contact-point.js +25 -25
- package/node/cp-node/clone.d.ts +8 -8
- package/node/cp-node/clone.js +31 -31
- package/node/cp-node/clone.js.map +1 -1
- package/node/cp-node/remove.d.ts +9 -9
- package/node/cp-node/remove.js +19 -19
- package/node/cp-node/remove.js.map +1 -1
- package/node/cp-node.d.ts +202 -202
- package/node/cp-node.js +320 -320
- package/node/cp-node.js.map +1 -1
- package/node/curve.d.ts +46 -46
- package/node/curve.js +88 -88
- package/node/curve.js.map +1 -1
- package/node/debug/cp-node-for-debugging.d.ts +11 -11
- package/node/debug/cp-node-for-debugging.js +1 -1
- package/node/debug/debug-elem-types.d.ts +32 -32
- package/node/debug/debug-elem-types.js +1 -1
- package/node/debug/debug.d.ts +50 -50
- package/node/debug/debug.js +75 -75
- package/node/debug/functions/draw-elem/bounding-hull.d.ts +3 -3
- package/node/debug/functions/draw-elem/bounding-hull.js +7 -7
- package/node/debug/functions/draw-elem/bounding-hull.js.map +1 -1
- package/node/debug/functions/draw-elem/branch.d.ts +4 -4
- package/node/debug/functions/draw-elem/branch.js +22 -22
- package/node/debug/functions/draw-elem/branch.js.map +1 -1
- package/node/debug/functions/draw-elem/culls.d.ts +4 -4
- package/node/debug/functions/draw-elem/culls.js +21 -21
- package/node/debug/functions/draw-elem/culls.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-circle-percent.d.ts +3 -3
- package/node/debug/functions/draw-elem/draw-circle-percent.js +12 -12
- package/node/debug/functions/draw-elem/draw-circle-percent.js.map +1 -1
- package/node/debug/functions/draw-elem/draw-elem.d.ts +8 -8
- package/node/debug/functions/draw-elem/draw-elem.js +45 -45
- package/node/debug/functions/draw-elem/draw-elem.js.map +1 -1
- package/node/debug/functions/draw-elem/dull-corner.d.ts +4 -4
- package/node/debug/functions/draw-elem/dull-corner.js +10 -10
- package/node/debug/functions/draw-elem/dull-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/leaves.d.ts +4 -4
- package/node/debug/functions/draw-elem/leaves.js +12 -12
- package/node/debug/functions/draw-elem/leaves.js.map +1 -1
- package/node/debug/functions/draw-elem/loop.d.ts +4 -4
- package/node/debug/functions/draw-elem/loop.js +11 -11
- package/node/debug/functions/draw-elem/loops.d.ts +4 -4
- package/node/debug/functions/draw-elem/loops.js +6 -6
- package/node/debug/functions/draw-elem/loose-bounding-box.d.ts +3 -3
- package/node/debug/functions/draw-elem/loose-bounding-box.js +9 -9
- package/node/debug/functions/draw-elem/loose-bounding-box.js.map +1 -1
- package/node/debug/functions/draw-elem/mat.d.ts +4 -4
- package/node/debug/functions/draw-elem/mat.js +30 -30
- package/node/debug/functions/draw-elem/mat.js.map +1 -1
- package/node/debug/functions/draw-elem/max-vertex.d.ts +4 -4
- package/node/debug/functions/draw-elem/max-vertex.js +8 -8
- package/node/debug/functions/draw-elem/max-vertex.js.map +1 -1
- package/node/debug/functions/draw-elem/min-y.d.ts +4 -4
- package/node/debug/functions/draw-elem/min-y.js +13 -13
- 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 +4 -4
- package/node/debug/functions/draw-elem/one-prong-at-dull-corner.js +12 -12
- 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 +4 -4
- package/node/debug/functions/draw-elem/one-prong.js +16 -16
- package/node/debug/functions/draw-elem/one-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/sharp-corner.d.ts +4 -4
- package/node/debug/functions/draw-elem/sharp-corner.js +9 -9
- package/node/debug/functions/draw-elem/sharp-corner.js.map +1 -1
- package/node/debug/functions/draw-elem/three-prong.d.ts +4 -4
- package/node/debug/functions/draw-elem/three-prong.js +16 -16
- package/node/debug/functions/draw-elem/three-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/tight-bounding-box.d.ts +3 -3
- package/node/debug/functions/draw-elem/tight-bounding-box.js +7 -7
- package/node/debug/functions/draw-elem/tight-bounding-box.js.map +1 -1
- package/node/debug/functions/draw-elem/two-prong.d.ts +4 -4
- package/node/debug/functions/draw-elem/two-prong.js +36 -36
- package/node/debug/functions/draw-elem/two-prong.js.map +1 -1
- package/node/debug/functions/draw-elem/vertex.d.ts +4 -4
- package/node/debug/functions/draw-elem/vertex.js +27 -27
- package/node/debug/functions/draw-elem/vertex.js.map +1 -1
- package/node/debug/functions/general.d.ts +48 -48
- package/node/debug/functions/general.js +52 -52
- package/node/debug/functions/general.js.map +1 -1
- package/node/debug/functions/three-prong.d.ts +11 -11
- package/node/debug/functions/three-prong.js +184 -184
- package/node/debug/functions/three-prong.js.map +1 -1
- package/node/debug/functions/two-prong.d.ts +13 -13
- package/node/debug/functions/two-prong.js +117 -117
- package/node/debug/functions/two-prong.js.map +1 -1
- package/node/debug/three-prong-for-debugging.d.ts +31 -31
- package/node/debug/three-prong-for-debugging.js +20 -20
- package/node/debug/two-prong-for-debugging.d.ts +26 -26
- package/node/debug/two-prong-for-debugging.js +1 -1
- package/node/find-mats.d.ts +26 -26
- package/node/find-mats.js +122 -125
- package/node/find-mats.js.map +1 -1
- package/node/get-boundary-bezier-parts-to-next.d.ts +9 -9
- package/node/get-boundary-bezier-parts-to-next.js +42 -42
- package/node/get-boundary-bezier-parts-to-next.js.map +1 -1
- package/node/get-boundary-beziers-to-next.d.ts +8 -8
- package/node/get-boundary-beziers-to-next.js +44 -44
- package/node/get-boundary-beziers-to-next.js.map +1 -1
- package/node/get-bounding-box-.d.ts +2 -2
- package/node/get-bounding-box-.js +4 -4
- package/node/get-branches.d.ts +12 -12
- package/node/get-branches.js +68 -68
- package/node/get-branches.js.map +1 -1
- package/node/get-curve/get-curve-between.d.ts +9 -9
- package/node/get-curve/get-curve-between.js +56 -56
- package/node/get-curve/get-curve-between.js.map +1 -1
- package/node/get-curve/get-edge-direction.d.ts +9 -9
- package/node/get-curve/get-edge-direction.js +53 -53
- package/node/get-curve/get-edge-direction.js.map +1 -1
- package/node/get-curve-to-next.d.ts +9 -9
- package/node/get-curve-to-next.js +11 -11
- package/node/get-interface-ccw.d.ts +24 -24
- package/node/get-interface-ccw.js +97 -97
- package/node/get-interface-ccw.js.map +1 -1
- package/node/index.d.ts +36 -36
- package/node/index.js +32 -32
- package/node/loop/get-max-coordinate.d.ts +10 -10
- package/node/loop/get-max-coordinate.js +43 -43
- package/node/loop/get-max-coordinate.js.map +1 -1
- package/node/loop.d.ts +16 -16
- package/node/loop.js +34 -34
- package/node/loop.js.map +1 -1
- package/node/mat/add-to-cp-graph.d.ts +16 -16
- package/node/mat/add-to-cp-graph.js +30 -30
- package/node/mat/add-to-cp-graph.js.map +1 -1
- package/node/mat/bezier-piece.d.ts +12 -12
- package/node/mat/bezier-piece.js +1 -1
- package/node/mat/closest-boundary-point/closest-points-on-curve.d.ts +14 -14
- package/node/mat/closest-boundary-point/closest-points-on-curve.js +72 -73
- 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 +9 -9
- package/node/mat/closest-boundary-point/cull-bezier-pieces.js +19 -19
- 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 +11 -11
- package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.js +24 -24
- 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 +11 -11
- package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.js +26 -26
- 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 +8 -8
- package/node/mat/closest-boundary-point/get-best-distance-squared.js +24 -24
- 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 +17 -17
- package/node/mat/closest-boundary-point/get-close-boundary-points.js +80 -80
- 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 +18 -18
- package/node/mat/closest-boundary-point/get-closest-boundary-point.js +40 -40
- package/node/mat/closest-boundary-point/get-closest-boundary-point.js.map +1 -1
- package/node/mat/corner.d.ts +37 -37
- package/node/mat/corner.js +1 -1
- package/node/mat/create-new-cp-tree.d.ts +9 -9
- package/node/mat/create-new-cp-tree.js +23 -23
- package/node/mat/create-new-cp-tree.js.map +1 -1
- package/node/mat/elem-type-two-prong.d.ts +3 -3
- package/node/mat/elem-type-two-prong.js +1 -1
- package/node/mat/find-mat/add-1-prong.d.ts +12 -12
- package/node/mat/find-mat/add-1-prong.js +42 -42
- package/node/mat/find-mat/add-1-prong.js.map +1 -1
- package/node/mat/find-mat/add-2-prong.d.ts +21 -21
- package/node/mat/find-mat/add-2-prong.js +192 -192
- package/node/mat/find-mat/add-2-prong.js.map +1 -1
- package/node/mat/find-mat/add-3-prong.d.ts +19 -19
- package/node/mat/find-mat/add-3-prong.js +54 -54
- package/node/mat/find-mat/add-3-prong.js.map +1 -1
- package/node/mat/find-mat/add-debug-info.d.ts +9 -9
- package/node/mat/find-mat/add-debug-info.js +67 -69
- 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 +11 -11
- package/node/mat/find-mat/create-get-interesting-points-on-loop.js +51 -51
- 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 +12 -12
- package/node/mat/find-mat/create-initial-cp-graph.js +40 -40
- 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 +8 -8
- package/node/mat/find-mat/find-2-prong/add-debug-info.js +21 -21
- 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 +11 -11
- package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js +29 -29
- 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 +37 -37
- package/node/mat/find-mat/find-2-prong/find-2-prong.js +232 -232
- 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.d.ts +9 -9
- package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js +39 -39
- 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 +11 -11
- package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js +37 -37
- 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 +9 -9
- package/node/mat/find-mat/find-2-prong/x-for-debugging.js +1 -1
- package/node/mat/find-mat/find-3-prong/calc-better-x.d.ts +19 -19
- package/node/mat/find-mat/find-3-prong/calc-better-x.js +36 -36
- 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 +13 -13
- package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.js +25 -25
- 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 +22 -22
- package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.js +159 -159
- 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 +16 -16
- package/node/mat/find-mat/find-3-prong/find-3-prong.js +76 -76
- 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 +9 -9
- package/node/mat/find-mat/find-3-prong/get-closest-points.js +16 -16
- 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 +15 -15
- package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.js +20 -20
- 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 +16 -16
- package/node/mat/find-mat/find-and-add-2-prongs.js +73 -74
- 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 +13 -13
- package/node/mat/find-mat/find-and-add-3-prongs.js +146 -147
- 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 +14 -14
- package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.js +33 -33
- 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 +4 -4
- package/node/mat/find-mat/get-potential-2-prongs.js +16 -16
- package/node/mat/find-mat/get-potential-2-prongs.js.map +1 -1
- package/node/mat/find-mat/get-sharp-corners.d.ts +4 -4
- package/node/mat/find-mat/get-sharp-corners.js +17 -17
- package/node/mat/find-mat/get-sharp-corners.js.map +1 -1
- package/node/mat/geometry/get-closest-square-distance-to-rect.d.ts +5 -5
- package/node/mat/geometry/get-closest-square-distance-to-rect.js +49 -49
- package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.d.ts +5 -5
- package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js +15 -15
- package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js.map +1 -1
- package/node/mat/get-boundary-piece-beziers.d.ts +11 -11
- package/node/mat/get-boundary-piece-beziers.js +58 -58
- package/node/mat/get-boundary-piece-beziers.js.map +1 -1
- package/node/mat/get-contact-circles-at-interface.d.ts +8 -8
- package/node/mat/get-contact-circles-at-interface.js +20 -20
- package/node/mat/get-contact-circles-at-interface.js.map +1 -1
- package/node/mat/get-largest-vertex.d.ts +4 -4
- package/node/mat/get-largest-vertex.js +9 -9
- package/node/mat/get-leaves.d.ts +4 -4
- package/node/mat/get-leaves.js +12 -12
- package/node/mat/get-leaves.js.map +1 -1
- package/node/mat/get-neighboring-cps.d.ts +14 -14
- package/node/mat/get-neighboring-cps.js +30 -30
- package/node/mat/get-neighboring-cps.js.map +1 -1
- package/node/mat/get-two-prong-type.d.ts +5 -5
- package/node/mat/get-two-prong-type.js +8 -8
- package/node/mat/is-another-cp-closeby.d.ts +20 -20
- package/node/mat/is-another-cp-closeby.js +55 -55
- package/node/mat/is-another-cp-closeby.js.map +1 -1
- package/node/mat/simplify-mat-map-only.d.ts +23 -23
- package/node/mat/simplify-mat-map-only.js +80 -80
- package/node/mat/simplify-mat-map-only.js.map +1 -1
- package/node/mat/to-scale-axis/add-debug-info.d.ts +7 -7
- package/node/mat/to-scale-axis/add-debug-info.js +13 -13
- package/node/mat/to-scale-axis/add-debug-info.js.map +1 -1
- package/node/mat/to-scale-axis/cull-non-cycles.d.ts +9 -9
- package/node/mat/to-scale-axis/cull-non-cycles.js +51 -51
- package/node/mat/to-scale-axis/cull-non-cycles.js.map +1 -1
- package/node/mat/to-scale-axis/cull.d.ts +12 -12
- package/node/mat/to-scale-axis/cull.js +132 -132
- package/node/mat/to-scale-axis/cull.js.map +1 -1
- package/node/mat/trim-mat.d.ts +8 -8
- package/node/mat/trim-mat.js +16 -16
- package/node/mat/trim-mat.js.map +1 -1
- package/node/mat.d.ts +22 -22
- package/node/mat.js +1 -1
- package/node/point-on-shape.d.ts +73 -73
- package/node/point-on-shape.js +167 -167
- package/node/point-on-shape.js.map +1 -1
- package/node/simplify-mat.d.ts +16 -16
- package/node/simplify-mat.js +71 -71
- package/node/simplify-mat.js.map +1 -1
- package/node/svg/get-loop-bounds.d.ts +12 -12
- package/node/svg/get-loop-bounds.js +80 -80
- package/node/svg/get-loop-bounds.js.map +1 -1
- package/node/svg/get-min-y-pos.d.ts +8 -8
- package/node/svg/get-min-y-pos.js +9 -9
- package/node/svg/get-shape-bounds.d.ts +9 -9
- package/node/svg/get-shape-bounds.js +35 -35
- package/node/svg/get-shape-bounds.js.map +1 -1
- package/node/sweep-line/sweep-line.d.ts +18 -18
- package/node/sweep-line/sweep-line.js +72 -72
- package/node/sweep-line/sweep-line.js.map +1 -1
- package/node/to-scale-axis.d.ts +16 -16
- package/node/to-scale-axis.js +74 -73
- package/node/to-scale-axis.js.map +1 -1
- package/node/traverse-edges.d.ts +10 -10
- package/node/traverse-edges.js +21 -21
- package/node/traverse-edges.js.map +1 -1
- package/node/traverse-vertices.d.ts +12 -12
- package/node/traverse-vertices.js +27 -27
- package/node/traverse-vertices.js.map +1 -1
- package/package.json +29 -24
- package/src/circle.ts +3 -3
- package/src/compare-curvatures-at-interface.ts +36 -36
- package/src/cp-node/clone.ts +6 -6
- package/src/cp-node/remove.ts +4 -4
- package/src/cp-node.ts +20 -20
- package/src/curve.ts +19 -19
- package/src/debug/functions/draw-elem/bounding-hull.ts +2 -2
- package/src/debug/functions/draw-elem/branch.ts +4 -4
- package/src/debug/functions/draw-elem/culls.ts +4 -4
- package/src/debug/functions/draw-elem/draw-circle-percent.ts +2 -2
- package/src/debug/functions/draw-elem/draw-elem.ts +1 -1
- package/src/debug/functions/draw-elem/dull-corner.ts +3 -3
- package/src/debug/functions/draw-elem/leaves.ts +4 -4
- package/src/debug/functions/draw-elem/loose-bounding-box.ts +2 -2
- package/src/debug/functions/draw-elem/mat.ts +4 -4
- package/src/debug/functions/draw-elem/max-vertex.ts +2 -2
- package/src/debug/functions/draw-elem/min-y.ts +3 -3
- package/src/debug/functions/draw-elem/one-prong-at-dull-corner.ts +4 -4
- package/src/debug/functions/draw-elem/one-prong.ts +4 -4
- package/src/debug/functions/draw-elem/sharp-corner.ts +2 -2
- package/src/debug/functions/draw-elem/three-prong.ts +7 -7
- package/src/debug/functions/draw-elem/tight-bounding-box.ts +1 -1
- package/src/debug/functions/draw-elem/two-prong.ts +1 -1
- package/src/debug/functions/draw-elem/vertex.ts +20 -14
- package/src/debug/functions/general.ts +3 -3
- package/src/debug/functions/three-prong.ts +37 -37
- package/src/debug/functions/two-prong.ts +15 -15
- package/src/find-mats.ts +19 -19
- package/src/get-boundary-bezier-parts-to-next.ts +8 -8
- package/src/get-boundary-beziers-to-next.ts +8 -8
- package/src/get-branches.ts +7 -7
- package/src/get-curve/get-curve-between.ts +21 -21
- package/src/get-curve/get-edge-direction.ts +13 -14
- package/src/get-interface-ccw.ts +12 -12
- package/src/loop/get-max-coordinate.ts +7 -7
- package/src/loop.ts +4 -4
- package/src/mat/add-to-cp-graph.ts +8 -8
- package/src/mat/closest-boundary-point/closest-points-on-curve.ts +5 -6
- package/src/mat/closest-boundary-point/cull-bezier-pieces.ts +1 -1
- package/src/mat/closest-boundary-point/cull-by-loose-bounding-box.ts +5 -5
- package/src/mat/closest-boundary-point/cull-by-tight-boundary-box.ts +5 -5
- package/src/mat/closest-boundary-point/get-best-distance-squared.ts +5 -5
- package/src/mat/closest-boundary-point/get-close-boundary-points.ts +15 -15
- package/src/mat/closest-boundary-point/get-closest-boundary-point.ts +4 -4
- package/src/mat/cmp-cp-on-delta.ts +5 -5
- package/src/mat/create-new-cp-tree.ts +3 -3
- package/src/mat/find-mat/add-1-prong.ts +5 -5
- package/src/mat/find-mat/add-2-prong.ts +42 -42
- package/src/mat/find-mat/add-3-prong.ts +1 -1
- package/src/mat/find-mat/add-debug-info.ts +18 -20
- package/src/mat/find-mat/create-get-interesting-points-on-loop.ts +4 -4
- package/src/mat/find-mat/create-initial-cp-graph.ts +11 -11
- package/src/mat/find-mat/find-2-prong/add-debug-info.ts +4 -4
- package/src/mat/find-mat/find-2-prong/cull-bezier-pieces.ts +5 -5
- package/src/mat/find-mat/find-2-prong/find-2-prong.ts +27 -27
- package/src/mat/find-mat/find-2-prong/find-equidistant-point-on-line.ts +7 -7
- package/src/mat/find-mat/find-2-prong/get-initial-bezier-pieces.ts +4 -4
- package/src/mat/find-mat/find-3-prong/calc-better-x.ts +4 -4
- package/src/mat/find-mat/find-3-prong/calc-initial-3-prong-center.ts +3 -3
- package/src/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.ts +37 -37
- package/src/mat/find-mat/find-3-prong/find-3-prong.ts +16 -16
- package/src/mat/find-mat/find-3-prong/get-closest-points.ts +1 -1
- package/src/mat/find-mat/find-and-add-2-prongs-on-all-paths.ts +2 -2
- package/src/mat/find-mat/find-and-add-2-prongs.ts +14 -16
- package/src/mat/find-mat/find-and-add-3-prongs.ts +19 -19
- package/src/mat/find-mat/find-and-add-hole-closing-2-prongs.ts +6 -6
- package/src/mat/find-mat/get-potential-2-prongs.ts +4 -4
- package/src/mat/find-mat/get-sharp-corners.ts +4 -4
- package/src/mat/find-mat/get-total-abs-curvature.ts +1 -1
- package/src/mat/geometry/get-closest-squared-distance-to-rotated-rect.ts +3 -3
- package/src/mat/get-boundary-piece-beziers.ts +5 -5
- package/src/mat/get-contact-circles-at-interface.ts +1 -1
- package/src/mat/get-edges-as-array.ts +2 -2
- package/src/mat/get-leaves.ts +2 -2
- package/src/mat/get-neighboring-cps.ts +1 -1
- package/src/mat/is-another-cp-closeby.ts +9 -9
- package/src/mat/simplify-mat-map-only.ts +15 -15
- package/src/mat/to-scale-axis/add-debug-info.ts +6 -3
- package/src/mat/to-scale-axis/add-to-tree.ts +10 -10
- package/src/mat/to-scale-axis/calc-groups.ts +19 -19
- package/src/mat/to-scale-axis/create-spacial-tree.ts +4 -4
- package/src/mat/to-scale-axis/cull-non-cycles.ts +5 -5
- package/src/mat/to-scale-axis/cull.ts +5 -5
- package/src/mat/to-scale-axis/get-engulfed-vertices.ts +18 -18
- package/src/mat/trim-mat.ts +1 -1
- package/src/point-on-shape.ts +16 -16
- package/src/simplify-mat.ts +10 -10
- package/src/svg/get-curvature-at-interface.ts +6 -8
- package/src/svg/get-extreme.ts +1 -1
- package/src/svg/get-loop-bounds.ts +13 -13
- package/src/svg/get-shape-bounds.ts +4 -4
- package/src/sweep-line/are-boxes-intersecting.ts +4 -4
- package/src/sweep-line/sweep-line.ts +8 -8
- package/src/to-scale-axis.ts +18 -17
- package/src/traverse-edges.ts +2 -2
- package/src/traverse-vertices.ts +2 -2
- package/tsconfig.json +0 -1
- package/webpack.config.cjs +12 -63
- package/browser/index.min.js.LICENSE.txt +0 -2819
- package/browser/index.module.js +0 -7149
- package/browser/index.module.min.js +0 -2
- package/browser/index.module.min.js.LICENSE.txt +0 -2819
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { drawFs } from "flo-draw";
|
|
2
|
-
/** @hidden */
|
|
3
|
-
function looseBoundingBox(g, box) {
|
|
4
|
-
|
|
5
|
-
box = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
|
|
6
|
-
|
|
7
|
-
return $box;
|
|
8
|
-
}
|
|
9
|
-
export { looseBoundingBox };
|
|
1
|
+
import { drawFs } from "flo-draw";
|
|
2
|
+
/** @hidden */
|
|
3
|
+
function looseBoundingBox(g, box) {
|
|
4
|
+
const [[x0, y0], [x1, y1]] = box;
|
|
5
|
+
box = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
|
|
6
|
+
const $box = drawFs.polygon(g, box, 'thin5 brown nofill');
|
|
7
|
+
return $box;
|
|
8
|
+
}
|
|
9
|
+
export { looseBoundingBox };
|
|
10
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":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,cAAc;AACd,SAAS,gBAAgB,CAAC,CAAc,EAAE,GAAe;IAExD,
|
|
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,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,oBAAoB,CAAC,CAAC;IAE1D,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mat } from '../../../mat.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function drawMat(type: 'mat' | 'sat'): (g: SVGGElement, mat: Mat) => SVGElement[];
|
|
4
|
-
export { drawMat };
|
|
1
|
+
import { Mat } from '../../../mat.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function drawMat(type: 'mat' | 'sat'): (g: SVGGElement, mat: Mat) => SVGElement[];
|
|
4
|
+
export { drawMat };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { traverseEdges } from '../../../traverse-edges.js';
|
|
3
|
-
import { getCurveToNext } from '../../../get-curve-to-next.js';
|
|
4
|
-
/** @hidden */
|
|
5
|
-
function drawMat(type) {
|
|
6
|
-
|
|
7
|
-
? 'thin5 purple nofill'
|
|
8
|
-
: 'thin10 red nofill';
|
|
9
|
-
return (g, mat) => {
|
|
10
|
-
|
|
11
|
-
if (!cpNode) {
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
let i = 0;
|
|
16
|
-
traverseEdges(cpNode, cpNode => {
|
|
17
|
-
if (cpNode.isTerminating()) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (!bezier) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
i++;
|
|
25
|
-
$svgs.push(...drawFs.bezier(g, bezier, classes /*, i*500*/));
|
|
26
|
-
});
|
|
27
|
-
return $svgs;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export { drawMat };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { traverseEdges } from '../../../traverse-edges.js';
|
|
3
|
+
import { getCurveToNext } from '../../../get-curve-to-next.js';
|
|
4
|
+
/** @hidden */
|
|
5
|
+
function drawMat(type) {
|
|
6
|
+
const classes = type === 'mat'
|
|
7
|
+
? 'thin5 purple nofill'
|
|
8
|
+
: 'thin10 red nofill';
|
|
9
|
+
return (g, mat) => {
|
|
10
|
+
const cpNode = mat.cpNode;
|
|
11
|
+
if (!cpNode) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const $svgs = [];
|
|
15
|
+
let i = 0;
|
|
16
|
+
traverseEdges(cpNode, cpNode => {
|
|
17
|
+
if (cpNode.isTerminating()) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const bezier = getCurveToNext(cpNode);
|
|
21
|
+
if (!bezier) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
i++;
|
|
25
|
+
$svgs.push(...drawFs.bezier(g, bezier, classes /*, i*500*/));
|
|
26
|
+
});
|
|
27
|
+
return $svgs;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export { drawMat };
|
|
31
31
|
//# sourceMappingURL=mat.js.map
|
|
@@ -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,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,cAAc;AACd,SAAS,OAAO,CAAC,IAAmB;IAEhC,
|
|
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,MAAM,OAAO,GAAW,IAAI,KAAK,KAAK;QAClC,CAAC,CAAC,qBAAqB;QACvB,CAAC,CAAC,mBAAmB,CAAC;IAE1B,OAAO,CAAC,CAAc,EAAE,GAAQ,EAAE,EAAE;QAChC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAE1B,IAAI,CAAC,MAAM,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QAElC,MAAM,KAAK,GAAiB,EAAE,CAAC;QAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;YAC3B,IAAI,MAAM,CAAC,aAAa,EAAE,EAAE;gBAAE,OAAO;aAAE;YAEvC,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,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,4 +1,4 @@
|
|
|
1
|
-
import { CpNode } from '../../../cp-node.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function maxVertex(g: SVGGElement, cpNode: CpNode): SVGCircleElement[];
|
|
4
|
-
export { maxVertex };
|
|
1
|
+
import { CpNode } from '../../../cp-node.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function maxVertex(g: SVGGElement, cpNode: CpNode): SVGCircleElement[];
|
|
4
|
+
export { maxVertex };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
function maxVertex(g, cpNode) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return $elems;
|
|
7
|
-
}
|
|
8
|
-
export { maxVertex };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
function maxVertex(g, cpNode) {
|
|
4
|
+
const circle = cpNode.cp.circle;
|
|
5
|
+
const $elems = drawFs.circle(g, circle, 'brown thin10 nofill');
|
|
6
|
+
return $elems;
|
|
7
|
+
}
|
|
8
|
+
export { maxVertex };
|
|
9
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":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,SAAS,CAAC,CAAc,EAAE,MAAc;IAC7C,
|
|
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,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 { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function minY(g: SVGGElement, pos: IPointOnShape): SVGElement[];
|
|
4
|
-
export { minY };
|
|
1
|
+
import { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function minY(g: SVGGElement, pos: IPointOnShape): SVGElement[];
|
|
4
|
+
export { minY };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { toCubic, evalDeCasteljau } from 'flo-bezier3';
|
|
2
|
-
import { drawFs } from 'flo-draw';
|
|
3
|
-
/** @hidden */
|
|
4
|
-
function minY(g, pos) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//console.log('x: ', getX(ps));
|
|
8
|
-
//console.log('y: ', getY(ps));
|
|
9
|
-
//console.log('t: ', pos.t);
|
|
10
|
-
|
|
11
|
-
return $elems;
|
|
12
|
-
}
|
|
13
|
-
export { minY };
|
|
1
|
+
import { toCubic, evalDeCasteljau } from 'flo-bezier3';
|
|
2
|
+
import { drawFs } from 'flo-draw';
|
|
3
|
+
/** @hidden */
|
|
4
|
+
function minY(g, pos) {
|
|
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
|
+
const $elems = drawFs.crossHair(g, p, 'red thin10 nofill');
|
|
11
|
+
return $elems;
|
|
12
|
+
}
|
|
13
|
+
export { minY };
|
|
14
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":"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,
|
|
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,MAAM,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAE;IAEhD,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjC,+BAA+B;IAC/B,+BAA+B;IAC/B,4BAA4B;IAE5B,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 { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function oneProngAtDullCorner(g: SVGGElement, pos: IPointOnShape): SVGCircleElement[];
|
|
4
|
-
export { oneProngAtDullCorner };
|
|
1
|
+
import { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function oneProngAtDullCorner(g: SVGGElement, pos: IPointOnShape): SVGCircleElement[];
|
|
4
|
+
export { oneProngAtDullCorner };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
3
|
-
/** @hidden */
|
|
4
|
-
function oneProngAtDullCorner(g, pos) {
|
|
5
|
-
//let oCircle = PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return [...$center, ...$circle, ...$pos];
|
|
11
|
-
}
|
|
12
|
-
export { oneProngAtDullCorner };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
3
|
+
/** @hidden */
|
|
4
|
+
function oneProngAtDullCorner(g, pos) {
|
|
5
|
+
//let oCircle = PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
6
|
+
const oCircle = getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
|
|
7
|
+
const $center = drawFs.dot(g, pos.p, 0.1, 'orange');
|
|
8
|
+
const $circle = drawFs.dot(g, oCircle.center, 0.25, 'orange');
|
|
9
|
+
const $pos = drawFs.circle(g, oCircle, 'orange thin10 nofill');
|
|
10
|
+
return [...$center, ...$circle, ...$pos];
|
|
11
|
+
}
|
|
12
|
+
export { oneProngAtDullCorner };
|
|
13
13
|
//# sourceMappingURL=one-prong-at-dull-corner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-prong-at-dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong-at-dull-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,4BAA4B,CAAC;AAGhF,cAAc;AACd,SAAS,oBAAoB,CAAC,CAAc,EAAE,GAAkB;IAC5D,gFAAgF;IAChF,
|
|
1
|
+
{"version":3,"file":"one-prong-at-dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong-at-dull-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,4BAA4B,CAAC;AAGhF,cAAc;AACd,SAAS,oBAAoB,CAAC,CAAc,EAAE,GAAkB;IAC5D,gFAAgF;IAChF,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 { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function drawOneProng(g: SVGGElement, pos: IPointOnShape, classes: string, delay?: number): SVGCircleElement[];
|
|
4
|
-
export { drawOneProng };
|
|
1
|
+
import { IPointOnShape } from '../../../point-on-shape.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function drawOneProng(g: SVGGElement, pos: IPointOnShape, classes: string, delay?: number): SVGCircleElement[];
|
|
4
|
+
export { drawOneProng };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
3
|
-
import { scaleCircle } from '../../../circle.js';
|
|
4
|
-
/** @hidden */
|
|
5
|
-
const scaleFactor = 0.5;
|
|
6
|
-
/** @hidden */
|
|
7
|
-
function drawOneProng(g, pos, classes, delay = 0) {
|
|
8
|
-
|
|
9
|
-
//PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos),
|
|
10
|
-
getOsculatingCircle(Number.POSITIVE_INFINITY, pos), 1);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return [...$center, ...$circle, ...$pos];
|
|
15
|
-
}
|
|
16
|
-
export { drawOneProng };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getOsculatingCircle } from '../../../point-on-shape.js';
|
|
3
|
+
import { scaleCircle } from '../../../circle.js';
|
|
4
|
+
/** @hidden */
|
|
5
|
+
const scaleFactor = 0.5;
|
|
6
|
+
/** @hidden */
|
|
7
|
+
function drawOneProng(g, pos, classes, delay = 0) {
|
|
8
|
+
const circle = scaleCircle(
|
|
9
|
+
//PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos),
|
|
10
|
+
getOsculatingCircle(Number.POSITIVE_INFINITY, pos), 1);
|
|
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);
|
|
14
|
+
return [...$center, ...$circle, ...$pos];
|
|
15
|
+
}
|
|
16
|
+
export { drawOneProng };
|
|
17
17
|
//# sourceMappingURL=one-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzD,cAAc;AACd,MAAM,WAAW,GAAG,GAAG,CAAC;AAGxB,cAAc;AACd,SAAS,YAAY,CAAC,CAAc,EAAE,GAAkB,EAAE,OAAe,EAAE,KAAK,GAAG,CAAC;IAChF,
|
|
1
|
+
{"version":3,"file":"one-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/one-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzD,cAAc;AACd,MAAM,WAAW,GAAG,GAAG,CAAC;AAGxB,cAAc;AACd,SAAS,YAAY,CAAC,CAAc,EAAE,GAAkB,EAAE,OAAe,EAAE,KAAK,GAAG,CAAC;IAChF,MAAM,MAAM,GAAG,WAAW;IACtB,kEAAkE;IAClE,mBAAmB,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC,EAClD,CAAC,CACJ,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,GAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9E,MAAM,IAAI,GAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;IAEzE,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
|
-
/** @hidden */
|
|
3
|
-
declare function sharpCorner(g: SVGGElement, curve: Curve): SVGCircleElement[];
|
|
4
|
-
export { sharpCorner };
|
|
1
|
+
import { Curve } from '../../../curve.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function sharpCorner(g: SVGGElement, curve: Curve): SVGCircleElement[];
|
|
4
|
+
export { sharpCorner };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
function sharpCorner(g, curve) {
|
|
4
|
-
const scaleFactor = 1;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return $pos;
|
|
8
|
-
}
|
|
9
|
-
export { sharpCorner };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
function sharpCorner(g, curve) {
|
|
4
|
+
const scaleFactor = 1;
|
|
5
|
+
const p = curve.ps[curve.ps.length - 1];
|
|
6
|
+
const $pos = drawFs.dot(g, p, 0.6 * scaleFactor, 'green');
|
|
7
|
+
return $pos;
|
|
8
|
+
}
|
|
9
|
+
export { sharpCorner };
|
|
10
10
|
//# sourceMappingURL=sharp-corner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharp-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/sharp-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,WAAW,CAAC,CAAc,EAAE,KAAY;IAChD,MAAM,WAAW,GAAG,CAAC,CAAC;IAEtB,
|
|
1
|
+
{"version":3,"file":"sharp-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/sharp-corner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,WAAW,CAAC,CAAc,EAAE,KAAY;IAChD,MAAM,WAAW,GAAG,CAAC,CAAC;IAEtB,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,CAAC,CAAC;IAExD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThreeProngForDebugging } from '../../three-prong-for-debugging.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function threeProng(g: SVGGElement, threeProng: ThreeProngForDebugging): SVGCircleElement[];
|
|
4
|
-
export { threeProng };
|
|
1
|
+
import { ThreeProngForDebugging } from '../../three-prong-for-debugging.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function threeProng(g: SVGGElement, threeProng: ThreeProngForDebugging): SVGCircleElement[];
|
|
4
|
+
export { threeProng };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { scaleCircle } from '../../../circle.js';
|
|
3
|
-
/** @hidden */
|
|
4
|
-
const scaleFactor = 0.3;
|
|
5
|
-
/** @hidden */
|
|
6
|
-
function threeProng(g, threeProng) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return [...$center, ...$cp1, ...$cp2, ...$cp3, ...$circle];
|
|
15
|
-
}
|
|
16
|
-
export { threeProng };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { scaleCircle } from '../../../circle.js';
|
|
3
|
+
/** @hidden */
|
|
4
|
+
const scaleFactor = 0.3;
|
|
5
|
+
/** @hidden */
|
|
6
|
+
function threeProng(g, threeProng) {
|
|
7
|
+
const circle = scaleCircle(threeProng.circle, 1);
|
|
8
|
+
const poss = threeProng.poss;
|
|
9
|
+
const $cp1 = drawFs.dot(g, poss[0].p, 0.1 * 1 * scaleFactor, 'blue');
|
|
10
|
+
const $cp2 = drawFs.dot(g, poss[1].p, 0.1 * 2 * scaleFactor, 'blue');
|
|
11
|
+
const $cp3 = drawFs.dot(g, poss[2].p, 0.1 * 3 * scaleFactor, 'blue');
|
|
12
|
+
const $center = drawFs.dot(g, circle.center, 0.3 * scaleFactor, 'blue');
|
|
13
|
+
const $circle = drawFs.circle(g, circle, 'blue thin2 nofill');
|
|
14
|
+
return [...$center, ...$cp1, ...$cp2, ...$cp3, ...$circle];
|
|
15
|
+
}
|
|
16
|
+
export { threeProng };
|
|
17
17
|
//# sourceMappingURL=three-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"three-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/three-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzD,cAAc;AACd,MAAM,WAAW,GAAG,GAAG,CAAC;AAGxB,cAAc;AACd,SAAS,UAAU,CAAC,CAAc,EAAE,UAAkC;IACrE,
|
|
1
|
+
{"version":3,"file":"three-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/three-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzD,cAAc;AACd,MAAM,WAAW,GAAG,GAAG,CAAC;AAGxB,cAAc;AACd,SAAS,UAAU,CAAC,CAAc,EAAE,UAAkC;IACrE,MAAM,MAAM,GAAG,WAAW,CACzB,UAAU,CAAC,MAAM,EACjB,CAAC,CACD,CAAC;IACF,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAE7B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAE9D,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,CAAC;AAC5D,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** @hidden */
|
|
2
|
-
declare function tightBoundingBox(g: SVGGElement, box: number[][]): SVGPathElement[];
|
|
3
|
-
export { tightBoundingBox };
|
|
1
|
+
/** @hidden */
|
|
2
|
+
declare function tightBoundingBox(g: SVGGElement, box: number[][]): SVGPathElement[];
|
|
3
|
+
export { tightBoundingBox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
function tightBoundingBox(g, box) {
|
|
4
|
-
|
|
5
|
-
return $box;
|
|
6
|
-
}
|
|
7
|
-
export { tightBoundingBox };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
function tightBoundingBox(g, box) {
|
|
4
|
+
const $box = drawFs.polygon(g, box, 'thin5 pinker nofill');
|
|
5
|
+
return $box;
|
|
6
|
+
}
|
|
7
|
+
export { tightBoundingBox };
|
|
8
8
|
//# sourceMappingURL=tight-bounding-box.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tight-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/tight-bounding-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,cAAc;AACd,SAAS,gBAAgB,CAAC,CAAc,EAAE,GAAe;IACxD,
|
|
1
|
+
{"version":3,"file":"tight-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/tight-bounding-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,cAAc;AACd,SAAS,gBAAgB,CAAC,CAAc,EAAE,GAAe;IACxD,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC;IAE3D,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TwoProngForDebugging } from '../../two-prong-for-debugging.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function twoProng(g: SVGGElement, twoProng: TwoProngForDebugging): SVGElement[];
|
|
4
|
-
export { twoProng };
|
|
1
|
+
import { TwoProngForDebugging } from '../../two-prong-for-debugging.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function twoProng(g: SVGGElement, twoProng: TwoProngForDebugging): SVGElement[];
|
|
4
|
+
export { twoProng };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
import { getTwoProngType } from '../../../mat/get-two-prong-type.js';
|
|
3
|
-
/** @hidden */
|
|
4
|
-
function twoProng(g, twoProng) {
|
|
5
|
-
|
|
6
|
-
let $failedDot = [];
|
|
7
|
-
let $center = [];
|
|
8
|
-
let $circle = [];
|
|
9
|
-
let $cp1 = [];
|
|
10
|
-
let $cp2 = [];
|
|
11
|
-
let color;
|
|
12
|
-
let thin;
|
|
13
|
-
switch (getTwoProngType(twoProng)) {
|
|
14
|
-
case 'twoProng_regular': {
|
|
15
|
-
color = 'red ';
|
|
16
|
-
thin = '2';
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
case 'twoProng_holeClosing': {
|
|
20
|
-
color = 'cyan ';
|
|
21
|
-
thin = '10';
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (twoProng.failed) {
|
|
26
|
-
$failedDot = drawFs.dot(g, twoProng.pos.p, 1 * scaleFactor, 'black');
|
|
27
|
-
}
|
|
28
|
-
else if (!twoProng.failed) {
|
|
29
|
-
$center = drawFs.dot(g, twoProng.circle.center, 1 * scaleFactor, 'yellow');
|
|
30
|
-
$circle = drawFs.circle(g, twoProng.circle, color + 'thin' + thin + ' nofill');
|
|
31
|
-
$cp1 = drawFs.dot(g, twoProng.pos.p, 0.035 * scaleFactor, color);
|
|
32
|
-
$cp2 = drawFs.dot(g, twoProng.z, 0.07 * scaleFactor, color);
|
|
33
|
-
}
|
|
34
|
-
return [...$failedDot, ...$center, ...$circle, ...$cp1, ...$cp2];
|
|
35
|
-
}
|
|
36
|
-
export { twoProng };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
import { getTwoProngType } from '../../../mat/get-two-prong-type.js';
|
|
3
|
+
/** @hidden */
|
|
4
|
+
function twoProng(g, twoProng) {
|
|
5
|
+
const scaleFactor = 0.3;
|
|
6
|
+
let $failedDot = [];
|
|
7
|
+
let $center = [];
|
|
8
|
+
let $circle = [];
|
|
9
|
+
let $cp1 = [];
|
|
10
|
+
let $cp2 = [];
|
|
11
|
+
let color;
|
|
12
|
+
let thin;
|
|
13
|
+
switch (getTwoProngType(twoProng)) {
|
|
14
|
+
case 'twoProng_regular': {
|
|
15
|
+
color = 'red ';
|
|
16
|
+
thin = '2';
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
case 'twoProng_holeClosing': {
|
|
20
|
+
color = 'cyan ';
|
|
21
|
+
thin = '10';
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (twoProng.failed) {
|
|
26
|
+
$failedDot = drawFs.dot(g, twoProng.pos.p, 1 * scaleFactor, 'black');
|
|
27
|
+
}
|
|
28
|
+
else if (!twoProng.failed) {
|
|
29
|
+
$center = drawFs.dot(g, twoProng.circle.center, 1 * scaleFactor, 'yellow');
|
|
30
|
+
$circle = drawFs.circle(g, twoProng.circle, color + 'thin' + thin + ' nofill');
|
|
31
|
+
$cp1 = drawFs.dot(g, twoProng.pos.p, 0.035 * scaleFactor, color);
|
|
32
|
+
$cp2 = drawFs.dot(g, twoProng.z, 0.07 * scaleFactor, color);
|
|
33
|
+
}
|
|
34
|
+
return [...$failedDot, ...$center, ...$circle, ...$cp1, ...$cp2];
|
|
35
|
+
}
|
|
36
|
+
export { twoProng };
|
|
37
37
|
//# sourceMappingURL=two-prong.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/two-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,cAAc;AACd,SAAS,QAAQ,CAAC,CAAc,EAAE,QAA8B;IAC/D,
|
|
1
|
+
{"version":3,"file":"two-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/two-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,cAAc;AACd,SAAS,QAAQ,CAAC,CAAc,EAAE,QAA8B;IAC/D,MAAM,WAAW,GAAG,GAAG,CAAC;IAExB,IAAI,UAAU,GAAkB,EAAE,CAAC;IACnC,IAAI,OAAO,GAAqB,EAAE,CAAC;IACnC,IAAI,OAAO,GAAqB,EAAE,CAAC;IACnC,IAAI,IAAI,GAAwB,EAAE,CAAC;IACnC,IAAI,IAAI,GAAwB,EAAE,CAAC;IAEnC,IAAI,KAAK,CAAC;IACV,IAAI,IAAI,CAAC;IAET,QAAQ,eAAe,CAAC,QAAQ,CAAC,EAAE;QAClC,KAAK,kBAAkB,CAAC,CAAC;YACxB,KAAK,GAAG,MAAM,CAAC;YACf,IAAI,GAAG,GAAG,CAAC;YACX,MAAM;SACN;QACD,KAAK,sBAAsB,CAAC,CAAC;YAC5B,KAAK,GAAG,OAAO,CAAC;YAChB,IAAI,GAAG,IAAI,CAAC;YACZ,MAAM;SACN;KACD;IAGD,IAAI,QAAQ,CAAC,MAAM,EAAE;QACpB,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAC,WAAW,EAAE,OAAO,CAAC,CAAC;KACnE;SAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;QAC5B,OAAO,GAAG,MAAM,CAAC,GAAG,CAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5E,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;QAC/E,IAAI,GAAM,MAAM,CAAC,GAAG,CAAI,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QACrE,IAAI,GAAM,MAAM,CAAC,GAAG,CAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,IAAI,GAAC,WAAW,EAAE,KAAK,CAAC,CAAC;KAChE;IAED,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAClE,CAAC;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CpNode } from '../../../cp-node.js';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
declare function vertex(g: SVGGElement, cpNode: CpNode, classes?: string, delay?: number, visible?: boolean): SVGElement[];
|
|
4
|
-
export { vertex };
|
|
1
|
+
import { CpNode } from '../../../cp-node.js';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
declare function vertex(g: SVGGElement, cpNode: CpNode, classes?: string, delay?: number, visible?: boolean): SVGElement[];
|
|
4
|
+
export { vertex };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { drawFs } from 'flo-draw';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
function vertex(g, cpNode, classes, delay, visible = true) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const THIN = 'thin20';
|
|
7
|
-
|
|
8
|
-
console.log(cps);
|
|
9
|
-
let $svgs = [];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$svgs = [...$circle, ...$crossHair];
|
|
13
|
-
for (let i = 0; i < cps.length; i++) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
$svgs.push(...$circle, ...$crossHair);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
$svgs.push(...$line);
|
|
24
|
-
}
|
|
25
|
-
return $svgs;
|
|
26
|
-
}
|
|
27
|
-
export { vertex };
|
|
1
|
+
import { drawFs } from 'flo-draw';
|
|
2
|
+
/** @hidden */
|
|
3
|
+
function vertex(g, cpNode, classes, delay, visible = true) {
|
|
4
|
+
const visibleClass = visible ? '' : ' invisible';
|
|
5
|
+
const circle = cpNode.cp.circle;
|
|
6
|
+
const THIN = 'thin20';
|
|
7
|
+
const cps = cpNode.getCpNodesOnCircle();
|
|
8
|
+
console.log(cps);
|
|
9
|
+
let $svgs = [];
|
|
10
|
+
const $circle = drawFs.circle(g, circle, 'red ' + THIN + ' nofill ' + visibleClass, delay);
|
|
11
|
+
const $crossHair = drawFs.crossHair(g, circle.center, 'red ' + THIN + ' nofill ' + visibleClass, 3, delay);
|
|
12
|
+
$svgs = [...$circle, ...$crossHair];
|
|
13
|
+
for (let i = 0; i < cps.length; i++) {
|
|
14
|
+
const cp = cps[i];
|
|
15
|
+
const edgeCircle = cp.next.cp.circle;
|
|
16
|
+
const $circle = drawFs.circle(g, edgeCircle, 'pink ' + THIN + ' nofill ' + visibleClass, delay);
|
|
17
|
+
const $crossHair = drawFs.crossHair(g, edgeCircle.center, 'pink ' + THIN + ' nofill ' + visibleClass, 3, delay);
|
|
18
|
+
$svgs.push(...$circle, ...$crossHair);
|
|
19
|
+
const p1 = circle.center;
|
|
20
|
+
const p2 = edgeCircle.center;
|
|
21
|
+
const thin = i === 0 ? 'thin10' : (i === 1 ? 'thin20' : 'thin35');
|
|
22
|
+
const $line = drawFs.line(g, [p1, p2], 'yellow ' + thin + ' nofill ' + visibleClass, delay);
|
|
23
|
+
$svgs.push(...$line);
|
|
24
|
+
}
|
|
25
|
+
return $svgs;
|
|
26
|
+
}
|
|
27
|
+
export { vertex };
|
|
28
28
|
//# sourceMappingURL=vertex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/vertex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/vertex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,cAAc;AACd,SAAS,MAAM,CACb,CAAc,EACd,MAAc,EACd,OAAgB,EAChB,KAAc,EACd,OAAO,GAAG,IAAI;IAEf,MAAM,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;IAEjD,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC;IAEhC,MAAM,IAAI,GAAG,QAAQ,CAAC;IAEtB,MAAM,GAAG,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEhB,IAAI,KAAK,GAAiB,EAAE,CAAC;IAE7B,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,KAAK,CAAC,CAAC;IAC3F,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAE3G,KAAK,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;IAEpC,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAChC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;QAErC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,KAAK,CAAC,CAAC;QAChG,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QAEhH,KAAK,CAAC,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC,CAAA;QAErC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;QACzB,MAAM,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC;QAC7B,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,GAAG,IAAI,GAAI,UAAU,GAAG,YAAY,EAAE,KAAK,CAAC,CAAC;QAE7F,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;KACrB;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|