@antv/layout 2.0.0 → 2.0.1

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 (1012) hide show
  1. package/dist/index.js +135 -196
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/worker.js +1 -1
  6. package/dist/worker.js.map +1 -1
  7. package/esm/algorithm/antv-dagre/acyclic.js +40 -0
  8. package/esm/algorithm/antv-dagre/acyclic.js.map +1 -0
  9. package/esm/algorithm/antv-dagre/add-border-segments.js +42 -0
  10. package/esm/algorithm/antv-dagre/add-border-segments.js.map +1 -0
  11. package/esm/algorithm/antv-dagre/coordinate-system.js +66 -0
  12. package/esm/algorithm/antv-dagre/coordinate-system.js.map +1 -0
  13. package/esm/algorithm/antv-dagre/data/list.js +50 -0
  14. package/esm/algorithm/antv-dagre/data/list.js.map +1 -0
  15. package/esm/algorithm/antv-dagre/graph.js +429 -0
  16. package/esm/algorithm/antv-dagre/graph.js.map +1 -0
  17. package/esm/algorithm/antv-dagre/greedy-fas.js +139 -0
  18. package/esm/algorithm/antv-dagre/greedy-fas.js.map +1 -0
  19. package/esm/algorithm/antv-dagre/index.js +340 -0
  20. package/esm/algorithm/antv-dagre/index.js.map +1 -0
  21. package/esm/algorithm/antv-dagre/layout.js +471 -0
  22. package/esm/algorithm/antv-dagre/layout.js.map +1 -0
  23. package/esm/algorithm/antv-dagre/nesting-graph.js +154 -0
  24. package/esm/algorithm/antv-dagre/nesting-graph.js.map +1 -0
  25. package/esm/algorithm/antv-dagre/normalize.js +100 -0
  26. package/esm/algorithm/antv-dagre/normalize.js.map +1 -0
  27. package/esm/algorithm/antv-dagre/order/add-subgraph-constraints.js +47 -0
  28. package/esm/algorithm/antv-dagre/order/add-subgraph-constraints.js.map +1 -0
  29. package/esm/algorithm/antv-dagre/order/barycenter.js +25 -0
  30. package/esm/algorithm/antv-dagre/order/barycenter.js.map +1 -0
  31. package/esm/algorithm/antv-dagre/order/build-layer-graph.js +89 -0
  32. package/esm/algorithm/antv-dagre/order/build-layer-graph.js.map +1 -0
  33. package/esm/algorithm/antv-dagre/order/cross-count.js +66 -0
  34. package/esm/algorithm/antv-dagre/order/cross-count.js.map +1 -0
  35. package/esm/algorithm/antv-dagre/order/index.js +94 -0
  36. package/esm/algorithm/antv-dagre/order/index.js.map +1 -0
  37. package/esm/algorithm/antv-dagre/order/init-data-order.js +29 -0
  38. package/esm/algorithm/antv-dagre/order/init-data-order.js.map +1 -0
  39. package/esm/algorithm/antv-dagre/order/init-order.js +49 -0
  40. package/esm/algorithm/antv-dagre/order/init-order.js.map +1 -0
  41. package/esm/algorithm/antv-dagre/order/resolve-conflicts.js +119 -0
  42. package/esm/algorithm/antv-dagre/order/resolve-conflicts.js.map +1 -0
  43. package/esm/algorithm/antv-dagre/order/sort-subgraph.js +87 -0
  44. package/esm/algorithm/antv-dagre/order/sort-subgraph.js.map +1 -0
  45. package/esm/algorithm/antv-dagre/order/sort.js +77 -0
  46. package/esm/algorithm/antv-dagre/order/sort.js.map +1 -0
  47. package/esm/algorithm/antv-dagre/parent-dummy-chains.js +82 -0
  48. package/esm/algorithm/antv-dagre/parent-dummy-chains.js.map +1 -0
  49. package/esm/algorithm/antv-dagre/position/bk.js +366 -0
  50. package/esm/algorithm/antv-dagre/position/bk.js.map +1 -0
  51. package/esm/algorithm/antv-dagre/position/index.js +54 -0
  52. package/esm/algorithm/antv-dagre/position/index.js.map +1 -0
  53. package/esm/algorithm/antv-dagre/rank/feasible-tree.js +166 -0
  54. package/esm/algorithm/antv-dagre/rank/feasible-tree.js.map +1 -0
  55. package/esm/algorithm/antv-dagre/rank/index.js +51 -0
  56. package/esm/algorithm/antv-dagre/rank/index.js.map +1 -0
  57. package/esm/algorithm/antv-dagre/rank/network-simplex.js +234 -0
  58. package/esm/algorithm/antv-dagre/rank/network-simplex.js.map +1 -0
  59. package/esm/algorithm/antv-dagre/rank/util.js +139 -0
  60. package/esm/algorithm/antv-dagre/rank/util.js.map +1 -0
  61. package/esm/algorithm/antv-dagre/util.js +265 -0
  62. package/esm/algorithm/antv-dagre/util.js.map +1 -0
  63. package/esm/algorithm/base-layout.js +89 -0
  64. package/esm/algorithm/base-layout.js.map +1 -0
  65. package/esm/algorithm/base-simulation.js +75 -0
  66. package/esm/algorithm/base-simulation.js.map +1 -0
  67. package/esm/algorithm/circular/index.js +110 -0
  68. package/esm/algorithm/circular/index.js.map +1 -0
  69. package/esm/algorithm/combo-combined/index.js +306 -0
  70. package/esm/algorithm/combo-combined/index.js.map +1 -0
  71. package/esm/algorithm/concentric/index.js +187 -0
  72. package/esm/algorithm/concentric/index.js.map +1 -0
  73. package/esm/algorithm/d3-force/force-in-a-box.js +340 -0
  74. package/esm/algorithm/d3-force/force-in-a-box.js.map +1 -0
  75. package/esm/algorithm/d3-force/index.js +505 -0
  76. package/esm/algorithm/d3-force/index.js.map +1 -0
  77. package/esm/algorithm/d3-force-3d/index.js +65 -0
  78. package/esm/algorithm/d3-force-3d/index.js.map +1 -0
  79. package/esm/algorithm/dagre/index.js +143 -0
  80. package/esm/algorithm/dagre/index.js.map +1 -0
  81. package/esm/algorithm/force/attractive.js +60 -0
  82. package/esm/algorithm/force/attractive.js.map +1 -0
  83. package/esm/algorithm/force/centripetal.js +87 -0
  84. package/esm/algorithm/force/centripetal.js.map +1 -0
  85. package/esm/algorithm/force/collide.js +172 -0
  86. package/esm/algorithm/force/collide.js.map +1 -0
  87. package/esm/algorithm/force/gravity.js +50 -0
  88. package/esm/algorithm/force/gravity.js.map +1 -0
  89. package/esm/algorithm/force/index.js +462 -0
  90. package/esm/algorithm/force/index.js.map +1 -0
  91. package/esm/algorithm/force/repulsive.js +142 -0
  92. package/esm/algorithm/force/repulsive.js.map +1 -0
  93. package/esm/algorithm/force/simulation.js +137 -0
  94. package/esm/algorithm/force/simulation.js.map +1 -0
  95. package/esm/algorithm/force-atlas2/body.js +91 -0
  96. package/esm/algorithm/force-atlas2/body.js.map +1 -0
  97. package/esm/algorithm/force-atlas2/index.js +157 -0
  98. package/esm/algorithm/force-atlas2/index.js.map +1 -0
  99. package/esm/algorithm/force-atlas2/quad-tree.js +106 -0
  100. package/esm/algorithm/force-atlas2/quad-tree.js.map +1 -0
  101. package/esm/algorithm/force-atlas2/quad.js +98 -0
  102. package/esm/algorithm/force-atlas2/quad.js.map +1 -0
  103. package/esm/algorithm/force-atlas2/simulation.js +388 -0
  104. package/esm/algorithm/force-atlas2/simulation.js.map +1 -0
  105. package/esm/algorithm/fruchterman/index.js +92 -0
  106. package/esm/algorithm/fruchterman/index.js.map +1 -0
  107. package/esm/algorithm/fruchterman/simulation.js +357 -0
  108. package/esm/algorithm/fruchterman/simulation.js.map +1 -0
  109. package/esm/algorithm/grid/index.js +239 -0
  110. package/esm/algorithm/grid/index.js.map +1 -0
  111. package/esm/algorithm/mds/index.js +129 -0
  112. package/esm/algorithm/mds/index.js.map +1 -0
  113. package/esm/algorithm/radial/index.js +279 -0
  114. package/esm/algorithm/radial/index.js.map +1 -0
  115. package/esm/algorithm/radial/radial-nonoverlap-force.js +127 -0
  116. package/esm/algorithm/radial/radial-nonoverlap-force.js.map +1 -0
  117. package/esm/algorithm/random/index.js +43 -0
  118. package/esm/algorithm/random/index.js.map +1 -0
  119. package/esm/index.js +30 -0
  120. package/{lib/_virtual → esm}/index.js.map +1 -1
  121. package/esm/model/data.js +281 -0
  122. package/esm/model/data.js.map +1 -0
  123. package/esm/registry.js +32 -0
  124. package/esm/registry.js.map +1 -0
  125. package/esm/runtime/context.js +29 -0
  126. package/esm/runtime/context.js.map +1 -0
  127. package/esm/runtime/supervisor.js +89 -0
  128. package/esm/runtime/supervisor.js.map +1 -0
  129. package/esm/util/array.js +4 -0
  130. package/esm/util/array.js.map +1 -0
  131. package/esm/util/common.js +20 -0
  132. package/esm/util/common.js.map +1 -0
  133. package/esm/util/expr.js +26 -0
  134. package/esm/util/expr.js.map +1 -0
  135. package/esm/util/format.js +113 -0
  136. package/esm/util/format.js.map +1 -0
  137. package/esm/util/math.js +272 -0
  138. package/esm/util/math.js.map +1 -0
  139. package/esm/util/object.js +44 -0
  140. package/esm/util/object.js.map +1 -0
  141. package/esm/util/order.js +109 -0
  142. package/esm/util/order.js.map +1 -0
  143. package/esm/util/point.js +11 -0
  144. package/esm/util/point.js.map +1 -0
  145. package/esm/util/size.js +23 -0
  146. package/esm/util/size.js.map +1 -0
  147. package/esm/util/viewport.js +17 -0
  148. package/esm/util/viewport.js.map +1 -0
  149. package/esm/worker.js +9170 -0
  150. package/esm/worker.js.map +1 -0
  151. package/lib/algorithm/antv-dagre/acyclic.js +3 -3
  152. package/lib/algorithm/antv-dagre/acyclic.js.map +1 -1
  153. package/lib/algorithm/antv-dagre/coordinate-system.js +2 -2
  154. package/lib/algorithm/antv-dagre/coordinate-system.js.map +1 -1
  155. package/lib/algorithm/antv-dagre/index.js +7 -7
  156. package/lib/algorithm/antv-dagre/index.js.map +1 -1
  157. package/lib/algorithm/antv-dagre/layout.js +1 -1
  158. package/lib/algorithm/antv-dagre/nesting-graph.js +2 -2
  159. package/lib/algorithm/antv-dagre/nesting-graph.js.map +1 -1
  160. package/lib/algorithm/antv-dagre/order/index.js +1 -1
  161. package/lib/algorithm/antv-dagre/util.js +4 -4
  162. package/lib/algorithm/antv-dagre/util.js.map +1 -1
  163. package/lib/algorithm/base-layout.js +1 -1
  164. package/lib/algorithm/base-simulation.js +1 -1
  165. package/lib/algorithm/circular/index.js +6 -5
  166. package/lib/algorithm/circular/index.js.map +1 -1
  167. package/lib/algorithm/combo-combined/index.js +3 -2
  168. package/lib/algorithm/combo-combined/index.js.map +1 -1
  169. package/lib/algorithm/concentric/index.js +7 -6
  170. package/lib/algorithm/concentric/index.js.map +1 -1
  171. package/lib/algorithm/d3-force/force-in-a-box.js +9 -12
  172. package/lib/algorithm/d3-force/force-in-a-box.js.map +1 -1
  173. package/lib/algorithm/d3-force/index.js +18 -25
  174. package/lib/algorithm/d3-force/index.js.map +1 -1
  175. package/lib/algorithm/d3-force-3d/index.js +1 -9
  176. package/lib/algorithm/d3-force-3d/index.js.map +1 -1
  177. package/lib/algorithm/dagre/index.js +5 -7
  178. package/lib/algorithm/dagre/index.js.map +1 -1
  179. package/lib/algorithm/force/centripetal.js +1 -1
  180. package/lib/algorithm/force/collide.js +2 -2
  181. package/lib/algorithm/force/index.js +5 -5
  182. package/lib/algorithm/force/index.js.map +1 -1
  183. package/lib/algorithm/force/repulsive.js +2 -2
  184. package/lib/algorithm/force/simulation.js +1 -1
  185. package/lib/algorithm/force-atlas2/index.js +6 -5
  186. package/lib/algorithm/force-atlas2/index.js.map +1 -1
  187. package/lib/algorithm/force-atlas2/simulation.js +4 -4
  188. package/lib/algorithm/force-atlas2/simulation.js.map +1 -1
  189. package/lib/algorithm/fruchterman/index.js +5 -4
  190. package/lib/algorithm/fruchterman/index.js.map +1 -1
  191. package/lib/algorithm/fruchterman/simulation.js +4 -4
  192. package/lib/algorithm/fruchterman/simulation.js.map +1 -1
  193. package/lib/algorithm/grid/index.js +3 -2
  194. package/lib/algorithm/grid/index.js.map +1 -1
  195. package/lib/algorithm/mds/index.js +10 -9
  196. package/lib/algorithm/mds/index.js.map +1 -1
  197. package/lib/algorithm/radial/index.js +3 -2
  198. package/lib/algorithm/radial/index.js.map +1 -1
  199. package/lib/algorithm/radial/radial-nonoverlap-force.js +3 -3
  200. package/lib/algorithm/radial/radial-nonoverlap-force.js.map +1 -1
  201. package/lib/algorithm/random/index.js +3 -2
  202. package/lib/algorithm/random/index.js.map +1 -1
  203. package/lib/model/data.js +1 -1
  204. package/lib/runtime/supervisor.js +2 -2
  205. package/lib/util/expr.js +3 -3
  206. package/lib/util/expr.js.map +1 -1
  207. package/lib/util/format.js +1 -4
  208. package/lib/util/format.js.map +1 -1
  209. package/lib/util/math.js +1 -1
  210. package/lib/util/object.js +1 -2
  211. package/lib/util/object.js.map +1 -1
  212. package/lib/util/order.js +4 -4
  213. package/lib/util/order.js.map +1 -1
  214. package/lib/util/size.js +1 -1
  215. package/lib/worker.js +3002 -26176
  216. package/lib/worker.js.map +1 -1
  217. package/package.json +4 -2
  218. package/lib/_virtual/_cloneBuffer.js +0 -4
  219. package/lib/_virtual/_cloneBuffer.js.map +0 -1
  220. package/lib/_virtual/_commonjs-dynamic-modules.js +0 -6
  221. package/lib/_virtual/_commonjs-dynamic-modules.js.map +0 -1
  222. package/lib/_virtual/_commonjsHelpers.js +0 -37
  223. package/lib/_virtual/_commonjsHelpers.js.map +0 -1
  224. package/lib/_virtual/_nodeUtil.js +0 -4
  225. package/lib/_virtual/_nodeUtil.js.map +0 -1
  226. package/lib/_virtual/index.js +0 -8
  227. package/lib/_virtual/index2.js +0 -7
  228. package/lib/_virtual/index2.js.map +0 -1
  229. package/lib/_virtual/index3.js +0 -7
  230. package/lib/_virtual/index3.js.map +0 -1
  231. package/lib/_virtual/isBuffer.js +0 -4
  232. package/lib/_virtual/isBuffer.js.map +0 -1
  233. package/lib/_virtual/matrix.js +0 -8
  234. package/lib/_virtual/matrix.js.map +0 -1
  235. package/lib/_virtual/matrix2.js +0 -4
  236. package/lib/_virtual/matrix2.js.map +0 -1
  237. package/lib/node_modules/@antv/event-emitter/esm/index.js +0 -107
  238. package/lib/node_modules/@antv/event-emitter/esm/index.js.map +0 -1
  239. package/lib/node_modules/@antv/expr/dist/index.esm.js +0 -4
  240. package/lib/node_modules/@antv/expr/dist/index.esm.js.map +0 -1
  241. package/lib/node_modules/@antv/util/esm/lodash/clone.js +0 -34
  242. package/lib/node_modules/@antv/util/esm/lodash/clone.js.map +0 -1
  243. package/lib/node_modules/@antv/util/esm/lodash/deep-mix.js +0 -54
  244. package/lib/node_modules/@antv/util/esm/lodash/deep-mix.js.map +0 -1
  245. package/lib/node_modules/@antv/util/esm/lodash/each.js +0 -30
  246. package/lib/node_modules/@antv/util/esm/lodash/each.js.map +0 -1
  247. package/lib/node_modules/@antv/util/esm/lodash/get-type.js +0 -10
  248. package/lib/node_modules/@antv/util/esm/lodash/get-type.js.map +0 -1
  249. package/lib/node_modules/@antv/util/esm/lodash/get.js +0 -19
  250. package/lib/node_modules/@antv/util/esm/lodash/get.js.map +0 -1
  251. package/lib/node_modules/@antv/util/esm/lodash/is-array-like.js +0 -12
  252. package/lib/node_modules/@antv/util/esm/lodash/is-array-like.js.map +0 -1
  253. package/lib/node_modules/@antv/util/esm/lodash/is-array.js +0 -10
  254. package/lib/node_modules/@antv/util/esm/lodash/is-array.js.map +0 -1
  255. package/lib/node_modules/@antv/util/esm/lodash/is-boolean.js +0 -14
  256. package/lib/node_modules/@antv/util/esm/lodash/is-boolean.js.map +0 -1
  257. package/lib/node_modules/@antv/util/esm/lodash/is-empty.js +0 -39
  258. package/lib/node_modules/@antv/util/esm/lodash/is-empty.js.map +0 -1
  259. package/lib/node_modules/@antv/util/esm/lodash/is-function.js +0 -10
  260. package/lib/node_modules/@antv/util/esm/lodash/is-function.js.map +0 -1
  261. package/lib/node_modules/@antv/util/esm/lodash/is-nil.js +0 -10
  262. package/lib/node_modules/@antv/util/esm/lodash/is-nil.js.map +0 -1
  263. package/lib/node_modules/@antv/util/esm/lodash/is-number.js +0 -10
  264. package/lib/node_modules/@antv/util/esm/lodash/is-number.js.map +0 -1
  265. package/lib/node_modules/@antv/util/esm/lodash/is-object-like.js +0 -12
  266. package/lib/node_modules/@antv/util/esm/lodash/is-object-like.js.map +0 -1
  267. package/lib/node_modules/@antv/util/esm/lodash/is-object.js +0 -13
  268. package/lib/node_modules/@antv/util/esm/lodash/is-object.js.map +0 -1
  269. package/lib/node_modules/@antv/util/esm/lodash/is-plain-object.js +0 -25
  270. package/lib/node_modules/@antv/util/esm/lodash/is-plain-object.js.map +0 -1
  271. package/lib/node_modules/@antv/util/esm/lodash/is-prototype.js +0 -9
  272. package/lib/node_modules/@antv/util/esm/lodash/is-prototype.js.map +0 -1
  273. package/lib/node_modules/@antv/util/esm/lodash/is-string.js +0 -10
  274. package/lib/node_modules/@antv/util/esm/lodash/is-string.js.map +0 -1
  275. package/lib/node_modules/@antv/util/esm/lodash/is-type.js +0 -5
  276. package/lib/node_modules/@antv/util/esm/lodash/is-type.js.map +0 -1
  277. package/lib/node_modules/@antv/util/esm/lodash/pick.js +0 -19
  278. package/lib/node_modules/@antv/util/esm/lodash/pick.js.map +0 -1
  279. package/lib/node_modules/@antv/util/esm/lodash/set.js +0 -30
  280. package/lib/node_modules/@antv/util/esm/lodash/set.js.map +0 -1
  281. package/lib/node_modules/comlink/dist/esm/comlink.js +0 -351
  282. package/lib/node_modules/comlink/dist/esm/comlink.js.map +0 -1
  283. package/lib/node_modules/d3-binarytree/src/add.js +0 -71
  284. package/lib/node_modules/d3-binarytree/src/add.js.map +0 -1
  285. package/lib/node_modules/d3-binarytree/src/binarytree.js +0 -71
  286. package/lib/node_modules/d3-binarytree/src/binarytree.js.map +0 -1
  287. package/lib/node_modules/d3-binarytree/src/cover.js +0 -39
  288. package/lib/node_modules/d3-binarytree/src/cover.js.map +0 -1
  289. package/lib/node_modules/d3-binarytree/src/data.js +0 -10
  290. package/lib/node_modules/d3-binarytree/src/data.js.map +0 -1
  291. package/lib/node_modules/d3-binarytree/src/extent.js +0 -8
  292. package/lib/node_modules/d3-binarytree/src/extent.js.map +0 -1
  293. package/lib/node_modules/d3-binarytree/src/find.js +0 -61
  294. package/lib/node_modules/d3-binarytree/src/find.js.map +0 -1
  295. package/lib/node_modules/d3-binarytree/src/half.js +0 -8
  296. package/lib/node_modules/d3-binarytree/src/half.js.map +0 -1
  297. package/lib/node_modules/d3-binarytree/src/remove.js +0 -59
  298. package/lib/node_modules/d3-binarytree/src/remove.js.map +0 -1
  299. package/lib/node_modules/d3-binarytree/src/root.js +0 -6
  300. package/lib/node_modules/d3-binarytree/src/root.js.map +0 -1
  301. package/lib/node_modules/d3-binarytree/src/size.js +0 -10
  302. package/lib/node_modules/d3-binarytree/src/size.js.map +0 -1
  303. package/lib/node_modules/d3-binarytree/src/visit.js +0 -17
  304. package/lib/node_modules/d3-binarytree/src/visit.js.map +0 -1
  305. package/lib/node_modules/d3-binarytree/src/visitAfter.js +0 -22
  306. package/lib/node_modules/d3-binarytree/src/visitAfter.js.map +0 -1
  307. package/lib/node_modules/d3-binarytree/src/x.js +0 -10
  308. package/lib/node_modules/d3-binarytree/src/x.js.map +0 -1
  309. package/lib/node_modules/d3-dispatch/src/dispatch.js +0 -85
  310. package/lib/node_modules/d3-dispatch/src/dispatch.js.map +0 -1
  311. package/lib/node_modules/d3-force/src/center.js +0 -43
  312. package/lib/node_modules/d3-force/src/center.js.map +0 -1
  313. package/lib/node_modules/d3-force/src/collide.js +0 -103
  314. package/lib/node_modules/d3-force/src/collide.js.map +0 -1
  315. package/lib/node_modules/d3-force/src/constant.js +0 -8
  316. package/lib/node_modules/d3-force/src/constant.js.map +0 -1
  317. package/lib/node_modules/d3-force/src/jiggle.js +0 -6
  318. package/lib/node_modules/d3-force/src/jiggle.js.map +0 -1
  319. package/lib/node_modules/d3-force/src/lcg.js +0 -12
  320. package/lib/node_modules/d3-force/src/lcg.js.map +0 -1
  321. package/lib/node_modules/d3-force/src/link.js +0 -120
  322. package/lib/node_modules/d3-force/src/link.js.map +0 -1
  323. package/lib/node_modules/d3-force/src/manyBody.js +0 -119
  324. package/lib/node_modules/d3-force/src/manyBody.js.map +0 -1
  325. package/lib/node_modules/d3-force/src/radial.js +0 -60
  326. package/lib/node_modules/d3-force/src/radial.js.map +0 -1
  327. package/lib/node_modules/d3-force/src/simulation.js +0 -159
  328. package/lib/node_modules/d3-force/src/simulation.js.map +0 -1
  329. package/lib/node_modules/d3-force/src/x.js +0 -44
  330. package/lib/node_modules/d3-force/src/x.js.map +0 -1
  331. package/lib/node_modules/d3-force/src/y.js +0 -44
  332. package/lib/node_modules/d3-force/src/y.js.map +0 -1
  333. package/lib/node_modules/d3-force-3d/src/center.js +0 -52
  334. package/lib/node_modules/d3-force-3d/src/center.js.map +0 -1
  335. package/lib/node_modules/d3-force-3d/src/collide.js +0 -135
  336. package/lib/node_modules/d3-force-3d/src/collide.js.map +0 -1
  337. package/lib/node_modules/d3-force-3d/src/constant.js +0 -8
  338. package/lib/node_modules/d3-force-3d/src/constant.js.map +0 -1
  339. package/lib/node_modules/d3-force-3d/src/jiggle.js +0 -6
  340. package/lib/node_modules/d3-force-3d/src/jiggle.js.map +0 -1
  341. package/lib/node_modules/d3-force-3d/src/lcg.js +0 -12
  342. package/lib/node_modules/d3-force-3d/src/lcg.js.map +0 -1
  343. package/lib/node_modules/d3-force-3d/src/link.js +0 -127
  344. package/lib/node_modules/d3-force-3d/src/link.js.map +0 -1
  345. package/lib/node_modules/d3-force-3d/src/manyBody.js +0 -142
  346. package/lib/node_modules/d3-force-3d/src/manyBody.js.map +0 -1
  347. package/lib/node_modules/d3-force-3d/src/radial.js +0 -70
  348. package/lib/node_modules/d3-force-3d/src/radial.js.map +0 -1
  349. package/lib/node_modules/d3-force-3d/src/simulation.js +0 -202
  350. package/lib/node_modules/d3-force-3d/src/simulation.js.map +0 -1
  351. package/lib/node_modules/d3-force-3d/src/x.js +0 -44
  352. package/lib/node_modules/d3-force-3d/src/x.js.map +0 -1
  353. package/lib/node_modules/d3-force-3d/src/y.js +0 -44
  354. package/lib/node_modules/d3-force-3d/src/y.js.map +0 -1
  355. package/lib/node_modules/d3-force-3d/src/z.js +0 -44
  356. package/lib/node_modules/d3-force-3d/src/z.js.map +0 -1
  357. package/lib/node_modules/d3-octree/src/add.js +0 -101
  358. package/lib/node_modules/d3-octree/src/add.js.map +0 -1
  359. package/lib/node_modules/d3-octree/src/cover.js +0 -55
  360. package/lib/node_modules/d3-octree/src/cover.js.map +0 -1
  361. package/lib/node_modules/d3-octree/src/data.js +0 -10
  362. package/lib/node_modules/d3-octree/src/data.js.map +0 -1
  363. package/lib/node_modules/d3-octree/src/extent.js +0 -8
  364. package/lib/node_modules/d3-octree/src/extent.js.map +0 -1
  365. package/lib/node_modules/d3-octree/src/find.js +0 -85
  366. package/lib/node_modules/d3-octree/src/find.js.map +0 -1
  367. package/lib/node_modules/d3-octree/src/findAll.js +0 -29
  368. package/lib/node_modules/d3-octree/src/findAll.js.map +0 -1
  369. package/lib/node_modules/d3-octree/src/octant.js +0 -12
  370. package/lib/node_modules/d3-octree/src/octant.js.map +0 -1
  371. package/lib/node_modules/d3-octree/src/octree.js +0 -83
  372. package/lib/node_modules/d3-octree/src/octree.js.map +0 -1
  373. package/lib/node_modules/d3-octree/src/remove.js +0 -71
  374. package/lib/node_modules/d3-octree/src/remove.js.map +0 -1
  375. package/lib/node_modules/d3-octree/src/root.js +0 -6
  376. package/lib/node_modules/d3-octree/src/root.js.map +0 -1
  377. package/lib/node_modules/d3-octree/src/size.js +0 -10
  378. package/lib/node_modules/d3-octree/src/size.js.map +0 -1
  379. package/lib/node_modules/d3-octree/src/visit.js +0 -23
  380. package/lib/node_modules/d3-octree/src/visit.js.map +0 -1
  381. package/lib/node_modules/d3-octree/src/visitAfter.js +0 -28
  382. package/lib/node_modules/d3-octree/src/visitAfter.js.map +0 -1
  383. package/lib/node_modules/d3-octree/src/x.js +0 -10
  384. package/lib/node_modules/d3-octree/src/x.js.map +0 -1
  385. package/lib/node_modules/d3-octree/src/y.js +0 -10
  386. package/lib/node_modules/d3-octree/src/y.js.map +0 -1
  387. package/lib/node_modules/d3-octree/src/z.js +0 -10
  388. package/lib/node_modules/d3-octree/src/z.js.map +0 -1
  389. package/lib/node_modules/d3-quadtree/src/add.js +0 -87
  390. package/lib/node_modules/d3-quadtree/src/add.js.map +0 -1
  391. package/lib/node_modules/d3-quadtree/src/cover.js +0 -46
  392. package/lib/node_modules/d3-quadtree/src/cover.js.map +0 -1
  393. package/lib/node_modules/d3-quadtree/src/data.js +0 -10
  394. package/lib/node_modules/d3-quadtree/src/data.js.map +0 -1
  395. package/lib/node_modules/d3-quadtree/src/extent.js +0 -8
  396. package/lib/node_modules/d3-quadtree/src/extent.js.map +0 -1
  397. package/lib/node_modules/d3-quadtree/src/find.js +0 -73
  398. package/lib/node_modules/d3-quadtree/src/find.js.map +0 -1
  399. package/lib/node_modules/d3-quadtree/src/quad.js +0 -10
  400. package/lib/node_modules/d3-quadtree/src/quad.js.map +0 -1
  401. package/lib/node_modules/d3-quadtree/src/quadtree.js +0 -76
  402. package/lib/node_modules/d3-quadtree/src/quadtree.js.map +0 -1
  403. package/lib/node_modules/d3-quadtree/src/remove.js +0 -65
  404. package/lib/node_modules/d3-quadtree/src/remove.js.map +0 -1
  405. package/lib/node_modules/d3-quadtree/src/root.js +0 -6
  406. package/lib/node_modules/d3-quadtree/src/root.js.map +0 -1
  407. package/lib/node_modules/d3-quadtree/src/size.js +0 -10
  408. package/lib/node_modules/d3-quadtree/src/size.js.map +0 -1
  409. package/lib/node_modules/d3-quadtree/src/visit.js +0 -19
  410. package/lib/node_modules/d3-quadtree/src/visit.js.map +0 -1
  411. package/lib/node_modules/d3-quadtree/src/visitAfter.js +0 -24
  412. package/lib/node_modules/d3-quadtree/src/visitAfter.js.map +0 -1
  413. package/lib/node_modules/d3-quadtree/src/x.js +0 -10
  414. package/lib/node_modules/d3-quadtree/src/x.js.map +0 -1
  415. package/lib/node_modules/d3-quadtree/src/y.js +0 -10
  416. package/lib/node_modules/d3-quadtree/src/y.js.map +0 -1
  417. package/lib/node_modules/d3-timer/src/timer.js +0 -113
  418. package/lib/node_modules/d3-timer/src/timer.js.map +0 -1
  419. package/lib/node_modules/dagre/index.js +0 -50
  420. package/lib/node_modules/dagre/index.js.map +0 -1
  421. package/lib/node_modules/dagre/lib/acyclic.js +0 -80
  422. package/lib/node_modules/dagre/lib/acyclic.js.map +0 -1
  423. package/lib/node_modules/dagre/lib/add-border-segments.js +0 -52
  424. package/lib/node_modules/dagre/lib/add-border-segments.js.map +0 -1
  425. package/lib/node_modules/dagre/lib/coordinate-system.js +0 -84
  426. package/lib/node_modules/dagre/lib/coordinate-system.js.map +0 -1
  427. package/lib/node_modules/dagre/lib/data/list.js +0 -67
  428. package/lib/node_modules/dagre/lib/data/list.js.map +0 -1
  429. package/lib/node_modules/dagre/lib/debug.js +0 -49
  430. package/lib/node_modules/dagre/lib/debug.js.map +0 -1
  431. package/lib/node_modules/dagre/lib/graphlib.js +0 -31
  432. package/lib/node_modules/dagre/lib/graphlib.js.map +0 -1
  433. package/lib/node_modules/dagre/lib/greedy-fas.js +0 -133
  434. package/lib/node_modules/dagre/lib/greedy-fas.js.map +0 -1
  435. package/lib/node_modules/dagre/lib/layout.js +0 -415
  436. package/lib/node_modules/dagre/lib/layout.js.map +0 -1
  437. package/lib/node_modules/dagre/lib/lodash.js +0 -83
  438. package/lib/node_modules/dagre/lib/lodash.js.map +0 -1
  439. package/lib/node_modules/dagre/lib/nesting-graph.js +0 -146
  440. package/lib/node_modules/dagre/lib/nesting-graph.js.map +0 -1
  441. package/lib/node_modules/dagre/lib/normalize.js +0 -103
  442. package/lib/node_modules/dagre/lib/normalize.js.map +0 -1
  443. package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js +0 -66
  444. package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +0 -1
  445. package/lib/node_modules/dagre/lib/order/barycenter.js +0 -40
  446. package/lib/node_modules/dagre/lib/order/barycenter.js.map +0 -1
  447. package/lib/node_modules/dagre/lib/order/build-layer-graph.js +0 -87
  448. package/lib/node_modules/dagre/lib/order/build-layer-graph.js.map +0 -1
  449. package/lib/node_modules/dagre/lib/order/cross-count.js +0 -79
  450. package/lib/node_modules/dagre/lib/order/cross-count.js.map +0 -1
  451. package/lib/node_modules/dagre/lib/order/index.js +0 -98
  452. package/lib/node_modules/dagre/lib/order/index.js.map +0 -1
  453. package/lib/node_modules/dagre/lib/order/init-order.js +0 -50
  454. package/lib/node_modules/dagre/lib/order/init-order.js.map +0 -1
  455. package/lib/node_modules/dagre/lib/order/resolve-conflicts.js +0 -134
  456. package/lib/node_modules/dagre/lib/order/resolve-conflicts.js.map +0 -1
  457. package/lib/node_modules/dagre/lib/order/sort-subgraph.js +0 -92
  458. package/lib/node_modules/dagre/lib/order/sort-subgraph.js.map +0 -1
  459. package/lib/node_modules/dagre/lib/order/sort.js +0 -71
  460. package/lib/node_modules/dagre/lib/order/sort.js.map +0 -1
  461. package/lib/node_modules/dagre/lib/parent-dummy-chains.js +0 -99
  462. package/lib/node_modules/dagre/lib/parent-dummy-chains.js.map +0 -1
  463. package/lib/node_modules/dagre/lib/position/bk.js +0 -433
  464. package/lib/node_modules/dagre/lib/position/bk.js.map +0 -1
  465. package/lib/node_modules/dagre/lib/position/index.js +0 -43
  466. package/lib/node_modules/dagre/lib/position/index.js.map +0 -1
  467. package/lib/node_modules/dagre/lib/rank/feasible-tree.js +0 -103
  468. package/lib/node_modules/dagre/lib/rank/feasible-tree.js.map +0 -1
  469. package/lib/node_modules/dagre/lib/rank/index.js +0 -62
  470. package/lib/node_modules/dagre/lib/rank/index.js.map +0 -1
  471. package/lib/node_modules/dagre/lib/rank/network-simplex.js +0 -250
  472. package/lib/node_modules/dagre/lib/rank/network-simplex.js.map +0 -1
  473. package/lib/node_modules/dagre/lib/rank/util.js +0 -75
  474. package/lib/node_modules/dagre/lib/rank/util.js.map +0 -1
  475. package/lib/node_modules/dagre/lib/util.js +0 -251
  476. package/lib/node_modules/dagre/lib/util.js.map +0 -1
  477. package/lib/node_modules/dagre/lib/version.js +0 -12
  478. package/lib/node_modules/dagre/lib/version.js.map +0 -1
  479. package/lib/node_modules/graphlib/index.js +0 -53
  480. package/lib/node_modules/graphlib/index.js.map +0 -1
  481. package/lib/node_modules/graphlib/lib/alg/components.js +0 -40
  482. package/lib/node_modules/graphlib/lib/alg/components.js.map +0 -1
  483. package/lib/node_modules/graphlib/lib/alg/dfs.js +0 -55
  484. package/lib/node_modules/graphlib/lib/alg/dfs.js.map +0 -1
  485. package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js +0 -24
  486. package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js.map +0 -1
  487. package/lib/node_modules/graphlib/lib/alg/dijkstra.js +0 -68
  488. package/lib/node_modules/graphlib/lib/alg/dijkstra.js.map +0 -1
  489. package/lib/node_modules/graphlib/lib/alg/find-cycles.js +0 -24
  490. package/lib/node_modules/graphlib/lib/alg/find-cycles.js.map +0 -1
  491. package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js +0 -63
  492. package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js.map +0 -1
  493. package/lib/node_modules/graphlib/lib/alg/index.js +0 -36
  494. package/lib/node_modules/graphlib/lib/alg/index.js.map +0 -1
  495. package/lib/node_modules/graphlib/lib/alg/is-acyclic.js +0 -28
  496. package/lib/node_modules/graphlib/lib/alg/is-acyclic.js.map +0 -1
  497. package/lib/node_modules/graphlib/lib/alg/postorder.js +0 -20
  498. package/lib/node_modules/graphlib/lib/alg/postorder.js.map +0 -1
  499. package/lib/node_modules/graphlib/lib/alg/preorder.js +0 -20
  500. package/lib/node_modules/graphlib/lib/alg/preorder.js.map +0 -1
  501. package/lib/node_modules/graphlib/lib/alg/prim.js +0 -67
  502. package/lib/node_modules/graphlib/lib/alg/prim.js.map +0 -1
  503. package/lib/node_modules/graphlib/lib/alg/tarjan.js +0 -60
  504. package/lib/node_modules/graphlib/lib/alg/tarjan.js.map +0 -1
  505. package/lib/node_modules/graphlib/lib/alg/topsort.js +0 -48
  506. package/lib/node_modules/graphlib/lib/alg/topsort.js.map +0 -1
  507. package/lib/node_modules/graphlib/lib/data/priority-queue.js +0 -165
  508. package/lib/node_modules/graphlib/lib/data/priority-queue.js.map +0 -1
  509. package/lib/node_modules/graphlib/lib/graph.js +0 -544
  510. package/lib/node_modules/graphlib/lib/graph.js.map +0 -1
  511. package/lib/node_modules/graphlib/lib/index.js +0 -19
  512. package/lib/node_modules/graphlib/lib/index.js.map +0 -1
  513. package/lib/node_modules/graphlib/lib/json.js +0 -80
  514. package/lib/node_modules/graphlib/lib/json.js.map +0 -1
  515. package/lib/node_modules/graphlib/lib/lodash.js +0 -63
  516. package/lib/node_modules/graphlib/lib/lodash.js.map +0 -1
  517. package/lib/node_modules/graphlib/lib/version.js +0 -12
  518. package/lib/node_modules/graphlib/lib/version.js.map +0 -1
  519. package/lib/node_modules/is-any-array/lib-esm/index.js +0 -15
  520. package/lib/node_modules/is-any-array/lib-esm/index.js.map +0 -1
  521. package/lib/node_modules/lodash/_DataView.js +0 -21
  522. package/lib/node_modules/lodash/_DataView.js.map +0 -1
  523. package/lib/node_modules/lodash/_Hash.js +0 -49
  524. package/lib/node_modules/lodash/_Hash.js.map +0 -1
  525. package/lib/node_modules/lodash/_ListCache.js +0 -49
  526. package/lib/node_modules/lodash/_ListCache.js.map +0 -1
  527. package/lib/node_modules/lodash/_Map.js +0 -21
  528. package/lib/node_modules/lodash/_Map.js.map +0 -1
  529. package/lib/node_modules/lodash/_MapCache.js +0 -49
  530. package/lib/node_modules/lodash/_MapCache.js.map +0 -1
  531. package/lib/node_modules/lodash/_Promise.js +0 -21
  532. package/lib/node_modules/lodash/_Promise.js.map +0 -1
  533. package/lib/node_modules/lodash/_Set.js +0 -21
  534. package/lib/node_modules/lodash/_Set.js.map +0 -1
  535. package/lib/node_modules/lodash/_SetCache.js +0 -42
  536. package/lib/node_modules/lodash/_SetCache.js.map +0 -1
  537. package/lib/node_modules/lodash/_Stack.js +0 -45
  538. package/lib/node_modules/lodash/_Stack.js.map +0 -1
  539. package/lib/node_modules/lodash/_Symbol.js +0 -19
  540. package/lib/node_modules/lodash/_Symbol.js.map +0 -1
  541. package/lib/node_modules/lodash/_Uint8Array.js +0 -19
  542. package/lib/node_modules/lodash/_Uint8Array.js.map +0 -1
  543. package/lib/node_modules/lodash/_WeakMap.js +0 -21
  544. package/lib/node_modules/lodash/_WeakMap.js.map +0 -1
  545. package/lib/node_modules/lodash/_apply.js +0 -33
  546. package/lib/node_modules/lodash/_apply.js.map +0 -1
  547. package/lib/node_modules/lodash/_arrayEach.js +0 -34
  548. package/lib/node_modules/lodash/_arrayEach.js.map +0 -1
  549. package/lib/node_modules/lodash/_arrayFilter.js +0 -37
  550. package/lib/node_modules/lodash/_arrayFilter.js.map +0 -1
  551. package/lib/node_modules/lodash/_arrayIncludes.js +0 -30
  552. package/lib/node_modules/lodash/_arrayIncludes.js.map +0 -1
  553. package/lib/node_modules/lodash/_arrayIncludesWith.js +0 -34
  554. package/lib/node_modules/lodash/_arrayIncludesWith.js.map +0 -1
  555. package/lib/node_modules/lodash/_arrayLikeKeys.js +0 -67
  556. package/lib/node_modules/lodash/_arrayLikeKeys.js.map +0 -1
  557. package/lib/node_modules/lodash/_arrayMap.js +0 -33
  558. package/lib/node_modules/lodash/_arrayMap.js.map +0 -1
  559. package/lib/node_modules/lodash/_arrayPush.js +0 -32
  560. package/lib/node_modules/lodash/_arrayPush.js.map +0 -1
  561. package/lib/node_modules/lodash/_arrayReduce.js +0 -38
  562. package/lib/node_modules/lodash/_arrayReduce.js.map +0 -1
  563. package/lib/node_modules/lodash/_arraySome.js +0 -35
  564. package/lib/node_modules/lodash/_arraySome.js.map +0 -1
  565. package/lib/node_modules/lodash/_asciiSize.js +0 -25
  566. package/lib/node_modules/lodash/_asciiSize.js.map +0 -1
  567. package/lib/node_modules/lodash/_assignMergeValue.js +0 -34
  568. package/lib/node_modules/lodash/_assignMergeValue.js.map +0 -1
  569. package/lib/node_modules/lodash/_assignValue.js +0 -42
  570. package/lib/node_modules/lodash/_assignValue.js.map +0 -1
  571. package/lib/node_modules/lodash/_assocIndexOf.js +0 -34
  572. package/lib/node_modules/lodash/_assocIndexOf.js.map +0 -1
  573. package/lib/node_modules/lodash/_baseAssign.js +0 -31
  574. package/lib/node_modules/lodash/_baseAssign.js.map +0 -1
  575. package/lib/node_modules/lodash/_baseAssignIn.js +0 -31
  576. package/lib/node_modules/lodash/_baseAssignIn.js.map +0 -1
  577. package/lib/node_modules/lodash/_baseAssignValue.js +0 -38
  578. package/lib/node_modules/lodash/_baseAssignValue.js.map +0 -1
  579. package/lib/node_modules/lodash/_baseClone.js +0 -200
  580. package/lib/node_modules/lodash/_baseClone.js.map +0 -1
  581. package/lib/node_modules/lodash/_baseCreate.js +0 -43
  582. package/lib/node_modules/lodash/_baseCreate.js.map +0 -1
  583. package/lib/node_modules/lodash/_baseEach.js +0 -28
  584. package/lib/node_modules/lodash/_baseEach.js.map +0 -1
  585. package/lib/node_modules/lodash/_baseExtremum.js +0 -45
  586. package/lib/node_modules/lodash/_baseExtremum.js.map +0 -1
  587. package/lib/node_modules/lodash/_baseFilter.js +0 -34
  588. package/lib/node_modules/lodash/_baseFilter.js.map +0 -1
  589. package/lib/node_modules/lodash/_baseFindIndex.js +0 -36
  590. package/lib/node_modules/lodash/_baseFindIndex.js.map +0 -1
  591. package/lib/node_modules/lodash/_baseFlatten.js +0 -52
  592. package/lib/node_modules/lodash/_baseFlatten.js.map +0 -1
  593. package/lib/node_modules/lodash/_baseFor.js +0 -29
  594. package/lib/node_modules/lodash/_baseFor.js.map +0 -1
  595. package/lib/node_modules/lodash/_baseForOwn.js +0 -30
  596. package/lib/node_modules/lodash/_baseForOwn.js.map +0 -1
  597. package/lib/node_modules/lodash/_baseGet.js +0 -38
  598. package/lib/node_modules/lodash/_baseGet.js.map +0 -1
  599. package/lib/node_modules/lodash/_baseGetAllKeys.js +0 -34
  600. package/lib/node_modules/lodash/_baseGetAllKeys.js.map +0 -1
  601. package/lib/node_modules/lodash/_baseGetTag.js +0 -43
  602. package/lib/node_modules/lodash/_baseGetTag.js.map +0 -1
  603. package/lib/node_modules/lodash/_baseGt.js +0 -26
  604. package/lib/node_modules/lodash/_baseGt.js.map +0 -1
  605. package/lib/node_modules/lodash/_baseHas.js +0 -31
  606. package/lib/node_modules/lodash/_baseHas.js.map +0 -1
  607. package/lib/node_modules/lodash/_baseHasIn.js +0 -25
  608. package/lib/node_modules/lodash/_baseHasIn.js.map +0 -1
  609. package/lib/node_modules/lodash/_baseIndexOf.js +0 -35
  610. package/lib/node_modules/lodash/_baseIndexOf.js.map +0 -1
  611. package/lib/node_modules/lodash/_baseIsArguments.js +0 -32
  612. package/lib/node_modules/lodash/_baseIsArguments.js.map +0 -1
  613. package/lib/node_modules/lodash/_baseIsEqual.js +0 -42
  614. package/lib/node_modules/lodash/_baseIsEqual.js.map +0 -1
  615. package/lib/node_modules/lodash/_baseIsEqualDeep.js +0 -103
  616. package/lib/node_modules/lodash/_baseIsEqualDeep.js.map +0 -1
  617. package/lib/node_modules/lodash/_baseIsMap.js +0 -32
  618. package/lib/node_modules/lodash/_baseIsMap.js.map +0 -1
  619. package/lib/node_modules/lodash/_baseIsMatch.js +0 -76
  620. package/lib/node_modules/lodash/_baseIsMatch.js.map +0 -1
  621. package/lib/node_modules/lodash/_baseIsNaN.js +0 -24
  622. package/lib/node_modules/lodash/_baseIsNaN.js.map +0 -1
  623. package/lib/node_modules/lodash/_baseIsNative.js +0 -63
  624. package/lib/node_modules/lodash/_baseIsNative.js.map +0 -1
  625. package/lib/node_modules/lodash/_baseIsSet.js +0 -32
  626. package/lib/node_modules/lodash/_baseIsSet.js.map +0 -1
  627. package/lib/node_modules/lodash/_baseIsTypedArray.js +0 -75
  628. package/lib/node_modules/lodash/_baseIsTypedArray.js.map +0 -1
  629. package/lib/node_modules/lodash/_baseIteratee.js +0 -48
  630. package/lib/node_modules/lodash/_baseIteratee.js.map +0 -1
  631. package/lib/node_modules/lodash/_baseKeys.js +0 -44
  632. package/lib/node_modules/lodash/_baseKeys.js.map +0 -1
  633. package/lib/node_modules/lodash/_baseKeysIn.js +0 -48
  634. package/lib/node_modules/lodash/_baseKeysIn.js.map +0 -1
  635. package/lib/node_modules/lodash/_baseLt.js +0 -26
  636. package/lib/node_modules/lodash/_baseLt.js.map +0 -1
  637. package/lib/node_modules/lodash/_baseMap.js +0 -36
  638. package/lib/node_modules/lodash/_baseMap.js.map +0 -1
  639. package/lib/node_modules/lodash/_baseMatches.js +0 -37
  640. package/lib/node_modules/lodash/_baseMatches.js.map +0 -1
  641. package/lib/node_modules/lodash/_baseMatchesProperty.js +0 -52
  642. package/lib/node_modules/lodash/_baseMatchesProperty.js.map +0 -1
  643. package/lib/node_modules/lodash/_baseMerge.js +0 -61
  644. package/lib/node_modules/lodash/_baseMerge.js.map +0 -1
  645. package/lib/node_modules/lodash/_baseMergeDeep.js +0 -121
  646. package/lib/node_modules/lodash/_baseMergeDeep.js.map +0 -1
  647. package/lib/node_modules/lodash/_baseOrderBy.js +0 -70
  648. package/lib/node_modules/lodash/_baseOrderBy.js.map +0 -1
  649. package/lib/node_modules/lodash/_basePick.js +0 -33
  650. package/lib/node_modules/lodash/_basePick.js.map +0 -1
  651. package/lib/node_modules/lodash/_basePickBy.js +0 -45
  652. package/lib/node_modules/lodash/_basePickBy.js.map +0 -1
  653. package/lib/node_modules/lodash/_baseProperty.js +0 -26
  654. package/lib/node_modules/lodash/_baseProperty.js.map +0 -1
  655. package/lib/node_modules/lodash/_basePropertyDeep.js +0 -29
  656. package/lib/node_modules/lodash/_basePropertyDeep.js.map +0 -1
  657. package/lib/node_modules/lodash/_baseRange.js +0 -40
  658. package/lib/node_modules/lodash/_baseRange.js.map +0 -1
  659. package/lib/node_modules/lodash/_baseReduce.js +0 -35
  660. package/lib/node_modules/lodash/_baseReduce.js.map +0 -1
  661. package/lib/node_modules/lodash/_baseRest.js +0 -32
  662. package/lib/node_modules/lodash/_baseRest.js.map +0 -1
  663. package/lib/node_modules/lodash/_baseSet.js +0 -68
  664. package/lib/node_modules/lodash/_baseSet.js.map +0 -1
  665. package/lib/node_modules/lodash/_baseSetToString.js +0 -37
  666. package/lib/node_modules/lodash/_baseSetToString.js.map +0 -1
  667. package/lib/node_modules/lodash/_baseSortBy.js +0 -33
  668. package/lib/node_modules/lodash/_baseSortBy.js.map +0 -1
  669. package/lib/node_modules/lodash/_baseTimes.js +0 -32
  670. package/lib/node_modules/lodash/_baseTimes.js.map +0 -1
  671. package/lib/node_modules/lodash/_baseToString.js +0 -50
  672. package/lib/node_modules/lodash/_baseToString.js.map +0 -1
  673. package/lib/node_modules/lodash/_baseTrim.js +0 -32
  674. package/lib/node_modules/lodash/_baseTrim.js.map +0 -1
  675. package/lib/node_modules/lodash/_baseUnary.js +0 -26
  676. package/lib/node_modules/lodash/_baseUnary.js.map +0 -1
  677. package/lib/node_modules/lodash/_baseUniq.js +0 -90
  678. package/lib/node_modules/lodash/_baseUniq.js.map +0 -1
  679. package/lib/node_modules/lodash/_baseValues.js +0 -32
  680. package/lib/node_modules/lodash/_baseValues.js.map +0 -1
  681. package/lib/node_modules/lodash/_baseZipObject.js +0 -35
  682. package/lib/node_modules/lodash/_baseZipObject.js.map +0 -1
  683. package/lib/node_modules/lodash/_cacheHas.js +0 -25
  684. package/lib/node_modules/lodash/_cacheHas.js.map +0 -1
  685. package/lib/node_modules/lodash/_castFunction.js +0 -27
  686. package/lib/node_modules/lodash/_castFunction.js.map +0 -1
  687. package/lib/node_modules/lodash/_castPath.js +0 -37
  688. package/lib/node_modules/lodash/_castPath.js.map +0 -1
  689. package/lib/node_modules/lodash/_cloneArrayBuffer.js +0 -29
  690. package/lib/node_modules/lodash/_cloneArrayBuffer.js.map +0 -1
  691. package/lib/node_modules/lodash/_cloneBuffer.js +0 -52
  692. package/lib/node_modules/lodash/_cloneBuffer.js.map +0 -1
  693. package/lib/node_modules/lodash/_cloneDataView.js +0 -29
  694. package/lib/node_modules/lodash/_cloneDataView.js.map +0 -1
  695. package/lib/node_modules/lodash/_cloneRegExp.js +0 -29
  696. package/lib/node_modules/lodash/_cloneRegExp.js.map +0 -1
  697. package/lib/node_modules/lodash/_cloneSymbol.js +0 -31
  698. package/lib/node_modules/lodash/_cloneSymbol.js.map +0 -1
  699. package/lib/node_modules/lodash/_cloneTypedArray.js +0 -29
  700. package/lib/node_modules/lodash/_cloneTypedArray.js.map +0 -1
  701. package/lib/node_modules/lodash/_compareAscending.js +0 -54
  702. package/lib/node_modules/lodash/_compareAscending.js.map +0 -1
  703. package/lib/node_modules/lodash/_compareMultiple.js +0 -57
  704. package/lib/node_modules/lodash/_compareMultiple.js.map +0 -1
  705. package/lib/node_modules/lodash/_copyArray.js +0 -32
  706. package/lib/node_modules/lodash/_copyArray.js.map +0 -1
  707. package/lib/node_modules/lodash/_copyObject.js +0 -54
  708. package/lib/node_modules/lodash/_copyObject.js.map +0 -1
  709. package/lib/node_modules/lodash/_copySymbols.js +0 -30
  710. package/lib/node_modules/lodash/_copySymbols.js.map +0 -1
  711. package/lib/node_modules/lodash/_copySymbolsIn.js +0 -30
  712. package/lib/node_modules/lodash/_copySymbolsIn.js.map +0 -1
  713. package/lib/node_modules/lodash/_coreJsData.js +0 -19
  714. package/lib/node_modules/lodash/_coreJsData.js.map +0 -1
  715. package/lib/node_modules/lodash/_createAssigner.js +0 -51
  716. package/lib/node_modules/lodash/_createAssigner.js.map +0 -1
  717. package/lib/node_modules/lodash/_createBaseEach.js +0 -45
  718. package/lib/node_modules/lodash/_createBaseEach.js.map +0 -1
  719. package/lib/node_modules/lodash/_createBaseFor.js +0 -37
  720. package/lib/node_modules/lodash/_createBaseFor.js.map +0 -1
  721. package/lib/node_modules/lodash/_createFind.js +0 -40
  722. package/lib/node_modules/lodash/_createFind.js.map +0 -1
  723. package/lib/node_modules/lodash/_createRange.js +0 -45
  724. package/lib/node_modules/lodash/_createRange.js.map +0 -1
  725. package/lib/node_modules/lodash/_createSet.js +0 -34
  726. package/lib/node_modules/lodash/_createSet.js.map +0 -1
  727. package/lib/node_modules/lodash/_defineProperty.js +0 -24
  728. package/lib/node_modules/lodash/_defineProperty.js.map +0 -1
  729. package/lib/node_modules/lodash/_equalArrays.js +0 -99
  730. package/lib/node_modules/lodash/_equalArrays.js.map +0 -1
  731. package/lib/node_modules/lodash/_equalByTag.js +0 -130
  732. package/lib/node_modules/lodash/_equalByTag.js.map +0 -1
  733. package/lib/node_modules/lodash/_equalObjects.js +0 -103
  734. package/lib/node_modules/lodash/_equalObjects.js.map +0 -1
  735. package/lib/node_modules/lodash/_flatRest.js +0 -31
  736. package/lib/node_modules/lodash/_flatRest.js.map +0 -1
  737. package/lib/node_modules/lodash/_freeGlobal.js +0 -18
  738. package/lib/node_modules/lodash/_freeGlobal.js.map +0 -1
  739. package/lib/node_modules/lodash/_getAllKeys.js +0 -31
  740. package/lib/node_modules/lodash/_getAllKeys.js.map +0 -1
  741. package/lib/node_modules/lodash/_getAllKeysIn.js +0 -32
  742. package/lib/node_modules/lodash/_getAllKeysIn.js.map +0 -1
  743. package/lib/node_modules/lodash/_getMapData.js +0 -31
  744. package/lib/node_modules/lodash/_getMapData.js.map +0 -1
  745. package/lib/node_modules/lodash/_getMatchData.js +0 -38
  746. package/lib/node_modules/lodash/_getMatchData.js.map +0 -1
  747. package/lib/node_modules/lodash/_getNative.js +0 -31
  748. package/lib/node_modules/lodash/_getNative.js.map +0 -1
  749. package/lib/node_modules/lodash/_getPrototype.js +0 -19
  750. package/lib/node_modules/lodash/_getPrototype.js.map +0 -1
  751. package/lib/node_modules/lodash/_getRawTag.js +0 -59
  752. package/lib/node_modules/lodash/_getRawTag.js.map +0 -1
  753. package/lib/node_modules/lodash/_getSymbols.js +0 -44
  754. package/lib/node_modules/lodash/_getSymbols.js.map +0 -1
  755. package/lib/node_modules/lodash/_getSymbolsIn.js +0 -41
  756. package/lib/node_modules/lodash/_getSymbolsIn.js.map +0 -1
  757. package/lib/node_modules/lodash/_getTag.js +0 -77
  758. package/lib/node_modules/lodash/_getTag.js.map +0 -1
  759. package/lib/node_modules/lodash/_getValue.js +0 -25
  760. package/lib/node_modules/lodash/_getValue.js.map +0 -1
  761. package/lib/node_modules/lodash/_hasPath.js +0 -57
  762. package/lib/node_modules/lodash/_hasPath.js.map +0 -1
  763. package/lib/node_modules/lodash/_hasUnicode.js +0 -38
  764. package/lib/node_modules/lodash/_hasUnicode.js.map +0 -1
  765. package/lib/node_modules/lodash/_hashClear.js +0 -28
  766. package/lib/node_modules/lodash/_hashClear.js.map +0 -1
  767. package/lib/node_modules/lodash/_hashDelete.js +0 -29
  768. package/lib/node_modules/lodash/_hashDelete.js.map +0 -1
  769. package/lib/node_modules/lodash/_hashGet.js +0 -43
  770. package/lib/node_modules/lodash/_hashGet.js.map +0 -1
  771. package/lib/node_modules/lodash/_hashHas.js +0 -36
  772. package/lib/node_modules/lodash/_hashHas.js.map +0 -1
  773. package/lib/node_modules/lodash/_hashSet.js +0 -36
  774. package/lib/node_modules/lodash/_hashSet.js.map +0 -1
  775. package/lib/node_modules/lodash/_initCloneArray.js +0 -38
  776. package/lib/node_modules/lodash/_initCloneArray.js.map +0 -1
  777. package/lib/node_modules/lodash/_initCloneByTag.js +0 -94
  778. package/lib/node_modules/lodash/_initCloneByTag.js.map +0 -1
  779. package/lib/node_modules/lodash/_initCloneObject.js +0 -33
  780. package/lib/node_modules/lodash/_initCloneObject.js.map +0 -1
  781. package/lib/node_modules/lodash/_isFlattenable.js +0 -35
  782. package/lib/node_modules/lodash/_isFlattenable.js.map +0 -1
  783. package/lib/node_modules/lodash/_isIndex.js +0 -37
  784. package/lib/node_modules/lodash/_isIndex.js.map +0 -1
  785. package/lib/node_modules/lodash/_isIterateeCall.js +0 -46
  786. package/lib/node_modules/lodash/_isIterateeCall.js.map +0 -1
  787. package/lib/node_modules/lodash/_isKey.js +0 -43
  788. package/lib/node_modules/lodash/_isKey.js.map +0 -1
  789. package/lib/node_modules/lodash/_isKeyable.js +0 -27
  790. package/lib/node_modules/lodash/_isKeyable.js.map +0 -1
  791. package/lib/node_modules/lodash/_isMasked.js +0 -33
  792. package/lib/node_modules/lodash/_isMasked.js.map +0 -1
  793. package/lib/node_modules/lodash/_isPrototype.js +0 -30
  794. package/lib/node_modules/lodash/_isPrototype.js.map +0 -1
  795. package/lib/node_modules/lodash/_isStrictComparable.js +0 -28
  796. package/lib/node_modules/lodash/_isStrictComparable.js.map +0 -1
  797. package/lib/node_modules/lodash/_listCacheClear.js +0 -25
  798. package/lib/node_modules/lodash/_listCacheClear.js.map +0 -1
  799. package/lib/node_modules/lodash/_listCacheDelete.js +0 -48
  800. package/lib/node_modules/lodash/_listCacheDelete.js.map +0 -1
  801. package/lib/node_modules/lodash/_listCacheGet.js +0 -32
  802. package/lib/node_modules/lodash/_listCacheGet.js.map +0 -1
  803. package/lib/node_modules/lodash/_listCacheHas.js +0 -29
  804. package/lib/node_modules/lodash/_listCacheHas.js.map +0 -1
  805. package/lib/node_modules/lodash/_listCacheSet.js +0 -39
  806. package/lib/node_modules/lodash/_listCacheSet.js.map +0 -1
  807. package/lib/node_modules/lodash/_mapCacheClear.js +0 -36
  808. package/lib/node_modules/lodash/_mapCacheClear.js.map +0 -1
  809. package/lib/node_modules/lodash/_mapCacheDelete.js +0 -31
  810. package/lib/node_modules/lodash/_mapCacheDelete.js.map +0 -1
  811. package/lib/node_modules/lodash/_mapCacheGet.js +0 -29
  812. package/lib/node_modules/lodash/_mapCacheGet.js.map +0 -1
  813. package/lib/node_modules/lodash/_mapCacheHas.js +0 -29
  814. package/lib/node_modules/lodash/_mapCacheHas.js.map +0 -1
  815. package/lib/node_modules/lodash/_mapCacheSet.js +0 -35
  816. package/lib/node_modules/lodash/_mapCacheSet.js.map +0 -1
  817. package/lib/node_modules/lodash/_mapToArray.js +0 -30
  818. package/lib/node_modules/lodash/_mapToArray.js.map +0 -1
  819. package/lib/node_modules/lodash/_matchesStrictComparable.js +0 -32
  820. package/lib/node_modules/lodash/_matchesStrictComparable.js.map +0 -1
  821. package/lib/node_modules/lodash/_memoizeCapped.js +0 -39
  822. package/lib/node_modules/lodash/_memoizeCapped.js.map +0 -1
  823. package/lib/node_modules/lodash/_nativeCreate.js +0 -19
  824. package/lib/node_modules/lodash/_nativeCreate.js.map +0 -1
  825. package/lib/node_modules/lodash/_nativeKeys.js +0 -19
  826. package/lib/node_modules/lodash/_nativeKeys.js.map +0 -1
  827. package/lib/node_modules/lodash/_nativeKeysIn.js +0 -32
  828. package/lib/node_modules/lodash/_nativeKeysIn.js.map +0 -1
  829. package/lib/node_modules/lodash/_nodeUtil.js +0 -47
  830. package/lib/node_modules/lodash/_nodeUtil.js.map +0 -1
  831. package/lib/node_modules/lodash/_objectToString.js +0 -34
  832. package/lib/node_modules/lodash/_objectToString.js.map +0 -1
  833. package/lib/node_modules/lodash/_overArg.js +0 -27
  834. package/lib/node_modules/lodash/_overArg.js.map +0 -1
  835. package/lib/node_modules/lodash/_overRest.js +0 -49
  836. package/lib/node_modules/lodash/_overRest.js.map +0 -1
  837. package/lib/node_modules/lodash/_root.js +0 -22
  838. package/lib/node_modules/lodash/_root.js.map +0 -1
  839. package/lib/node_modules/lodash/_safeGet.js +0 -33
  840. package/lib/node_modules/lodash/_safeGet.js.map +0 -1
  841. package/lib/node_modules/lodash/_setCacheAdd.js +0 -31
  842. package/lib/node_modules/lodash/_setCacheAdd.js.map +0 -1
  843. package/lib/node_modules/lodash/_setCacheHas.js +0 -26
  844. package/lib/node_modules/lodash/_setCacheHas.js.map +0 -1
  845. package/lib/node_modules/lodash/_setToArray.js +0 -30
  846. package/lib/node_modules/lodash/_setToArray.js.map +0 -1
  847. package/lib/node_modules/lodash/_setToString.js +0 -28
  848. package/lib/node_modules/lodash/_setToString.js.map +0 -1
  849. package/lib/node_modules/lodash/_shortOut.js +0 -49
  850. package/lib/node_modules/lodash/_shortOut.js.map +0 -1
  851. package/lib/node_modules/lodash/_stackClear.js +0 -28
  852. package/lib/node_modules/lodash/_stackClear.js.map +0 -1
  853. package/lib/node_modules/lodash/_stackDelete.js +0 -30
  854. package/lib/node_modules/lodash/_stackDelete.js.map +0 -1
  855. package/lib/node_modules/lodash/_stackGet.js +0 -26
  856. package/lib/node_modules/lodash/_stackGet.js.map +0 -1
  857. package/lib/node_modules/lodash/_stackHas.js +0 -26
  858. package/lib/node_modules/lodash/_stackHas.js.map +0 -1
  859. package/lib/node_modules/lodash/_stackSet.js +0 -49
  860. package/lib/node_modules/lodash/_stackSet.js.map +0 -1
  861. package/lib/node_modules/lodash/_strictIndexOf.js +0 -35
  862. package/lib/node_modules/lodash/_strictIndexOf.js.map +0 -1
  863. package/lib/node_modules/lodash/_stringSize.js +0 -33
  864. package/lib/node_modules/lodash/_stringSize.js.map +0 -1
  865. package/lib/node_modules/lodash/_stringToPath.js +0 -40
  866. package/lib/node_modules/lodash/_stringToPath.js.map +0 -1
  867. package/lib/node_modules/lodash/_toKey.js +0 -31
  868. package/lib/node_modules/lodash/_toKey.js.map +0 -1
  869. package/lib/node_modules/lodash/_toSource.js +0 -38
  870. package/lib/node_modules/lodash/_toSource.js.map +0 -1
  871. package/lib/node_modules/lodash/_trimmedEndIndex.js +0 -31
  872. package/lib/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  873. package/lib/node_modules/lodash/_unicodeSize.js +0 -56
  874. package/lib/node_modules/lodash/_unicodeSize.js.map +0 -1
  875. package/lib/node_modules/lodash/clone.js +0 -49
  876. package/lib/node_modules/lodash/clone.js.map +0 -1
  877. package/lib/node_modules/lodash/cloneDeep.js +0 -42
  878. package/lib/node_modules/lodash/cloneDeep.js.map +0 -1
  879. package/lib/node_modules/lodash/constant.js +0 -38
  880. package/lib/node_modules/lodash/constant.js.map +0 -1
  881. package/lib/node_modules/lodash/defaults.js +0 -80
  882. package/lib/node_modules/lodash/defaults.js.map +0 -1
  883. package/lib/node_modules/lodash/each.js +0 -14
  884. package/lib/node_modules/lodash/each.js.map +0 -1
  885. package/lib/node_modules/lodash/eq.js +0 -49
  886. package/lib/node_modules/lodash/eq.js.map +0 -1
  887. package/lib/node_modules/lodash/filter.js +0 -68
  888. package/lib/node_modules/lodash/filter.js.map +0 -1
  889. package/lib/node_modules/lodash/find.js +0 -56
  890. package/lib/node_modules/lodash/find.js.map +0 -1
  891. package/lib/node_modules/lodash/findIndex.js +0 -70
  892. package/lib/node_modules/lodash/findIndex.js.map +0 -1
  893. package/lib/node_modules/lodash/flatten.js +0 -35
  894. package/lib/node_modules/lodash/flatten.js.map +0 -1
  895. package/lib/node_modules/lodash/forEach.js +0 -57
  896. package/lib/node_modules/lodash/forEach.js.map +0 -1
  897. package/lib/node_modules/lodash/forIn.js +0 -54
  898. package/lib/node_modules/lodash/forIn.js.map +0 -1
  899. package/lib/node_modules/lodash/get.js +0 -46
  900. package/lib/node_modules/lodash/get.js.map +0 -1
  901. package/lib/node_modules/lodash/has.js +0 -49
  902. package/lib/node_modules/lodash/has.js.map +0 -1
  903. package/lib/node_modules/lodash/hasIn.js +0 -48
  904. package/lib/node_modules/lodash/hasIn.js.map +0 -1
  905. package/lib/node_modules/lodash/identity.js +0 -33
  906. package/lib/node_modules/lodash/identity.js.map +0 -1
  907. package/lib/node_modules/lodash/isArguments.js +0 -50
  908. package/lib/node_modules/lodash/isArguments.js.map +0 -1
  909. package/lib/node_modules/lodash/isArray.js +0 -38
  910. package/lib/node_modules/lodash/isArray.js.map +0 -1
  911. package/lib/node_modules/lodash/isArrayLike.js +0 -47
  912. package/lib/node_modules/lodash/isArrayLike.js.map +0 -1
  913. package/lib/node_modules/lodash/isArrayLikeObject.js +0 -47
  914. package/lib/node_modules/lodash/isArrayLikeObject.js.map +0 -1
  915. package/lib/node_modules/lodash/isBuffer.js +0 -56
  916. package/lib/node_modules/lodash/isBuffer.js.map +0 -1
  917. package/lib/node_modules/lodash/isEmpty.js +0 -97
  918. package/lib/node_modules/lodash/isEmpty.js.map +0 -1
  919. package/lib/node_modules/lodash/isFunction.js +0 -51
  920. package/lib/node_modules/lodash/isFunction.js.map +0 -1
  921. package/lib/node_modules/lodash/isLength.js +0 -47
  922. package/lib/node_modules/lodash/isLength.js.map +0 -1
  923. package/lib/node_modules/lodash/isMap.js +0 -42
  924. package/lib/node_modules/lodash/isMap.js.map +0 -1
  925. package/lib/node_modules/lodash/isObject.js +0 -43
  926. package/lib/node_modules/lodash/isObject.js.map +0 -1
  927. package/lib/node_modules/lodash/isObjectLike.js +0 -41
  928. package/lib/node_modules/lodash/isObjectLike.js.map +0 -1
  929. package/lib/node_modules/lodash/isPlainObject.js +0 -77
  930. package/lib/node_modules/lodash/isPlainObject.js.map +0 -1
  931. package/lib/node_modules/lodash/isSet.js +0 -42
  932. package/lib/node_modules/lodash/isSet.js.map +0 -1
  933. package/lib/node_modules/lodash/isString.js +0 -45
  934. package/lib/node_modules/lodash/isString.js.map +0 -1
  935. package/lib/node_modules/lodash/isSymbol.js +0 -43
  936. package/lib/node_modules/lodash/isSymbol.js.map +0 -1
  937. package/lib/node_modules/lodash/isTypedArray.js +0 -42
  938. package/lib/node_modules/lodash/isTypedArray.js.map +0 -1
  939. package/lib/node_modules/lodash/isUndefined.js +0 -34
  940. package/lib/node_modules/lodash/isUndefined.js.map +0 -1
  941. package/lib/node_modules/lodash/keys.js +0 -52
  942. package/lib/node_modules/lodash/keys.js.map +0 -1
  943. package/lib/node_modules/lodash/keysIn.js +0 -47
  944. package/lib/node_modules/lodash/keysIn.js.map +0 -1
  945. package/lib/node_modules/lodash/last.js +0 -32
  946. package/lib/node_modules/lodash/last.js.map +0 -1
  947. package/lib/node_modules/lodash/map.js +0 -69
  948. package/lib/node_modules/lodash/map.js.map +0 -1
  949. package/lib/node_modules/lodash/mapValues.js +0 -58
  950. package/lib/node_modules/lodash/mapValues.js.map +0 -1
  951. package/lib/node_modules/lodash/max.js +0 -44
  952. package/lib/node_modules/lodash/max.js.map +0 -1
  953. package/lib/node_modules/lodash/memoize.js +0 -86
  954. package/lib/node_modules/lodash/memoize.js.map +0 -1
  955. package/lib/node_modules/lodash/merge.js +0 -53
  956. package/lib/node_modules/lodash/merge.js.map +0 -1
  957. package/lib/node_modules/lodash/min.js +0 -44
  958. package/lib/node_modules/lodash/min.js.map +0 -1
  959. package/lib/node_modules/lodash/minBy.js +0 -49
  960. package/lib/node_modules/lodash/minBy.js.map +0 -1
  961. package/lib/node_modules/lodash/noop.js +0 -29
  962. package/lib/node_modules/lodash/noop.js.map +0 -1
  963. package/lib/node_modules/lodash/now.js +0 -36
  964. package/lib/node_modules/lodash/now.js.map +0 -1
  965. package/lib/node_modules/lodash/pick.js +0 -39
  966. package/lib/node_modules/lodash/pick.js.map +0 -1
  967. package/lib/node_modules/lodash/property.js +0 -48
  968. package/lib/node_modules/lodash/property.js.map +0 -1
  969. package/lib/node_modules/lodash/range.js +0 -59
  970. package/lib/node_modules/lodash/range.js.map +0 -1
  971. package/lib/node_modules/lodash/reduce.js +0 -68
  972. package/lib/node_modules/lodash/reduce.js.map +0 -1
  973. package/lib/node_modules/lodash/size.js +0 -63
  974. package/lib/node_modules/lodash/size.js.map +0 -1
  975. package/lib/node_modules/lodash/sortBy.js +0 -64
  976. package/lib/node_modules/lodash/sortBy.js.map +0 -1
  977. package/lib/node_modules/lodash/stubArray.js +0 -35
  978. package/lib/node_modules/lodash/stubArray.js.map +0 -1
  979. package/lib/node_modules/lodash/stubFalse.js +0 -30
  980. package/lib/node_modules/lodash/stubFalse.js.map +0 -1
  981. package/lib/node_modules/lodash/toFinite.js +0 -55
  982. package/lib/node_modules/lodash/toFinite.js.map +0 -1
  983. package/lib/node_modules/lodash/toInteger.js +0 -49
  984. package/lib/node_modules/lodash/toInteger.js.map +0 -1
  985. package/lib/node_modules/lodash/toNumber.js +0 -79
  986. package/lib/node_modules/lodash/toNumber.js.map +0 -1
  987. package/lib/node_modules/lodash/toPlainObject.js +0 -46
  988. package/lib/node_modules/lodash/toPlainObject.js.map +0 -1
  989. package/lib/node_modules/lodash/toString.js +0 -41
  990. package/lib/node_modules/lodash/toString.js.map +0 -1
  991. package/lib/node_modules/lodash/transform.js +0 -87
  992. package/lib/node_modules/lodash/transform.js.map +0 -1
  993. package/lib/node_modules/lodash/union.js +0 -42
  994. package/lib/node_modules/lodash/union.js.map +0 -1
  995. package/lib/node_modules/lodash/uniqueId.js +0 -41
  996. package/lib/node_modules/lodash/uniqueId.js.map +0 -1
  997. package/lib/node_modules/lodash/values.js +0 -48
  998. package/lib/node_modules/lodash/values.js.map +0 -1
  999. package/lib/node_modules/lodash/zipObject.js +0 -38
  1000. package/lib/node_modules/lodash/zipObject.js.map +0 -1
  1001. package/lib/node_modules/ml-array-max/lib-es6/index.js +0 -37
  1002. package/lib/node_modules/ml-array-max/lib-es6/index.js.map +0 -1
  1003. package/lib/node_modules/ml-array-min/lib-es6/index.js +0 -37
  1004. package/lib/node_modules/ml-array-min/lib-es6/index.js.map +0 -1
  1005. package/lib/node_modules/ml-array-rescale/lib-es6/index.js +0 -52
  1006. package/lib/node_modules/ml-array-rescale/lib-es6/index.js.map +0 -1
  1007. package/lib/node_modules/ml-matrix/matrix.js +0 -8
  1008. package/lib/node_modules/ml-matrix/matrix.js.map +0 -1
  1009. package/lib/node_modules/ml-matrix/matrix2.js +0 -5660
  1010. package/lib/node_modules/ml-matrix/matrix2.js.map +0 -1
  1011. package/lib/node_modules/tslib/tslib.es6.js +0 -46
  1012. package/lib/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -0,0 +1,129 @@
1
+ import { __awaiter } from 'tslib';
2
+ import { Matrix, SingularValueDecomposition } from 'ml-matrix';
3
+ import { BaseLayout } from '../base-layout.js';
4
+ import { applySingleNodeLayout } from '../../util/common.js';
5
+ import '@antv/expr';
6
+ import '@antv/util';
7
+ import { getAdjList, johnson, scaleMatrix } from '../../util/math.js';
8
+ import { normalizeViewport } from '../../util/viewport.js';
9
+
10
+ const DEFAULTS_LAYOUT_OPTIONS = {
11
+ center: [0, 0],
12
+ linkDistance: 50,
13
+ };
14
+ /**
15
+ * <zh/> 多维缩放算法布局
16
+ *
17
+ * <en/> Multidimensional scaling layout
18
+ */
19
+ class MDSLayout extends BaseLayout {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.id = 'mds';
23
+ }
24
+ getDefaultOptions() {
25
+ return DEFAULTS_LAYOUT_OPTIONS;
26
+ }
27
+ layout() {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ const { linkDistance = DEFAULTS_LAYOUT_OPTIONS.linkDistance } = this.options;
30
+ const { center } = normalizeViewport(this.options);
31
+ const n = this.model.nodeCount();
32
+ if (n === 0 || n === 1) {
33
+ applySingleNodeLayout(this.model, center);
34
+ return;
35
+ }
36
+ // the graph-theoretic distance (shortest path distance) matrix
37
+ const adjList = getAdjList(this.model, false);
38
+ const distances = johnson(adjList);
39
+ handleInfinity(distances);
40
+ // scale the ideal edge length acoording to linkDistance
41
+ const scaledD = scaleMatrix(distances, linkDistance);
42
+ // get positions by MDS
43
+ const positions = runMDS(scaledD);
44
+ let i = 0;
45
+ this.model.forEachNode((node) => {
46
+ const p = positions[i++];
47
+ node.x = p[0] + center[0];
48
+ node.y = p[1] + center[1];
49
+ });
50
+ });
51
+ }
52
+ }
53
+ /**
54
+ * Handle Infinity values in the distance matrix by replacing them with the maximum finite distance.
55
+ */
56
+ const handleInfinity = (distances) => {
57
+ let maxDistance = Number.NEGATIVE_INFINITY;
58
+ const infList = [];
59
+ const n = distances.length;
60
+ for (let i = 0; i < n; i++) {
61
+ const row = distances[i];
62
+ const m = row.length;
63
+ for (let j = 0; j < m; j++) {
64
+ const value = row[j];
65
+ if (value === Infinity) {
66
+ infList.push([i, j]);
67
+ }
68
+ else if (maxDistance < value) {
69
+ maxDistance = value;
70
+ }
71
+ }
72
+ }
73
+ for (let k = 0; k < infList.length; k++) {
74
+ const [i, j] = infList[k];
75
+ distances[i][j] = maxDistance;
76
+ }
77
+ };
78
+ /**
79
+ * Mds Algorithm
80
+ * @param {array} distances Adjacency matrix of distances
81
+ * @param {number} dimension Dimension of layout, default 2
82
+ * @param {number} linkDistance Ideal length of edges
83
+ * @returns {array} positions Positions of nodes
84
+ */
85
+ const runMDS = (distances, dimension = 2, linkDistance = DEFAULTS_LAYOUT_OPTIONS.linkDistance) => {
86
+ try {
87
+ // square distances
88
+ const N = distances.length;
89
+ const M = new Matrix(N, N);
90
+ for (let i = 0; i < N; i++) {
91
+ for (let j = 0; j < N; j++) {
92
+ const d = distances[i][j];
93
+ M.set(i, j, -0.5 * d * d);
94
+ }
95
+ }
96
+ // double centre the rows/columns
97
+ const rowMeans = M.mean('row');
98
+ const colMeans = M.mean('column');
99
+ const totalMean = M.mean();
100
+ M.add(totalMean).subRowVector(rowMeans).subColumnVector(colMeans);
101
+ // take the SVD of the double centred matrix, and return the
102
+ // points from it
103
+ const ret = new SingularValueDecomposition(M);
104
+ const eigenValues = Matrix.sqrt(ret.diagonalMatrix).diagonal();
105
+ const U = ret.leftSingularVectors;
106
+ const λ = eigenValues;
107
+ const results = [];
108
+ for (let i = 0; i < U.rows; i++) {
109
+ const pt = [];
110
+ for (let k = 0; k < dimension; k++) {
111
+ pt.push(U.get(i, k) * λ[k]);
112
+ }
113
+ results.push(pt);
114
+ }
115
+ return results;
116
+ }
117
+ catch (_a) {
118
+ const results = [];
119
+ for (let i = 0; i < distances.length; i++) {
120
+ const x = Math.random() * linkDistance;
121
+ const y = Math.random() * linkDistance;
122
+ results.push([x, y]);
123
+ }
124
+ return results;
125
+ }
126
+ };
127
+
128
+ export { MDSLayout, runMDS };
129
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/algorithm/mds/src/algorithm/mds/index.ts"],"sourcesContent":[null],"names":["MLMatrix"],"mappings":";;;;;;;;;AASA,MAAM,uBAAuB,GAA8B;AACzD,IAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACd,IAAA,YAAY,EAAE,EAAE;CACjB;AAED;;;;AAIG;AACG,MAAO,SAAU,SAAQ,UAA4B,CAAA;AAA3D,IAAA,WAAA,GAAA;;QACE,IAAA,CAAA,EAAE,GAAG,KAAK;IAmCZ;IAjCY,iBAAiB,GAAA;AACzB,QAAA,OAAO,uBAAuB;IAChC;IAEgB,MAAM,GAAA;;YACpB,MAAM,EAAE,YAAY,GAAG,uBAAuB,CAAC,YAAY,EAAE,GAC3D,IAAI,CAAC,OAAO;YACd,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC;YAElD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AAChC,YAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AACtB,gBAAA,qBAAqB,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC;gBACzC;AACD,YAAA;;YAGD,MAAM,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0 +1,279 @@
1
+ import { __awaiter } from 'tslib';
2
+ import { applySingleNodeLayout } from '../../util/common.js';
3
+ import '@antv/expr';
4
+ import { formatNodeSizeFn, formatFn } from '../../util/format.js';
5
+ import { getAdjList, johnson } from '../../util/math.js';
6
+ import '@antv/util';
7
+ import { normalizeViewport } from '../../util/viewport.js';
8
+ import { BaseLayout } from '../base-layout.js';
9
+ import { runMDS } from '../mds/index.js';
10
+ import { radialNonoverlapForce } from './radial-nonoverlap-force.js';
11
+
12
+ const DEFAULTS_LAYOUT_OPTIONS = {
13
+ focusNode: null,
14
+ linkDistance: 50,
15
+ maxIteration: 1000,
16
+ maxPreventOverlapIteration: 200,
17
+ preventOverlap: false,
18
+ sortStrength: 10,
19
+ strictRadial: true,
20
+ unitRadius: null,
21
+ nodeSize: 10,
22
+ nodeSpacing: 0,
23
+ };
24
+ /**
25
+ * <zh/> 径向布局
26
+ *
27
+ * <en/> Radial layout
28
+ */
29
+ class RadialLayout extends BaseLayout {
30
+ constructor() {
31
+ super(...arguments);
32
+ this.id = 'radial';
33
+ }
34
+ getDefaultOptions() {
35
+ return DEFAULTS_LAYOUT_OPTIONS;
36
+ }
37
+ layout() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const { width, height, center } = normalizeViewport(this.options);
40
+ const n = this.model.nodeCount();
41
+ if (!n || n === 1) {
42
+ return applySingleNodeLayout(this.model, center);
43
+ }
44
+ const { focusNode: propsFocusNode, linkDistance = DEFAULTS_LAYOUT_OPTIONS.linkDistance, maxIteration = DEFAULTS_LAYOUT_OPTIONS.maxIteration, maxPreventOverlapIteration = DEFAULTS_LAYOUT_OPTIONS.maxPreventOverlapIteration, nodeSize, nodeSpacing, preventOverlap, sortBy, sortStrength = DEFAULTS_LAYOUT_OPTIONS.sortStrength, strictRadial, unitRadius: propsUnitRadius, } = this.options;
45
+ const focusNode = (propsFocusNode && this.model.node(propsFocusNode)) ||
46
+ this.model.firstNode();
47
+ // the index of the focusNode in data
48
+ const focusIndex = this.model.nodeIndexOf(focusNode.id);
49
+ // the graph-theoretic distance (shortest path distance) matrix
50
+ const adjList = getAdjList(this.model, false);
51
+ const distances = johnson(adjList);
52
+ const maxDistance = maxToFocus(distances, focusIndex);
53
+ // replace first node in unconnected component to the circle at (maxDistance + 1)
54
+ handleInfinity(distances, focusIndex, maxDistance + 1);
55
+ // the shortest path distance from each node to focusNode
56
+ const focusNodeD = distances[focusIndex];
57
+ const semiWidth = (width - center[0] > center[0] ? center[0] : width - center[0]) ||
58
+ width / 2;
59
+ const semiHeight = (height - center[1] > center[1] ? center[1] : height - center[1]) ||
60
+ height / 2;
61
+ // the maxRadius of the graph
62
+ const maxRadius = Math.min(semiWidth, semiHeight);
63
+ const maxD = Math.max(...focusNodeD);
64
+ // the radius for each nodes away from focusNode
65
+ const radii = [];
66
+ const radiiMap = new Map();
67
+ const unitRadius = propsUnitRadius !== null && propsUnitRadius !== void 0 ? propsUnitRadius : maxRadius / maxD;
68
+ focusNodeD.forEach((value, i) => {
69
+ const v = value * unitRadius;
70
+ radii.push(v);
71
+ radiiMap.set(this.model.nodeAt(i).id, v);
72
+ });
73
+ const idealDistances = eIdealDisMatrix(this.model, distances, linkDistance, radii, unitRadius, sortBy, sortStrength);
74
+ // the initial positions from mds, move the graph to origin, centered at focusNode
75
+ const mdsResult = runMDS(idealDistances, 2, linkDistance);
76
+ const mdsFocus = mdsResult[focusIndex];
77
+ let i = 0;
78
+ this.model.forEachNode((node) => {
79
+ const p = mdsResult[i];
80
+ node.x = p[0] - mdsFocus[0];
81
+ node.y = p[1] - mdsFocus[1];
82
+ i++;
83
+ });
84
+ this.run(maxIteration, idealDistances, radii, focusIndex);
85
+ this.model.forEachNode((node) => {
86
+ node.x += center[0];
87
+ node.y += center[1];
88
+ });
89
+ // stagger the overlapped nodes
90
+ if (preventOverlap) {
91
+ const nodeSizeFunc = formatNodeSizeFn(nodeSize, nodeSpacing, DEFAULTS_LAYOUT_OPTIONS.nodeSize, DEFAULTS_LAYOUT_OPTIONS.nodeSpacing);
92
+ const nonoverlapForceParams = {
93
+ nodeSizeFunc,
94
+ radiiMap,
95
+ width,
96
+ strictRadial: Boolean(strictRadial),
97
+ focusNode,
98
+ maxIteration: maxPreventOverlapIteration,
99
+ k: n / 4.5,
100
+ };
101
+ radialNonoverlapForce(this.model, nonoverlapForceParams);
102
+ }
103
+ });
104
+ }
105
+ run(maxIteration, idealDistances, radii, focusIndex) {
106
+ const weights = getWeightMatrix(idealDistances);
107
+ const n = this.model.nodeCount();
108
+ const nodes = this.model.nodes();
109
+ const xs = new Float64Array(n);
110
+ const ys = new Float64Array(n);
111
+ for (let i = 0; i < n; i++) {
112
+ xs[i] = nodes[i].x;
113
+ ys[i] = nodes[i].y;
114
+ }
115
+ for (let i = 0; i <= maxIteration; i++) {
116
+ const param = i / maxIteration;
117
+ const vparam = 1 - param;
118
+ for (let i = 0; i < n; i++) {
119
+ if (i === focusIndex)
120
+ continue;
121
+ const vx = xs[i];
122
+ const vy = ys[i];
123
+ const originDis = Math.sqrt(vx * vx + vy * vy);
124
+ const reciODis = originDis === 0 ? 0 : 1 / originDis;
125
+ let xMolecule = 0;
126
+ let yMolecule = 0;
127
+ let denominator = 0;
128
+ for (let j = 0; j < n; j++) {
129
+ // u
130
+ if (i === j)
131
+ continue;
132
+ const ux = xs[j];
133
+ const uy = ys[j];
134
+ // the euclidean distance between v and u
135
+ const edis = Math.sqrt((vx - ux) * (vx - ux) + (vy - uy) * (vy - uy));
136
+ const reciEdis = edis === 0 ? 0 : 1 / edis;
137
+ const idealDis = idealDistances[j][i];
138
+ // same for x and y
139
+ denominator += weights[i][j];
140
+ // x
141
+ xMolecule += weights[i][j] * (ux + idealDis * (vx - ux) * reciEdis);
142
+ // y
143
+ yMolecule += weights[i][j] * (uy + idealDis * (vy - uy) * reciEdis);
144
+ }
145
+ const reciR = radii[i] === 0 ? 0 : 1 / radii[i];
146
+ denominator *= vparam;
147
+ denominator += param * reciR * reciR;
148
+ // x
149
+ xMolecule *= vparam;
150
+ xMolecule += param * reciR * vx * reciODis;
151
+ // y
152
+ yMolecule *= vparam;
153
+ yMolecule += param * reciR * vy * reciODis;
154
+ xs[i] = xMolecule / denominator;
155
+ ys[i] = yMolecule / denominator;
156
+ nodes[i].x = xs[i];
157
+ nodes[i].y = ys[i];
158
+ }
159
+ }
160
+ }
161
+ }
162
+ const eIdealDisMatrix = (model, distances, linkDistance, radii, unitRadius, sortBy, sortStrength) => {
163
+ const n = distances.length;
164
+ const result = new Array(n);
165
+ const radiusScale = new Array(n);
166
+ for (let i = 0; i < n; i++)
167
+ radiusScale[i] = radii[i] / unitRadius;
168
+ const baseLink = (linkDistance + unitRadius) / 2;
169
+ const sortCache = new Map();
170
+ const sortFn = !sortBy || sortBy === 'data' ? null : formatFn(sortBy, ['node']);
171
+ const isDataSort = sortBy === 'data';
172
+ for (let i = 0; i < n; i++) {
173
+ const row = distances[i];
174
+ const newRow = new Array(n);
175
+ result[i] = newRow;
176
+ const riScale = radiusScale[i] || 1;
177
+ for (let j = 0; j < n; j++) {
178
+ if (i === j) {
179
+ newRow[j] = 0;
180
+ continue;
181
+ }
182
+ const v = row[j];
183
+ if (radii[i] === radii[j]) {
184
+ if (isDataSort) {
185
+ newRow[j] = (v * Math.abs(i - j) * sortStrength) / riScale;
186
+ }
187
+ else if (sortFn) {
188
+ // cache node attribute values
189
+ const nodeI = model.nodeAt(i);
190
+ const nodeJ = model.nodeAt(j);
191
+ let iv = sortCache.get(nodeI.id);
192
+ if (iv === undefined) {
193
+ const raw = sortFn(nodeI._original) || 0;
194
+ iv = typeof raw === 'string' ? raw.charCodeAt(0) : Number(raw || 0);
195
+ sortCache.set(nodeI.id, iv);
196
+ }
197
+ let jv = sortCache.get(nodeJ.id);
198
+ if (jv === undefined) {
199
+ const raw = sortFn(nodeJ._original) || 0;
200
+ jv = typeof raw === 'string' ? raw.charCodeAt(0) : Number(raw || 0);
201
+ sortCache.set(nodeJ.id, jv);
202
+ }
203
+ newRow[j] = (v * Math.abs(iv - jv) * sortStrength) / riScale;
204
+ }
205
+ else {
206
+ newRow[j] = (v * linkDistance) / riScale;
207
+ }
208
+ }
209
+ else {
210
+ newRow[j] = v * baseLink;
211
+ }
212
+ }
213
+ }
214
+ return result;
215
+ };
216
+ const getWeightMatrix = (idealDistances) => {
217
+ const rows = idealDistances.length;
218
+ const cols = idealDistances[0].length;
219
+ const result = [];
220
+ for (let i = 0; i < rows; i++) {
221
+ const row = [];
222
+ for (let j = 0; j < cols; j++) {
223
+ if (idealDistances[i][j] !== 0) {
224
+ row.push(1 / (idealDistances[i][j] * idealDistances[i][j]));
225
+ }
226
+ else {
227
+ row.push(0);
228
+ }
229
+ }
230
+ result.push(row);
231
+ }
232
+ return result;
233
+ };
234
+ const handleInfinity = (matrix, focusIndex, step) => {
235
+ const n = matrix.length;
236
+ for (let i = 0; i < n; i++) {
237
+ // matrix 关注点对应行的 Inf 项
238
+ if (matrix[focusIndex][i] === Infinity) {
239
+ matrix[focusIndex][i] = step;
240
+ matrix[i][focusIndex] = step;
241
+ // 遍历 matrix 中的 i 行,i 行中非 Inf 项若在 focus 行为 Inf,则替换 focus 行的那个 Inf
242
+ for (let j = 0; j < n; j++) {
243
+ if (matrix[i][j] !== Infinity && matrix[focusIndex][j] === Infinity) {
244
+ matrix[focusIndex][j] = step + matrix[i][j];
245
+ matrix[j][focusIndex] = step + matrix[i][j];
246
+ }
247
+ }
248
+ }
249
+ }
250
+ // 处理其他行的 Inf。根据该行对应点与 focus 距离以及 Inf 项点 与 focus 距离,决定替换值
251
+ for (let i = 0; i < n; i++) {
252
+ if (i === focusIndex) {
253
+ continue;
254
+ }
255
+ for (let j = 0; j < n; j++) {
256
+ if (matrix[i][j] === Infinity) {
257
+ let minus = Math.abs(matrix[focusIndex][i] - matrix[focusIndex][j]);
258
+ minus = minus === 0 ? 1 : minus;
259
+ matrix[i][j] = minus;
260
+ }
261
+ }
262
+ }
263
+ };
264
+ /**
265
+ * Get the maximum finite distance from the focus node to other nodes
266
+ */
267
+ const maxToFocus = (matrix, focusIndex) => {
268
+ const row = matrix[focusIndex];
269
+ let max = 0;
270
+ for (let i = 0; i < row.length; i++) {
271
+ if (row[i] === Infinity)
272
+ continue;
273
+ max = Math.max(max, row[i]);
274
+ }
275
+ return max;
276
+ };
277
+
278
+ export { RadialLayout };
279
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/algorithm/radial/src/algorithm/radial/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAeA,MAAM,uBAAuB,GAAiC;AAC5D,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,0BAA0B,EAAE,GAAG;AAC/B,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,WAAW,EAAE,CAAC;CACf;AAED;;;;AAIG;AACG,MAAO,YAAa,SAAQ,UAA+B,CAAA;AAAjE,IAAA,WAAA,GAAA;;QACE,IAAA,CAAA,EAAE,GAAG,QAAQ;IA2Lf;IAzLY,iBAAiB,GAAA;AACzB,QAAA,OAAO,uBAAuB;IAChC;IAEgB,MAAM,GAAA;;AACpB,YAAA,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC;YAEjE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AAChC,YAAA,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;gBACjB,OAAO,qBAAqB,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC;AACjD,YAAA;YAED,MAAM,EACJ,SAAS,EAAE,cAAc,EACzB,YAAY,GAAG,uBA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AC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AACnE,gBAAA,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK;gBAC/B,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;AACrB,YAAA;AACF,QAAA;AACF,IAAA;AACH,CAAC;AAED;;AAEG;AACH,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,UAAkB,KAAY;AAChE,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC;IAE9B,IAAI,GAAG,GAAG,CAAC;AACX,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACnC,QAAA,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,QAAQ;YAAE;AAEzB,QAAA,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAC5B,IAAA;AACD,IAAA,OAAO,GAAG;AACZ,CAAC;;;;"}
@@ -0,0 +1,127 @@
1
+ const SPEED_DIVISOR = 800;
2
+ const DEFAULTS_LAYOUT_OPTIONS = {
3
+ maxIteration: 10,
4
+ width: 10,
5
+ speed: 100,
6
+ gravity: 10,
7
+ k: 5,
8
+ };
9
+ const radialNonoverlapForce = (model, options) => {
10
+ const mergedOptions = Object.assign(Object.assign({}, DEFAULTS_LAYOUT_OPTIONS), options);
11
+ const { maxIteration, width, k, speed = DEFAULTS_LAYOUT_OPTIONS.speed, strictRadial, focusNode, radiiMap, nodeSizeFunc, } = mergedOptions;
12
+ const earlyStopThreshold = k * 0.002;
13
+ const displacements = new Map();
14
+ const maxDisplacement = width / 10;
15
+ for (let i = 0; i < maxIteration; i++) {
16
+ model.forEachNode((node) => {
17
+ displacements.set(node.id, { x: 0, y: 0 });
18
+ });
19
+ // 给重叠的节点增加斥力
20
+ getRepulsion(model, displacements, k, radiiMap, nodeSizeFunc);
21
+ const avgDisplacement = updatePositions(model, displacements, speed, strictRadial, focusNode, maxDisplacement, radiiMap);
22
+ if (avgDisplacement < earlyStopThreshold) {
23
+ break;
24
+ }
25
+ }
26
+ };
27
+ const getRepulsion = (model, displacements, k, radiiMap, nodeSizeFunc) => {
28
+ let i = 0;
29
+ model.forEachNode((nodeU) => {
30
+ let j = 0;
31
+ model.forEachNode((nodeV) => {
32
+ if (j <= i) {
33
+ j++;
34
+ return;
35
+ }
36
+ if (nodeU.id === nodeV.id)
37
+ return;
38
+ // nodeU and nodeV are not on the same circle, return
39
+ if (radiiMap.get(nodeU.id) !== radiiMap.get(nodeV.id))
40
+ return;
41
+ let vecx = nodeU.x - nodeV.x;
42
+ let vecy = nodeU.y - nodeV.y;
43
+ let vecLength = Math.sqrt(vecx * vecx + vecy * vecy);
44
+ // If the two nodes are exactly at the same position, we set a small distance between them
45
+ if (vecLength === 0) {
46
+ vecLength = 1;
47
+ const sign = i > j ? 1 : -1;
48
+ vecx = 0.01 * sign;
49
+ vecy = 0.01 * sign;
50
+ }
51
+ const nodeSizeU = Math.max(...nodeSizeFunc(nodeU._original));
52
+ const nodeSizeV = Math.max(...nodeSizeFunc(nodeV._original));
53
+ // these two nodes overlap
54
+ if (vecLength < nodeSizeV / 2 + nodeSizeU / 2) {
55
+ const common = (k * k) / vecLength;
56
+ const dispU = displacements.get(nodeU.id);
57
+ const dispV = displacements.get(nodeV.id);
58
+ const deltaX = (vecx / vecLength) * common;
59
+ const deltaY = (vecy / vecLength) * common;
60
+ displacements.set(nodeU.id, {
61
+ x: dispU.x + deltaX,
62
+ y: dispU.y + deltaY,
63
+ });
64
+ displacements.set(nodeV.id, {
65
+ x: dispV.x - deltaX,
66
+ y: dispV.y - deltaY,
67
+ });
68
+ }
69
+ j++;
70
+ });
71
+ i++;
72
+ });
73
+ };
74
+ const updatePositions = (model, displacements, speed, strictRadial, focusNode, maxDisplacement, radiiMap) => {
75
+ if (strictRadial) {
76
+ model.forEachNode((node) => {
77
+ const vx = node.x - focusNode.x;
78
+ const vy = node.y - focusNode.y;
79
+ const vLength = Math.sqrt(vx * vx + vy * vy);
80
+ let vpx = vy / vLength;
81
+ let vpy = -vx / vLength;
82
+ const disp = displacements.get(node.id);
83
+ const diLength = Math.sqrt(disp.x * disp.x + disp.y * disp.y);
84
+ let alpha = Math.acos((vpx * disp.x + vpy * disp.y) / diLength);
85
+ if (alpha > Math.PI / 2) {
86
+ alpha -= Math.PI / 2;
87
+ vpx *= -1;
88
+ vpy *= -1;
89
+ }
90
+ const tdispLength = Math.cos(alpha) * diLength;
91
+ displacements.set(node.id, {
92
+ x: vpx * tdispLength,
93
+ y: vpy * tdispLength,
94
+ });
95
+ });
96
+ }
97
+ // move
98
+ let totalDisplacement = 0;
99
+ let nodeCount = 0;
100
+ model.forEachNode((node) => {
101
+ if (node.id === focusNode.id) {
102
+ return;
103
+ }
104
+ const disp = displacements.get(node.id);
105
+ const distLength = Math.sqrt(disp.x * disp.x + disp.y * disp.y);
106
+ if (distLength > 0) {
107
+ const limitedDist = Math.min(maxDisplacement * (speed / SPEED_DIVISOR), distLength);
108
+ node.x += (disp.x / distLength) * limitedDist;
109
+ node.y += (disp.y / distLength) * limitedDist;
110
+ if (strictRadial) {
111
+ let vx = node.x - focusNode.x;
112
+ let vy = node.y - focusNode.y;
113
+ const nfDis = Math.sqrt(vx * vx + vy * vy);
114
+ vx = (vx / nfDis) * radiiMap.get(node.id);
115
+ vy = (vy / nfDis) * radiiMap.get(node.id);
116
+ node.x = focusNode.x + vx;
117
+ node.y = focusNode.y + vy;
118
+ }
119
+ totalDisplacement += limitedDist;
120
+ nodeCount++;
121
+ }
122
+ });
123
+ return nodeCount > 0 ? totalDisplacement / nodeCount : 0;
124
+ };
125
+
126
+ export { radialNonoverlapForce };
127
+ //# sourceMappingURL=radial-nonoverlap-force.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radial-nonoverlap-force.js","sources":["../../../src/algor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A,SAAS,EAAE;AACZ,QAAA;AACH,IAAA,CAAC,CAAC;AAEF,IAAA,OAAO,SAAS,GAAG,CAAC,GAAG,iBAAiB,GAAG,SAAS,GAAG,CAAC;AAC1D,CAAC;;;;"}
@@ -0,0 +1,43 @@
1
+ import { __awaiter } from 'tslib';
2
+ import '@antv/expr';
3
+ import '@antv/util';
4
+ import { normalizeViewport } from '../../util/viewport.js';
5
+ import { BaseLayout } from '../base-layout.js';
6
+
7
+ /**
8
+ * <zh/> 随机布局
9
+ *
10
+ * <en/> Random layout
11
+ */
12
+ class RandomLayout extends BaseLayout {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.id = 'random';
16
+ }
17
+ getDefaultOptions() {
18
+ return {
19
+ center: [0, 0],
20
+ width: 300,
21
+ height: 300,
22
+ };
23
+ }
24
+ layout() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const { width, height, center } = normalizeViewport(this.options);
27
+ this.model.forEachNode((node) => {
28
+ node.x = randomCoord(width) + center[0];
29
+ node.y = randomCoord(height) + center[1];
30
+ });
31
+ });
32
+ }
33
+ }
34
+ const layoutScale = 0.9;
35
+ /**
36
+ * <zh/> 生成随机坐标
37
+ *
38
+ * <en/> Generate random coordinates
39
+ */
40
+ const randomCoord = (size) => (Math.random() - 0.5) * layoutScale * size;
41
+
42
+ export { RandomLayout };
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/algorithm/random/src/algorithm/random/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAMA;;;;AAIG;AACG,MAAO,YAAa,SAAQ,UAA+B,CAAA;AAAjE,IAAA,WAAA,GAAA;;QACE,IAAA,CAAA,EAAE,GAAG,QAAQ;IAkBf;IAhBY,iBAAiB,GAAA;QACzB,OAAO;AACL,YAAA,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACd,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,MAAM,EAAE,GAAG;SACZ;IACH;IAEgB,MAAM,GAAA;;AACpB,YAAA,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC;YAEjE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,KAAI;AAC9B,gBAAA,IAAI,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;AACvC,gBAAA,IAAI,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;AAC1C,YAAA,CAAC,CAAC;QACJ,CAAC,CAAA;AAAA,IAAA;AACF;AAED,MAAM,WAAW,GAAG,GAAG;AAEvB;;;;AAIG;AACH,MAAM,WAAW,GAAG,CAAC,IAAY,KAC/B,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,WAAW,GAAG,IAAI;;;;"}
package/esm/index.js ADDED
@@ -0,0 +1,30 @@
1
+ export { AntVDagreLayout } from './algorithm/antv-dagre/index.js';
2
+ export { BaseLayout, isLayoutWithIterations } from './algorithm/base-layout.js';
3
+ export { CircularLayout } from './algorithm/circular/index.js';
4
+ export { ComboCombinedLayout } from './algorithm/combo-combined/index.js';
5
+ export { ConcentricLayout } from './algorithm/concentric/index.js';
6
+ export { D3ForceLayout } from './algorithm/d3-force/index.js';
7
+ export { D3Force3DLayout } from './algorithm/d3-force-3d/index.js';
8
+ export { DagreLayout } from './algorithm/dagre/index.js';
9
+ export { ForceLayout } from './algorithm/force/index.js';
10
+ export { ForceAtlas2Layout } from './algorithm/force-atlas2/index.js';
11
+ export { FruchtermanLayout } from './algorithm/fruchterman/index.js';
12
+ export { GridLayout } from './algorithm/grid/index.js';
13
+ export { MDSLayout } from './algorithm/mds/index.js';
14
+ export { RadialLayout } from './algorithm/radial/index.js';
15
+ export { RandomLayout } from './algorithm/random/index.js';
16
+ export { GraphLib, initNodePosition } from './model/data.js';
17
+ export { registry } from './registry.js';
18
+ export { RuntimeContext } from './runtime/context.js';
19
+ export { Supervisor } from './runtime/supervisor.js';
20
+ export { isArray } from './util/array.js';
21
+ export { applySingleNodeLayout } from './util/common.js';
22
+ export { evaluateExpression } from './util/expr.js';
23
+ export { formatFn, formatNodeSizeFn, formatNumberFn, formatSizeFn } from './util/format.js';
24
+ export { floydWarshall, getAdjList, getAdjMatrix, getEuclideanDistance, getLayoutBBox, graphTreeDfs, johnson, scaleMatrix } from './util/math.js';
25
+ export { assignDefined, getNestedValue, setNestedValue } from './util/object.js';
26
+ export { orderByDegree, orderById, orderBySorter, orderByTopology } from './util/order.js';
27
+ export { parsePoint, toPointObject } from './util/point.js';
28
+ export { isSize, parseSize } from './util/size.js';
29
+ export { normalizeViewport } from './util/viewport.js';
30
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}