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.
Files changed (405) hide show
  1. package/.eslintrc.cjs +69 -0
  2. package/README.md +9 -27
  3. package/browser/index.js +29604 -7008
  4. package/browser/index.min.js +1 -2
  5. package/node/circle.d.ts +20 -20
  6. package/node/circle.js +31 -31
  7. package/node/circle.js.map +1 -1
  8. package/node/compare-curvatures-at-interface.d.ts +19 -19
  9. package/node/compare-curvatures-at-interface.js +124 -124
  10. package/node/compare-curvatures-at-interface.js.map +1 -1
  11. package/node/contact-point.d.ts +26 -26
  12. package/node/contact-point.js +25 -25
  13. package/node/cp-node/clone.d.ts +8 -8
  14. package/node/cp-node/clone.js +31 -31
  15. package/node/cp-node/clone.js.map +1 -1
  16. package/node/cp-node/remove.d.ts +9 -9
  17. package/node/cp-node/remove.js +19 -19
  18. package/node/cp-node/remove.js.map +1 -1
  19. package/node/cp-node.d.ts +202 -202
  20. package/node/cp-node.js +320 -320
  21. package/node/cp-node.js.map +1 -1
  22. package/node/curve.d.ts +46 -46
  23. package/node/curve.js +88 -88
  24. package/node/curve.js.map +1 -1
  25. package/node/debug/cp-node-for-debugging.d.ts +11 -11
  26. package/node/debug/cp-node-for-debugging.js +1 -1
  27. package/node/debug/debug-elem-types.d.ts +32 -32
  28. package/node/debug/debug-elem-types.js +1 -1
  29. package/node/debug/debug.d.ts +50 -50
  30. package/node/debug/debug.js +75 -75
  31. package/node/debug/functions/draw-elem/bounding-hull.d.ts +3 -3
  32. package/node/debug/functions/draw-elem/bounding-hull.js +7 -7
  33. package/node/debug/functions/draw-elem/bounding-hull.js.map +1 -1
  34. package/node/debug/functions/draw-elem/branch.d.ts +4 -4
  35. package/node/debug/functions/draw-elem/branch.js +22 -22
  36. package/node/debug/functions/draw-elem/branch.js.map +1 -1
  37. package/node/debug/functions/draw-elem/culls.d.ts +4 -4
  38. package/node/debug/functions/draw-elem/culls.js +21 -21
  39. package/node/debug/functions/draw-elem/culls.js.map +1 -1
  40. package/node/debug/functions/draw-elem/draw-circle-percent.d.ts +3 -3
  41. package/node/debug/functions/draw-elem/draw-circle-percent.js +12 -12
  42. package/node/debug/functions/draw-elem/draw-circle-percent.js.map +1 -1
  43. package/node/debug/functions/draw-elem/draw-elem.d.ts +8 -8
  44. package/node/debug/functions/draw-elem/draw-elem.js +45 -45
  45. package/node/debug/functions/draw-elem/draw-elem.js.map +1 -1
  46. package/node/debug/functions/draw-elem/dull-corner.d.ts +4 -4
  47. package/node/debug/functions/draw-elem/dull-corner.js +10 -10
  48. package/node/debug/functions/draw-elem/dull-corner.js.map +1 -1
  49. package/node/debug/functions/draw-elem/leaves.d.ts +4 -4
  50. package/node/debug/functions/draw-elem/leaves.js +12 -12
  51. package/node/debug/functions/draw-elem/leaves.js.map +1 -1
  52. package/node/debug/functions/draw-elem/loop.d.ts +4 -4
  53. package/node/debug/functions/draw-elem/loop.js +11 -11
  54. package/node/debug/functions/draw-elem/loops.d.ts +4 -4
  55. package/node/debug/functions/draw-elem/loops.js +6 -6
  56. package/node/debug/functions/draw-elem/loose-bounding-box.d.ts +3 -3
  57. package/node/debug/functions/draw-elem/loose-bounding-box.js +9 -9
  58. package/node/debug/functions/draw-elem/loose-bounding-box.js.map +1 -1
  59. package/node/debug/functions/draw-elem/mat.d.ts +4 -4
  60. package/node/debug/functions/draw-elem/mat.js +30 -30
  61. package/node/debug/functions/draw-elem/mat.js.map +1 -1
  62. package/node/debug/functions/draw-elem/max-vertex.d.ts +4 -4
  63. package/node/debug/functions/draw-elem/max-vertex.js +8 -8
  64. package/node/debug/functions/draw-elem/max-vertex.js.map +1 -1
  65. package/node/debug/functions/draw-elem/min-y.d.ts +4 -4
  66. package/node/debug/functions/draw-elem/min-y.js +13 -13
  67. package/node/debug/functions/draw-elem/min-y.js.map +1 -1
  68. package/node/debug/functions/draw-elem/one-prong-at-dull-corner.d.ts +4 -4
  69. package/node/debug/functions/draw-elem/one-prong-at-dull-corner.js +12 -12
  70. package/node/debug/functions/draw-elem/one-prong-at-dull-corner.js.map +1 -1
  71. package/node/debug/functions/draw-elem/one-prong.d.ts +4 -4
  72. package/node/debug/functions/draw-elem/one-prong.js +16 -16
  73. package/node/debug/functions/draw-elem/one-prong.js.map +1 -1
  74. package/node/debug/functions/draw-elem/sharp-corner.d.ts +4 -4
  75. package/node/debug/functions/draw-elem/sharp-corner.js +9 -9
  76. package/node/debug/functions/draw-elem/sharp-corner.js.map +1 -1
  77. package/node/debug/functions/draw-elem/three-prong.d.ts +4 -4
  78. package/node/debug/functions/draw-elem/three-prong.js +16 -16
  79. package/node/debug/functions/draw-elem/three-prong.js.map +1 -1
  80. package/node/debug/functions/draw-elem/tight-bounding-box.d.ts +3 -3
  81. package/node/debug/functions/draw-elem/tight-bounding-box.js +7 -7
  82. package/node/debug/functions/draw-elem/tight-bounding-box.js.map +1 -1
  83. package/node/debug/functions/draw-elem/two-prong.d.ts +4 -4
  84. package/node/debug/functions/draw-elem/two-prong.js +36 -36
  85. package/node/debug/functions/draw-elem/two-prong.js.map +1 -1
  86. package/node/debug/functions/draw-elem/vertex.d.ts +4 -4
  87. package/node/debug/functions/draw-elem/vertex.js +27 -27
  88. package/node/debug/functions/draw-elem/vertex.js.map +1 -1
  89. package/node/debug/functions/general.d.ts +48 -48
  90. package/node/debug/functions/general.js +52 -52
  91. package/node/debug/functions/general.js.map +1 -1
  92. package/node/debug/functions/three-prong.d.ts +11 -11
  93. package/node/debug/functions/three-prong.js +184 -184
  94. package/node/debug/functions/three-prong.js.map +1 -1
  95. package/node/debug/functions/two-prong.d.ts +13 -13
  96. package/node/debug/functions/two-prong.js +117 -117
  97. package/node/debug/functions/two-prong.js.map +1 -1
  98. package/node/debug/three-prong-for-debugging.d.ts +31 -31
  99. package/node/debug/three-prong-for-debugging.js +20 -20
  100. package/node/debug/two-prong-for-debugging.d.ts +26 -26
  101. package/node/debug/two-prong-for-debugging.js +1 -1
  102. package/node/find-mats.d.ts +26 -26
  103. package/node/find-mats.js +122 -125
  104. package/node/find-mats.js.map +1 -1
  105. package/node/get-boundary-bezier-parts-to-next.d.ts +9 -9
  106. package/node/get-boundary-bezier-parts-to-next.js +42 -42
  107. package/node/get-boundary-bezier-parts-to-next.js.map +1 -1
  108. package/node/get-boundary-beziers-to-next.d.ts +8 -8
  109. package/node/get-boundary-beziers-to-next.js +44 -44
  110. package/node/get-boundary-beziers-to-next.js.map +1 -1
  111. package/node/get-bounding-box-.d.ts +2 -2
  112. package/node/get-bounding-box-.js +4 -4
  113. package/node/get-branches.d.ts +12 -12
  114. package/node/get-branches.js +68 -68
  115. package/node/get-branches.js.map +1 -1
  116. package/node/get-curve/get-curve-between.d.ts +9 -9
  117. package/node/get-curve/get-curve-between.js +56 -56
  118. package/node/get-curve/get-curve-between.js.map +1 -1
  119. package/node/get-curve/get-edge-direction.d.ts +9 -9
  120. package/node/get-curve/get-edge-direction.js +53 -53
  121. package/node/get-curve/get-edge-direction.js.map +1 -1
  122. package/node/get-curve-to-next.d.ts +9 -9
  123. package/node/get-curve-to-next.js +11 -11
  124. package/node/get-interface-ccw.d.ts +24 -24
  125. package/node/get-interface-ccw.js +97 -97
  126. package/node/get-interface-ccw.js.map +1 -1
  127. package/node/index.d.ts +36 -36
  128. package/node/index.js +32 -32
  129. package/node/loop/get-max-coordinate.d.ts +10 -10
  130. package/node/loop/get-max-coordinate.js +43 -43
  131. package/node/loop/get-max-coordinate.js.map +1 -1
  132. package/node/loop.d.ts +16 -16
  133. package/node/loop.js +34 -34
  134. package/node/loop.js.map +1 -1
  135. package/node/mat/add-to-cp-graph.d.ts +16 -16
  136. package/node/mat/add-to-cp-graph.js +30 -30
  137. package/node/mat/add-to-cp-graph.js.map +1 -1
  138. package/node/mat/bezier-piece.d.ts +12 -12
  139. package/node/mat/bezier-piece.js +1 -1
  140. package/node/mat/closest-boundary-point/closest-points-on-curve.d.ts +14 -14
  141. package/node/mat/closest-boundary-point/closest-points-on-curve.js +72 -73
  142. package/node/mat/closest-boundary-point/closest-points-on-curve.js.map +1 -1
  143. package/node/mat/closest-boundary-point/cull-bezier-pieces.d.ts +9 -9
  144. package/node/mat/closest-boundary-point/cull-bezier-pieces.js +19 -19
  145. package/node/mat/closest-boundary-point/cull-bezier-pieces.js.map +1 -1
  146. package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.d.ts +11 -11
  147. package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.js +24 -24
  148. package/node/mat/closest-boundary-point/cull-by-loose-bounding-box.js.map +1 -1
  149. package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.d.ts +11 -11
  150. package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.js +26 -26
  151. package/node/mat/closest-boundary-point/cull-by-tight-boundary-box.js.map +1 -1
  152. package/node/mat/closest-boundary-point/get-best-distance-squared.d.ts +8 -8
  153. package/node/mat/closest-boundary-point/get-best-distance-squared.js +24 -24
  154. package/node/mat/closest-boundary-point/get-best-distance-squared.js.map +1 -1
  155. package/node/mat/closest-boundary-point/get-close-boundary-points.d.ts +17 -17
  156. package/node/mat/closest-boundary-point/get-close-boundary-points.js +80 -80
  157. package/node/mat/closest-boundary-point/get-close-boundary-points.js.map +1 -1
  158. package/node/mat/closest-boundary-point/get-closest-boundary-point.d.ts +18 -18
  159. package/node/mat/closest-boundary-point/get-closest-boundary-point.js +40 -40
  160. package/node/mat/closest-boundary-point/get-closest-boundary-point.js.map +1 -1
  161. package/node/mat/corner.d.ts +37 -37
  162. package/node/mat/corner.js +1 -1
  163. package/node/mat/create-new-cp-tree.d.ts +9 -9
  164. package/node/mat/create-new-cp-tree.js +23 -23
  165. package/node/mat/create-new-cp-tree.js.map +1 -1
  166. package/node/mat/elem-type-two-prong.d.ts +3 -3
  167. package/node/mat/elem-type-two-prong.js +1 -1
  168. package/node/mat/find-mat/add-1-prong.d.ts +12 -12
  169. package/node/mat/find-mat/add-1-prong.js +42 -42
  170. package/node/mat/find-mat/add-1-prong.js.map +1 -1
  171. package/node/mat/find-mat/add-2-prong.d.ts +21 -21
  172. package/node/mat/find-mat/add-2-prong.js +192 -192
  173. package/node/mat/find-mat/add-2-prong.js.map +1 -1
  174. package/node/mat/find-mat/add-3-prong.d.ts +19 -19
  175. package/node/mat/find-mat/add-3-prong.js +54 -54
  176. package/node/mat/find-mat/add-3-prong.js.map +1 -1
  177. package/node/mat/find-mat/add-debug-info.d.ts +9 -9
  178. package/node/mat/find-mat/add-debug-info.js +67 -69
  179. package/node/mat/find-mat/add-debug-info.js.map +1 -1
  180. package/node/mat/find-mat/create-get-interesting-points-on-loop.d.ts +11 -11
  181. package/node/mat/find-mat/create-get-interesting-points-on-loop.js +51 -51
  182. package/node/mat/find-mat/create-get-interesting-points-on-loop.js.map +1 -1
  183. package/node/mat/find-mat/create-initial-cp-graph.d.ts +12 -12
  184. package/node/mat/find-mat/create-initial-cp-graph.js +40 -40
  185. package/node/mat/find-mat/create-initial-cp-graph.js.map +1 -1
  186. package/node/mat/find-mat/find-2-prong/add-debug-info.d.ts +8 -8
  187. package/node/mat/find-mat/find-2-prong/add-debug-info.js +21 -21
  188. package/node/mat/find-mat/find-2-prong/add-debug-info.js.map +1 -1
  189. package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.d.ts +11 -11
  190. package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js +29 -29
  191. package/node/mat/find-mat/find-2-prong/cull-bezier-pieces.js.map +1 -1
  192. package/node/mat/find-mat/find-2-prong/find-2-prong.d.ts +37 -37
  193. package/node/mat/find-mat/find-2-prong/find-2-prong.js +232 -232
  194. package/node/mat/find-mat/find-2-prong/find-2-prong.js.map +1 -1
  195. package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.d.ts +9 -9
  196. package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js +39 -39
  197. package/node/mat/find-mat/find-2-prong/find-equidistant-point-on-line.js.map +1 -1
  198. package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.d.ts +11 -11
  199. package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js +37 -37
  200. package/node/mat/find-mat/find-2-prong/get-initial-bezier-pieces.js.map +1 -1
  201. package/node/mat/find-mat/find-2-prong/x-for-debugging.d.ts +9 -9
  202. package/node/mat/find-mat/find-2-prong/x-for-debugging.js +1 -1
  203. package/node/mat/find-mat/find-3-prong/calc-better-x.d.ts +19 -19
  204. package/node/mat/find-mat/find-3-prong/calc-better-x.js +36 -36
  205. package/node/mat/find-mat/find-3-prong/calc-better-x.js.map +1 -1
  206. package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.d.ts +13 -13
  207. package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.js +25 -25
  208. package/node/mat/find-mat/find-3-prong/calc-initial-3-prong-center.js.map +1 -1
  209. package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.d.ts +22 -22
  210. package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.js +159 -159
  211. package/node/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.js.map +1 -1
  212. package/node/mat/find-mat/find-3-prong/find-3-prong.d.ts +16 -16
  213. package/node/mat/find-mat/find-3-prong/find-3-prong.js +76 -76
  214. package/node/mat/find-mat/find-3-prong/find-3-prong.js.map +1 -1
  215. package/node/mat/find-mat/find-3-prong/get-closest-points.d.ts +9 -9
  216. package/node/mat/find-mat/find-3-prong/get-closest-points.js +16 -16
  217. package/node/mat/find-mat/find-3-prong/get-closest-points.js.map +1 -1
  218. package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.d.ts +15 -15
  219. package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.js +20 -20
  220. package/node/mat/find-mat/find-and-add-2-prongs-on-all-paths.js.map +1 -1
  221. package/node/mat/find-mat/find-and-add-2-prongs.d.ts +16 -16
  222. package/node/mat/find-mat/find-and-add-2-prongs.js +73 -74
  223. package/node/mat/find-mat/find-and-add-2-prongs.js.map +1 -1
  224. package/node/mat/find-mat/find-and-add-3-prongs.d.ts +13 -13
  225. package/node/mat/find-mat/find-and-add-3-prongs.js +146 -147
  226. package/node/mat/find-mat/find-and-add-3-prongs.js.map +1 -1
  227. package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.d.ts +14 -14
  228. package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.js +33 -33
  229. package/node/mat/find-mat/find-and-add-hole-closing-2-prongs.js.map +1 -1
  230. package/node/mat/find-mat/get-potential-2-prongs.d.ts +4 -4
  231. package/node/mat/find-mat/get-potential-2-prongs.js +16 -16
  232. package/node/mat/find-mat/get-potential-2-prongs.js.map +1 -1
  233. package/node/mat/find-mat/get-sharp-corners.d.ts +4 -4
  234. package/node/mat/find-mat/get-sharp-corners.js +17 -17
  235. package/node/mat/find-mat/get-sharp-corners.js.map +1 -1
  236. package/node/mat/geometry/get-closest-square-distance-to-rect.d.ts +5 -5
  237. package/node/mat/geometry/get-closest-square-distance-to-rect.js +49 -49
  238. package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.d.ts +5 -5
  239. package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js +15 -15
  240. package/node/mat/geometry/get-closest-squared-distance-to-rotated-rect.js.map +1 -1
  241. package/node/mat/get-boundary-piece-beziers.d.ts +11 -11
  242. package/node/mat/get-boundary-piece-beziers.js +58 -58
  243. package/node/mat/get-boundary-piece-beziers.js.map +1 -1
  244. package/node/mat/get-contact-circles-at-interface.d.ts +8 -8
  245. package/node/mat/get-contact-circles-at-interface.js +20 -20
  246. package/node/mat/get-contact-circles-at-interface.js.map +1 -1
  247. package/node/mat/get-largest-vertex.d.ts +4 -4
  248. package/node/mat/get-largest-vertex.js +9 -9
  249. package/node/mat/get-leaves.d.ts +4 -4
  250. package/node/mat/get-leaves.js +12 -12
  251. package/node/mat/get-leaves.js.map +1 -1
  252. package/node/mat/get-neighboring-cps.d.ts +14 -14
  253. package/node/mat/get-neighboring-cps.js +30 -30
  254. package/node/mat/get-neighboring-cps.js.map +1 -1
  255. package/node/mat/get-two-prong-type.d.ts +5 -5
  256. package/node/mat/get-two-prong-type.js +8 -8
  257. package/node/mat/is-another-cp-closeby.d.ts +20 -20
  258. package/node/mat/is-another-cp-closeby.js +55 -55
  259. package/node/mat/is-another-cp-closeby.js.map +1 -1
  260. package/node/mat/simplify-mat-map-only.d.ts +23 -23
  261. package/node/mat/simplify-mat-map-only.js +80 -80
  262. package/node/mat/simplify-mat-map-only.js.map +1 -1
  263. package/node/mat/to-scale-axis/add-debug-info.d.ts +7 -7
  264. package/node/mat/to-scale-axis/add-debug-info.js +13 -13
  265. package/node/mat/to-scale-axis/add-debug-info.js.map +1 -1
  266. package/node/mat/to-scale-axis/cull-non-cycles.d.ts +9 -9
  267. package/node/mat/to-scale-axis/cull-non-cycles.js +51 -51
  268. package/node/mat/to-scale-axis/cull-non-cycles.js.map +1 -1
  269. package/node/mat/to-scale-axis/cull.d.ts +12 -12
  270. package/node/mat/to-scale-axis/cull.js +132 -132
  271. package/node/mat/to-scale-axis/cull.js.map +1 -1
  272. package/node/mat/trim-mat.d.ts +8 -8
  273. package/node/mat/trim-mat.js +16 -16
  274. package/node/mat/trim-mat.js.map +1 -1
  275. package/node/mat.d.ts +22 -22
  276. package/node/mat.js +1 -1
  277. package/node/point-on-shape.d.ts +73 -73
  278. package/node/point-on-shape.js +167 -167
  279. package/node/point-on-shape.js.map +1 -1
  280. package/node/simplify-mat.d.ts +16 -16
  281. package/node/simplify-mat.js +71 -71
  282. package/node/simplify-mat.js.map +1 -1
  283. package/node/svg/get-loop-bounds.d.ts +12 -12
  284. package/node/svg/get-loop-bounds.js +80 -80
  285. package/node/svg/get-loop-bounds.js.map +1 -1
  286. package/node/svg/get-min-y-pos.d.ts +8 -8
  287. package/node/svg/get-min-y-pos.js +9 -9
  288. package/node/svg/get-shape-bounds.d.ts +9 -9
  289. package/node/svg/get-shape-bounds.js +35 -35
  290. package/node/svg/get-shape-bounds.js.map +1 -1
  291. package/node/sweep-line/sweep-line.d.ts +18 -18
  292. package/node/sweep-line/sweep-line.js +72 -72
  293. package/node/sweep-line/sweep-line.js.map +1 -1
  294. package/node/to-scale-axis.d.ts +16 -16
  295. package/node/to-scale-axis.js +74 -73
  296. package/node/to-scale-axis.js.map +1 -1
  297. package/node/traverse-edges.d.ts +10 -10
  298. package/node/traverse-edges.js +21 -21
  299. package/node/traverse-edges.js.map +1 -1
  300. package/node/traverse-vertices.d.ts +12 -12
  301. package/node/traverse-vertices.js +27 -27
  302. package/node/traverse-vertices.js.map +1 -1
  303. package/package.json +29 -24
  304. package/src/circle.ts +3 -3
  305. package/src/compare-curvatures-at-interface.ts +36 -36
  306. package/src/cp-node/clone.ts +6 -6
  307. package/src/cp-node/remove.ts +4 -4
  308. package/src/cp-node.ts +20 -20
  309. package/src/curve.ts +19 -19
  310. package/src/debug/functions/draw-elem/bounding-hull.ts +2 -2
  311. package/src/debug/functions/draw-elem/branch.ts +4 -4
  312. package/src/debug/functions/draw-elem/culls.ts +4 -4
  313. package/src/debug/functions/draw-elem/draw-circle-percent.ts +2 -2
  314. package/src/debug/functions/draw-elem/draw-elem.ts +1 -1
  315. package/src/debug/functions/draw-elem/dull-corner.ts +3 -3
  316. package/src/debug/functions/draw-elem/leaves.ts +4 -4
  317. package/src/debug/functions/draw-elem/loose-bounding-box.ts +2 -2
  318. package/src/debug/functions/draw-elem/mat.ts +4 -4
  319. package/src/debug/functions/draw-elem/max-vertex.ts +2 -2
  320. package/src/debug/functions/draw-elem/min-y.ts +3 -3
  321. package/src/debug/functions/draw-elem/one-prong-at-dull-corner.ts +4 -4
  322. package/src/debug/functions/draw-elem/one-prong.ts +4 -4
  323. package/src/debug/functions/draw-elem/sharp-corner.ts +2 -2
  324. package/src/debug/functions/draw-elem/three-prong.ts +7 -7
  325. package/src/debug/functions/draw-elem/tight-bounding-box.ts +1 -1
  326. package/src/debug/functions/draw-elem/two-prong.ts +1 -1
  327. package/src/debug/functions/draw-elem/vertex.ts +20 -14
  328. package/src/debug/functions/general.ts +3 -3
  329. package/src/debug/functions/three-prong.ts +37 -37
  330. package/src/debug/functions/two-prong.ts +15 -15
  331. package/src/find-mats.ts +19 -19
  332. package/src/get-boundary-bezier-parts-to-next.ts +8 -8
  333. package/src/get-boundary-beziers-to-next.ts +8 -8
  334. package/src/get-branches.ts +7 -7
  335. package/src/get-curve/get-curve-between.ts +21 -21
  336. package/src/get-curve/get-edge-direction.ts +13 -14
  337. package/src/get-interface-ccw.ts +12 -12
  338. package/src/loop/get-max-coordinate.ts +7 -7
  339. package/src/loop.ts +4 -4
  340. package/src/mat/add-to-cp-graph.ts +8 -8
  341. package/src/mat/closest-boundary-point/closest-points-on-curve.ts +5 -6
  342. package/src/mat/closest-boundary-point/cull-bezier-pieces.ts +1 -1
  343. package/src/mat/closest-boundary-point/cull-by-loose-bounding-box.ts +5 -5
  344. package/src/mat/closest-boundary-point/cull-by-tight-boundary-box.ts +5 -5
  345. package/src/mat/closest-boundary-point/get-best-distance-squared.ts +5 -5
  346. package/src/mat/closest-boundary-point/get-close-boundary-points.ts +15 -15
  347. package/src/mat/closest-boundary-point/get-closest-boundary-point.ts +4 -4
  348. package/src/mat/cmp-cp-on-delta.ts +5 -5
  349. package/src/mat/create-new-cp-tree.ts +3 -3
  350. package/src/mat/find-mat/add-1-prong.ts +5 -5
  351. package/src/mat/find-mat/add-2-prong.ts +42 -42
  352. package/src/mat/find-mat/add-3-prong.ts +1 -1
  353. package/src/mat/find-mat/add-debug-info.ts +18 -20
  354. package/src/mat/find-mat/create-get-interesting-points-on-loop.ts +4 -4
  355. package/src/mat/find-mat/create-initial-cp-graph.ts +11 -11
  356. package/src/mat/find-mat/find-2-prong/add-debug-info.ts +4 -4
  357. package/src/mat/find-mat/find-2-prong/cull-bezier-pieces.ts +5 -5
  358. package/src/mat/find-mat/find-2-prong/find-2-prong.ts +27 -27
  359. package/src/mat/find-mat/find-2-prong/find-equidistant-point-on-line.ts +7 -7
  360. package/src/mat/find-mat/find-2-prong/get-initial-bezier-pieces.ts +4 -4
  361. package/src/mat/find-mat/find-3-prong/calc-better-x.ts +4 -4
  362. package/src/mat/find-mat/find-3-prong/calc-initial-3-prong-center.ts +3 -3
  363. package/src/mat/find-mat/find-3-prong/find-3-prong-for-delta3s.ts +37 -37
  364. package/src/mat/find-mat/find-3-prong/find-3-prong.ts +16 -16
  365. package/src/mat/find-mat/find-3-prong/get-closest-points.ts +1 -1
  366. package/src/mat/find-mat/find-and-add-2-prongs-on-all-paths.ts +2 -2
  367. package/src/mat/find-mat/find-and-add-2-prongs.ts +14 -16
  368. package/src/mat/find-mat/find-and-add-3-prongs.ts +19 -19
  369. package/src/mat/find-mat/find-and-add-hole-closing-2-prongs.ts +6 -6
  370. package/src/mat/find-mat/get-potential-2-prongs.ts +4 -4
  371. package/src/mat/find-mat/get-sharp-corners.ts +4 -4
  372. package/src/mat/find-mat/get-total-abs-curvature.ts +1 -1
  373. package/src/mat/geometry/get-closest-squared-distance-to-rotated-rect.ts +3 -3
  374. package/src/mat/get-boundary-piece-beziers.ts +5 -5
  375. package/src/mat/get-contact-circles-at-interface.ts +1 -1
  376. package/src/mat/get-edges-as-array.ts +2 -2
  377. package/src/mat/get-leaves.ts +2 -2
  378. package/src/mat/get-neighboring-cps.ts +1 -1
  379. package/src/mat/is-another-cp-closeby.ts +9 -9
  380. package/src/mat/simplify-mat-map-only.ts +15 -15
  381. package/src/mat/to-scale-axis/add-debug-info.ts +6 -3
  382. package/src/mat/to-scale-axis/add-to-tree.ts +10 -10
  383. package/src/mat/to-scale-axis/calc-groups.ts +19 -19
  384. package/src/mat/to-scale-axis/create-spacial-tree.ts +4 -4
  385. package/src/mat/to-scale-axis/cull-non-cycles.ts +5 -5
  386. package/src/mat/to-scale-axis/cull.ts +5 -5
  387. package/src/mat/to-scale-axis/get-engulfed-vertices.ts +18 -18
  388. package/src/mat/trim-mat.ts +1 -1
  389. package/src/point-on-shape.ts +16 -16
  390. package/src/simplify-mat.ts +10 -10
  391. package/src/svg/get-curvature-at-interface.ts +6 -8
  392. package/src/svg/get-extreme.ts +1 -1
  393. package/src/svg/get-loop-bounds.ts +13 -13
  394. package/src/svg/get-shape-bounds.ts +4 -4
  395. package/src/sweep-line/are-boxes-intersecting.ts +4 -4
  396. package/src/sweep-line/sweep-line.ts +8 -8
  397. package/src/to-scale-axis.ts +18 -17
  398. package/src/traverse-edges.ts +2 -2
  399. package/src/traverse-vertices.ts +2 -2
  400. package/tsconfig.json +0 -1
  401. package/webpack.config.cjs +12 -63
  402. package/browser/index.min.js.LICENSE.txt +0 -2819
  403. package/browser/index.module.js +0 -7149
  404. package/browser/index.module.min.js +0 -2
  405. 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
- let [[x0, y0], [x1, y1]] = box;
5
- box = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
6
- let $box = drawFs.polygon(g, box, 'thin5 brown nofill');
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,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
+ {"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
- let classes = type === 'mat'
7
- ? 'thin5 purple nofill'
8
- : 'thin10 red nofill';
9
- return (g, mat) => {
10
- let cpNode = mat.cpNode;
11
- if (!cpNode) {
12
- return undefined;
13
- }
14
- let $svgs = [];
15
- let i = 0;
16
- traverseEdges(cpNode, cpNode => {
17
- if (cpNode.isTerminating()) {
18
- return;
19
- }
20
- let 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 };
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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AAI,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
- let circle = cpNode.cp.circle;
5
- let $elems = drawFs.circle(g, circle, 'brown thin10 nofill');
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,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
+ {"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
- 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');
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,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"}
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
- let oCircle = getOsculatingCircle(Number.POSITIVE_INFINITY, pos);
7
- let $center = drawFs.dot(g, pos.p, 0.1, 'orange');
8
- let $circle = drawFs.dot(g, oCircle.center, 0.25, 'orange');
9
- let $pos = drawFs.circle(g, oCircle, 'orange thin10 nofill');
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,IAAI,OAAO,GAAG,mBAAmB,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;IAEjE,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClD,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5D,IAAI,IAAI,GAAM,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC;IAEnE,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1C,CAAC;AAGD,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
1
+ {"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
- let circle = scaleCircle(
9
- //PointOnShape.getOsculatingCircle(Number.POSITIVE_INFINITY, pos),
10
- getOsculatingCircle(Number.POSITIVE_INFINITY, pos), 1);
11
- let $center = drawFs.dot(g, pos.p, 0.1 * scaleFactor, 'gray', delay);
12
- let $circle = drawFs.dot(g, circle.center, 0.25 * scaleFactor, 'gray', delay);
13
- let $pos = drawFs.circle(g, circle, 'gray thin10 nofill', delay);
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,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,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
- let p = curve.ps[curve.ps.length - 1];
6
- let $pos = drawFs.dot(g, p, 0.6 * scaleFactor, 'green');
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,IAAI,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC;IACpC,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,GAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAEtD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"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
- let circle = scaleCircle(threeProng.circle, 1);
8
- let poss = threeProng.poss;
9
- let $cp1 = drawFs.dot(g, poss[0].p, 0.1 * 1 * scaleFactor, 'blue');
10
- let $cp2 = drawFs.dot(g, poss[1].p, 0.1 * 2 * scaleFactor, 'blue');
11
- let $cp3 = drawFs.dot(g, poss[2].p, 0.1 * 3 * scaleFactor, 'blue');
12
- let $center = drawFs.dot(g, circle.center, 0.3 * scaleFactor, 'blue');
13
- let $circle = drawFs.circle(g, circle, 'blue thin2 nofill');
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,IAAI,MAAM,GAAG,WAAW,CACvB,UAAU,CAAC,MAAM,EACjB,CAAC,CACD,CAAC;IACF,IAAI,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAE3B,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAC,CAAC,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/D,IAAI,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,GAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACpE,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAE5D,OAAO,CAAC,GAAG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,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
- let $box = drawFs.polygon(g, box, 'thin5 pinker nofill');
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,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC;IAEzD,OAAO,IAAI,CAAC;AACb,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"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
- let 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 };
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,IAAI,WAAW,GAAG,GAAG,CAAC;IAEtB,IAAI,UAAU,GAAkB,EAAE,CAAC;IACnC,IAAI,OAAO,GAAqB,EAAE,CAAC;IACnC,IAAI,OAAO,GAAqB,EAAE,CAA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AM,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
- let visibleClass = visible ? '' : ' invisible';
5
- let circle = cpNode.cp.circle;
6
- const THIN = 'thin20';
7
- let cps = cpNode.getCpNodesOnCircle();
8
- console.log(cps);
9
- let $svgs = [];
10
- let $circle = drawFs.circle(g, circle, 'red ' + THIN + ' nofill ' + visibleClass, delay);
11
- let $crossHair = drawFs.crossHair(g, circle.center, 'red ' + THIN + ' nofill ' + visibleClass, 3, delay);
12
- $svgs = [...$circle, ...$crossHair];
13
- for (let i = 0; i < cps.length; i++) {
14
- let cp = cps[i];
15
- let edgeCircle = cp.next.cp.circle;
16
- let $circle = drawFs.circle(g, edgeCircle, 'pink ' + THIN + ' nofill ' + visibleClass, delay);
17
- let $crossHair = drawFs.crossHair(g, edgeCircle.center, 'pink ' + THIN + ' nofill ' + visibleClass, 3, delay);
18
- $svgs.push(...$circle, ...$crossHair);
19
- let p1 = circle.center;
20
- let p2 = edgeCircle.center;
21
- let thin = i === 0 ? 'thin10' : (i === 1 ? 'thin20' : 'thin35');
22
- let $line = drawFs.line(g, [p1, p2], 'yellow ' + thin + ' nofill ' + visibleClass, delay);
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 };
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