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
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-max-vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-max-vertex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,SAAS,CAAC,CAAc,EAAE,MAAc;IAC7C,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;IAE1C,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE/D,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { PointOnShape } from '../../../point-on-shape/point-on-shape.js';
2
- /** @internal */
3
- declare function minY(g: SVGGElement, pos: PointOnShape): SVGElement[];
4
- export { minY };
@@ -1,10 +0,0 @@
1
- import { evalDeCasteljau } from 'flo-bezier3';
2
- import { drawFs } from 'flo-draw';
3
- /** @internal */
4
- function minY(g, pos) {
5
- const p = evalDeCasteljau(pos.curve.ps, pos.t);
6
- const $elems = drawFs.crossHair(g, p, 'red thin10 nofill');
7
- return $elems;
8
- }
9
- export { minY };
10
- //# sourceMappingURL=draw-min-y.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-min-y.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-min-y.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,IAAI,CAAC,CAAc,EAAE,GAAiB;IAC3C,MAAM,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE/C,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CACvB,CAAC,EAAE,CAAC,EAAE,mBAAmB,CAChC,CAAC;IAEF,OAAO,MAAM,CAAC;AAClB,CAAC;AAGD,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import { PointOnShape } from '../../../point-on-shape/point-on-shape.js';
2
- /** @hidden */
3
- declare function oneProngAtDullCorner(g: SVGGElement, pos: PointOnShape, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
4
- export { oneProngAtDullCorner };
@@ -1,22 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- import { ddCurvature, ddNormal } from 'flo-bezier3';
3
- /** @hidden */
4
- function oneProngAtDullCorner(g, pos, classes, delay = 1000, scaleFactor = 1) {
5
- //let oCircle = PointOnShape.getOsculatingCircle(Infinity, pos);
6
- const { curve, p, t } = pos;
7
- const { ps } = curve;
8
- const norm = ddNormal(ps, t).map(c => c[1]);
9
- // const [center,r] = getOsculatingCircle(Infinity, pos, norm);
10
- const k = -(ddCurvature(ps, t)[1]);
11
- const [tx, ty] = norm;
12
- const l = Math.sqrt(tx * tx + ty * ty);
13
- const scale = k * l;
14
- const center = [p[0] - tx / scale, p[1] - ty / scale];
15
- const oCircle = { center, radius: 1 / k };
16
- const $center = drawFs.dot(g, pos.p, 0.1, 'orange');
17
- const $circle = drawFs.dot(g, oCircle.center, 0.25, 'orange');
18
- const $pos = drawFs.circle(g, oCircle, 'orange thin10 nofill');
19
- return [...$center, ...$circle, ...$pos];
20
- }
21
- export { oneProngAtDullCorner };
22
- //# sourceMappingURL=draw-one-prong-at-dull-corner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-one-prong-at-dull-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-one-prong-at-dull-corner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAa,MAAM,aAAa,CAAC;AAG/D,cAAc;AACd,SAAS,oBAAoB,CACrB,CAAc,EACd,GAAiB,EACjB,OAAgB,EAChB,KAAK,GAAG,IAAI,EACZ,WAAW,GAAG,CAAC;IAEnB,gEAAgE;IAChE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC;IAC5B,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,+DAA+D;IAE/D,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,GAAC,EAAE,GAAG,EAAE,GAAC,EAAE,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,CAAC,GAAC,CAAC,CAAC;IAClB,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,GAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,GAAC,KAAK,CAAC,CAAC;IAElD,MAAM,OAAO,GAAW,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAC,CAAC,EAAE,CAAC;IAEhD,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;IAElE,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AAC7C,CAAC;AAGD,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @hidden */
3
- declare function drawOneProng(g: SVGGElement, cpNode: CpNode, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
4
- export { drawOneProng };
@@ -1,13 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @hidden */
3
- function drawOneProng(g, cpNode, classes, delay = 0, scaleFactor = 1) {
4
- // const cp = cpNode.cp;
5
- const { pointOnShape: pos } = cpNode;
6
- const { circle } = pos;
7
- const $posP = drawFs.dot(g, pos.p, 0.02 * scaleFactor, 'deeppink', delay);
8
- const $circleCenter = drawFs.dot(g, circle.center, 0.01 * scaleFactor, 'deeppink', delay);
9
- const $circle = drawFs.circle(g, circle, 'deeppink thin5 nofill', delay);
10
- return [...$posP, ...$circleCenter, ...$circle];
11
- }
12
- export { drawOneProng };
13
- //# sourceMappingURL=draw-one-prong.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-one-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-one-prong.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,cAAc;AACd,SAAS,YAAY,CACb,CAAc,EACd,MAAc,EACd,OAAgB,EAChB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,wBAAwB;IACxB,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IACrC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IAEvB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,GAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACxE,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACxF,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAEzE,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,CAAC,CAAC;AACpD,CAAC;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { Curve } from 'flo-boolean';
2
- /** @internal */
3
- declare function sharpCorner(g: SVGGElement, curve: Curve, classes?: string, delay?: number, scaleFactor?: number): SVGCircleElement[];
4
- export { sharpCorner };
@@ -1,10 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function sharpCorner(g, curve, classes = 'green', delay = 0, scaleFactor = 1) {
4
- const { ps } = curve;
5
- const p = ps[ps.length - 1];
6
- const $pos = drawFs.dot(g, p, 0.6 * scaleFactor, 'green', delay);
7
- return $pos;
8
- }
9
- export { sharpCorner };
10
- //# sourceMappingURL=draw-sharp-corner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-sharp-corner.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-sharp-corner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,WAAW,CACZ,CAAc,EACd,KAAY,EACZ,OAAO,GAAG,OAAO,EACjB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,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,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @internal */
3
- declare function drawThreeProng(g: SVGGElement, threeProng: CpNode, classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
4
- export { drawThreeProng };
@@ -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 drawThreeProng(g,
6
- // threeProng: ThreeProngForDebugging,
7
- threeProng, classes, delay = 0, scaleFactor = 1) {
8
- const circle = scaleCircle(threeProng.pointOnShape.circle, 1);
9
- const { center: c, radius: r } = circle;
10
- // const poss = threeProng.poss;
11
- const poss = getAllOnCircle(threeProng)
12
- .map(cpNode => cpNode.pointOnShape);
13
- const { dot, circle: drawCircle, crossHair } = drawFs;
14
- const $circle = drawCircle(g, circle, 'blue thin2 nofill', delay);
15
- const $cps = [];
16
- const $ls = [];
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, 'blue', delay));
20
- $ls.push(...drawFs.line(g, [p, c], 'thin5 red', delay));
21
- }
22
- const $cross = crossHair(g, circle.center, 'red thin2 nofill', 0.02 * scaleFactor, delay);
23
- return [...$cps, ...$ls, ...$circle, ...$cross];
24
- }
25
- export { drawThreeProng };
26
- //# sourceMappingURL=draw-three-prong.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-three-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-three-prong.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,cAAc,CACf,CAAc;AACd,sCAAsC;AACtC,UAAkB,EAClB,OAAgB,EAChB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,MAAM,GAAG,WAAW,CACtB,UAAU,CAAC,YAAY,CAAC,MAAM,EAC9B,CAAC,CACJ,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;IAExC,gCAAgC;IAChC,MAAM,IAAI,GAAG,cAAc,CAAC,UAAU,CAAC;SAClC,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,mBAAmB,EAAE,KAAK,CAAC,CAAC;IAElE,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,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,GAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAExF,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAiB,CAAC;AACpE,CAAC;AAGD,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- /** @internal */
2
- declare function tightBoundingBox(g: SVGGElement, box: number[][], classes?: string, delay?: number, scaleFactor?: number): SVGPathElement[];
3
- export { tightBoundingBox };
@@ -1,8 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function tightBoundingBox(g, box, classes = 'thin5 pinker nofill', delay = 0, scaleFactor = 1) {
4
- const $box = drawFs.polygon(g, box, 'thin5 pinker nofill', delay);
5
- return $box;
6
- }
7
- export { tightBoundingBox };
8
- //# sourceMappingURL=draw-tight-bounding-box.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-tight-bounding-box.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-tight-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,qBAAqB,EAC/B,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAElE,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import { CpNode } from '../../../cp-node/cp-node.js';
2
- /** @internal */
3
- declare function drawTwoProng(drawCrosshair: boolean, drawSpokes: boolean): (g: SVGGElement, twoProng: CpNode, classes?: string, delay?: number, scaleFactor?: number) => SVGElement[];
4
- export { drawTwoProng };
@@ -1,49 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function drawTwoProng(drawCrosshair, drawSpokes) {
4
- return (g, twoProng, classes, delay = 0, scaleFactor = 1) => {
5
- let color;
6
- let thin;
7
- switch (twoProng.isHoleClosing) {
8
- case false: {
9
- color = 'red ';
10
- thin = '2';
11
- break;
12
- }
13
- case true: {
14
- color = 'cyan ';
15
- thin = '10';
16
- break;
17
- }
18
- }
19
- // const cp = twoProng.cp;
20
- const { pointOnShape: pos } = twoProng;
21
- const { circle } = pos;
22
- const { center: c, radius: r } = circle;
23
- const { isSource, p } = pos;
24
- const p2 = twoProng.nextOnCircle.pointOnShape.p;
25
- const pS = isSource ? p : p2;
26
- const pA = isSource ? p2 : p;
27
- const { line, dot, circle: drawCircle, crossHair } = drawFs;
28
- const $center = dot(g, circle.center, 0.02 * scaleFactor, 'yellow', delay);
29
- const $circle = drawCircle(g, circle, color + 'thin' + thin + ' nofill', delay);
30
- const $cp1 = dot(g, pS, 0.005 * scaleFactor, color, delay);
31
- const $cp2 = dot(g, pA, 0.01 * scaleFactor, color, delay);
32
- // const $l1 = drawSpokes ? line(g, [pS, c], 'thin5 red nofill', delay) : [];
33
- // const $l2 = drawSpokes ? line(g, [pA, c], 'thin5 red nofill', delay) : [];
34
- const $cross = drawCrosshair
35
- ? crossHair(g, circle.center, 'red thin2 nofill', 0.002 * scaleFactor, delay)
36
- : [];
37
- return [
38
- ...$circle,
39
- ...$cp1,
40
- ...$cp2,
41
- // ...$l1,
42
- // ...$l2,
43
- ...$cross,
44
- ...$center
45
- ];
46
- };
47
- }
48
- export { drawTwoProng };
49
- //# sourceMappingURL=draw-two-prong.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-two-prong.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-two-prong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,gBAAgB;AAChB,SAAS,YAAY,CACb,aAAsB,EACtB,UAAmB;IAEvB,OAAO,CAAC,CAAc,EACd,QAAgB,EAChB,OAAgB,EAChB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC,EAAE,EAAE;QAEvB,IAAI,KAAK,CAAC;QACV,IAAI,IAAI,CAAC;QAET,QAAQ,QAAQ,CAAC,aAAa,EAAE,CAAC;YAC7B,KAAK,KAAK,CAAC,CAAC,CAAC;gBACT,KAAK,GAAG,MAAM,CAAC;gBACf,IAAI,GAAG,GAAG,CAAC;gBACX,MAAM;YACV,CAAC;YACD,KAAK,IAAI,CAAC,CAAC,CAAC;gBACR,KAAK,GAAG,OAAO,CAAC;gBAChB,IAAI,GAAG,IAAI,CAAC;gBACZ,MAAM;YACV,CAAC;QACL,CAAC;QAED,0BAA0B;QAC1B,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAC;QACvC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;QACvB,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC;QACxC,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC;QAC5B,MAAM,EAAE,GAAG,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC;QAChD,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAE7B,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAE5D,MAAM,OAAO,GAAG,GAAG,CAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAC,WAAW,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5E,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,CAAC,CAAC;QAChF,MAAM,IAAI,GAAM,GAAG,CAAI,CAAC,EAAE,EAAE,EAAE,KAAK,GAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAC/D,MAAM,IAAI,GAAM,GAAG,CAAI,CAAC,EAAE,EAAE,EAAE,IAAI,GAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAE9D,6EAA6E;QAC7E,6EAA6E;QAE7E,MAAM,MAAM,GAAG,aAAa;YACxB,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,GAAC,WAAW,EAAE,KAAK,CAAC;YAC3E,CAAC,CAAC,EAAE,CAAC;QAET,OAAO;YACH,GAAG,OAAO;YACV,GAAG,IAAI;YACP,GAAG,IAAI;YACP,UAAU;YACV,UAAU;YACV,GAAG,MAAM;YACT,GAAG,OAAO;SACb,CAAC;IACN,CAAC,CAAA;AACL,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 vertex(g: SVGGElement, cpNode: CpNode, classes?: string, delay?: number, scaleFactor?: number): SVGElement[];
4
- export { vertex };
@@ -1,13 +0,0 @@
1
- import { drawFs } from 'flo-draw';
2
- /** @internal */
3
- function vertex(g, cpNode, classes, delay = 0, scaleFactor = 1) {
4
- const circle = cpNode.pointOnShape.circle;
5
- let $svgs = [];
6
- // const $circle = drawFs.circle(g, circle, 'red ' + THIN + ' nofill ', delay);
7
- // const $crossHair = drawFs.crossHair(g, circle.center, 'red ' + THIN + ' nofill ', 3, delay);
8
- const $dot = drawFs.dot(g, circle.center, 0.01 * scaleFactor, 'darkgreen', delay);
9
- $svgs = [...$dot];
10
- return $svgs;
11
- }
12
- export { vertex };
13
- //# sourceMappingURL=draw-vertex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draw-vertex.js","sourceRoot":"","sources":["../../../../src/debug/functions/draw-elem/draw-vertex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,gBAAgB;AAChB,SAAS,MAAM,CACP,CAAc,EACd,MAAc,EACd,OAAgB,EAChB,KAAK,GAAG,CAAC,EACT,WAAW,GAAG,CAAC;IAEnB,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;IAE1C,IAAI,KAAK,GAAiB,EAAE,CAAC;IAE7B,+EAA+E;IAC/E,+FAA+F;IAC/F,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAC,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAEhF,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IAElB,OAAO,KAAK,CAAC;AACjB,CAAC;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- import { circumCenter } from 'flo-vector2d';
2
- declare const timeCircumCenter: typeof circumCenter;
3
- export { timeCircumCenter as circumCenter };
@@ -1,5 +0,0 @@
1
- import { circumCenter } from 'flo-vector2d';
2
- // const timeCircumCenter = timeFunctionCalls(circumCenter);
3
- const timeCircumCenter = circumCenter;
4
- export { timeCircumCenter as circumCenter };
5
- //# sourceMappingURL=timed-cc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timed-cc.js","sourceRoot":"","sources":["../../src/find-3-prong/timed-cc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,4DAA4D;AAC5D,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAGtC,OAAO,EAAE,gBAAgB,IAAI,YAAY,EAAE,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { BezierPiece } from "flo-bezier3";
2
- /**
3
- * Filters out zero-length bezier pieces.
4
- *
5
- * * **note** will return at least one bezier piece, even if all pieces are zero-length.
6
- *
7
- * @param bezierPieces
8
- */
9
- declare function filterZeroLength(bezierPieces: BezierPiece[]): BezierPiece[];
10
- export { filterZeroLength };
@@ -1,14 +0,0 @@
1
- import { isBezierPieceZeroLength } from "flo-bezier3";
2
- /**
3
- * Filters out zero-length bezier pieces.
4
- *
5
- * * **note** will return at least one bezier piece, even if all pieces are zero-length.
6
- *
7
- * @param bezierPieces
8
- */
9
- function filterZeroLength(bezierPieces) {
10
- const bezierPieces_ = bezierPieces.filter(bezierPiece => !isBezierPieceZeroLength(bezierPiece));
11
- return bezierPieces_.length > 0 ? bezierPieces_ : [bezierPieces[0]];
12
- }
13
- export { filterZeroLength };
14
- //# sourceMappingURL=filter-zero-length.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter-zero-length.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/filter-zero-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGtD;;;;;;GAMG;AACH,SAAS,gBAAgB,CACjB,YAA2B;IAE/B,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM,CACrC,WAAW,CAAC,EAAE,CAAC,CAAC,uBAAuB,CAAC,WAAW,CAAC,CACvD,CAAC;IAEF,OAAO,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-all-on-loop-by-loop.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-all-on-loop-by-loop.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,SAAS,mBAAmB,CACpB,MAAc;IAElB,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,MAAM,QAAQ,GAAa,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;QACvB,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,cAAe,CAAC,CAAC;IACxD,CAAC;IACD,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAEvB,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAG,CAAC;QAChC,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9C,IAAI,MAAM,GAAG,OAAO,CAAC;QAErB,GAAG,CAAC;YACA,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC;YAC5C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACjB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACrB,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;gBACrB,SAAS;YACb,CAAC;YAED,MAAM,IAAI,GAAG,MAAM,CAAC,cAAe,CAAC;YACpC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxB,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACrB,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,cAAe,CAAC,CAAC;gBAClD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YAED,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,cAAe,CAAC;QACzC,CAAC,QAAQ,MAAM,KAAK,OAAO,EAAE;QAE7B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAGD,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BezierPiece } from "flo-bezier3";
2
- declare function getBezierPieceLength(bezierPiece: BezierPiece): number;
3
- export { getBezierPieceLength };
@@ -1,6 +0,0 @@
1
- import { length } from 'flo-bezier3';
2
- function getBezierPieceLength(bezierPiece) {
3
- return length(bezierPiece.ts, bezierPiece.ps);
4
- }
5
- export { getBezierPieceLength };
6
- //# sourceMappingURL=get-bezier-piece-length.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-bezier-piece-length.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-bezier-piece-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,SAAS,oBAAoB,CACrB,WAAwB;IAE5B,OAAO,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC;AAClD,CAAC;AAGD,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { BezierPiece } from 'flo-bezier3';
2
- import type { CpNode } from '../cp-node/cp-node.js';
3
- declare function getBoundary(cpNode: CpNode): {
4
- boundaryBeziers: BezierPiece[];
5
- boundaryBeziersOpp: BezierPiece[] | undefined;
6
- };
7
- export { getBoundary };
@@ -1,18 +0,0 @@
1
- import { getBoundaryBezierPartsToNext } from '../cp-node/fs/get-boundary-bezier-parts-to-next.js';
2
- import { filterZeroLength } from "./filter-zero-length.js";
3
- import { isFullyTerminating } from './is-fully-terminating.js';
4
- function getBoundary(cpNode) {
5
- const cpNodeOpp = isFullyTerminating(cpNode)
6
- ? undefined // no opposite boundary
7
- : cpNode.next.prevOnCircle;
8
- const boundaryBeziers = filterZeroLength(getBoundaryBezierPartsToNext(cpNode));
9
- const boundaryBeziersOpp = cpNodeOpp === undefined
10
- ? undefined
11
- : filterZeroLength(getBoundaryBezierPartsToNext(cpNodeOpp));
12
- return {
13
- boundaryBeziers,
14
- boundaryBeziersOpp
15
- };
16
- }
17
- export { getBoundary };
18
- //# sourceMappingURL=get-boundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-boundary.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-boundary.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,SAAS,WAAW,CACZ,MAAc;IAKlB,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC;QACxC,CAAC,CAAC,SAAS,CAAC,uBAAuB;QACnC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;IAE/B,MAAM,eAAe,GACjB,gBAAgB,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC,CAAC;IAE3D,MAAM,kBAAkB,GAAG,SAAS,KAAK,SAAS;QAC9C,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhE,OAAO;QACH,eAAe;QACf,kBAAkB;KACrB,CAAC;AACN,CAAC;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { CpNode } from '../cp-node/cp-node.js';
2
- import type { MatchedBeziers } from './matched-beziers.js';
3
- /**
4
- * Returns a correspondence between boundary bezier curves and a medial axis
5
- * bezier curve. They will later be interpolated.
6
- *
7
- * @param cpNode the start `CpNode`
8
- */
9
- declare function getMatchingBeziers(cpNode: CpNode): MatchedBeziers[] | undefined;
10
- export { getMatchingBeziers };
@@ -1,29 +0,0 @@
1
- import { getMatCurveToNext } from '../cp-node/fs/get-mat-curve-to-next.js';
2
- import { splitTriPath } from './split-tri-path.js';
3
- import { getBoundary } from './get-boundary.js';
4
- import { isOnSameLoop } from '../cp-node/fs/is-on-same-loop.js';
5
- /**
6
- * Returns a correspondence between boundary bezier curves and a medial axis
7
- * bezier curve. They will later be interpolated.
8
- *
9
- * @param cpNode the start `CpNode`
10
- */
11
- function getMatchingBeziers(cpNode) {
12
- const medialBezier = {
13
- ps: getMatCurveToNext(cpNode),
14
- ts: [0, 1]
15
- };
16
- if (cpNode.isHoleClosing && // short-circuit
17
- !isOnSameLoop(cpNode, cpNode.next)) {
18
- // We get here for half of hole-closers, as only half of hole-closers are on a different loop.
19
- // This cpNode indicates we should connect the hole
20
- // console.log('hole-closing dummy case');
21
- return undefined;
22
- }
23
- const r = getBoundary(cpNode);
24
- const { boundaryBeziers, boundaryBeziersOpp } = r;
25
- const matchedBezierss = splitTriPath(boundaryBeziers, medialBezier, boundaryBeziersOpp ?? []);
26
- return matchedBezierss;
27
- }
28
- export { getMatchingBeziers };
29
- //# sourceMappingURL=get-matching-beziers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-matching-beziers.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-matching-beziers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE;;;;;GAKG;AACH,SAAS,kBAAkB,CACnB,MAAc;IAElB,MAAM,YAAY,GAAgB;QAC9B,EAAE,EAAE,iBAAiB,CAAC,MAAM,CAAC;QAC7B,EAAE,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;KACZ,CAAC;IAEF,IAAI,MAAM,CAAC,aAAa,IAAK,gBAAgB;QACzC,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAErC,8FAA8F;QAC9F,mDAAmD;QACnD,0CAA0C;QAC1C,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAC;IAElD,MAAM,eAAe,GAAqB,YAAY,CAClD,eAAe,EACf,YAAY,EACZ,kBAAkB,IAAI,EAAE,CAC3B,CAAC;IAEF,OAAO,eAAe,CAAC;AAC3B,CAAC;AAGD,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { Mat } from "../mat/mat.js";
2
- declare function getMbssByLoopPerSat(mats: Mat[], satScale: number): {
3
- mbssByLoop: (import("./matched-beziers.js").MatchedBeziers[] | undefined)[][];
4
- oppArr: [[number, number], [number, number]][];
5
- }[];
6
- export { getMbssByLoopPerSat };
@@ -1,10 +0,0 @@
1
- import { getSats2 } from "./get-sats2.js";
2
- import { getMbssByLoopWithOppArr } from "./get-mbss-by-loop-with-opp-arr.js";
3
- import { getCpNodessForSat } from "./get-cp-nodess-for-sat.js";
4
- function getMbssByLoopPerSat(mats, satScale) {
5
- const sats = getSats2(mats, satScale);
6
- const cpNodessPerSat = sats.map(getCpNodessForSat);
7
- return cpNodessPerSat.map(getMbssByLoopWithOppArr);
8
- }
9
- export { getMbssByLoopPerSat };
10
- //# sourceMappingURL=get-mbss-by-loop-per-sat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-mbss-by-loop-per-sat.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-mbss-by-loop-per-sat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,SAAS,mBAAmB,CACpB,IAAW,EACX,QAAgB;IAEpB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEtC,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAEnD,OAAO,cAAc,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AACvD,CAAC;AAGD,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { CpNode } from "../cp-node/cp-node.js";
2
- import type { MatchedBeziers } from "./matched-beziers.js";
3
- declare function getMbssByLoopWithOppArr(cpNodess: CpNode[][]): {
4
- mbssByLoop: (MatchedBeziers[] | undefined)[][];
5
- oppArr: [[number, number], [number, number]][];
6
- };
7
- export { getMbssByLoopWithOppArr };
@@ -1,47 +0,0 @@
1
- import { getMatchingBeziers } from "./get-matching-beziers.js";
2
- import { isFullyTerminating } from "./is-fully-terminating.js";
3
- function getMbssByLoopWithOppArr(cpNodess) {
4
- const mbssByLoop = [];
5
- /**
6
- * An array with each entry being a pair of indices mapping from
7
- * `MatchedBeziers[]` on one side to `MatchedBeziers[]` on the other side
8
- */
9
- const mbMap = new Map();
10
- for (let l = 0; l < cpNodess.length; l++) {
11
- const cpNodes = cpNodess[l];
12
- const mbss = [];
13
- for (let i = 0; i < cpNodes.length; i++) {
14
- const cpNode = cpNodes[i];
15
- mbMap.set(cpNode, [l, i]);
16
- const mbs = getMatchingBeziers(cpNode);
17
- mbss.push(mbs);
18
- }
19
- mbssByLoop.push(mbss);
20
- }
21
- const oppArr = [];
22
- for (let l = 0; l < cpNodess.length; l++) {
23
- const cpNodes = cpNodess[l];
24
- for (let i = 0; i < cpNodes.length; i++) {
25
- const cpNode = cpNodes[i];
26
- const cpNodeOpp = isFullyTerminating(cpNode)
27
- ? undefined // no opposite boundary
28
- : cpNode.next.prevOnCircle;
29
- // if (cpNodeOpp === undefined) {
30
- // continue;
31
- // }
32
- const oppIdxs = cpNodeOpp === undefined
33
- ? [255, 65535]
34
- : mbMap.get(cpNodeOpp);
35
- const mbs = mbssByLoop[l][i];
36
- if (oppIdxs !== undefined && mbs !== undefined) {
37
- oppArr.push([[l, i], oppIdxs]);
38
- }
39
- else {
40
- oppArr.push([[l, i], [255, 65535]]);
41
- }
42
- }
43
- }
44
- return { mbssByLoop, oppArr };
45
- }
46
- export { getMbssByLoopWithOppArr };
47
- //# sourceMappingURL=get-mbss-by-loop-with-opp-arr.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-mbss-by-loop-with-opp-arr.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-mbss-by-loop-with-opp-arr.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,SAAS,uBAAuB,CACxB,QAAoB;IAExB,MAAM,UAAU,GAAuC,EAAE,CAAC;IAE1D;;;OAGG;IACH,MAAM,KAAK,GAAiC,IAAI,GAAG,EAAE,CAAC;IAEtD,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAE5B,MAAM,IAAI,GAAqC,EAAE,CAAC;QAClD,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAClC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAE1B,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC;YAEzB,MAAM,GAAG,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;YAEvC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;QAED,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAGD,MAAM,MAAM,GAAwC,EAAE,CAAC;IAEvD,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAE5B,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAClC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAE1B,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC;gBACxC,CAAC,CAAC,SAAS,CAAC,uBAAuB;gBACnC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;YAE/B,iCAAiC;YACjC,gBAAgB;YAChB,IAAI;YAEJ,MAAM,OAAO,GAAG,SAAS,KAAK,SAAS;gBACnC,CAAC,CAAC,CAAC,GAAG,EAAC,KAAK,CAAoB;gBAChC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAE3B,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,OAAO,KAAK,SAAS,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBAC7C,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;YAClC,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAE,CAAC,GAAG,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACtC,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;AAClC,CAAC;AAGD,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { Mat } from '../mat/mat.js';
2
- /**
3
- * Returns the shape information.
4
- *
5
- * @param font$$ the font from which the glyph outlines will be retrieved
6
- * @param glyphId the glyph id for which the shape is to be retrieved
7
- * @param options the options for SAT computation
8
- */
9
- declare function getSats2(mats: Mat[], satScale: number): Mat[];
10
- export { getSats2 };
@@ -1,16 +0,0 @@
1
- import { removeSatInducedTrivial3Prongs } from "./remove-sat-induced-trivial-3prongs.js";
2
- import { toScaleAxis } from '../sat/to-scale-axis.js';
3
- /**
4
- * Returns the shape information.
5
- *
6
- * @param font$$ the font from which the glyph outlines will be retrieved
7
- * @param glyphId the glyph id for which the shape is to be retrieved
8
- * @param options the options for SAT computation
9
- */
10
- // TODO
11
- function getSats2(mats, satScale) {
12
- const sats = mats.map(mat => toScaleAxis(mat, satScale));
13
- return sats.map(removeSatInducedTrivial3Prongs);
14
- }
15
- export { getSats2 };
16
- //# sourceMappingURL=get-sats2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-sats2.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/get-sats2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD;;;;;;GAMG;AACH,OAAO;AACP,SAAS,QAAQ,CACT,IAAW,EACX,QAAgB;IAEpB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEzD,OAAO,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;AACpD,CAAC;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { CpNode } from '../cp-node/cp-node.js';
2
- declare function isFullyTerminating(cpNode: CpNode): boolean;
3
- export { isFullyTerminating };
@@ -1,19 +0,0 @@
1
- import { getAllOnCircle } from '../cp-node/fs/get-all-on-circle.js';
2
- import { isTerminating } from '../cp-node/fs/is-terminating.js';
3
- import { isTrivial } from '../cp-node/fs/is-trivial.js';
4
- // TODO - DUPLICATE! -> likely other version needs fixing
5
- function isFullyTerminating(cpNode) {
6
- if (!isTerminating(cpNode)) {
7
- return false;
8
- }
9
- if (isTrivial(cpNode)) {
10
- return true;
11
- }
12
- while (cpNode.prev === cpNode.prevOnCircle) {
13
- cpNode = cpNode.prev;
14
- }
15
- const otherOnCircle = getAllOnCircle(cpNode.prevOnCircle, true);
16
- return otherOnCircle.every(isTerminating);
17
- }
18
- export { isFullyTerminating };
19
- //# sourceMappingURL=is-fully-terminating.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-fully-terminating.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/is-fully-terminating.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGxD,yDAAyD;AACzD,SAAS,kBAAkB,CAAC,MAAc;IACtC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,YAAY,EAAE,CAAC;QACzC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAEhE,OAAO,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAC9C,CAAC;AAGD,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { BezierPiece } from 'flo-bezier3';
2
- /**
3
- * A type representing a correspondence between 3 bezier curves (one on the
4
- * boundary, one on the medial axis and one on the opposite boundary)
5
- */
6
- interface MatchedBeziers {
7
- readonly medialBezier: BezierPiece;
8
- readonly boundaryBezier: BezierPiece;
9
- }
10
- export type { MatchedBeziers };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=matched-beziers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"matched-beziers.js","sourceRoot":"","sources":["../../src/reconstruct-from-mat/matched-beziers.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { BezierPiece } from 'flo-bezier3';
2
- import type { MatchedBeziers } from './matched-beziers.js';
3
- declare function splitTriPath(boundaryBeziers: BezierPiece[], medialBezier: BezierPiece, boundaryBeziersOpp: BezierPiece[] | undefined): MatchedBeziers[];
4
- declare function getCumLengths(lens: number[]): number[];
5
- export { splitTriPath, getCumLengths };