flo-mat 4.0.3 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/__tests__/find-2-prong/get-medial/dd-get-medial-point-coeffs-same-curve.spec.ts +106 -0
  2. package/__tests__/find-2-prong/get-medial/dd-get-medial-point-coeffs.spec.ts +73 -0
  3. package/__tests__/find-2-prong/get-medial/get-closest-points.spec.ts +5 -2
  4. package/__tests__/helpers/close-to.ts +5 -5
  5. package/__tests__/specific-cases/load-svg/load-svg.ts +30 -0
  6. package/__tests__/specific-cases/specific-cases.spec.ts +168 -4
  7. package/__tests__/specific-cases/test-svgs/achispado.svg +5052 -0
  8. package/browser/index.js +1686 -2738
  9. package/browser/index.min.js +1 -1
  10. package/{jest.config.cjs → jest.config.ts} +8 -3
  11. package/node/closest-boundary-point/get-close-boundary-points-certified.js +3 -2
  12. package/node/closest-boundary-point/get-close-boundary-points-certified.js.map +1 -1
  13. package/node/corner/get-corner.js +1 -1
  14. package/node/corner/get-corner.js.map +1 -1
  15. package/node/{reconstruct-from-mat → cp-node/fs}/get-all-on-loop-by-loop.d.ts +6 -2
  16. package/node/{reconstruct-from-mat → cp-node/fs}/get-all-on-loop-by-loop.js +5 -1
  17. package/node/cp-node/fs/get-all-on-loop-by-loop.js.map +1 -0
  18. package/node/cp-node/fs/get-boundary-beziers-to-next.d.ts +1 -0
  19. package/node/cp-node/fs/get-boundary-beziers-to-next.js +1 -59
  20. package/node/cp-node/fs/get-boundary-beziers-to-next.js.map +1 -1
  21. package/node/cp-node/fs/get-edge-direction.d.ts +3 -1
  22. package/node/cp-node/fs/get-edge-direction.js +5 -3
  23. package/node/cp-node/fs/get-edge-direction.js.map +1 -1
  24. package/node/cp-node/fs/get-mat-curve-between.js +6 -6
  25. package/node/cp-node/fs/get-mat-curve-between.js.map +1 -1
  26. package/node/cp-node/fs/is-fully-terminating.js +12 -0
  27. package/node/cp-node/fs/is-fully-terminating.js.map +1 -1
  28. package/node/debug/debug.d.ts +4 -13
  29. package/node/debug/debug.js +3 -30
  30. package/node/debug/debug.js.map +1 -1
  31. package/node/find-2-prong/find-2-prong.js +24 -10
  32. package/node/find-2-prong/find-2-prong.js.map +1 -1
  33. package/node/find-2-prong/get-medial/get-antipodal-points.d.ts +1 -1
  34. package/node/find-2-prong/get-medial/get-antipodal-points.js +2 -2
  35. package/node/find-2-prong/get-medial/get-antipodal-points.js.map +1 -1
  36. package/node/find-2-prong/get-medial/get-closest-points.d.ts +7 -1
  37. package/node/find-2-prong/get-medial/get-closest-points.js +60 -14
  38. package/node/find-2-prong/get-medial/get-closest-points.js.map +1 -1
  39. package/node/find-2-prong/reduce-radius.d.ts +3 -1
  40. package/node/find-2-prong/reduce-radius.js +8 -6
  41. package/node/find-2-prong/reduce-radius.js.map +1 -1
  42. package/node/find-3-prong/calc-better-x.js +1 -3
  43. package/node/find-3-prong/calc-better-x.js.map +1 -1
  44. package/node/find-3-prong/calc-initial-3-prong-center.js +1 -2
  45. package/node/find-3-prong/calc-initial-3-prong-center.js.map +1 -1
  46. package/node/find-3-prong/find-3-prong-for-delta3s.js +1 -4
  47. package/node/find-3-prong/find-3-prong-for-delta3s.js.map +1 -1
  48. package/node/find-3-prong/find-3-prong.js.map +1 -1
  49. package/node/find-3-prong/find-and-add-3-prong.js +0 -14
  50. package/node/find-3-prong/find-and-add-3-prong.js.map +1 -1
  51. package/node/find-mat/find-mat.js +2 -1
  52. package/node/find-mat/find-mat.js.map +1 -1
  53. package/node/find-mat/find-mats.js.map +1 -1
  54. package/node/find-mat/get-dull-corners-on-loop.js +3 -2
  55. package/node/find-mat/get-dull-corners-on-loop.js.map +1 -1
  56. package/node/find-mat/get-for-1-prongs-on-loop.js +6 -3
  57. package/node/find-mat/get-for-1-prongs-on-loop.js.map +1 -1
  58. package/node/find-mat/get-for-2-prongs-on-loop.js +5 -1
  59. package/node/find-mat/get-for-2-prongs-on-loop.js.map +1 -1
  60. package/node/find-mat/get-meta.d.ts +4 -1
  61. package/node/find-mat/get-meta.js +9 -1
  62. package/node/find-mat/get-meta.js.map +1 -1
  63. package/node/find-mat/get-sharp-corners.js +4 -2
  64. package/node/find-mat/get-sharp-corners.js.map +1 -1
  65. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez0.d.ts +21 -0
  66. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez0.js +46 -0
  67. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez0.js.map +1 -0
  68. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez1.d.ts +28 -0
  69. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez1.js +97 -0
  70. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez1.js.map +1 -0
  71. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2-same-curve.d.ts +28 -0
  72. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2-same-curve.js +109 -0
  73. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2-same-curve.js.map +1 -0
  74. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2.d.ts +29 -0
  75. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2.js +123 -0
  76. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2.js.map +1 -0
  77. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3-same-curve.d.ts +30 -0
  78. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3-same-curve.js +177 -0
  79. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3-same-curve.js.map +1 -0
  80. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3.d.ts +29 -0
  81. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3.js +156 -0
  82. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3.js.map +1 -0
  83. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs.d.ts +28 -0
  84. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs.js +40 -0
  85. package/node/get-medial-points/double-double/dd-get-medial-point-coeffs.js.map +1 -0
  86. package/node/index.d.ts +4 -10
  87. package/node/index.js +3 -6
  88. package/node/index.js.map +1 -1
  89. package/node/point-on-shape/point-on-shape.d.ts +2 -0
  90. package/node/point-on-shape/to-p.d.ts +1 -1
  91. package/node/point-on-shape/to-p.js +1 -1
  92. package/node/point-on-shape/to-p.js.map +1 -1
  93. package/node/reconstruct-from-mat/get-cp-nodess-for-sat.js +2 -2
  94. package/node/reconstruct-from-mat/get-cp-nodess-for-sat.js.map +1 -1
  95. package/node/reconstruct-from-mat/reconstruct-from-mat.d.ts +8 -2
  96. package/node/reconstruct-from-mat/reconstruct-from-mat.js +154 -22
  97. package/node/reconstruct-from-mat/reconstruct-from-mat.js.map +1 -1
  98. package/node/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.js +1 -1
  99. package/node/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.js.map +1 -1
  100. package/node/svg/get-loop-bounds.js +6 -2
  101. package/node/svg/get-loop-bounds.js.map +1 -1
  102. package/node/utils/map-deep.d.ts +15 -0
  103. package/node/utils/map-deep.js +34 -0
  104. package/node/utils/map-deep.js.map +1 -0
  105. package/package.json +14 -8
  106. package/src/closest-boundary-point/get-close-boundary-points-certified.ts +3 -2
  107. package/src/corner/get-corner.ts +1 -1
  108. package/src/{reconstruct-from-mat → cp-node/fs}/get-all-on-loop-by-loop.ts +7 -3
  109. package/src/cp-node/fs/get-all-on-loop.ts +1 -1
  110. package/src/cp-node/fs/get-boundary-beziers-to-next.ts +1 -72
  111. package/src/cp-node/fs/get-edge-direction.ts +8 -4
  112. package/src/cp-node/fs/get-mat-curve-between.ts +6 -6
  113. package/src/cp-node/fs/is-fully-terminating.ts +16 -0
  114. package/src/debug/debug.ts +8 -50
  115. package/src/find-2-prong/find-2-prong.ts +37 -14
  116. package/src/find-2-prong/get-medial/get-antipodal-points.ts +3 -2
  117. package/src/find-2-prong/get-medial/get-closest-points-d.ts +213 -0
  118. package/src/find-2-prong/get-medial/get-closest-points.ts +74 -13
  119. package/src/find-2-prong/reduce-radius.ts +8 -5
  120. package/src/find-3-prong/calc-better-x.ts +1 -3
  121. package/src/find-3-prong/calc-initial-3-prong-center.ts +1 -2
  122. package/src/find-3-prong/find-3-prong-for-delta3s.ts +1 -4
  123. package/src/find-3-prong/find-3-prong.ts +0 -1
  124. package/src/find-3-prong/find-and-add-3-prong.ts +1 -15
  125. package/src/find-mat/find-mat.ts +3 -1
  126. package/src/find-mat/find-mats.ts +0 -1
  127. package/src/find-mat/get-dull-corners-on-loop.ts +4 -3
  128. package/src/find-mat/get-for-1-prongs-on-loop.ts +8 -3
  129. package/src/find-mat/get-for-2-prongs-on-loop.ts +6 -1
  130. package/src/find-mat/get-meta.ts +11 -0
  131. package/src/find-mat/get-sharp-corners.ts +5 -1
  132. package/src/get-medial-curve/__pycache__/get-cubic-self-medial-curve.cpython-313.pyc +0 -0
  133. package/src/get-medial-curve/get-cubic-self-medial-curve.py +419 -0
  134. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez0-with-running-err.ts +76 -0
  135. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez0.ts +61 -0
  136. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez1.ts +116 -0
  137. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2-same-curve.ts +129 -0
  138. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez2.ts +142 -0
  139. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3-same-curve.ts +199 -0
  140. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs-bez3.ts +177 -0
  141. package/src/get-medial-points/double-double/dd-get-medial-point-coeffs.ts +48 -0
  142. package/src/get-medial-points/double-double/error-bound-calc.txt +72 -0
  143. package/src/index.ts +4 -10
  144. package/src/point-on-shape/point-on-shape.ts +3 -0
  145. package/src/point-on-shape/to-p.ts +2 -2
  146. package/src/reconstruct-from-mat/get-cp-nodess-for-sat.ts +2 -2
  147. package/src/reconstruct-from-mat/reconstruct-from-mat.ts +202 -21
  148. package/src/reconstruct-from-mat/remove-sat-induced-trivial-3prongs.ts +1 -1
  149. package/src/svg/get-loop-bounds.ts +11 -3
  150. package/src/utils/map-deep.ts +75 -0
  151. package/src/utils/map-map.ts +33 -0
  152. package/wallaby.mjs +4 -4
  153. package/node/debug/debug-elem-types.d.ts +0 -26
  154. package/node/debug/debug-elem-types.js +0 -22
  155. package/node/debug/debug-elem-types.js.map +0 -1
  156. package/node/debug/functions/draw/draw-beziers-as-single-path.d.ts +0 -2
  157. package/node/debug/functions/draw/draw-beziers-as-single-path.js +0 -30
  158. package/node/debug/functions/draw/draw-beziers-as-single-path.js.map +0 -1
  159. package/node/debug/functions/draw/xmlns.d.ts +0 -2
  160. package/node/debug/functions/draw/xmlns.js +0 -3
  161. package/node/debug/functions/draw/xmlns.js.map +0 -1
  162. package/node/debug/functions/draw-elem/bounding-hull.d.ts +0 -3
  163. package/node/debug/functions/draw-elem/bounding-hull.js +0 -8
  164. package/node/debug/functions/draw-elem/bounding-hull.js.map +0 -1
  165. package/node/debug/functions/draw-elem/draw-branch.d.ts +0 -4
  166. package/node/debug/functions/draw-elem/draw-branch.js +0 -26
  167. package/node/debug/functions/draw-elem/draw-branch.js.map +0 -1
  168. package/node/debug/functions/draw-elem/draw-circle-percent.d.ts +0 -3
  169. package/node/debug/functions/draw-elem/draw-circle-percent.js +0 -13
  170. package/node/debug/functions/draw-elem/draw-circle-percent.js.map +0 -1
  171. package/node/debug/functions/draw-elem/draw-cp-node.d.ts +0 -4
  172. package/node/debug/functions/draw-elem/draw-cp-node.js +0 -26
  173. package/node/debug/functions/draw-elem/draw-cp-node.js.map +0 -1
  174. package/node/debug/functions/draw-elem/draw-cull.d.ts +0 -3
  175. package/node/debug/functions/draw-elem/draw-cull.js +0 -9
  176. package/node/debug/functions/draw-elem/draw-cull.js.map +0 -1
  177. package/node/debug/functions/draw-elem/draw-dull-corner.d.ts +0 -4
  178. package/node/debug/functions/draw-elem/draw-dull-corner.js +0 -10
  179. package/node/debug/functions/draw-elem/draw-dull-corner.js.map +0 -1
  180. package/node/debug/functions/draw-elem/draw-elem.d.ts +0 -10
  181. package/node/debug/functions/draw-elem/draw-elem.js +0 -39
  182. package/node/debug/functions/draw-elem/draw-elem.js.map +0 -1
  183. package/node/debug/functions/draw-elem/draw-leaves.d.ts +0 -4
  184. package/node/debug/functions/draw-elem/draw-leaves.js +0 -34
  185. package/node/debug/functions/draw-elem/draw-leaves.js.map +0 -1
  186. package/node/debug/functions/draw-elem/draw-loop.d.ts +0 -4
  187. package/node/debug/functions/draw-elem/draw-loop.js +0 -11
  188. package/node/debug/functions/draw-elem/draw-loop.js.map +0 -1
  189. package/node/debug/functions/draw-elem/draw-loops.d.ts +0 -4
  190. package/node/debug/functions/draw-elem/draw-loops.js +0 -6
  191. package/node/debug/functions/draw-elem/draw-loops.js.map +0 -1
  192. package/node/debug/functions/draw-elem/draw-loose-bounding-box.d.ts +0 -3
  193. package/node/debug/functions/draw-elem/draw-loose-bounding-box.js +0 -10
  194. package/node/debug/functions/draw-elem/draw-loose-bounding-box.js.map +0 -1
  195. package/node/debug/functions/draw-elem/draw-mat.d.ts +0 -4
  196. package/node/debug/functions/draw-elem/draw-mat.js +0 -34
  197. package/node/debug/functions/draw-elem/draw-mat.js.map +0 -1
  198. package/node/debug/functions/draw-elem/draw-max-vertex.d.ts +0 -4
  199. package/node/debug/functions/draw-elem/draw-max-vertex.js +0 -9
  200. package/node/debug/functions/draw-elem/draw-max-vertex.js.map +0 -1
  201. package/node/debug/functions/draw-elem/draw-min-y.d.ts +0 -4
  202. package/node/debug/functions/draw-elem/draw-min-y.js +0 -10
  203. package/node/debug/functions/draw-elem/draw-min-y.js.map +0 -1
  204. package/node/debug/functions/draw-elem/draw-one-prong-at-dull-corner.d.ts +0 -4
  205. package/node/debug/functions/draw-elem/draw-one-prong-at-dull-corner.js +0 -22
  206. package/node/debug/functions/draw-elem/draw-one-prong-at-dull-corner.js.map +0 -1
  207. package/node/debug/functions/draw-elem/draw-one-prong.d.ts +0 -4
  208. package/node/debug/functions/draw-elem/draw-one-prong.js +0 -13
  209. package/node/debug/functions/draw-elem/draw-one-prong.js.map +0 -1
  210. package/node/debug/functions/draw-elem/draw-sharp-corner.d.ts +0 -4
  211. package/node/debug/functions/draw-elem/draw-sharp-corner.js +0 -10
  212. package/node/debug/functions/draw-elem/draw-sharp-corner.js.map +0 -1
  213. package/node/debug/functions/draw-elem/draw-three-prong.d.ts +0 -4
  214. package/node/debug/functions/draw-elem/draw-three-prong.js +0 -26
  215. package/node/debug/functions/draw-elem/draw-three-prong.js.map +0 -1
  216. package/node/debug/functions/draw-elem/draw-tight-bounding-box.d.ts +0 -3
  217. package/node/debug/functions/draw-elem/draw-tight-bounding-box.js +0 -8
  218. package/node/debug/functions/draw-elem/draw-tight-bounding-box.js.map +0 -1
  219. package/node/debug/functions/draw-elem/draw-two-prong.d.ts +0 -4
  220. package/node/debug/functions/draw-elem/draw-two-prong.js +0 -49
  221. package/node/debug/functions/draw-elem/draw-two-prong.js.map +0 -1
  222. package/node/debug/functions/draw-elem/draw-vertex.d.ts +0 -4
  223. package/node/debug/functions/draw-elem/draw-vertex.js +0 -13
  224. package/node/debug/functions/draw-elem/draw-vertex.js.map +0 -1
  225. package/node/find-3-prong/timed-cc.d.ts +0 -3
  226. package/node/find-3-prong/timed-cc.js +0 -5
  227. package/node/find-3-prong/timed-cc.js.map +0 -1
  228. package/node/reconstruct-from-mat/filter-zero-length.d.ts +0 -10
  229. package/node/reconstruct-from-mat/filter-zero-length.js +0 -14
  230. package/node/reconstruct-from-mat/filter-zero-length.js.map +0 -1
  231. package/node/reconstruct-from-mat/get-all-on-loop-by-loop.js.map +0 -1
  232. package/node/reconstruct-from-mat/get-bezier-piece-length.d.ts +0 -3
  233. package/node/reconstruct-from-mat/get-bezier-piece-length.js +0 -6
  234. package/node/reconstruct-from-mat/get-bezier-piece-length.js.map +0 -1
  235. package/node/reconstruct-from-mat/get-boundary.d.ts +0 -7
  236. package/node/reconstruct-from-mat/get-boundary.js +0 -18
  237. package/node/reconstruct-from-mat/get-boundary.js.map +0 -1
  238. package/node/reconstruct-from-mat/get-matching-beziers.d.ts +0 -10
  239. package/node/reconstruct-from-mat/get-matching-beziers.js +0 -29
  240. package/node/reconstruct-from-mat/get-matching-beziers.js.map +0 -1
  241. package/node/reconstruct-from-mat/get-mbss-by-loop-per-sat.d.ts +0 -6
  242. package/node/reconstruct-from-mat/get-mbss-by-loop-per-sat.js +0 -10
  243. package/node/reconstruct-from-mat/get-mbss-by-loop-per-sat.js.map +0 -1
  244. package/node/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.d.ts +0 -7
  245. package/node/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.js +0 -47
  246. package/node/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.js.map +0 -1
  247. package/node/reconstruct-from-mat/get-sats2.d.ts +0 -10
  248. package/node/reconstruct-from-mat/get-sats2.js +0 -16
  249. package/node/reconstruct-from-mat/get-sats2.js.map +0 -1
  250. package/node/reconstruct-from-mat/is-fully-terminating.d.ts +0 -3
  251. package/node/reconstruct-from-mat/is-fully-terminating.js +0 -19
  252. package/node/reconstruct-from-mat/is-fully-terminating.js.map +0 -1
  253. package/node/reconstruct-from-mat/matched-beziers.d.ts +0 -10
  254. package/node/reconstruct-from-mat/matched-beziers.js +0 -2
  255. package/node/reconstruct-from-mat/matched-beziers.js.map +0 -1
  256. package/node/reconstruct-from-mat/split-tri-path.d.ts +0 -5
  257. package/node/reconstruct-from-mat/split-tri-path.js +0 -209
  258. package/node/reconstruct-from-mat/split-tri-path.js.map +0 -1
  259. package/node/utils/clip.d.ts +0 -2
  260. package/node/utils/clip.js +0 -6
  261. package/node/utils/clip.js.map +0 -1
  262. package/node/utils/time-function-call.d.ts +0 -14
  263. package/node/utils/time-function-call.js +0 -32
  264. package/node/utils/time-function-call.js.map +0 -1
  265. package/src/debug/debug-elem-types.ts +0 -43
  266. package/src/debug/functions/draw-elem/bounding-hull.ts +0 -18
  267. package/src/debug/functions/draw-elem/culls.ts +0 -39
  268. package/src/debug/functions/draw-elem/draw-branch.ts +0 -37
  269. package/src/debug/functions/draw-elem/draw-circle-percent.ts +0 -23
  270. package/src/debug/functions/draw-elem/draw-cp-node.ts +0 -46
  271. package/src/debug/functions/draw-elem/draw-cull.ts +0 -21
  272. package/src/debug/functions/draw-elem/draw-dull-corner.ts +0 -21
  273. package/src/debug/functions/draw-elem/draw-elem.ts +0 -64
  274. package/src/debug/functions/draw-elem/draw-leaves.ts +0 -51
  275. package/src/debug/functions/draw-elem/draw-loop.ts +0 -16
  276. package/src/debug/functions/draw-elem/draw-loops.ts +0 -10
  277. package/src/debug/functions/draw-elem/draw-loose-bounding-box.ts +0 -21
  278. package/src/debug/functions/draw-elem/draw-mat.ts +0 -43
  279. package/src/debug/functions/draw-elem/draw-max-vertex.ts +0 -15
  280. package/src/debug/functions/draw-elem/draw-min-y.ts +0 -18
  281. package/src/debug/functions/draw-elem/draw-one-prong-at-dull-corner.ts +0 -40
  282. package/src/debug/functions/draw-elem/draw-one-prong.ts +0 -25
  283. package/src/debug/functions/draw-elem/draw-sharp-corner.ts +0 -21
  284. package/src/debug/functions/draw-elem/draw-three-prong.ts +0 -44
  285. package/src/debug/functions/draw-elem/draw-tight-bounding-box.ts +0 -18
  286. package/src/debug/functions/draw-elem/draw-two-prong.ts +0 -68
  287. package/src/debug/functions/draw-elem/draw-vertex.ts +0 -27
  288. package/src/debug/functions/draw-elem/dull-corner.ts +0 -21
  289. package/src/debug/functions/draw-elem/leaves.ts +0 -20
  290. package/src/debug/functions/draw-elem/loop.ts +0 -16
  291. package/src/debug/functions/draw-elem/loops.ts +0 -10
  292. package/src/debug/functions/draw-elem/loose-bounding-box.ts +0 -21
  293. package/src/debug/functions/draw-elem/mat.ts +0 -47
  294. package/src/debug/functions/draw-elem/max-vertex.ts +0 -15
  295. package/src/debug/functions/draw-elem/min-y.ts +0 -18
  296. package/src/debug/functions/draw-elem/one-prong-at-dull-corner.ts +0 -26
  297. package/src/debug/functions/draw-elem/one-prong.ts +0 -23
  298. package/src/debug/functions/draw-elem/sharp-corner.ts +0 -20
  299. package/src/debug/functions/draw-elem/three-prong.ts +0 -30
  300. package/src/debug/functions/draw-elem/tight-bounding-box.ts +0 -18
  301. package/src/debug/functions/draw-elem/two-prong.ts +0 -50
  302. package/src/debug/functions/draw-elem/vertex.ts +0 -51
  303. package/src/find-3-prong/timed-cc.ts +0 -9
  304. package/src/reconstruct-from-mat/filter-zero-length.ts +0 -23
  305. package/src/reconstruct-from-mat/get-bezier-piece-length.ts +0 -12
  306. package/src/reconstruct-from-mat/get-boundary.ts +0 -32
  307. package/src/reconstruct-from-mat/get-matching-beziers.ts +0 -46
  308. package/src/reconstruct-from-mat/get-mbss-by-loop-per-sat.ts +0 -19
  309. package/src/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.ts +0 -69
  310. package/src/reconstruct-from-mat/get-sats2.ts +0 -25
  311. package/src/reconstruct-from-mat/is-fully-terminating.ts +0 -27
  312. package/src/reconstruct-from-mat/matched-beziers.ts +0 -14
  313. package/src/reconstruct-from-mat/split-tri-path.ts +0 -280
@@ -0,0 +1,75 @@
1
+
2
+ type Depth = 1 | 2 | 3 | 4 | 5 | 6;
3
+
4
+ type NestedArray<T, D extends Depth> =
5
+ D extends 1 ? T[] :
6
+ D extends 2 ? T[][] :
7
+ D extends 3 ? T[][][] :
8
+ D extends 4 ? T[][][][] :
9
+ D extends 5 ? T[][][][][] :
10
+ T[][][][][][];
11
+
12
+ type PrevDepth<D extends Depth> =
13
+ D extends 6 ? 5 :
14
+ D extends 5 ? 4 :
15
+ D extends 4 ? 3 :
16
+ D extends 3 ? 2 :
17
+ D extends 2 ? 1 :
18
+ never;
19
+
20
+ type LeafAtDepth<A, D extends Depth> =
21
+ D extends 1
22
+ ? A extends (infer T)[] ? T : never
23
+ : A extends (infer T)[] ? LeafAtDepth<T, PrevDepth<D>> : never;
24
+
25
+ type LeafValue<T, FilterUndefined extends boolean> =
26
+ FilterUndefined extends true ? Exclude<T, undefined> : T;
27
+
28
+
29
+ /**
30
+ * Returns the result of mapping the array to the given depth and, optionally,
31
+ * filtering out `undefined` leaf values.
32
+ *
33
+ * @param tss
34
+ * @param f
35
+ * @param filterUndefined
36
+ */
37
+ function mapDeep<D extends Depth, A extends NestedArray<unknown, D>, U, F extends boolean = false>(
38
+ depth: D,
39
+ tss: A,
40
+ f: (t: LeafAtDepth<A, D>) => U,
41
+ filterUndefined?: F): NestedArray<LeafValue<U, F>, D> {
42
+
43
+ if (!Number.isInteger(depth) || depth < 1) {
44
+ throw new Error('depth must be an integer >= 1');
45
+ }
46
+
47
+ function mapRec(d: number, arr: unknown): unknown {
48
+ const a = arr as unknown[];
49
+
50
+ if (d === 1) {
51
+ const ts_: U[] = [];
52
+ for (let i=0; i<a.length; i++) {
53
+ const v = f(a[i] as LeafAtDepth<A, D>);
54
+ if (!filterUndefined || v !== undefined) {
55
+ ts_.push(v);
56
+ }
57
+ }
58
+
59
+ return ts_;
60
+ }
61
+
62
+ const tss_: unknown[] = [];
63
+ for (let i=0; i<a.length; i++) {
64
+ tss_.push(mapRec(d - 1, a[i]));
65
+ }
66
+
67
+ return tss_;
68
+ }
69
+
70
+ return mapRec(depth, tss as unknown) as NestedArray<LeafValue<U, F>, D>;
71
+ }
72
+
73
+
74
+ export { mapDeep }
75
+
@@ -0,0 +1,33 @@
1
+
2
+ /**
3
+ * Returns the result of mapping the array to depth 2 and applying a filter
4
+ * to the inner results which defaults to filtering out `undefined`.
5
+ *
6
+ * @param tss
7
+ * @param f
8
+ * @param filter
9
+ */
10
+ function mapmap<T,U>(
11
+ tss: T[][],
12
+ f: (t: T) => U,
13
+ filter: (u: U) => boolean = u => u !== undefined): U[][] {
14
+
15
+ const tss_: U[][] = [];
16
+ for (let i=0; i<tss.length; i++) {
17
+ const ts = tss[i];
18
+ const ts_: U[] = [];
19
+ for (let j=0; j<ts.length; j++) {
20
+ const v = f(ts[j]);
21
+ if (filter(v)) {
22
+ ts_.push(f(ts[j]));
23
+ }
24
+ }
25
+ tss_.push(ts_);
26
+ }
27
+
28
+ return tss_;
29
+ }
30
+
31
+
32
+ export { mapmap }
33
+
package/wallaby.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
 
2
2
  export default function(wallaby) {
3
3
  return {
4
+ autoDetect: ['jest'],
5
+
4
6
  files: [
5
7
  'package.json',
6
8
  'src/**/*.ts',
7
- 'test/helpers/*.ts'
9
+ '__tests__/helpers/*.ts'
8
10
  ],
9
11
 
10
12
  tests: [
11
- 'test/**/*.spec.ts'
13
+ '__tests__/**/*.spec.ts'
12
14
  ],
13
15
 
14
- testFramework: 'mocha',
15
-
16
16
  compilers: {
17
17
  "**/*.+(t)s?": wallaby.compilers.typeScript()
18
18
  },
@@ -1,26 +0,0 @@
1
- import { Mat } from '../mat/mat.js';
2
- import { CpNode } from '../cp-node/cp-node.js';
3
- type DebugElemKey = keyof typeof emptyDebugElems;
4
- declare const emptyDebugElems: {
5
- readonly oneProng: CpNode[];
6
- readonly twoProng: CpNode[];
7
- readonly threeProng: CpNode[];
8
- readonly looseBoundingBox: number[][][];
9
- readonly tightBoundingBox: number[][][];
10
- readonly boundingHull: number[][][];
11
- readonly vertex: CpNode[];
12
- readonly mat: Mat[];
13
- readonly maxVertex: CpNode[];
14
- readonly leaves: CpNode[][];
15
- readonly cull: number[][];
16
- readonly cpNode: CpNode[];
17
- readonly branch: CpNode[][];
18
- readonly holeCloser: CpNode[];
19
- };
20
- declare const debugElemNames: Array<keyof typeof emptyDebugElems>;
21
- /** @internal */
22
- type DebugElems = typeof emptyDebugElems;
23
- type DebugElem = {
24
- [T in keyof DebugElems]: DebugElems[T][number];
25
- };
26
- export { DebugElems, DebugElemKey, DebugElem, emptyDebugElems, debugElemNames, };
@@ -1,22 +0,0 @@
1
- const emptyDebugElems = {
2
- oneProng: [],
3
- // oneProngAtDullCorner: [] as PointOnShape[],
4
- twoProng: [],
5
- threeProng: [],
6
- looseBoundingBox: [],
7
- tightBoundingBox: [],
8
- boundingHull: [],
9
- // sharpCorner: [] as Curve[],
10
- // dullCorner: [] as Curve[],
11
- vertex: [],
12
- mat: [],
13
- maxVertex: [],
14
- leaves: [],
15
- cull: [],
16
- cpNode: [],
17
- branch: [],
18
- holeCloser: []
19
- };
20
- const debugElemNames = Object.keys(emptyDebugElems);
21
- export { emptyDebugElems, debugElemNames, };
22
- //# sourceMappingURL=debug-elem-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-elem-types.js","sourceRoot":"","sources":["../../src/debug/debug-elem-types.ts"],"names":[],"mappings":"AAOA,MAAM,eAAe,GAAG;IACpB,QAAQ,EAAE,EAAc;IACxB,8CAA8C;IAC9C,QAAQ,EAAE,EAAc;IACxB,UAAU,EAAE,EAAc;IAC1B,gBAAgB,EAAE,EAAkB;IACpC,gBAAgB,EAAE,EAAkB;IACpC,YAAY,EAAE,EAAkB;IAChC,8BAA8B;IAC9B,6BAA6B;IAC7B,MAAM,EAAE,EAAc;IACtB,GAAG,EAAE,EAAW;IAChB,SAAS,EAAE,EAAc;IACzB,MAAM,EAAE,EAAgB;IACxB,IAAI,EAAE,EAAgB;IACtB,MAAM,EAAE,EAAc;IACtB,MAAM,EAAE,EAAgB;IACxB,UAAU,EAAE,EAAc;CACpB,CAAC;AAGX,MAAM,cAAc,GAChB,MAAM,CAAC,IAAI,CAAC,eAAe,CAAwC,CAAC;AASxE,OAAO,EAEH,eAAe,EAAE,cAAc,GAClC,CAAA"}
@@ -1,2 +0,0 @@
1
- declare function drawBeziersAsSinglePath(g: SVGGElement, beziers: number[][][], class_?: string, delay?: number): SVGPathElement[];
2
- export { drawBeziersAsSinglePath };
@@ -1,30 +0,0 @@
1
- import { XMLNS } from "./xmlns.js";
2
- function drawBeziersAsSinglePath(g, beziers, class_ = 'thin10 red nofill', delay = 0) {
3
- if (beziers.length === 0) {
4
- return [];
5
- }
6
- const x0 = beziers[0][0][0];
7
- const y0 = beziers[0][0][1];
8
- let d = `M${x0} ${y0} `;
9
- for (let i = 0; i < beziers.length; i++) {
10
- const ps = beziers[i];
11
- if (ps.length <= 1) {
12
- continue;
13
- }
14
- const [, p1, p2, p3] = ps;
15
- d +=
16
- ps.length === 2
17
- ? `L ${p1[0]} ${p1[1]} `
18
- : ps.length === 3
19
- ? `Q ${p1[0]} ${p1[1]} ${p2[0]} ${p2[1]} `
20
- : `C ${p1[0]} ${p1[1]} ${p2[0]} ${p2[1]} ${p3[0]} ${p3[1]} `;
21
- }
22
- // d += ' z';
23
- const $path = document.createElementNS(XMLNS, 'path');
24
- $path.setAttributeNS(null, "d", d);
25
- $path.setAttributeNS(null, "class", class_);
26
- g.appendChild($path);
27
- return [$path];
28
- }
29
- export { drawBeziersAsSinglePath };
30
- //# sourceMappingURL=draw-beziers-as-single-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-beziers-as-single-path.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw/draw-beziers-as-single-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGnC,SAAS,uBAAuB,CACxB,CAAc,EACd,OAAqB,EACrB,MAAM,GAAG,mBAAmB,EAC5B,KAAK,GAAG,CAAC;IAEb,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAAC,OAAO,EAAE,CAAC;IAAC,CAAC;IAExC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC;IAExB,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAEtB,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;QAEjC,MAAM,CAAC,EAAC,EAAE,EAAC,EAAE,EAAC,EAAE,CAAC,GAAG,EAAE,CAAC;QACvB,CAAC;YACK,EAAE,CAAC,MAAM,KAAK,CAAC;gBACjB,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG;gBACxB,CAAC,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC;oBACjB,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG;oBAC1C,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA;IACpE,CAAC;IAED,aAAa;IACb,MAAM,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACtD,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IACnC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC;AAGD,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- declare const XMLNS = "http://www.w3.org/2000/svg";
2
- export { XMLNS };
@@ -1,3 +0,0 @@
1
- const XMLNS = 'http://www.w3.org/2000/svg';
2
- export { XMLNS };
3
- //# sourceMappingURL=xmlns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xmlns.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw/xmlns.ts"],"names":[],"mappings":"AACA,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAG3C,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- /** @internal */
2
- declare function boundingHull(g: SVGGElement, hull: number[][], classes?: string, delay?: number, scaleFactor?: number): SVGPathElement[];
3
- export { boundingHull };
@@ -1,8 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function boundingHull(g, hull, classes = 'thin5 black nofill', delay = 0, scaleFactor = 1) {
4
- const $polygon = drawFs.polygon(g, hull, classes, delay);
5
- return $polygon;
6
- }
7
- export { boundingHull };
8
- //# sourceMappingURL=bounding-hull.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bounding-hull.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/bounding-hull.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,YAAY,CACb,CAAc,EACd,IAAgB,EAChB,OAAO,GAAG,oBAAoB,EAC9B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEzD,OAAO,QAAQ,CAAC;AACpB,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @internal */
3
- declare function drawBranch(g: SVGGElement, branch: CpNode[], classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
4
- export { drawBranch };
@@ -1,26 +0,0 @@
1
- import { getMatCurveToNext } from '../../../cp-node/fs/get-mat-curve-to-next.js';
2
- import { isTerminating } from '../../../cp-node/fs/is-terminating.js';
3
- import { drawBeziersAsSinglePath } from '../draw/draw-beziers-as-single-path.js';
4
- /** @internal */
5
- function drawBranch(g, branch, classes = 'thin5 purple nofill', delay = 0, scaleFactor = 1) {
6
- const $svgs = [];
7
- let i = 0;
8
- const pss = [];
9
- for (const cpNode of branch) {
10
- if (isTerminating(cpNode)) {
11
- continue;
12
- }
13
- const bezier = getMatCurveToNext(cpNode);
14
- if (!bezier) {
15
- continue;
16
- }
17
- i++;
18
- // $svgs.push( ...drawFs.bezier(g, bezier, classes, delay));
19
- pss.push(bezier);
20
- }
21
- // return $svgs;
22
- $svgs.push(...drawBeziersAsSinglePath(g, pss, classes, delay));
23
- return $svgs;
24
- }
25
- export { drawBranch };
26
- //# sourceMappingURL=draw-branch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-branch.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-branch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGjF,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,MAAgB,EAChB,OAAO,GAAG,qBAAqB,EAC/B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAGnB,MAAM,KAAK,GAAiB,EAAE,CAAC;IAC/B,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,MAAM,GAAG,GAAiB,EAAE,CAAC;IAC7B,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;QAC1B,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;QACxC,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;QAC1B,CAAC,EAAE,CAAC;QACJ,4DAA4D;QAC5D,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,gBAAgB;IAEhB,KAAK,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAE/D,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- /** @internal */
2
- declare function drawCirclePercent(g: SVGGElement, center: number[], radiusPercent: number, classes: string): SVGCircleElement;
3
- export { drawCirclePercent };
@@ -1,13 +0,0 @@
1
- /** @internal */
2
- function drawCirclePercent(g, center, radiusPercent, classes) {
3
- const XMLNS = 'http://www.w3.org/2000/svg';
4
- const $circle = document.createElementNS(XMLNS, 'circle');
5
- $circle.setAttributeNS(null, "cx", center[0].toString());
6
- $circle.setAttributeNS(null, "cy", center[1].toString());
7
- $circle.setAttributeNS(null, "r", radiusPercent.toString() + '%');
8
- $circle.setAttributeNS(null, "class", classes);
9
- g.appendChild($circle);
10
- return $circle;
11
- }
12
- export { drawCirclePercent };
13
- //# sourceMappingURL=draw-circle-percent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-circle-percent.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-circle-percent.ts"],"names":[],"mappings":"AACA,gBAAgB;AAChB,SAAS,iBAAiB,CAClB,CAAc,EACd,MAAgB,EAChB,aAAqB,EACrB,OAAe;IAEnB,MAAM,KAAK,GAAG,4BAA4B,CAAC;IAE3C,MAAM,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC1D,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC,CAAC;IAClE,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/C,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvB,OAAO,OAAO,CAAC;AACnB,CAAC;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @internal */
3
- declare function drawCpNode(g: SVGGElement, cpNode: CpNode, classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
4
- export { drawCpNode };
@@ -1,26 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- import { scaleCircle } from '../../../geometry/circle.js';
3
- import { getAllOnCircle } from '../../../cp-node/fs/get-all-on-circle.js';
4
- /** @internal */
5
- function drawCpNode(g, cpNode, classes = 'blue thin2 nofill', delay = 0, scaleFactor = 1) {
6
- const circle = scaleCircle(cpNode.pointOnShape.circle, 1);
7
- const { center: c, radius: r } = circle;
8
- const poss = getAllOnCircle(cpNode)
9
- .map(cpNode => cpNode.pointOnShape);
10
- const { dot, circle: drawCircle, crossHair } = drawFs;
11
- const $circle = drawCircle(g, circle, classes, delay);
12
- const $cps = [];
13
- const $ls = [];
14
- for (let i = 0; i < poss.length; i++) {
15
- const p = poss[i].p;
16
- $cps.push(...dot(g, p, 0.01 * (i + 1) * scaleFactor, 'blue', delay));
17
- $ls.push(...drawFs.line(g, [p, c], 'thin5 red', delay));
18
- }
19
- const $cross = crossHair(g, c, 'orange thin10 nofill', 2 * scaleFactor, delay);
20
- // if (r === 0) {
21
- // const $cross = crossHair(g, circle.center, 'red thin2 nofill', 0.02*scaleFactor, delay);
22
- // }
23
- return [...$cps, ...$ls, ...$circle, ...$cross];
24
- }
25
- export { drawCpNode };
26
- //# sourceMappingURL=draw-cp-node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-cp-node.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-cp-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG1E,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,MAAc,EACd,OAAO,GAAG,mBAAmB,EAC7B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,MAAM,GAAG,WAAW,CACtB,MAAM,CAAC,YAAY,CAAC,MAAM,EAC1B,CAAC,CACJ,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;IAExC,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC;SAC9B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;IAEvC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAEtD,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEtD,MAAM,IAAI,GAAiB,EAAE,CAAC;IAC9B,MAAM,GAAG,GAAiB,EAAE,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/B,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,GAAC,CAAC,CAAC,GAAC,CAAC,CAAC,GAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC/D,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,sBAAsB,EAAE,CAAC,GAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAE7E,iBAAiB;IACjB,+FAA+F;IAC/F,IAAI;IAEJ,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAiB,CAAC;AACpE,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- /** @internal */
2
- declare function drawCull(g: SVGGElement, cull: number[], classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
3
- export { drawCull };
@@ -1,9 +0,0 @@
1
- import { drawFs } from "flo-draw";
2
- /** @internal */
3
- function drawCull(g, cull, classes = 'thin10 cyan nofill', delay = 0, scaleFactor = 1) {
4
- const $elems = [];
5
- $elems.push(...drawFs.crossHair(g, cull, classes, 0.1 * scaleFactor, delay));
6
- return $elems;
7
- }
8
- export { drawCull };
9
- //# sourceMappingURL=draw-cull.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-cull.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-cull.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,gBAAgB;AAChB,SAAS,QAAQ,CACT,CAAc,EACd,IAAc,EACd,OAAO,GAAG,oBAAoB,EAC9B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,SAAS,CAC3B,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,GAAC,WAAW,EAAE,KAAK,CAAC,CAC5C,CAAA;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { Curve } from 'flo-boolean';
2
- /** @internal */
3
- declare function dullCorner(g: SVGGElement, curve: Curve, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
4
- export { dullCorner };
@@ -1,10 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function dullCorner(g, curve, classes = 'orange', delay = 0, scaleFactor = 1) {
4
- const ps = curve.ps;
5
- const p = ps[ps.length - 1];
6
- const $pos = drawFs.dot(g, p, 0.1 * 0.5 * scaleFactor, classes, delay);
7
- return $pos;
8
- }
9
- export { dullCorner };
10
- //# sourceMappingURL=draw-dull-corner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-dull-corner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,KAAY,EACZ,OAAO,GAAG,QAAQ,EAClB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,GAAC,GAAG,GAAC,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEnE,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,10 +0,0 @@
1
- import { DebugElem, DebugElemKey } from '../../debug-elem-types.js';
2
- type DrawElemFunction<T extends DebugElemKey> = (g: SVGGElement, elem: DebugElem[T], classes?: string, delay?: number, scaleFactor?: number, options?: any) => SVGElement[];
3
- /** @internal */
4
- type DrawElemFunctions = {
5
- [T in DebugElemKey]: DrawElemFunction<T>;
6
- };
7
- /** @internal */
8
- declare const drawElemFs: DrawElemFunctions;
9
- declare const drawElemFsDetailed: DrawElemFunctions;
10
- export { drawElemFs, drawElemFsDetailed, DrawElemFunctions };
@@ -1,39 +0,0 @@
1
- import { drawOneProng } from './draw-one-prong.js';
2
- import { drawTwoProng } from './draw-two-prong.js';
3
- import { drawThreeProng } from './draw-three-prong.js';
4
- import { vertex } from './draw-vertex.js';
5
- import { boundingHull } from './bounding-hull.js';
6
- import { looseBoundingBox } from './draw-loose-bounding-box.js';
7
- import { tightBoundingBox } from './draw-tight-bounding-box.js';
8
- import { drawMat } from './draw-mat.js';
9
- import { maxVertex } from './draw-max-vertex.js';
10
- import { drawLeaves } from './draw-leaves.js';
11
- import { drawCull } from './draw-cull.js';
12
- import { drawBranch } from './draw-branch.js';
13
- import { drawCpNode } from './draw-cp-node.js';
14
- /** @internal */
15
- const drawElemFs = {
16
- oneProng: drawOneProng,
17
- twoProng: drawTwoProng(false, true),
18
- threeProng: drawThreeProng,
19
- boundingHull,
20
- looseBoundingBox,
21
- tightBoundingBox,
22
- // sharpCorner,
23
- // dullCorner,
24
- vertex,
25
- mat: drawMat,
26
- // sat: drawMat('sat'),
27
- maxVertex,
28
- leaves: drawLeaves,
29
- cull: drawCull,
30
- cpNode: drawCpNode,
31
- branch: drawBranch,
32
- holeCloser: drawTwoProng(false, false)
33
- };
34
- const drawElemFsDetailed = {
35
- ...drawElemFs,
36
- twoProng: drawTwoProng(true, true),
37
- };
38
- export { drawElemFs, drawElemFsDetailed };
39
- //# sourceMappingURL=draw-elem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-elem.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-elem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAgB/C,gBAAgB;AAChB,MAAM,UAAU,GAAsB;IAClC,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC;IACnC,UAAU,EAAE,cAAc;IAC1B,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,MAAM;IACN,GAAG,EAAE,OAAO;IACZ,uBAAuB;IACvB,SAAS;IACT,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,UAAU,EAAE,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC;CACzC,CAAA;AAGD,MAAM,kBAAkB,GAAsB;IAC1C,GAAG,UAAU;IACb,QAAQ,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC;CACrC,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAqB,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @internal */
3
- declare function drawLeaves(g: SVGGElement, leaves: CpNode[], classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
4
- export { drawLeaves };
@@ -1,34 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- import { drawCirclePercent } from './draw-circle-percent.js';
3
- import { getAllOnCircle } from '../../../cp-node/fs/get-all-on-circle.js';
4
- /** @internal */
5
- function drawLeaves(g, leaves, classes = 'thin10 deeppink nofill', delay = 0, scaleFactor = 1) {
6
- const $elems = [];
7
- const { line, dot, circle: drawCircle } = drawFs;
8
- for (const cpNode of leaves) {
9
- const cp = cpNode.pointOnShape;
10
- const { circle } = cp;
11
- const { center: c, radius: r } = circle;
12
- const $center = [drawCirclePercent(g, c, 0.5, 'pinker thin5 nofill')];
13
- const poss = getAllOnCircle(cpNode)
14
- .map(cpNode => cpNode.pointOnShape);
15
- const $ls = [];
16
- const $cps = [];
17
- for (let i = 0; i < poss.length; i++) {
18
- const p = poss[i].p;
19
- $cps.push(...dot(g, p, 0.01 * (i + 1) * scaleFactor, 'pinker', delay));
20
- $ls.push(...line(g, [p, c], 'thin5 red', delay));
21
- }
22
- const $circle = drawCircle(g, circle, classes, delay);
23
- // const $cp = dot(g, p, 0.005*scaleFactor, 'pinker', delay);
24
- $elems.push(...[
25
- ...$circle,
26
- ...$cps,
27
- ...$ls,
28
- ...$center
29
- ]);
30
- }
31
- return $elems;
32
- }
33
- export { drawLeaves };
34
- //# sourceMappingURL=draw-leaves.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-leaves.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-leaves.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG1E,gBAAgB;AAChB,SAAS,UAAU,CACX,CAAc,EACd,MAAgB,EAChB,OAAO,GAAG,wBAAwB,EAClC,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,MAAM,GAAiB,EAAE,CAAC;IAChC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAEjD,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;QAC1B,MAAM,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC;QAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;QACtB,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QAExC,MAAM,OAAO,GAAG,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,qBAAqB,CAAC,CAAC,CAAC;QAEtE,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC;aAC9B,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAExC,MAAM,GAAG,GAAiB,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAiB,EAAE,CAAC;QAC9B,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC/B,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,GAAC,CAAC,CAAC,GAAC,CAAC,CAAC,GAAC,WAAW,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;YACjE,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACtD,6DAA6D;QAE7D,MAAM,CAAC,IAAI,CAAC,GAAG;YACX,GAAG,OAAO;YACV,GAAG,IAAI;YACP,GAAG,GAAG;YACN,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Loop } from 'flo-boolean';
2
- /** @internal */
3
- declare function loop(g: SVGGElement, loop: Loop): SVGElement[];
4
- export { loop };
@@ -1,11 +0,0 @@
1
- /** @internal */
2
- function loop(g, loop) {
3
- /*
4
- for (let curve of loop.curves) {
5
- drawFs.bezier(g, curve.ps, undefined, 1000);
6
- }
7
- */
8
- return [];
9
- }
10
- export { loop };
11
- //# sourceMappingURL=draw-loop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-loop.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-loop.ts"],"names":[],"mappings":"AAIA,gBAAgB;AAChB,SAAS,IAAI,CAAC,CAAc,EAAE,IAAU;IACpC;;;;MAIE;IACF,OAAO,EAAE,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Loop } from 'flo-boolean';
2
- /** @hidden */
3
- declare function loops(g: SVGGElement, loops: Loop[]): SVGElement[];
4
- export { loops };
@@ -1,6 +0,0 @@
1
- /** @hidden */
2
- function loops(g, loops) {
3
- return [];
4
- }
5
- export { loops };
6
- //# sourceMappingURL=draw-loops.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-loops.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-loops.ts"],"names":[],"mappings":"AAGA,cAAc;AACd,SAAS,KAAK,CAAC,CAAc,EAAE,KAAa;IACxC,OAAO,EAAE,CAAC;AACd,CAAC;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- /** @internal */
2
- declare function looseBoundingBox(g: SVGGElement, box: number[][], classes?: string, delay?: number, scaleFactor?: number): SVGPathElement[];
3
- export { looseBoundingBox };
@@ -1,10 +0,0 @@
1
- import { drawFs } from "flo-draw";
2
- /** @internal */
3
- function looseBoundingBox(g, box, classes = 'thin5 brown nofill', delay = 0, scaleFactor = 1) {
4
- const [[x0, y0], [x1, y1]] = box;
5
- box = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
6
- const $box = drawFs.polygon(g, box, classes, delay);
7
- return $box;
8
- }
9
- export { looseBoundingBox };
10
- //# sourceMappingURL=draw-loose-bounding-box.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-loose-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-loose-bounding-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,gBAAgB,CACjB,CAAc,EACd,GAAe,EACf,OAAO,GAAG,oBAAoB,EAC9B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC;IAChC,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC,EAAE,EAAC,EAAE,CAAC,EAAC,CAAC,EAAE,EAAC,EAAE,CAAC,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAEpD,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { Mat } from '../../../mat/mat.js';
2
- /** @internal */
3
- declare function drawMat(g: SVGGElement, mat: Mat, classes_?: string, delay?: number, scaleFactor?: number): SVGElement[];
4
- export { drawMat };
@@ -1,34 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- import { traverseEdges } from '../../../cp-node/fs/traverse-edges.js';
3
- import { getMatCurveToNext } from '../../../cp-node/fs/get-mat-curve-to-next.js';
4
- import { isTerminating } from '../../../cp-node/fs/is-terminating.js';
5
- const altClasses = [
6
- 'thin10 blue nofill',
7
- 'thin10 red nofill'
8
- ];
9
- /** @internal */
10
- function drawMat(g, mat, classes_, delay = 0, scaleFactor = 1) {
11
- let cpNode = mat.cpNode;
12
- if (!cpNode) {
13
- return [];
14
- }
15
- while (!isTerminating(cpNode)) {
16
- cpNode = cpNode.next;
17
- }
18
- const $svgs = [];
19
- let i = 0;
20
- traverseEdges(cpNode, cpNode => {
21
- if (isTerminating(cpNode)) {
22
- return;
23
- }
24
- const bezier = getMatCurveToNext(cpNode);
25
- if (!bezier) {
26
- return;
27
- }
28
- $svgs.push(...drawFs.bezier(g, bezier, altClasses[i % 2], delay));
29
- i++;
30
- });
31
- return $svgs;
32
- }
33
- export { drawMat };
34
- //# sourceMappingURL=draw-mat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-mat.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-mat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGtE,MAAM,UAAU,GAAG;IACf,oBAAoB;IACpB,mBAAmB;CACtB,CAAC;AAEF,gBAAgB;AAChB,SAAS,OAAO,CACR,CAAc,EACd,GAAQ,EACR,QAAiB,EACjB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IACxB,IAAI,CAAC,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,CAAC;IAAC,CAAC;IAE3B,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;QAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;IAAC,CAAC;IAExD,MAAM,KAAK,GAAiB,EAAE,CAAC;IAE/B,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;QAC3B,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QAEtC,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QAExB,KAAK,CAAC,IAAI,CAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,GAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACjE,CAAC,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @internal */
3
- declare function maxVertex(g: SVGGElement, cpNode: CpNode): SVGCircleElement[];
4
- export { maxVertex };
@@ -1,9 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function maxVertex(g, cpNode) {
4
- const circle = cpNode.pointOnShape.circle;
5
- const $elems = drawFs.circle(g, circle, 'brown thin10 nofill');
6
- return $elems;
7
- }
8
- export { maxVertex };
9
- //# sourceMappingURL=draw-max-vertex.js.map