@antv/layout 1.2.14-beta.9 → 2.0.0-alpha.2

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 (1276) hide show
  1. package/README.md +26 -301
  2. package/dist/index.js +32816 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/index.min.js +7 -2
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/worker.js +8 -0
  7. package/dist/worker.js.map +1 -0
  8. package/lib/_virtual/_cloneBuffer.js +4 -0
  9. package/lib/_virtual/_cloneBuffer.js.map +1 -0
  10. package/lib/_virtual/_commonjs-dynamic-modules.js +6 -0
  11. package/lib/_virtual/_commonjs-dynamic-modules.js.map +1 -0
  12. package/lib/_virtual/_commonjsHelpers.js +37 -0
  13. package/lib/_virtual/_commonjsHelpers.js.map +1 -0
  14. package/lib/_virtual/_nodeUtil.js +4 -0
  15. package/lib/_virtual/_nodeUtil.js.map +1 -0
  16. package/lib/_virtual/index.js +8 -0
  17. package/lib/_virtual/index.js.map +1 -0
  18. package/lib/_virtual/index2.js +7 -0
  19. package/lib/_virtual/index2.js.map +1 -0
  20. package/lib/_virtual/index3.js +7 -0
  21. package/lib/_virtual/index3.js.map +1 -0
  22. package/lib/_virtual/isBuffer.js +4 -0
  23. package/lib/_virtual/isBuffer.js.map +1 -0
  24. package/lib/_virtual/matrix.js +8 -0
  25. package/lib/_virtual/matrix.js.map +1 -0
  26. package/lib/_virtual/matrix2.js +4 -0
  27. package/lib/_virtual/matrix2.js.map +1 -0
  28. package/lib/algorithm/antv-dagre/acyclic.js +40 -0
  29. package/lib/algorithm/antv-dagre/acyclic.js.map +1 -0
  30. package/lib/algorithm/antv-dagre/add-border-segments.js +42 -0
  31. package/lib/algorithm/antv-dagre/add-border-segments.js.map +1 -0
  32. package/lib/algorithm/antv-dagre/coordinate-system.js +66 -0
  33. package/lib/algorithm/antv-dagre/coordinate-system.js.map +1 -0
  34. package/lib/algorithm/antv-dagre/data/list.js +50 -0
  35. package/lib/algorithm/antv-dagre/data/list.js.map +1 -0
  36. package/lib/algorithm/antv-dagre/graph.js +429 -0
  37. package/lib/algorithm/antv-dagre/graph.js.map +1 -0
  38. package/lib/algorithm/antv-dagre/greedy-fas.js +139 -0
  39. package/lib/algorithm/antv-dagre/greedy-fas.js.map +1 -0
  40. package/lib/algorithm/antv-dagre/index.d.ts +15 -0
  41. package/lib/algorithm/antv-dagre/index.js +337 -0
  42. package/lib/algorithm/antv-dagre/index.js.map +1 -0
  43. package/lib/algorithm/antv-dagre/layout.js +471 -0
  44. package/lib/algorithm/antv-dagre/layout.js.map +1 -0
  45. package/lib/algorithm/antv-dagre/nesting-graph.js +154 -0
  46. package/lib/algorithm/antv-dagre/nesting-graph.js.map +1 -0
  47. package/lib/algorithm/antv-dagre/normalize.js +100 -0
  48. package/lib/algorithm/antv-dagre/normalize.js.map +1 -0
  49. package/lib/algorithm/antv-dagre/order/add-subgraph-constraints.js +47 -0
  50. package/lib/algorithm/antv-dagre/order/add-subgraph-constraints.js.map +1 -0
  51. package/lib/algorithm/antv-dagre/order/barycenter.js +25 -0
  52. package/lib/algorithm/antv-dagre/order/barycenter.js.map +1 -0
  53. package/lib/algorithm/antv-dagre/order/build-layer-graph.js +89 -0
  54. package/lib/algorithm/antv-dagre/order/build-layer-graph.js.map +1 -0
  55. package/lib/algorithm/antv-dagre/order/cross-count.js +66 -0
  56. package/lib/algorithm/antv-dagre/order/cross-count.js.map +1 -0
  57. package/lib/algorithm/antv-dagre/order/index.js +94 -0
  58. package/lib/algorithm/antv-dagre/order/index.js.map +1 -0
  59. package/lib/algorithm/antv-dagre/order/init-data-order.js +29 -0
  60. package/lib/algorithm/antv-dagre/order/init-data-order.js.map +1 -0
  61. package/lib/algorithm/antv-dagre/order/init-order.js +49 -0
  62. package/lib/algorithm/antv-dagre/order/init-order.js.map +1 -0
  63. package/lib/algorithm/antv-dagre/order/resolve-conflicts.js +119 -0
  64. package/lib/algorithm/antv-dagre/order/resolve-conflicts.js.map +1 -0
  65. package/lib/algorithm/antv-dagre/order/sort-subgraph.js +87 -0
  66. package/lib/algorithm/antv-dagre/order/sort-subgraph.js.map +1 -0
  67. package/lib/algorithm/antv-dagre/order/sort.js +77 -0
  68. package/lib/algorithm/antv-dagre/order/sort.js.map +1 -0
  69. package/lib/algorithm/antv-dagre/parent-dummy-chains.js +82 -0
  70. package/lib/algorithm/antv-dagre/parent-dummy-chains.js.map +1 -0
  71. package/lib/algorithm/antv-dagre/position/bk.js +366 -0
  72. package/lib/algorithm/antv-dagre/position/bk.js.map +1 -0
  73. package/lib/algorithm/antv-dagre/position/index.js +54 -0
  74. package/lib/algorithm/antv-dagre/position/index.js.map +1 -0
  75. package/lib/algorithm/antv-dagre/rank/feasible-tree.js +166 -0
  76. package/lib/algorithm/antv-dagre/rank/feasible-tree.js.map +1 -0
  77. package/lib/algorithm/antv-dagre/rank/index.js +51 -0
  78. package/lib/algorithm/antv-dagre/rank/index.js.map +1 -0
  79. package/lib/algorithm/antv-dagre/rank/network-simplex.js +234 -0
  80. package/lib/algorithm/antv-dagre/rank/network-simplex.js.map +1 -0
  81. package/lib/algorithm/antv-dagre/rank/util.js +139 -0
  82. package/lib/algorithm/antv-dagre/rank/util.js.map +1 -0
  83. package/lib/algorithm/antv-dagre/types.d.ts +170 -0
  84. package/lib/algorithm/antv-dagre/util.js +265 -0
  85. package/lib/algorithm/antv-dagre/util.js.map +1 -0
  86. package/lib/algorithm/base-layout.d.ts +48 -0
  87. package/lib/algorithm/base-layout.js +87 -0
  88. package/lib/algorithm/base-layout.js.map +1 -0
  89. package/lib/algorithm/base-simulation.d.ts +20 -0
  90. package/lib/algorithm/base-simulation.js +75 -0
  91. package/lib/algorithm/base-simulation.js.map +1 -0
  92. package/lib/algorithm/circular/index.d.ts +15 -0
  93. package/lib/algorithm/circular/index.js +108 -0
  94. package/lib/algorithm/circular/index.js.map +1 -0
  95. package/lib/algorithm/circular/types.d.ts +105 -0
  96. package/lib/algorithm/combo-combined/index.d.ts +33 -0
  97. package/lib/algorithm/combo-combined/index.js +303 -0
  98. package/lib/algorithm/combo-combined/index.js.map +1 -0
  99. package/lib/algorithm/combo-combined/types.d.ts +37 -0
  100. package/lib/algorithm/concentric/index.d.ts +15 -0
  101. package/lib/algorithm/concentric/index.js +192 -0
  102. package/lib/algorithm/concentric/index.js.map +1 -0
  103. package/lib/algorithm/concentric/types.d.ts +92 -0
  104. package/lib/algorithm/d3-force/force-in-a-box.js +343 -0
  105. package/lib/algorithm/d3-force/force-in-a-box.js.map +1 -0
  106. package/lib/algorithm/d3-force/index.d.ts +53 -0
  107. package/lib/algorithm/d3-force/index.js +552 -0
  108. package/lib/algorithm/d3-force/index.js.map +1 -0
  109. package/lib/algorithm/d3-force/types.d.ts +336 -0
  110. package/lib/algorithm/d3-force-3d/index.d.ts +26 -0
  111. package/lib/algorithm/d3-force-3d/index.js +73 -0
  112. package/lib/algorithm/d3-force-3d/index.js.map +1 -0
  113. package/lib/algorithm/d3-force-3d/types.d.ts +50 -0
  114. package/lib/algorithm/dagre/index.d.ts +22 -0
  115. package/lib/algorithm/dagre/index.js +142 -0
  116. package/lib/algorithm/dagre/index.js.map +1 -0
  117. package/lib/algorithm/dagre/types.d.ts +79 -0
  118. package/lib/algorithm/force/attractive.js +60 -0
  119. package/lib/algorithm/force/attractive.js.map +1 -0
  120. package/lib/algorithm/force/centripetal.js +87 -0
  121. package/lib/algorithm/force/centripetal.js.map +1 -0
  122. package/lib/algorithm/force/collide.js +172 -0
  123. package/lib/algorithm/force/collide.js.map +1 -0
  124. package/lib/algorithm/force/gravity.js +50 -0
  125. package/lib/algorithm/force/gravity.js.map +1 -0
  126. package/lib/algorithm/force/index.d.ts +87 -0
  127. package/lib/algorithm/force/index.js +450 -0
  128. package/lib/algorithm/force/index.js.map +1 -0
  129. package/lib/algorithm/force/repulsive.js +142 -0
  130. package/lib/algorithm/force/repulsive.js.map +1 -0
  131. package/lib/algorithm/force/simulation.d.ts +23 -0
  132. package/lib/algorithm/force/simulation.js +137 -0
  133. package/lib/algorithm/force/simulation.js.map +1 -0
  134. package/lib/algorithm/force/types.d.ts +252 -0
  135. package/lib/algorithm/force-atlas2/body.js +91 -0
  136. package/lib/algorithm/force-atlas2/body.js.map +1 -0
  137. package/lib/algorithm/force-atlas2/index.d.ts +22 -0
  138. package/lib/algorithm/force-atlas2/index.js +155 -0
  139. package/lib/algorithm/force-atlas2/index.js.map +1 -0
  140. package/lib/algorithm/force-atlas2/quad-tree.js +106 -0
  141. package/lib/algorithm/force-atlas2/quad-tree.js.map +1 -0
  142. package/lib/algorithm/force-atlas2/quad.js +98 -0
  143. package/lib/algorithm/force-atlas2/quad.js.map +1 -0
  144. package/lib/algorithm/force-atlas2/simulation.d.ts +39 -0
  145. package/lib/algorithm/force-atlas2/simulation.js +388 -0
  146. package/lib/algorithm/force-atlas2/simulation.js.map +1 -0
  147. package/lib/algorithm/force-atlas2/types.d.ts +109 -0
  148. package/lib/algorithm/fruchterman/index.d.ts +20 -0
  149. package/lib/algorithm/fruchterman/index.js +93 -0
  150. package/lib/algorithm/fruchterman/index.js.map +1 -0
  151. package/lib/algorithm/fruchterman/simulation.js +356 -0
  152. package/lib/algorithm/fruchterman/simulation.js.map +1 -0
  153. package/lib/algorithm/fruchterman/types.d.ts +48 -0
  154. package/lib/algorithm/grid/index.d.ts +16 -0
  155. package/lib/algorithm/grid/index.js +243 -0
  156. package/lib/algorithm/grid/index.js.map +1 -0
  157. package/lib/algorithm/grid/types.d.ts +85 -0
  158. package/lib/algorithm/mds/index.d.ts +15 -0
  159. package/lib/algorithm/mds/index.js +127 -0
  160. package/lib/algorithm/mds/index.js.map +1 -0
  161. package/lib/algorithm/mds/types.d.ts +25 -0
  162. package/lib/algorithm/radial/index.d.ts +16 -0
  163. package/lib/algorithm/radial/index.js +275 -0
  164. package/lib/algorithm/radial/index.js.map +1 -0
  165. package/lib/algorithm/radial/radial-nonoverlap-force.js +129 -0
  166. package/lib/algorithm/radial/radial-nonoverlap-force.js.map +1 -0
  167. package/lib/algorithm/radial/types.d.ts +103 -0
  168. package/lib/algorithm/random/index.d.ts +15 -0
  169. package/lib/algorithm/random/index.js +41 -0
  170. package/lib/algorithm/random/index.js.map +1 -0
  171. package/lib/algorithm/random/types.d.ts +11 -0
  172. package/lib/algorithm/types.d.ts +142 -0
  173. package/lib/index.d.ts +50 -2
  174. package/lib/index.js +28 -3
  175. package/lib/index.js.map +1 -1
  176. package/lib/model/data.d.ts +46 -0
  177. package/lib/model/data.js +281 -0
  178. package/lib/model/data.js.map +1 -0
  179. package/lib/node_modules/@antv/event-emitter/esm/index.js +107 -0
  180. package/lib/node_modules/@antv/event-emitter/esm/index.js.map +1 -0
  181. package/lib/node_modules/@antv/util/esm/lodash/clone.js +34 -0
  182. package/lib/node_modules/@antv/util/esm/lodash/clone.js.map +1 -0
  183. package/lib/node_modules/@antv/util/esm/lodash/deep-mix.js +54 -0
  184. package/lib/node_modules/@antv/util/esm/lodash/deep-mix.js.map +1 -0
  185. package/lib/node_modules/@antv/util/esm/lodash/each.js +30 -0
  186. package/lib/node_modules/@antv/util/esm/lodash/each.js.map +1 -0
  187. package/lib/node_modules/@antv/util/esm/lodash/get-type.js +10 -0
  188. package/lib/node_modules/@antv/util/esm/lodash/get-type.js.map +1 -0
  189. package/lib/node_modules/@antv/util/esm/lodash/get.js +19 -0
  190. package/lib/node_modules/@antv/util/esm/lodash/get.js.map +1 -0
  191. package/lib/node_modules/@antv/util/esm/lodash/is-array-like.js +12 -0
  192. package/lib/node_modules/@antv/util/esm/lodash/is-array-like.js.map +1 -0
  193. package/lib/node_modules/@antv/util/esm/lodash/is-array.js +10 -0
  194. package/lib/node_modules/@antv/util/esm/lodash/is-array.js.map +1 -0
  195. package/lib/node_modules/@antv/util/esm/lodash/is-boolean.js +14 -0
  196. package/lib/node_modules/@antv/util/esm/lodash/is-boolean.js.map +1 -0
  197. package/lib/node_modules/@antv/util/esm/lodash/is-empty.js +39 -0
  198. package/lib/node_modules/@antv/util/esm/lodash/is-empty.js.map +1 -0
  199. package/lib/node_modules/@antv/util/esm/lodash/is-function.js +10 -0
  200. package/lib/node_modules/@antv/util/esm/lodash/is-function.js.map +1 -0
  201. package/lib/node_modules/@antv/util/esm/lodash/is-nil.js +10 -0
  202. package/lib/node_modules/@antv/util/esm/lodash/is-nil.js.map +1 -0
  203. package/lib/node_modules/@antv/util/esm/lodash/is-number.js +10 -0
  204. package/lib/node_modules/@antv/util/esm/lodash/is-number.js.map +1 -0
  205. package/lib/node_modules/@antv/util/esm/lodash/is-object-like.js +12 -0
  206. package/lib/node_modules/@antv/util/esm/lodash/is-object-like.js.map +1 -0
  207. package/lib/node_modules/@antv/util/esm/lodash/is-object.js +13 -0
  208. package/lib/node_modules/@antv/util/esm/lodash/is-object.js.map +1 -0
  209. package/lib/node_modules/@antv/util/esm/lodash/is-plain-object.js +25 -0
  210. package/lib/node_modules/@antv/util/esm/lodash/is-plain-object.js.map +1 -0
  211. package/lib/node_modules/@antv/util/esm/lodash/is-prototype.js +9 -0
  212. package/lib/node_modules/@antv/util/esm/lodash/is-prototype.js.map +1 -0
  213. package/lib/node_modules/@antv/util/esm/lodash/is-string.js +10 -0
  214. package/lib/node_modules/@antv/util/esm/lodash/is-string.js.map +1 -0
  215. package/lib/node_modules/@antv/util/esm/lodash/is-type.js +5 -0
  216. package/lib/node_modules/@antv/util/esm/lodash/is-type.js.map +1 -0
  217. package/lib/node_modules/@antv/util/esm/lodash/pick.js +19 -0
  218. package/lib/node_modules/@antv/util/esm/lodash/pick.js.map +1 -0
  219. package/lib/node_modules/@antv/util/esm/lodash/set.js +30 -0
  220. package/lib/node_modules/@antv/util/esm/lodash/set.js.map +1 -0
  221. package/lib/node_modules/comlink/dist/esm/comlink.js +351 -0
  222. package/lib/node_modules/comlink/dist/esm/comlink.js.map +1 -0
  223. package/lib/node_modules/d3-binarytree/src/add.js +71 -0
  224. package/lib/node_modules/d3-binarytree/src/add.js.map +1 -0
  225. package/lib/node_modules/d3-binarytree/src/binarytree.js +71 -0
  226. package/lib/node_modules/d3-binarytree/src/binarytree.js.map +1 -0
  227. package/lib/node_modules/d3-binarytree/src/cover.js +39 -0
  228. package/lib/node_modules/d3-binarytree/src/cover.js.map +1 -0
  229. package/lib/node_modules/d3-binarytree/src/data.js +10 -0
  230. package/lib/node_modules/d3-binarytree/src/data.js.map +1 -0
  231. package/lib/node_modules/d3-binarytree/src/extent.js +8 -0
  232. package/lib/node_modules/d3-binarytree/src/extent.js.map +1 -0
  233. package/lib/node_modules/d3-binarytree/src/find.js +61 -0
  234. package/lib/node_modules/d3-binarytree/src/find.js.map +1 -0
  235. package/lib/node_modules/d3-binarytree/src/half.js +8 -0
  236. package/lib/node_modules/d3-binarytree/src/half.js.map +1 -0
  237. package/lib/node_modules/d3-binarytree/src/remove.js +59 -0
  238. package/lib/node_modules/d3-binarytree/src/remove.js.map +1 -0
  239. package/lib/node_modules/d3-binarytree/src/root.js +6 -0
  240. package/lib/node_modules/d3-binarytree/src/root.js.map +1 -0
  241. package/lib/node_modules/d3-binarytree/src/size.js +10 -0
  242. package/lib/node_modules/d3-binarytree/src/size.js.map +1 -0
  243. package/lib/node_modules/d3-binarytree/src/visit.js +17 -0
  244. package/lib/node_modules/d3-binarytree/src/visit.js.map +1 -0
  245. package/lib/node_modules/d3-binarytree/src/visitAfter.js +22 -0
  246. package/lib/node_modules/d3-binarytree/src/visitAfter.js.map +1 -0
  247. package/lib/node_modules/d3-binarytree/src/x.js +10 -0
  248. package/lib/node_modules/d3-binarytree/src/x.js.map +1 -0
  249. package/lib/node_modules/d3-dispatch/src/dispatch.js +85 -0
  250. package/lib/node_modules/d3-dispatch/src/dispatch.js.map +1 -0
  251. package/lib/node_modules/d3-force/src/center.js +43 -0
  252. package/lib/node_modules/d3-force/src/center.js.map +1 -0
  253. package/lib/node_modules/d3-force/src/collide.js +103 -0
  254. package/lib/node_modules/d3-force/src/collide.js.map +1 -0
  255. package/lib/node_modules/d3-force/src/constant.js +8 -0
  256. package/lib/node_modules/d3-force/src/constant.js.map +1 -0
  257. package/lib/node_modules/d3-force/src/jiggle.js +6 -0
  258. package/lib/node_modules/d3-force/src/jiggle.js.map +1 -0
  259. package/lib/node_modules/d3-force/src/lcg.js +12 -0
  260. package/lib/node_modules/d3-force/src/lcg.js.map +1 -0
  261. package/lib/node_modules/d3-force/src/link.js +120 -0
  262. package/lib/node_modules/d3-force/src/link.js.map +1 -0
  263. package/lib/node_modules/d3-force/src/manyBody.js +119 -0
  264. package/lib/node_modules/d3-force/src/manyBody.js.map +1 -0
  265. package/lib/node_modules/d3-force/src/radial.js +60 -0
  266. package/lib/node_modules/d3-force/src/radial.js.map +1 -0
  267. package/lib/node_modules/d3-force/src/simulation.js +159 -0
  268. package/lib/node_modules/d3-force/src/simulation.js.map +1 -0
  269. package/lib/node_modules/d3-force/src/x.js +44 -0
  270. package/lib/node_modules/d3-force/src/x.js.map +1 -0
  271. package/lib/node_modules/d3-force/src/y.js +44 -0
  272. package/lib/node_modules/d3-force/src/y.js.map +1 -0
  273. package/lib/node_modules/d3-force-3d/src/center.js +52 -0
  274. package/lib/node_modules/d3-force-3d/src/center.js.map +1 -0
  275. package/lib/node_modules/d3-force-3d/src/collide.js +135 -0
  276. package/lib/node_modules/d3-force-3d/src/collide.js.map +1 -0
  277. package/lib/node_modules/d3-force-3d/src/constant.js +8 -0
  278. package/lib/node_modules/d3-force-3d/src/constant.js.map +1 -0
  279. package/lib/node_modules/d3-force-3d/src/jiggle.js +6 -0
  280. package/lib/node_modules/d3-force-3d/src/jiggle.js.map +1 -0
  281. package/lib/node_modules/d3-force-3d/src/lcg.js +12 -0
  282. package/lib/node_modules/d3-force-3d/src/lcg.js.map +1 -0
  283. package/lib/node_modules/d3-force-3d/src/link.js +127 -0
  284. package/lib/node_modules/d3-force-3d/src/link.js.map +1 -0
  285. package/lib/node_modules/d3-force-3d/src/manyBody.js +142 -0
  286. package/lib/node_modules/d3-force-3d/src/manyBody.js.map +1 -0
  287. package/lib/node_modules/d3-force-3d/src/radial.js +70 -0
  288. package/lib/node_modules/d3-force-3d/src/radial.js.map +1 -0
  289. package/lib/node_modules/d3-force-3d/src/simulation.js +202 -0
  290. package/lib/node_modules/d3-force-3d/src/simulation.js.map +1 -0
  291. package/lib/node_modules/d3-force-3d/src/x.js +44 -0
  292. package/lib/node_modules/d3-force-3d/src/x.js.map +1 -0
  293. package/lib/node_modules/d3-force-3d/src/y.js +44 -0
  294. package/lib/node_modules/d3-force-3d/src/y.js.map +1 -0
  295. package/lib/node_modules/d3-force-3d/src/z.js +44 -0
  296. package/lib/node_modules/d3-force-3d/src/z.js.map +1 -0
  297. package/lib/node_modules/d3-octree/src/add.js +101 -0
  298. package/lib/node_modules/d3-octree/src/add.js.map +1 -0
  299. package/lib/node_modules/d3-octree/src/cover.js +55 -0
  300. package/lib/node_modules/d3-octree/src/cover.js.map +1 -0
  301. package/lib/node_modules/d3-octree/src/data.js +10 -0
  302. package/lib/node_modules/d3-octree/src/data.js.map +1 -0
  303. package/lib/node_modules/d3-octree/src/extent.js +8 -0
  304. package/lib/node_modules/d3-octree/src/extent.js.map +1 -0
  305. package/lib/node_modules/d3-octree/src/find.js +85 -0
  306. package/lib/node_modules/d3-octree/src/find.js.map +1 -0
  307. package/lib/node_modules/d3-octree/src/findAll.js +29 -0
  308. package/lib/node_modules/d3-octree/src/findAll.js.map +1 -0
  309. package/lib/node_modules/d3-octree/src/octant.js +12 -0
  310. package/lib/node_modules/d3-octree/src/octant.js.map +1 -0
  311. package/lib/node_modules/d3-octree/src/octree.js +83 -0
  312. package/lib/node_modules/d3-octree/src/octree.js.map +1 -0
  313. package/lib/node_modules/d3-octree/src/remove.js +71 -0
  314. package/lib/node_modules/d3-octree/src/remove.js.map +1 -0
  315. package/lib/node_modules/d3-octree/src/root.js +6 -0
  316. package/lib/node_modules/d3-octree/src/root.js.map +1 -0
  317. package/lib/node_modules/d3-octree/src/size.js +10 -0
  318. package/lib/node_modules/d3-octree/src/size.js.map +1 -0
  319. package/lib/node_modules/d3-octree/src/visit.js +23 -0
  320. package/lib/node_modules/d3-octree/src/visit.js.map +1 -0
  321. package/lib/node_modules/d3-octree/src/visitAfter.js +28 -0
  322. package/lib/node_modules/d3-octree/src/visitAfter.js.map +1 -0
  323. package/lib/node_modules/d3-octree/src/x.js +10 -0
  324. package/lib/node_modules/d3-octree/src/x.js.map +1 -0
  325. package/lib/node_modules/d3-octree/src/y.js +10 -0
  326. package/lib/node_modules/d3-octree/src/y.js.map +1 -0
  327. package/lib/node_modules/d3-octree/src/z.js +10 -0
  328. package/lib/node_modules/d3-octree/src/z.js.map +1 -0
  329. package/lib/node_modules/d3-quadtree/src/add.js +87 -0
  330. package/lib/node_modules/d3-quadtree/src/add.js.map +1 -0
  331. package/lib/node_modules/d3-quadtree/src/cover.js +46 -0
  332. package/lib/node_modules/d3-quadtree/src/cover.js.map +1 -0
  333. package/lib/node_modules/d3-quadtree/src/data.js +10 -0
  334. package/lib/node_modules/d3-quadtree/src/data.js.map +1 -0
  335. package/lib/node_modules/d3-quadtree/src/extent.js +8 -0
  336. package/lib/node_modules/d3-quadtree/src/extent.js.map +1 -0
  337. package/lib/node_modules/d3-quadtree/src/find.js +73 -0
  338. package/lib/node_modules/d3-quadtree/src/find.js.map +1 -0
  339. package/lib/node_modules/d3-quadtree/src/quad.js +10 -0
  340. package/lib/node_modules/d3-quadtree/src/quad.js.map +1 -0
  341. package/lib/node_modules/d3-quadtree/src/quadtree.js +76 -0
  342. package/lib/node_modules/d3-quadtree/src/quadtree.js.map +1 -0
  343. package/lib/node_modules/d3-quadtree/src/remove.js +65 -0
  344. package/lib/node_modules/d3-quadtree/src/remove.js.map +1 -0
  345. package/lib/node_modules/d3-quadtree/src/root.js +6 -0
  346. package/lib/node_modules/d3-quadtree/src/root.js.map +1 -0
  347. package/lib/node_modules/d3-quadtree/src/size.js +10 -0
  348. package/lib/node_modules/d3-quadtree/src/size.js.map +1 -0
  349. package/lib/node_modules/d3-quadtree/src/visit.js +19 -0
  350. package/lib/node_modules/d3-quadtree/src/visit.js.map +1 -0
  351. package/lib/node_modules/d3-quadtree/src/visitAfter.js +24 -0
  352. package/lib/node_modules/d3-quadtree/src/visitAfter.js.map +1 -0
  353. package/lib/node_modules/d3-quadtree/src/x.js +10 -0
  354. package/lib/node_modules/d3-quadtree/src/x.js.map +1 -0
  355. package/lib/node_modules/d3-quadtree/src/y.js +10 -0
  356. package/lib/node_modules/d3-quadtree/src/y.js.map +1 -0
  357. package/lib/node_modules/d3-timer/src/timer.js +113 -0
  358. package/lib/node_modules/d3-timer/src/timer.js.map +1 -0
  359. package/lib/node_modules/dagre/index.js +50 -0
  360. package/lib/node_modules/dagre/index.js.map +1 -0
  361. package/lib/node_modules/dagre/lib/acyclic.js +80 -0
  362. package/lib/node_modules/dagre/lib/acyclic.js.map +1 -0
  363. package/lib/node_modules/dagre/lib/add-border-segments.js +52 -0
  364. package/lib/node_modules/dagre/lib/add-border-segments.js.map +1 -0
  365. package/lib/node_modules/dagre/lib/coordinate-system.js +84 -0
  366. package/lib/node_modules/dagre/lib/coordinate-system.js.map +1 -0
  367. package/lib/node_modules/dagre/lib/data/list.js +67 -0
  368. package/lib/node_modules/dagre/lib/data/list.js.map +1 -0
  369. package/lib/node_modules/dagre/lib/debug.js +49 -0
  370. package/lib/node_modules/dagre/lib/debug.js.map +1 -0
  371. package/lib/node_modules/dagre/lib/graphlib.js +31 -0
  372. package/lib/node_modules/dagre/lib/graphlib.js.map +1 -0
  373. package/lib/node_modules/dagre/lib/greedy-fas.js +133 -0
  374. package/lib/node_modules/dagre/lib/greedy-fas.js.map +1 -0
  375. package/lib/node_modules/dagre/lib/layout.js +415 -0
  376. package/lib/node_modules/dagre/lib/layout.js.map +1 -0
  377. package/lib/node_modules/dagre/lib/lodash.js +83 -0
  378. package/lib/node_modules/dagre/lib/lodash.js.map +1 -0
  379. package/lib/node_modules/dagre/lib/nesting-graph.js +146 -0
  380. package/lib/node_modules/dagre/lib/nesting-graph.js.map +1 -0
  381. package/lib/node_modules/dagre/lib/normalize.js +103 -0
  382. package/lib/node_modules/dagre/lib/normalize.js.map +1 -0
  383. package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js +66 -0
  384. package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +1 -0
  385. package/lib/node_modules/dagre/lib/order/barycenter.js +40 -0
  386. package/lib/node_modules/dagre/lib/order/barycenter.js.map +1 -0
  387. package/lib/node_modules/dagre/lib/order/build-layer-graph.js +87 -0
  388. package/lib/node_modules/dagre/lib/order/build-layer-graph.js.map +1 -0
  389. package/lib/node_modules/dagre/lib/order/cross-count.js +79 -0
  390. package/lib/node_modules/dagre/lib/order/cross-count.js.map +1 -0
  391. package/lib/node_modules/dagre/lib/order/index.js +98 -0
  392. package/lib/node_modules/dagre/lib/order/index.js.map +1 -0
  393. package/lib/node_modules/dagre/lib/order/init-order.js +50 -0
  394. package/lib/node_modules/dagre/lib/order/init-order.js.map +1 -0
  395. package/lib/node_modules/dagre/lib/order/resolve-conflicts.js +134 -0
  396. package/lib/node_modules/dagre/lib/order/resolve-conflicts.js.map +1 -0
  397. package/lib/node_modules/dagre/lib/order/sort-subgraph.js +92 -0
  398. package/lib/node_modules/dagre/lib/order/sort-subgraph.js.map +1 -0
  399. package/lib/node_modules/dagre/lib/order/sort.js +71 -0
  400. package/lib/node_modules/dagre/lib/order/sort.js.map +1 -0
  401. package/lib/node_modules/dagre/lib/parent-dummy-chains.js +99 -0
  402. package/lib/node_modules/dagre/lib/parent-dummy-chains.js.map +1 -0
  403. package/lib/node_modules/dagre/lib/position/bk.js +433 -0
  404. package/lib/node_modules/dagre/lib/position/bk.js.map +1 -0
  405. package/lib/node_modules/dagre/lib/position/index.js +43 -0
  406. package/lib/node_modules/dagre/lib/position/index.js.map +1 -0
  407. package/lib/node_modules/dagre/lib/rank/feasible-tree.js +103 -0
  408. package/lib/node_modules/dagre/lib/rank/feasible-tree.js.map +1 -0
  409. package/lib/node_modules/dagre/lib/rank/index.js +62 -0
  410. package/lib/node_modules/dagre/lib/rank/index.js.map +1 -0
  411. package/lib/node_modules/dagre/lib/rank/network-simplex.js +250 -0
  412. package/lib/node_modules/dagre/lib/rank/network-simplex.js.map +1 -0
  413. package/lib/node_modules/dagre/lib/rank/util.js +75 -0
  414. package/lib/node_modules/dagre/lib/rank/util.js.map +1 -0
  415. package/lib/node_modules/dagre/lib/util.js +251 -0
  416. package/lib/node_modules/dagre/lib/util.js.map +1 -0
  417. package/lib/node_modules/dagre/lib/version.js +12 -0
  418. package/lib/node_modules/dagre/lib/version.js.map +1 -0
  419. package/lib/node_modules/graphlib/index.js +53 -0
  420. package/lib/node_modules/graphlib/index.js.map +1 -0
  421. package/lib/node_modules/graphlib/lib/alg/components.js +40 -0
  422. package/lib/node_modules/graphlib/lib/alg/components.js.map +1 -0
  423. package/lib/node_modules/graphlib/lib/alg/dfs.js +55 -0
  424. package/lib/node_modules/graphlib/lib/alg/dfs.js.map +1 -0
  425. package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js +24 -0
  426. package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js.map +1 -0
  427. package/lib/node_modules/graphlib/lib/alg/dijkstra.js +68 -0
  428. package/lib/node_modules/graphlib/lib/alg/dijkstra.js.map +1 -0
  429. package/lib/node_modules/graphlib/lib/alg/find-cycles.js +24 -0
  430. package/lib/node_modules/graphlib/lib/alg/find-cycles.js.map +1 -0
  431. package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js +63 -0
  432. package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js.map +1 -0
  433. package/lib/node_modules/graphlib/lib/alg/index.js +36 -0
  434. package/lib/node_modules/graphlib/lib/alg/index.js.map +1 -0
  435. package/lib/node_modules/graphlib/lib/alg/is-acyclic.js +28 -0
  436. package/lib/node_modules/graphlib/lib/alg/is-acyclic.js.map +1 -0
  437. package/lib/node_modules/graphlib/lib/alg/postorder.js +20 -0
  438. package/lib/node_modules/graphlib/lib/alg/postorder.js.map +1 -0
  439. package/lib/node_modules/graphlib/lib/alg/preorder.js +20 -0
  440. package/lib/node_modules/graphlib/lib/alg/preorder.js.map +1 -0
  441. package/lib/node_modules/graphlib/lib/alg/prim.js +67 -0
  442. package/lib/node_modules/graphlib/lib/alg/prim.js.map +1 -0
  443. package/lib/node_modules/graphlib/lib/alg/tarjan.js +60 -0
  444. package/lib/node_modules/graphlib/lib/alg/tarjan.js.map +1 -0
  445. package/lib/node_modules/graphlib/lib/alg/topsort.js +48 -0
  446. package/lib/node_modules/graphlib/lib/alg/topsort.js.map +1 -0
  447. package/lib/node_modules/graphlib/lib/data/priority-queue.js +165 -0
  448. package/lib/node_modules/graphlib/lib/data/priority-queue.js.map +1 -0
  449. package/lib/node_modules/graphlib/lib/graph.js +544 -0
  450. package/lib/node_modules/graphlib/lib/graph.js.map +1 -0
  451. package/lib/node_modules/graphlib/lib/index.js +19 -0
  452. package/lib/node_modules/graphlib/lib/index.js.map +1 -0
  453. package/lib/node_modules/graphlib/lib/json.js +80 -0
  454. package/lib/node_modules/graphlib/lib/json.js.map +1 -0
  455. package/lib/node_modules/graphlib/lib/lodash.js +63 -0
  456. package/lib/node_modules/graphlib/lib/lodash.js.map +1 -0
  457. package/lib/node_modules/graphlib/lib/version.js +12 -0
  458. package/lib/node_modules/graphlib/lib/version.js.map +1 -0
  459. package/lib/node_modules/is-any-array/lib-esm/index.js +15 -0
  460. package/lib/node_modules/is-any-array/lib-esm/index.js.map +1 -0
  461. package/lib/node_modules/lodash/_DataView.js +21 -0
  462. package/lib/node_modules/lodash/_DataView.js.map +1 -0
  463. package/lib/node_modules/lodash/_Hash.js +49 -0
  464. package/lib/node_modules/lodash/_Hash.js.map +1 -0
  465. package/lib/node_modules/lodash/_ListCache.js +49 -0
  466. package/lib/node_modules/lodash/_ListCache.js.map +1 -0
  467. package/lib/node_modules/lodash/_Map.js +21 -0
  468. package/lib/node_modules/lodash/_Map.js.map +1 -0
  469. package/lib/node_modules/lodash/_MapCache.js +49 -0
  470. package/lib/node_modules/lodash/_MapCache.js.map +1 -0
  471. package/lib/node_modules/lodash/_Promise.js +21 -0
  472. package/lib/node_modules/lodash/_Promise.js.map +1 -0
  473. package/lib/node_modules/lodash/_Set.js +21 -0
  474. package/lib/node_modules/lodash/_Set.js.map +1 -0
  475. package/lib/node_modules/lodash/_SetCache.js +42 -0
  476. package/lib/node_modules/lodash/_SetCache.js.map +1 -0
  477. package/lib/node_modules/lodash/_Stack.js +45 -0
  478. package/lib/node_modules/lodash/_Stack.js.map +1 -0
  479. package/lib/node_modules/lodash/_Symbol.js +19 -0
  480. package/lib/node_modules/lodash/_Symbol.js.map +1 -0
  481. package/lib/node_modules/lodash/_Uint8Array.js +19 -0
  482. package/lib/node_modules/lodash/_Uint8Array.js.map +1 -0
  483. package/lib/node_modules/lodash/_WeakMap.js +21 -0
  484. package/lib/node_modules/lodash/_WeakMap.js.map +1 -0
  485. package/lib/node_modules/lodash/_apply.js +33 -0
  486. package/lib/node_modules/lodash/_apply.js.map +1 -0
  487. package/lib/node_modules/lodash/_arrayEach.js +34 -0
  488. package/lib/node_modules/lodash/_arrayEach.js.map +1 -0
  489. package/lib/node_modules/lodash/_arrayFilter.js +37 -0
  490. package/lib/node_modules/lodash/_arrayFilter.js.map +1 -0
  491. package/lib/node_modules/lodash/_arrayIncludes.js +30 -0
  492. package/lib/node_modules/lodash/_arrayIncludes.js.map +1 -0
  493. package/lib/node_modules/lodash/_arrayIncludesWith.js +34 -0
  494. package/lib/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
  495. package/lib/node_modules/lodash/_arrayLikeKeys.js +67 -0
  496. package/lib/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
  497. package/lib/node_modules/lodash/_arrayMap.js +33 -0
  498. package/lib/node_modules/lodash/_arrayMap.js.map +1 -0
  499. package/lib/node_modules/lodash/_arrayPush.js +32 -0
  500. package/lib/node_modules/lodash/_arrayPush.js.map +1 -0
  501. package/lib/node_modules/lodash/_arrayReduce.js +38 -0
  502. package/lib/node_modules/lodash/_arrayReduce.js.map +1 -0
  503. package/lib/node_modules/lodash/_arraySome.js +35 -0
  504. package/lib/node_modules/lodash/_arraySome.js.map +1 -0
  505. package/lib/node_modules/lodash/_asciiSize.js +25 -0
  506. package/lib/node_modules/lodash/_asciiSize.js.map +1 -0
  507. package/lib/node_modules/lodash/_assignMergeValue.js +34 -0
  508. package/lib/node_modules/lodash/_assignMergeValue.js.map +1 -0
  509. package/lib/node_modules/lodash/_assignValue.js +42 -0
  510. package/lib/node_modules/lodash/_assignValue.js.map +1 -0
  511. package/lib/node_modules/lodash/_assocIndexOf.js +34 -0
  512. package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
  513. package/lib/node_modules/lodash/_baseAssign.js +31 -0
  514. package/lib/node_modules/lodash/_baseAssign.js.map +1 -0
  515. package/lib/node_modules/lodash/_baseAssignIn.js +31 -0
  516. package/lib/node_modules/lodash/_baseAssignIn.js.map +1 -0
  517. package/lib/node_modules/lodash/_baseAssignValue.js +38 -0
  518. package/lib/node_modules/lodash/_baseAssignValue.js.map +1 -0
  519. package/lib/node_modules/lodash/_baseClone.js +200 -0
  520. package/lib/node_modules/lodash/_baseClone.js.map +1 -0
  521. package/lib/node_modules/lodash/_baseCreate.js +43 -0
  522. package/lib/node_modules/lodash/_baseCreate.js.map +1 -0
  523. package/lib/node_modules/lodash/_baseEach.js +28 -0
  524. package/lib/node_modules/lodash/_baseEach.js.map +1 -0
  525. package/lib/node_modules/lodash/_baseExtremum.js +45 -0
  526. package/lib/node_modules/lodash/_baseExtremum.js.map +1 -0
  527. package/lib/node_modules/lodash/_baseFilter.js +34 -0
  528. package/lib/node_modules/lodash/_baseFilter.js.map +1 -0
  529. package/lib/node_modules/lodash/_baseFindIndex.js +36 -0
  530. package/lib/node_modules/lodash/_baseFindIndex.js.map +1 -0
  531. package/lib/node_modules/lodash/_baseFlatten.js +52 -0
  532. package/lib/node_modules/lodash/_baseFlatten.js.map +1 -0
  533. package/lib/node_modules/lodash/_baseFor.js +29 -0
  534. package/lib/node_modules/lodash/_baseFor.js.map +1 -0
  535. package/lib/node_modules/lodash/_baseForOwn.js +30 -0
  536. package/lib/node_modules/lodash/_baseForOwn.js.map +1 -0
  537. package/lib/node_modules/lodash/_baseGet.js +38 -0
  538. package/lib/node_modules/lodash/_baseGet.js.map +1 -0
  539. package/lib/node_modules/lodash/_baseGetAllKeys.js +34 -0
  540. package/lib/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
  541. package/lib/node_modules/lodash/_baseGetTag.js +43 -0
  542. package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
  543. package/lib/node_modules/lodash/_baseGt.js +26 -0
  544. package/lib/node_modules/lodash/_baseGt.js.map +1 -0
  545. package/lib/node_modules/lodash/_baseHas.js +31 -0
  546. package/lib/node_modules/lodash/_baseHas.js.map +1 -0
  547. package/lib/node_modules/lodash/_baseHasIn.js +25 -0
  548. package/lib/node_modules/lodash/_baseHasIn.js.map +1 -0
  549. package/lib/node_modules/lodash/_baseIndexOf.js +35 -0
  550. package/lib/node_modules/lodash/_baseIndexOf.js.map +1 -0
  551. package/lib/node_modules/lodash/_baseIsArguments.js +32 -0
  552. package/lib/node_modules/lodash/_baseIsArguments.js.map +1 -0
  553. package/lib/node_modules/lodash/_baseIsEqual.js +42 -0
  554. package/lib/node_modules/lodash/_baseIsEqual.js.map +1 -0
  555. package/lib/node_modules/lodash/_baseIsEqualDeep.js +103 -0
  556. package/lib/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
  557. package/lib/node_modules/lodash/_baseIsMap.js +32 -0
  558. package/lib/node_modules/lodash/_baseIsMap.js.map +1 -0
  559. package/lib/node_modules/lodash/_baseIsMatch.js +76 -0
  560. package/lib/node_modules/lodash/_baseIsMatch.js.map +1 -0
  561. package/lib/node_modules/lodash/_baseIsNaN.js +24 -0
  562. package/lib/node_modules/lodash/_baseIsNaN.js.map +1 -0
  563. package/lib/node_modules/lodash/_baseIsNative.js +63 -0
  564. package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
  565. package/lib/node_modules/lodash/_baseIsSet.js +32 -0
  566. package/lib/node_modules/lodash/_baseIsSet.js.map +1 -0
  567. package/lib/node_modules/lodash/_baseIsTypedArray.js +75 -0
  568. package/lib/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
  569. package/lib/node_modules/lodash/_baseIteratee.js +48 -0
  570. package/lib/node_modules/lodash/_baseIteratee.js.map +1 -0
  571. package/lib/node_modules/lodash/_baseKeys.js +44 -0
  572. package/lib/node_modules/lodash/_baseKeys.js.map +1 -0
  573. package/lib/node_modules/lodash/_baseKeysIn.js +48 -0
  574. package/lib/node_modules/lodash/_baseKeysIn.js.map +1 -0
  575. package/lib/node_modules/lodash/_baseLt.js +26 -0
  576. package/lib/node_modules/lodash/_baseLt.js.map +1 -0
  577. package/lib/node_modules/lodash/_baseMap.js +36 -0
  578. package/lib/node_modules/lodash/_baseMap.js.map +1 -0
  579. package/lib/node_modules/lodash/_baseMatches.js +37 -0
  580. package/lib/node_modules/lodash/_baseMatches.js.map +1 -0
  581. package/lib/node_modules/lodash/_baseMatchesProperty.js +52 -0
  582. package/lib/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
  583. package/lib/node_modules/lodash/_baseMerge.js +61 -0
  584. package/lib/node_modules/lodash/_baseMerge.js.map +1 -0
  585. package/lib/node_modules/lodash/_baseMergeDeep.js +121 -0
  586. package/lib/node_modules/lodash/_baseMergeDeep.js.map +1 -0
  587. package/lib/node_modules/lodash/_baseOrderBy.js +70 -0
  588. package/lib/node_modules/lodash/_baseOrderBy.js.map +1 -0
  589. package/lib/node_modules/lodash/_basePick.js +33 -0
  590. package/lib/node_modules/lodash/_basePick.js.map +1 -0
  591. package/lib/node_modules/lodash/_basePickBy.js +45 -0
  592. package/lib/node_modules/lodash/_basePickBy.js.map +1 -0
  593. package/lib/node_modules/lodash/_baseProperty.js +26 -0
  594. package/lib/node_modules/lodash/_baseProperty.js.map +1 -0
  595. package/lib/node_modules/lodash/_basePropertyDeep.js +29 -0
  596. package/lib/node_modules/lodash/_basePropertyDeep.js.map +1 -0
  597. package/lib/node_modules/lodash/_baseRange.js +40 -0
  598. package/lib/node_modules/lodash/_baseRange.js.map +1 -0
  599. package/lib/node_modules/lodash/_baseReduce.js +35 -0
  600. package/lib/node_modules/lodash/_baseReduce.js.map +1 -0
  601. package/lib/node_modules/lodash/_baseRest.js +32 -0
  602. package/lib/node_modules/lodash/_baseRest.js.map +1 -0
  603. package/lib/node_modules/lodash/_baseSet.js +68 -0
  604. package/lib/node_modules/lodash/_baseSet.js.map +1 -0
  605. package/lib/node_modules/lodash/_baseSetToString.js +37 -0
  606. package/lib/node_modules/lodash/_baseSetToString.js.map +1 -0
  607. package/lib/node_modules/lodash/_baseSortBy.js +33 -0
  608. package/lib/node_modules/lodash/_baseSortBy.js.map +1 -0
  609. package/lib/node_modules/lodash/_baseTimes.js +32 -0
  610. package/lib/node_modules/lodash/_baseTimes.js.map +1 -0
  611. package/lib/node_modules/lodash/_baseToString.js +50 -0
  612. package/lib/node_modules/lodash/_baseToString.js.map +1 -0
  613. package/lib/node_modules/lodash/_baseTrim.js +32 -0
  614. package/lib/node_modules/lodash/_baseTrim.js.map +1 -0
  615. package/lib/node_modules/lodash/_baseUnary.js +26 -0
  616. package/lib/node_modules/lodash/_baseUnary.js.map +1 -0
  617. package/lib/node_modules/lodash/_baseUniq.js +90 -0
  618. package/lib/node_modules/lodash/_baseUniq.js.map +1 -0
  619. package/lib/node_modules/lodash/_baseValues.js +32 -0
  620. package/lib/node_modules/lodash/_baseValues.js.map +1 -0
  621. package/lib/node_modules/lodash/_baseZipObject.js +35 -0
  622. package/lib/node_modules/lodash/_baseZipObject.js.map +1 -0
  623. package/lib/node_modules/lodash/_cacheHas.js +25 -0
  624. package/lib/node_modules/lodash/_cacheHas.js.map +1 -0
  625. package/lib/node_modules/lodash/_castFunction.js +27 -0
  626. package/lib/node_modules/lodash/_castFunction.js.map +1 -0
  627. package/lib/node_modules/lodash/_castPath.js +37 -0
  628. package/lib/node_modules/lodash/_castPath.js.map +1 -0
  629. package/lib/node_modules/lodash/_cloneArrayBuffer.js +29 -0
  630. package/lib/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  631. package/lib/node_modules/lodash/_cloneBuffer.js +52 -0
  632. package/lib/node_modules/lodash/_cloneBuffer.js.map +1 -0
  633. package/lib/node_modules/lodash/_cloneDataView.js +29 -0
  634. package/lib/node_modules/lodash/_cloneDataView.js.map +1 -0
  635. package/lib/node_modules/lodash/_cloneRegExp.js +29 -0
  636. package/lib/node_modules/lodash/_cloneRegExp.js.map +1 -0
  637. package/lib/node_modules/lodash/_cloneSymbol.js +31 -0
  638. package/lib/node_modules/lodash/_cloneSymbol.js.map +1 -0
  639. package/lib/node_modules/lodash/_cloneTypedArray.js +29 -0
  640. package/lib/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  641. package/lib/node_modules/lodash/_compareAscending.js +54 -0
  642. package/lib/node_modules/lodash/_compareAscending.js.map +1 -0
  643. package/lib/node_modules/lodash/_compareMultiple.js +57 -0
  644. package/lib/node_modules/lodash/_compareMultiple.js.map +1 -0
  645. package/lib/node_modules/lodash/_copyArray.js +32 -0
  646. package/lib/node_modules/lodash/_copyArray.js.map +1 -0
  647. package/lib/node_modules/lodash/_copyObject.js +54 -0
  648. package/lib/node_modules/lodash/_copyObject.js.map +1 -0
  649. package/lib/node_modules/lodash/_copySymbols.js +30 -0
  650. package/lib/node_modules/lodash/_copySymbols.js.map +1 -0
  651. package/lib/node_modules/lodash/_copySymbolsIn.js +30 -0
  652. package/lib/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  653. package/lib/node_modules/lodash/_coreJsData.js +19 -0
  654. package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
  655. package/lib/node_modules/lodash/_createAssigner.js +51 -0
  656. package/lib/node_modules/lodash/_createAssigner.js.map +1 -0
  657. package/lib/node_modules/lodash/_createBaseEach.js +45 -0
  658. package/lib/node_modules/lodash/_createBaseEach.js.map +1 -0
  659. package/lib/node_modules/lodash/_createBaseFor.js +37 -0
  660. package/lib/node_modules/lodash/_createBaseFor.js.map +1 -0
  661. package/lib/node_modules/lodash/_createFind.js +40 -0
  662. package/lib/node_modules/lodash/_createFind.js.map +1 -0
  663. package/lib/node_modules/lodash/_createRange.js +45 -0
  664. package/lib/node_modules/lodash/_createRange.js.map +1 -0
  665. package/lib/node_modules/lodash/_createSet.js +34 -0
  666. package/lib/node_modules/lodash/_createSet.js.map +1 -0
  667. package/lib/node_modules/lodash/_defineProperty.js +24 -0
  668. package/lib/node_modules/lodash/_defineProperty.js.map +1 -0
  669. package/lib/node_modules/lodash/_equalArrays.js +99 -0
  670. package/lib/node_modules/lodash/_equalArrays.js.map +1 -0
  671. package/lib/node_modules/lodash/_equalByTag.js +130 -0
  672. package/lib/node_modules/lodash/_equalByTag.js.map +1 -0
  673. package/lib/node_modules/lodash/_equalObjects.js +103 -0
  674. package/lib/node_modules/lodash/_equalObjects.js.map +1 -0
  675. package/lib/node_modules/lodash/_flatRest.js +31 -0
  676. package/lib/node_modules/lodash/_flatRest.js.map +1 -0
  677. package/lib/node_modules/lodash/_freeGlobal.js +18 -0
  678. package/lib/node_modules/lodash/_freeGlobal.js.map +1 -0
  679. package/lib/node_modules/lodash/_getAllKeys.js +31 -0
  680. package/lib/node_modules/lodash/_getAllKeys.js.map +1 -0
  681. package/lib/node_modules/lodash/_getAllKeysIn.js +32 -0
  682. package/lib/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  683. package/lib/node_modules/lodash/_getMapData.js +31 -0
  684. package/lib/node_modules/lodash/_getMapData.js.map +1 -0
  685. package/lib/node_modules/lodash/_getMatchData.js +38 -0
  686. package/lib/node_modules/lodash/_getMatchData.js.map +1 -0
  687. package/lib/node_modules/lodash/_getNative.js +31 -0
  688. package/lib/node_modules/lodash/_getNative.js.map +1 -0
  689. package/lib/node_modules/lodash/_getPrototype.js +19 -0
  690. package/lib/node_modules/lodash/_getPrototype.js.map +1 -0
  691. package/lib/node_modules/lodash/_getRawTag.js +59 -0
  692. package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
  693. package/lib/node_modules/lodash/_getSymbols.js +44 -0
  694. package/lib/node_modules/lodash/_getSymbols.js.map +1 -0
  695. package/lib/node_modules/lodash/_getSymbolsIn.js +41 -0
  696. package/lib/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  697. package/lib/node_modules/lodash/_getTag.js +77 -0
  698. package/lib/node_modules/lodash/_getTag.js.map +1 -0
  699. package/lib/node_modules/lodash/_getValue.js +25 -0
  700. package/lib/node_modules/lodash/_getValue.js.map +1 -0
  701. package/lib/node_modules/lodash/_hasPath.js +57 -0
  702. package/lib/node_modules/lodash/_hasPath.js.map +1 -0
  703. package/lib/node_modules/lodash/_hasUnicode.js +38 -0
  704. package/lib/node_modules/lodash/_hasUnicode.js.map +1 -0
  705. package/lib/node_modules/lodash/_hashClear.js +28 -0
  706. package/lib/node_modules/lodash/_hashClear.js.map +1 -0
  707. package/lib/node_modules/lodash/_hashDelete.js +29 -0
  708. package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
  709. package/lib/node_modules/lodash/_hashGet.js +43 -0
  710. package/lib/node_modules/lodash/_hashGet.js.map +1 -0
  711. package/lib/node_modules/lodash/_hashHas.js +36 -0
  712. package/lib/node_modules/lodash/_hashHas.js.map +1 -0
  713. package/lib/node_modules/lodash/_hashSet.js +36 -0
  714. package/lib/node_modules/lodash/_hashSet.js.map +1 -0
  715. package/lib/node_modules/lodash/_initCloneArray.js +38 -0
  716. package/lib/node_modules/lodash/_initCloneArray.js.map +1 -0
  717. package/lib/node_modules/lodash/_initCloneByTag.js +94 -0
  718. package/lib/node_modules/lodash/_initCloneByTag.js.map +1 -0
  719. package/lib/node_modules/lodash/_initCloneObject.js +33 -0
  720. package/lib/node_modules/lodash/_initCloneObject.js.map +1 -0
  721. package/lib/node_modules/lodash/_isFlattenable.js +35 -0
  722. package/lib/node_modules/lodash/_isFlattenable.js.map +1 -0
  723. package/lib/node_modules/lodash/_isIndex.js +37 -0
  724. package/lib/node_modules/lodash/_isIndex.js.map +1 -0
  725. package/lib/node_modules/lodash/_isIterateeCall.js +46 -0
  726. package/lib/node_modules/lodash/_isIterateeCall.js.map +1 -0
  727. package/lib/node_modules/lodash/_isKey.js +43 -0
  728. package/lib/node_modules/lodash/_isKey.js.map +1 -0
  729. package/lib/node_modules/lodash/_isKeyable.js +27 -0
  730. package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
  731. package/lib/node_modules/lodash/_isMasked.js +33 -0
  732. package/lib/node_modules/lodash/_isMasked.js.map +1 -0
  733. package/lib/node_modules/lodash/_isPrototype.js +30 -0
  734. package/lib/node_modules/lodash/_isPrototype.js.map +1 -0
  735. package/lib/node_modules/lodash/_isStrictComparable.js +28 -0
  736. package/lib/node_modules/lodash/_isStrictComparable.js.map +1 -0
  737. package/lib/node_modules/lodash/_listCacheClear.js +25 -0
  738. package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
  739. package/lib/node_modules/lodash/_listCacheDelete.js +48 -0
  740. package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
  741. package/lib/node_modules/lodash/_listCacheGet.js +32 -0
  742. package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
  743. package/lib/node_modules/lodash/_listCacheHas.js +29 -0
  744. package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
  745. package/lib/node_modules/lodash/_listCacheSet.js +39 -0
  746. package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
  747. package/lib/node_modules/lodash/_mapCacheClear.js +36 -0
  748. package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
  749. package/lib/node_modules/lodash/_mapCacheDelete.js +31 -0
  750. package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
  751. package/lib/node_modules/lodash/_mapCacheGet.js +29 -0
  752. package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
  753. package/lib/node_modules/lodash/_mapCacheHas.js +29 -0
  754. package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
  755. package/lib/node_modules/lodash/_mapCacheSet.js +35 -0
  756. package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
  757. package/lib/node_modules/lodash/_mapToArray.js +30 -0
  758. package/lib/node_modules/lodash/_mapToArray.js.map +1 -0
  759. package/lib/node_modules/lodash/_matchesStrictComparable.js +32 -0
  760. package/lib/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
  761. package/lib/node_modules/lodash/_memoizeCapped.js +39 -0
  762. package/lib/node_modules/lodash/_memoizeCapped.js.map +1 -0
  763. package/lib/node_modules/lodash/_nativeCreate.js +19 -0
  764. package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
  765. package/lib/node_modules/lodash/_nativeKeys.js +19 -0
  766. package/lib/node_modules/lodash/_nativeKeys.js.map +1 -0
  767. package/lib/node_modules/lodash/_nativeKeysIn.js +32 -0
  768. package/lib/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  769. package/lib/node_modules/lodash/_nodeUtil.js +47 -0
  770. package/lib/node_modules/lodash/_nodeUtil.js.map +1 -0
  771. package/lib/node_modules/lodash/_objectToString.js +34 -0
  772. package/lib/node_modules/lodash/_objectToString.js.map +1 -0
  773. package/lib/node_modules/lodash/_overArg.js +27 -0
  774. package/lib/node_modules/lodash/_overArg.js.map +1 -0
  775. package/lib/node_modules/lodash/_overRest.js +49 -0
  776. package/lib/node_modules/lodash/_overRest.js.map +1 -0
  777. package/lib/node_modules/lodash/_root.js +22 -0
  778. package/lib/node_modules/lodash/_root.js.map +1 -0
  779. package/lib/node_modules/lodash/_safeGet.js +33 -0
  780. package/lib/node_modules/lodash/_safeGet.js.map +1 -0
  781. package/lib/node_modules/lodash/_setCacheAdd.js +31 -0
  782. package/lib/node_modules/lodash/_setCacheAdd.js.map +1 -0
  783. package/lib/node_modules/lodash/_setCacheHas.js +26 -0
  784. package/lib/node_modules/lodash/_setCacheHas.js.map +1 -0
  785. package/lib/node_modules/lodash/_setToArray.js +30 -0
  786. package/lib/node_modules/lodash/_setToArray.js.map +1 -0
  787. package/lib/node_modules/lodash/_setToString.js +28 -0
  788. package/lib/node_modules/lodash/_setToString.js.map +1 -0
  789. package/lib/node_modules/lodash/_shortOut.js +49 -0
  790. package/lib/node_modules/lodash/_shortOut.js.map +1 -0
  791. package/lib/node_modules/lodash/_stackClear.js +28 -0
  792. package/lib/node_modules/lodash/_stackClear.js.map +1 -0
  793. package/lib/node_modules/lodash/_stackDelete.js +30 -0
  794. package/lib/node_modules/lodash/_stackDelete.js.map +1 -0
  795. package/lib/node_modules/lodash/_stackGet.js +26 -0
  796. package/lib/node_modules/lodash/_stackGet.js.map +1 -0
  797. package/lib/node_modules/lodash/_stackHas.js +26 -0
  798. package/lib/node_modules/lodash/_stackHas.js.map +1 -0
  799. package/lib/node_modules/lodash/_stackSet.js +49 -0
  800. package/lib/node_modules/lodash/_stackSet.js.map +1 -0
  801. package/lib/node_modules/lodash/_strictIndexOf.js +35 -0
  802. package/lib/node_modules/lodash/_strictIndexOf.js.map +1 -0
  803. package/lib/node_modules/lodash/_stringSize.js +33 -0
  804. package/lib/node_modules/lodash/_stringSize.js.map +1 -0
  805. package/lib/node_modules/lodash/_stringToPath.js +40 -0
  806. package/lib/node_modules/lodash/_stringToPath.js.map +1 -0
  807. package/lib/node_modules/lodash/_toKey.js +31 -0
  808. package/lib/node_modules/lodash/_toKey.js.map +1 -0
  809. package/lib/node_modules/lodash/_toSource.js +38 -0
  810. package/lib/node_modules/lodash/_toSource.js.map +1 -0
  811. package/lib/node_modules/lodash/_trimmedEndIndex.js +31 -0
  812. package/lib/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
  813. package/lib/node_modules/lodash/_unicodeSize.js +56 -0
  814. package/lib/node_modules/lodash/_unicodeSize.js.map +1 -0
  815. package/lib/node_modules/lodash/clone.js +49 -0
  816. package/lib/node_modules/lodash/clone.js.map +1 -0
  817. package/lib/node_modules/lodash/cloneDeep.js +42 -0
  818. package/lib/node_modules/lodash/cloneDeep.js.map +1 -0
  819. package/lib/node_modules/lodash/constant.js +38 -0
  820. package/lib/node_modules/lodash/constant.js.map +1 -0
  821. package/lib/node_modules/lodash/defaults.js +80 -0
  822. package/lib/node_modules/lodash/defaults.js.map +1 -0
  823. package/lib/node_modules/lodash/each.js +14 -0
  824. package/lib/node_modules/lodash/each.js.map +1 -0
  825. package/lib/node_modules/lodash/eq.js +49 -0
  826. package/lib/node_modules/lodash/eq.js.map +1 -0
  827. package/lib/node_modules/lodash/filter.js +68 -0
  828. package/lib/node_modules/lodash/filter.js.map +1 -0
  829. package/lib/node_modules/lodash/find.js +56 -0
  830. package/lib/node_modules/lodash/find.js.map +1 -0
  831. package/lib/node_modules/lodash/findIndex.js +70 -0
  832. package/lib/node_modules/lodash/findIndex.js.map +1 -0
  833. package/lib/node_modules/lodash/flatten.js +35 -0
  834. package/lib/node_modules/lodash/flatten.js.map +1 -0
  835. package/lib/node_modules/lodash/forEach.js +57 -0
  836. package/lib/node_modules/lodash/forEach.js.map +1 -0
  837. package/lib/node_modules/lodash/forIn.js +54 -0
  838. package/lib/node_modules/lodash/forIn.js.map +1 -0
  839. package/lib/node_modules/lodash/get.js +46 -0
  840. package/lib/node_modules/lodash/get.js.map +1 -0
  841. package/lib/node_modules/lodash/has.js +49 -0
  842. package/lib/node_modules/lodash/has.js.map +1 -0
  843. package/lib/node_modules/lodash/hasIn.js +48 -0
  844. package/lib/node_modules/lodash/hasIn.js.map +1 -0
  845. package/lib/node_modules/lodash/identity.js +33 -0
  846. package/lib/node_modules/lodash/identity.js.map +1 -0
  847. package/lib/node_modules/lodash/isArguments.js +50 -0
  848. package/lib/node_modules/lodash/isArguments.js.map +1 -0
  849. package/lib/node_modules/lodash/isArray.js +38 -0
  850. package/lib/node_modules/lodash/isArray.js.map +1 -0
  851. package/lib/node_modules/lodash/isArrayLike.js +47 -0
  852. package/lib/node_modules/lodash/isArrayLike.js.map +1 -0
  853. package/lib/node_modules/lodash/isArrayLikeObject.js +47 -0
  854. package/lib/node_modules/lodash/isArrayLikeObject.js.map +1 -0
  855. package/lib/node_modules/lodash/isBuffer.js +56 -0
  856. package/lib/node_modules/lodash/isBuffer.js.map +1 -0
  857. package/lib/node_modules/lodash/isEmpty.js +97 -0
  858. package/lib/node_modules/lodash/isEmpty.js.map +1 -0
  859. package/lib/node_modules/lodash/isFunction.js +51 -0
  860. package/lib/node_modules/lodash/isFunction.js.map +1 -0
  861. package/lib/node_modules/lodash/isLength.js +47 -0
  862. package/lib/node_modules/lodash/isLength.js.map +1 -0
  863. package/lib/node_modules/lodash/isMap.js +42 -0
  864. package/lib/node_modules/lodash/isMap.js.map +1 -0
  865. package/lib/node_modules/lodash/isObject.js +43 -0
  866. package/lib/node_modules/lodash/isObject.js.map +1 -0
  867. package/lib/node_modules/lodash/isObjectLike.js +41 -0
  868. package/lib/node_modules/lodash/isObjectLike.js.map +1 -0
  869. package/lib/node_modules/lodash/isPlainObject.js +77 -0
  870. package/lib/node_modules/lodash/isPlainObject.js.map +1 -0
  871. package/lib/node_modules/lodash/isSet.js +42 -0
  872. package/lib/node_modules/lodash/isSet.js.map +1 -0
  873. package/lib/node_modules/lodash/isString.js +45 -0
  874. package/lib/node_modules/lodash/isString.js.map +1 -0
  875. package/lib/node_modules/lodash/isSymbol.js +43 -0
  876. package/lib/node_modules/lodash/isSymbol.js.map +1 -0
  877. package/lib/node_modules/lodash/isTypedArray.js +42 -0
  878. package/lib/node_modules/lodash/isTypedArray.js.map +1 -0
  879. package/lib/node_modules/lodash/isUndefined.js +34 -0
  880. package/lib/node_modules/lodash/isUndefined.js.map +1 -0
  881. package/lib/node_modules/lodash/keys.js +52 -0
  882. package/lib/node_modules/lodash/keys.js.map +1 -0
  883. package/lib/node_modules/lodash/keysIn.js +47 -0
  884. package/lib/node_modules/lodash/keysIn.js.map +1 -0
  885. package/lib/node_modules/lodash/last.js +32 -0
  886. package/lib/node_modules/lodash/last.js.map +1 -0
  887. package/lib/node_modules/lodash/map.js +69 -0
  888. package/lib/node_modules/lodash/map.js.map +1 -0
  889. package/lib/node_modules/lodash/mapValues.js +58 -0
  890. package/lib/node_modules/lodash/mapValues.js.map +1 -0
  891. package/lib/node_modules/lodash/max.js +44 -0
  892. package/lib/node_modules/lodash/max.js.map +1 -0
  893. package/lib/node_modules/lodash/memoize.js +86 -0
  894. package/lib/node_modules/lodash/memoize.js.map +1 -0
  895. package/lib/node_modules/lodash/merge.js +53 -0
  896. package/lib/node_modules/lodash/merge.js.map +1 -0
  897. package/lib/node_modules/lodash/min.js +44 -0
  898. package/lib/node_modules/lodash/min.js.map +1 -0
  899. package/lib/node_modules/lodash/minBy.js +49 -0
  900. package/lib/node_modules/lodash/minBy.js.map +1 -0
  901. package/lib/node_modules/lodash/noop.js +29 -0
  902. package/lib/node_modules/lodash/noop.js.map +1 -0
  903. package/lib/node_modules/lodash/now.js +36 -0
  904. package/lib/node_modules/lodash/now.js.map +1 -0
  905. package/lib/node_modules/lodash/pick.js +39 -0
  906. package/lib/node_modules/lodash/pick.js.map +1 -0
  907. package/lib/node_modules/lodash/property.js +48 -0
  908. package/lib/node_modules/lodash/property.js.map +1 -0
  909. package/lib/node_modules/lodash/range.js +59 -0
  910. package/lib/node_modules/lodash/range.js.map +1 -0
  911. package/lib/node_modules/lodash/reduce.js +68 -0
  912. package/lib/node_modules/lodash/reduce.js.map +1 -0
  913. package/lib/node_modules/lodash/size.js +63 -0
  914. package/lib/node_modules/lodash/size.js.map +1 -0
  915. package/lib/node_modules/lodash/sortBy.js +64 -0
  916. package/lib/node_modules/lodash/sortBy.js.map +1 -0
  917. package/lib/node_modules/lodash/stubArray.js +35 -0
  918. package/lib/node_modules/lodash/stubArray.js.map +1 -0
  919. package/lib/node_modules/lodash/stubFalse.js +30 -0
  920. package/lib/node_modules/lodash/stubFalse.js.map +1 -0
  921. package/lib/node_modules/lodash/toFinite.js +55 -0
  922. package/lib/node_modules/lodash/toFinite.js.map +1 -0
  923. package/lib/node_modules/lodash/toInteger.js +49 -0
  924. package/lib/node_modules/lodash/toInteger.js.map +1 -0
  925. package/lib/node_modules/lodash/toNumber.js +79 -0
  926. package/lib/node_modules/lodash/toNumber.js.map +1 -0
  927. package/lib/node_modules/lodash/toPlainObject.js +46 -0
  928. package/lib/node_modules/lodash/toPlainObject.js.map +1 -0
  929. package/lib/node_modules/lodash/toString.js +41 -0
  930. package/lib/node_modules/lodash/toString.js.map +1 -0
  931. package/lib/node_modules/lodash/transform.js +87 -0
  932. package/lib/node_modules/lodash/transform.js.map +1 -0
  933. package/lib/node_modules/lodash/union.js +42 -0
  934. package/lib/node_modules/lodash/union.js.map +1 -0
  935. package/lib/node_modules/lodash/uniqueId.js +41 -0
  936. package/lib/node_modules/lodash/uniqueId.js.map +1 -0
  937. package/lib/node_modules/lodash/values.js +48 -0
  938. package/lib/node_modules/lodash/values.js.map +1 -0
  939. package/lib/node_modules/lodash/zipObject.js +38 -0
  940. package/lib/node_modules/lodash/zipObject.js.map +1 -0
  941. package/lib/node_modules/ml-array-max/lib-es6/index.js +37 -0
  942. package/lib/node_modules/ml-array-max/lib-es6/index.js.map +1 -0
  943. package/lib/node_modules/ml-array-min/lib-es6/index.js +37 -0
  944. package/lib/node_modules/ml-array-min/lib-es6/index.js.map +1 -0
  945. package/lib/node_modules/ml-array-rescale/lib-es6/index.js +52 -0
  946. package/lib/node_modules/ml-array-rescale/lib-es6/index.js.map +1 -0
  947. package/lib/node_modules/ml-matrix/matrix.js +8 -0
  948. package/lib/node_modules/ml-matrix/matrix.js.map +1 -0
  949. package/lib/node_modules/ml-matrix/matrix2.js +5660 -0
  950. package/lib/node_modules/ml-matrix/matrix2.js.map +1 -0
  951. package/lib/node_modules/tslib/tslib.es6.js +46 -0
  952. package/lib/node_modules/tslib/tslib.es6.js.map +1 -0
  953. package/lib/registry.d.ts +3 -2
  954. package/lib/registry.js +27 -26
  955. package/lib/registry.js.map +1 -1
  956. package/lib/runtime/context.d.ts +15 -0
  957. package/lib/runtime/context.js +29 -0
  958. package/lib/runtime/context.js.map +1 -0
  959. package/lib/runtime/supervisor.d.ts +25 -0
  960. package/lib/runtime/supervisor.js +75 -0
  961. package/lib/runtime/supervisor.js.map +1 -0
  962. package/lib/types/common.d.ts +4 -0
  963. package/lib/types/data.d.ts +59 -0
  964. package/lib/types/edge-label.d.ts +6 -0
  965. package/lib/types/force.d.ts +46 -0
  966. package/lib/types/id.d.ts +3 -0
  967. package/lib/types/point.d.ts +9 -0
  968. package/lib/types/position.d.ts +10 -0
  969. package/lib/types/size.d.ts +4 -0
  970. package/lib/util/array.d.ts +3 -1
  971. package/lib/util/array.js +4 -2
  972. package/lib/util/array.js.map +1 -1
  973. package/lib/util/common.d.ts +8 -8
  974. package/lib/util/common.js +14 -25
  975. package/lib/util/common.js.map +1 -1
  976. package/lib/util/format.js +72 -0
  977. package/lib/util/format.js.map +1 -0
  978. package/lib/util/math.d.ts +30 -12
  979. package/lib/util/math.js +178 -55
  980. package/lib/util/math.js.map +1 -1
  981. package/lib/util/object.d.ts +22 -7
  982. package/lib/util/object.js +46 -40
  983. package/lib/util/object.js.map +1 -1
  984. package/lib/util/order.d.ts +20 -0
  985. package/lib/util/order.js +106 -0
  986. package/lib/util/order.js.map +1 -0
  987. package/lib/util/point.d.ts +6 -0
  988. package/lib/util/point.js +11 -0
  989. package/lib/util/point.js.map +1 -0
  990. package/lib/util/size.d.ts +5 -3
  991. package/lib/util/size.js +7 -4
  992. package/lib/util/size.js.map +1 -1
  993. package/lib/util/viewport.d.ts +16 -0
  994. package/lib/util/viewport.js +17 -0
  995. package/lib/util/viewport.js.map +1 -0
  996. package/lib/worker.js +32302 -33
  997. package/lib/worker.js.map +1 -1
  998. package/package.json +78 -19
  999. package/src/algorithm/antv-dagre/acyclic.ts +70 -0
  1000. package/src/algorithm/antv-dagre/add-border-segments.ts +55 -0
  1001. package/src/algorithm/antv-dagre/coordinate-system.ts +77 -0
  1002. package/src/algorithm/antv-dagre/data/list.ts +60 -0
  1003. package/src/algorithm/antv-dagre/graph.ts +533 -0
  1004. package/src/algorithm/antv-dagre/greedy-fas.ts +185 -0
  1005. package/src/algorithm/antv-dagre/index.ts +620 -0
  1006. package/src/algorithm/antv-dagre/layout.ts +622 -0
  1007. package/src/algorithm/antv-dagre/nesting-graph.ts +184 -0
  1008. package/src/algorithm/antv-dagre/normalize.ts +125 -0
  1009. package/src/algorithm/antv-dagre/order/add-subgraph-constraints.ts +51 -0
  1010. package/src/algorithm/antv-dagre/order/barycenter.ts +26 -0
  1011. package/src/algorithm/antv-dagre/order/build-layer-graph.ts +109 -0
  1012. package/src/algorithm/antv-dagre/order/cross-count.ts +76 -0
  1013. package/src/algorithm/antv-dagre/order/index.ts +123 -0
  1014. package/src/algorithm/antv-dagre/order/init-data-order.ts +29 -0
  1015. package/src/algorithm/antv-dagre/order/init-order.ts +59 -0
  1016. package/src/algorithm/antv-dagre/order/resolve-conflicts.ts +153 -0
  1017. package/src/algorithm/antv-dagre/order/sort-subgraph.ts +111 -0
  1018. package/src/algorithm/antv-dagre/order/sort.ts +94 -0
  1019. package/src/algorithm/antv-dagre/parent-dummy-chains.ts +111 -0
  1020. package/src/algorithm/antv-dagre/position/bk.ts +560 -0
  1021. package/src/algorithm/antv-dagre/position/index.ts +109 -0
  1022. package/src/algorithm/antv-dagre/rank/feasible-tree.ts +179 -0
  1023. package/src/algorithm/antv-dagre/rank/index.ts +55 -0
  1024. package/src/algorithm/antv-dagre/rank/network-simplex.ts +282 -0
  1025. package/src/algorithm/antv-dagre/rank/util.ts +157 -0
  1026. package/src/algorithm/antv-dagre/types.ts +175 -0
  1027. package/src/algorithm/antv-dagre/util.ts +359 -0
  1028. package/src/algorithm/base-layout.ts +132 -0
  1029. package/src/algorithm/base-simulation.ts +94 -0
  1030. package/src/algorithm/circular/index.ts +123 -0
  1031. package/src/algorithm/circular/types.ts +105 -0
  1032. package/src/algorithm/combo-combined/index.ts +412 -0
  1033. package/src/algorithm/combo-combined/types.ts +39 -0
  1034. package/src/algorithm/concentric/index.ts +234 -0
  1035. package/src/algorithm/concentric/types.ts +89 -0
  1036. package/src/algorithm/d3-force/force-in-a-box.ts +404 -0
  1037. package/src/algorithm/d3-force/index.ts +642 -0
  1038. package/src/algorithm/d3-force/types.ts +378 -0
  1039. package/src/algorithm/d3-force-3d/index.ts +88 -0
  1040. package/src/algorithm/d3-force-3d/types.ts +68 -0
  1041. package/src/algorithm/d3-force-3d/typing.d.ts +301 -0
  1042. package/src/algorithm/dagre/index.ts +172 -0
  1043. package/src/algorithm/dagre/types.ts +84 -0
  1044. package/src/algorithm/force/attractive.ts +71 -0
  1045. package/src/algorithm/force/centripetal.ts +133 -0
  1046. package/src/algorithm/force/collide.ts +219 -0
  1047. package/src/algorithm/force/gravity.ts +61 -0
  1048. package/src/algorithm/force/index.ts +541 -0
  1049. package/src/algorithm/force/repulsive.ts +200 -0
  1050. package/src/algorithm/force/simulation.ts +172 -0
  1051. package/src/algorithm/force/types.ts +265 -0
  1052. package/src/algorithm/force/typing.d.ts +76 -0
  1053. package/src/algorithm/force-atlas2/body.ts +115 -0
  1054. package/src/algorithm/force-atlas2/index.ts +189 -0
  1055. package/src/algorithm/force-atlas2/quad-tree.ts +109 -0
  1056. package/src/algorithm/force-atlas2/quad.ts +117 -0
  1057. package/src/algorithm/force-atlas2/simulation.ts +445 -0
  1058. package/src/algorithm/force-atlas2/types.ts +106 -0
  1059. package/src/algorithm/fruchterman/index.ts +116 -0
  1060. package/src/algorithm/fruchterman/simulation.ts +447 -0
  1061. package/src/algorithm/fruchterman/types.ts +47 -0
  1062. package/src/algorithm/grid/index.ts +305 -0
  1063. package/src/algorithm/grid/types.ts +120 -0
  1064. package/src/algorithm/index.ts +29 -0
  1065. package/src/algorithm/mds/index.ts +143 -0
  1066. package/src/algorithm/mds/types.ts +23 -0
  1067. package/src/algorithm/radial/index.ts +346 -0
  1068. package/src/algorithm/radial/radial-nonoverlap-force.ts +210 -0
  1069. package/src/algorithm/radial/types.ts +100 -0
  1070. package/src/algorithm/random/index.ts +41 -0
  1071. package/src/algorithm/random/types.ts +8 -0
  1072. package/src/algorithm/types.ts +172 -0
  1073. package/src/index.ts +6 -0
  1074. package/src/model/data.ts +381 -0
  1075. package/src/model/index.ts +1 -0
  1076. package/src/registry.ts +29 -0
  1077. package/src/runtime/context.ts +49 -0
  1078. package/src/runtime/index.ts +2 -0
  1079. package/src/runtime/supervisor.ts +80 -0
  1080. package/src/types/common.ts +3 -0
  1081. package/src/types/data.ts +79 -0
  1082. package/src/types/edge-label.ts +5 -0
  1083. package/src/types/force.ts +49 -0
  1084. package/src/types/id.ts +1 -0
  1085. package/src/types/index.ts +8 -0
  1086. package/src/types/point.ts +9 -0
  1087. package/src/types/position.ts +11 -0
  1088. package/src/types/size.ts +3 -0
  1089. package/src/util/array.ts +1 -0
  1090. package/src/util/common.ts +25 -0
  1091. package/src/util/format.ts +92 -0
  1092. package/src/util/index.ts +8 -0
  1093. package/src/util/math.ts +312 -0
  1094. package/src/util/object.ts +54 -0
  1095. package/src/util/order.ts +143 -0
  1096. package/src/util/point.ts +9 -0
  1097. package/src/util/size.ts +10 -0
  1098. package/src/util/viewport.ts +27 -0
  1099. package/src/worker.ts +50 -0
  1100. package/dist/e2b4e534ff10c7df8b27.worker.js +0 -2
  1101. package/dist/e2b4e534ff10c7df8b27.worker.js.map +0 -1
  1102. package/lib/antv-dagre/acyclic.d.ts +0 -4
  1103. package/lib/antv-dagre/acyclic.js +0 -61
  1104. package/lib/antv-dagre/acyclic.js.map +0 -1
  1105. package/lib/antv-dagre/add-border-segments.d.ts +0 -2
  1106. package/lib/antv-dagre/add-border-segments.js +0 -37
  1107. package/lib/antv-dagre/add-border-segments.js.map +0 -1
  1108. package/lib/antv-dagre/coordinate-system.d.ts +0 -5
  1109. package/lib/antv-dagre/coordinate-system.js +0 -65
  1110. package/lib/antv-dagre/coordinate-system.js.map +0 -1
  1111. package/lib/antv-dagre/data/list.d.ts +0 -12
  1112. package/lib/antv-dagre/data/list.js +0 -48
  1113. package/lib/antv-dagre/data/list.js.map +0 -1
  1114. package/lib/antv-dagre/greedy-fas.d.ts +0 -3
  1115. package/lib/antv-dagre/greedy-fas.js +0 -136
  1116. package/lib/antv-dagre/greedy-fas.js.map +0 -1
  1117. package/lib/antv-dagre/layout.d.ts +0 -19
  1118. package/lib/antv-dagre/layout.js +0 -468
  1119. package/lib/antv-dagre/layout.js.map +0 -1
  1120. package/lib/antv-dagre/nesting-graph.d.ts +0 -8
  1121. package/lib/antv-dagre/nesting-graph.js +0 -152
  1122. package/lib/antv-dagre/nesting-graph.js.map +0 -1
  1123. package/lib/antv-dagre/normalize.d.ts +0 -5
  1124. package/lib/antv-dagre/normalize.js +0 -98
  1125. package/lib/antv-dagre/normalize.js.map +0 -1
  1126. package/lib/antv-dagre/order/add-subgraph-constraints.d.ts +0 -3
  1127. package/lib/antv-dagre/order/add-subgraph-constraints.js +0 -45
  1128. package/lib/antv-dagre/order/add-subgraph-constraints.js.map +0 -1
  1129. package/lib/antv-dagre/order/barycenter.d.ts +0 -14
  1130. package/lib/antv-dagre/order/barycenter.js +0 -23
  1131. package/lib/antv-dagre/order/barycenter.js.map +0 -1
  1132. package/lib/antv-dagre/order/build-layer-graph.d.ts +0 -3
  1133. package/lib/antv-dagre/order/build-layer-graph.js +0 -92
  1134. package/lib/antv-dagre/order/build-layer-graph.js.map +0 -1
  1135. package/lib/antv-dagre/order/cross-count.d.ts +0 -3
  1136. package/lib/antv-dagre/order/cross-count.js +0 -63
  1137. package/lib/antv-dagre/order/cross-count.js.map +0 -1
  1138. package/lib/antv-dagre/order/index.d.ts +0 -2
  1139. package/lib/antv-dagre/order/index.js +0 -91
  1140. package/lib/antv-dagre/order/index.js.map +0 -1
  1141. package/lib/antv-dagre/order/init-data-order.d.ts +0 -6
  1142. package/lib/antv-dagre/order/init-data-order.js +0 -27
  1143. package/lib/antv-dagre/order/init-data-order.js.map +0 -1
  1144. package/lib/antv-dagre/order/init-order.d.ts +0 -3
  1145. package/lib/antv-dagre/order/init-order.js +0 -47
  1146. package/lib/antv-dagre/order/init-order.js.map +0 -1
  1147. package/lib/antv-dagre/order/resolve-conflicts.d.ts +0 -20
  1148. package/lib/antv-dagre/order/resolve-conflicts.js +0 -118
  1149. package/lib/antv-dagre/order/resolve-conflicts.js.map +0 -1
  1150. package/lib/antv-dagre/order/sort-subgraph.d.ts +0 -7
  1151. package/lib/antv-dagre/order/sort-subgraph.js +0 -84
  1152. package/lib/antv-dagre/order/sort-subgraph.js.map +0 -1
  1153. package/lib/antv-dagre/order/sort.d.ts +0 -7
  1154. package/lib/antv-dagre/order/sort.js +0 -74
  1155. package/lib/antv-dagre/order/sort.js.map +0 -1
  1156. package/lib/antv-dagre/parent-dummy-chains.d.ts +0 -3
  1157. package/lib/antv-dagre/parent-dummy-chains.js +0 -80
  1158. package/lib/antv-dagre/parent-dummy-chains.js.map +0 -1
  1159. package/lib/antv-dagre/position/bk.d.ts +0 -26
  1160. package/lib/antv-dagre/position/bk.js +0 -395
  1161. package/lib/antv-dagre/position/bk.js.map +0 -1
  1162. package/lib/antv-dagre/position/index.d.ts +0 -8
  1163. package/lib/antv-dagre/position/index.js +0 -51
  1164. package/lib/antv-dagre/position/index.js.map +0 -1
  1165. package/lib/antv-dagre/rank/feasible-tree.d.ts +0 -5
  1166. package/lib/antv-dagre/rank/feasible-tree.js +0 -164
  1167. package/lib/antv-dagre/rank/feasible-tree.js.map +0 -1
  1168. package/lib/antv-dagre/rank/index.d.ts +0 -2
  1169. package/lib/antv-dagre/rank/index.js +0 -48
  1170. package/lib/antv-dagre/rank/index.js.map +0 -1
  1171. package/lib/antv-dagre/rank/network-simplex.d.ts +0 -16
  1172. package/lib/antv-dagre/rank/network-simplex.js +0 -231
  1173. package/lib/antv-dagre/rank/network-simplex.js.map +0 -1
  1174. package/lib/antv-dagre/rank/util.d.ts +0 -6
  1175. package/lib/antv-dagre/rank/util.js +0 -138
  1176. package/lib/antv-dagre/rank/util.js.map +0 -1
  1177. package/lib/antv-dagre/types.d.ts +0 -2
  1178. package/lib/antv-dagre/types.js +0 -2
  1179. package/lib/antv-dagre/types.js.map +0 -1
  1180. package/lib/antv-dagre/util.d.ts +0 -35
  1181. package/lib/antv-dagre/util.js +0 -281
  1182. package/lib/antv-dagre/util.js.map +0 -1
  1183. package/lib/antv-dagre.d.ts +0 -205
  1184. package/lib/antv-dagre.js +0 -526
  1185. package/lib/antv-dagre.js.map +0 -1
  1186. package/lib/bundle-entry.d.ts +0 -2
  1187. package/lib/bundle-entry.js +0 -3
  1188. package/lib/bundle-entry.js.map +0 -1
  1189. package/lib/bundle-supervisor.d.ts +0 -33
  1190. package/lib/bundle-supervisor.js +0 -95
  1191. package/lib/bundle-supervisor.js.map +0 -1
  1192. package/lib/bundle-worker.d.ts +0 -3
  1193. package/lib/bundle-worker.js +0 -51
  1194. package/lib/bundle-worker.js.map +0 -1
  1195. package/lib/circular.d.ts +0 -20
  1196. package/lib/circular.js +0 -232
  1197. package/lib/circular.js.map +0 -1
  1198. package/lib/combo-combined.d.ts +0 -22
  1199. package/lib/combo-combined.js +0 -415
  1200. package/lib/combo-combined.js.map +0 -1
  1201. package/lib/concentric.d.ts +0 -20
  1202. package/lib/concentric.js +0 -210
  1203. package/lib/concentric.js.map +0 -1
  1204. package/lib/d3-force/index.d.ts +0 -35
  1205. package/lib/d3-force/index.js +0 -173
  1206. package/lib/d3-force/index.js.map +0 -1
  1207. package/lib/d3-force/types.d.ts +0 -147
  1208. package/lib/d3-force/types.js +0 -2
  1209. package/lib/d3-force/types.js.map +0 -1
  1210. package/lib/d3-force-3d/index.d.ts +0 -25
  1211. package/lib/d3-force-3d/index.js +0 -47
  1212. package/lib/d3-force-3d/index.js.map +0 -1
  1213. package/lib/d3-force-3d/types.d.ts +0 -43
  1214. package/lib/d3-force-3d/types.js +0 -2
  1215. package/lib/d3-force-3d/types.js.map +0 -1
  1216. package/lib/dagre.d.ts +0 -20
  1217. package/lib/dagre.js +0 -69
  1218. package/lib/dagre.js.map +0 -1
  1219. package/lib/exports.d.ts +0 -20
  1220. package/lib/exports.js +0 -18
  1221. package/lib/exports.js.map +0 -1
  1222. package/lib/force/force-n-body.d.ts +0 -7
  1223. package/lib/force/force-n-body.js +0 -120
  1224. package/lib/force/force-n-body.js.map +0 -1
  1225. package/lib/force/index.d.ts +0 -128
  1226. package/lib/force/index.js +0 -739
  1227. package/lib/force/index.js.map +0 -1
  1228. package/lib/force/types.d.ts +0 -43
  1229. package/lib/force/types.js +0 -2
  1230. package/lib/force/types.js.map +0 -1
  1231. package/lib/force-atlas2/body.d.ts +0 -33
  1232. package/lib/force-atlas2/body.js +0 -89
  1233. package/lib/force-atlas2/body.js.map +0 -1
  1234. package/lib/force-atlas2/index.d.ts +0 -95
  1235. package/lib/force-atlas2/index.js +0 -510
  1236. package/lib/force-atlas2/index.js.map +0 -1
  1237. package/lib/force-atlas2/quad-tree.d.ts +0 -20
  1238. package/lib/force-atlas2/quad-tree.js +0 -104
  1239. package/lib/force-atlas2/quad-tree.js.map +0 -1
  1240. package/lib/force-atlas2/quad.d.ts +0 -27
  1241. package/lib/force-atlas2/quad.js +0 -96
  1242. package/lib/force-atlas2/quad.js.map +0 -1
  1243. package/lib/fruchterman.d.ts +0 -43
  1244. package/lib/fruchterman.js +0 -346
  1245. package/lib/fruchterman.js.map +0 -1
  1246. package/lib/grid.d.ts +0 -20
  1247. package/lib/grid.js +0 -279
  1248. package/lib/grid.js.map +0 -1
  1249. package/lib/mds.d.ts +0 -20
  1250. package/lib/mds.js +0 -117
  1251. package/lib/mds.js.map +0 -1
  1252. package/lib/radial/index.d.ts +0 -22
  1253. package/lib/radial/index.js +0 -338
  1254. package/lib/radial/index.js.map +0 -1
  1255. package/lib/radial/mds.d.ts +0 -2
  1256. package/lib/radial/mds.js +0 -31
  1257. package/lib/radial/mds.js.map +0 -1
  1258. package/lib/radial/radial-nonoverlap-force.d.ts +0 -16
  1259. package/lib/radial/radial-nonoverlap-force.js +0 -99
  1260. package/lib/radial/radial-nonoverlap-force.js.map +0 -1
  1261. package/lib/random.d.ts +0 -20
  1262. package/lib/random.js +0 -75
  1263. package/lib/random.js.map +0 -1
  1264. package/lib/supervisor.d.ts +0 -50
  1265. package/lib/supervisor.js +0 -91
  1266. package/lib/supervisor.js.map +0 -1
  1267. package/lib/types.d.ts +0 -1284
  1268. package/lib/types.js +0 -4
  1269. package/lib/types.js.map +0 -1
  1270. package/lib/util/function.d.ts +0 -27
  1271. package/lib/util/function.js +0 -111
  1272. package/lib/util/function.js.map +0 -1
  1273. package/lib/util/index.d.ts +0 -4
  1274. package/lib/util/index.js +0 -5
  1275. package/lib/util/index.js.map +0 -1
  1276. package/lib/worker.d.ts +0 -1
@@ -0,0 +1,62 @@
1
+ import { __require as requireUtil } from './util.js';
2
+ import { __require as requireFeasibleTree } from './feasible-tree.js';
3
+ import { __require as requireNetworkSimplex } from './network-simplex.js';
4
+
5
+ var rank_1;
6
+ var hasRequiredRank;
7
+
8
+ function requireRank () {
9
+ if (hasRequiredRank) return rank_1;
10
+ hasRequiredRank = 1;
11
+
12
+ var rankUtil = requireUtil();
13
+ var longestPath = rankUtil.longestPath;
14
+ var feasibleTree = requireFeasibleTree();
15
+ var networkSimplex = requireNetworkSimplex();
16
+
17
+ rank_1 = rank;
18
+
19
+ /*
20
+ * Assigns a rank to each node in the input graph that respects the "minlen"
21
+ * constraint specified on edges between nodes.
22
+ *
23
+ * This basic structure is derived from Gansner, et al., "A Technique for
24
+ * Drawing Directed Graphs."
25
+ *
26
+ * Pre-conditions:
27
+ *
28
+ * 1. Graph must be a connected DAG
29
+ * 2. Graph nodes must be objects
30
+ * 3. Graph edges must have "weight" and "minlen" attributes
31
+ *
32
+ * Post-conditions:
33
+ *
34
+ * 1. Graph nodes will have a "rank" attribute based on the results of the
35
+ * algorithm. Ranks can start at any index (including negative), we'll
36
+ * fix them up later.
37
+ */
38
+ function rank(g) {
39
+ switch(g.graph().ranker) {
40
+ case "network-simplex": networkSimplexRanker(g); break;
41
+ case "tight-tree": tightTreeRanker(g); break;
42
+ case "longest-path": longestPathRanker(g); break;
43
+ default: networkSimplexRanker(g);
44
+ }
45
+ }
46
+
47
+ // A fast and simple ranker, but results are far from optimal.
48
+ var longestPathRanker = longestPath;
49
+
50
+ function tightTreeRanker(g) {
51
+ longestPath(g);
52
+ feasibleTree(g);
53
+ }
54
+
55
+ function networkSimplexRanker(g) {
56
+ networkSimplex(g);
57
+ }
58
+ return rank_1;
59
+ }
60
+
61
+ export { requireRank as __require };
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/dagre/lib/rank/index.js"],"sourcesContent":["\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;CAEA,IAAI,QAAQ,GAAGA,WAAA,EAAiB;AAChC,CAAA,IAAI,WAAW,GAAG,QAAQ,CAAC,WAAW;CACtC,IAAI,YAAY,GAAGC,mBAAA,EAA0B;CAC7C,IAAI,cAAc,GAAGC,qBAAA,EAA4B;;AAEjD,CAAA,MAAc,GAAG,IAAI;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,IAAI,CAAC,CAAC,EAAE;AACjB,GAAE,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,MAAM;GACvB,KAAK,iBAAiB,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;GACjD,KAAK,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;GACvC,KAAK,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7C,GAAE,SAAS,oBAAoB,CAAC,CAAC,CAAC;AAClC;AACA,CAAA;;AAEA;CACA,IAAI,iBAAiB,GAAG,WAAW;;CAEnC,SAAS,eAAe,CAAC,CAAC,EAAE;GAC1B,WAAW,CAAC,CAAC,CAAC;GACd,YAAY,CAAC,CAAC,CAAC;AACjB,CAAA;;CAEA,SAAS,oBAAoB,CAAC,CAAC,EAAE;GAC/B,cAAc,CAAC,CAAC,CAAC;AACnB,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,250 @@
1
+ import { __require as requireLodash } from '../lodash.js';
2
+ import { __require as requireFeasibleTree } from './feasible-tree.js';
3
+ import { __require as requireUtil } from './util.js';
4
+ import { __require as requireGraphlib } from '../graphlib.js';
5
+ import { __require as requireUtil$1 } from '../util.js';
6
+
7
+ var networkSimplex_1;
8
+ var hasRequiredNetworkSimplex;
9
+
10
+ function requireNetworkSimplex () {
11
+ if (hasRequiredNetworkSimplex) return networkSimplex_1;
12
+ hasRequiredNetworkSimplex = 1;
13
+
14
+ var _ = requireLodash();
15
+ var feasibleTree = requireFeasibleTree();
16
+ var slack = requireUtil().slack;
17
+ var initRank = requireUtil().longestPath;
18
+ var preorder = requireGraphlib().alg.preorder;
19
+ var postorder = requireGraphlib().alg.postorder;
20
+ var simplify = requireUtil$1().simplify;
21
+
22
+ networkSimplex_1 = networkSimplex;
23
+
24
+ // Expose some internals for testing purposes
25
+ networkSimplex.initLowLimValues = initLowLimValues;
26
+ networkSimplex.initCutValues = initCutValues;
27
+ networkSimplex.calcCutValue = calcCutValue;
28
+ networkSimplex.leaveEdge = leaveEdge;
29
+ networkSimplex.enterEdge = enterEdge;
30
+ networkSimplex.exchangeEdges = exchangeEdges;
31
+
32
+ /*
33
+ * The network simplex algorithm assigns ranks to each node in the input graph
34
+ * and iteratively improves the ranking to reduce the length of edges.
35
+ *
36
+ * Preconditions:
37
+ *
38
+ * 1. The input graph must be a DAG.
39
+ * 2. All nodes in the graph must have an object value.
40
+ * 3. All edges in the graph must have "minlen" and "weight" attributes.
41
+ *
42
+ * Postconditions:
43
+ *
44
+ * 1. All nodes in the graph will have an assigned "rank" attribute that has
45
+ * been optimized by the network simplex algorithm. Ranks start at 0.
46
+ *
47
+ *
48
+ * A rough sketch of the algorithm is as follows:
49
+ *
50
+ * 1. Assign initial ranks to each node. We use the longest path algorithm,
51
+ * which assigns ranks to the lowest position possible. In general this
52
+ * leads to very wide bottom ranks and unnecessarily long edges.
53
+ * 2. Construct a feasible tight tree. A tight tree is one such that all
54
+ * edges in the tree have no slack (difference between length of edge
55
+ * and minlen for the edge). This by itself greatly improves the assigned
56
+ * rankings by shorting edges.
57
+ * 3. Iteratively find edges that have negative cut values. Generally a
58
+ * negative cut value indicates that the edge could be removed and a new
59
+ * tree edge could be added to produce a more compact graph.
60
+ *
61
+ * Much of the algorithms here are derived from Gansner, et al., "A Technique
62
+ * for Drawing Directed Graphs." The structure of the file roughly follows the
63
+ * structure of the overall algorithm.
64
+ */
65
+ function networkSimplex(g) {
66
+ g = simplify(g);
67
+ initRank(g);
68
+ var t = feasibleTree(g);
69
+ initLowLimValues(t);
70
+ initCutValues(t, g);
71
+
72
+ var e, f;
73
+ while ((e = leaveEdge(t))) {
74
+ f = enterEdge(t, g, e);
75
+ exchangeEdges(t, g, e, f);
76
+ }
77
+ }
78
+
79
+ /*
80
+ * Initializes cut values for all edges in the tree.
81
+ */
82
+ function initCutValues(t, g) {
83
+ var vs = postorder(t, t.nodes());
84
+ vs = vs.slice(0, vs.length - 1);
85
+ _.forEach(vs, function(v) {
86
+ assignCutValue(t, g, v);
87
+ });
88
+ }
89
+
90
+ function assignCutValue(t, g, child) {
91
+ var childLab = t.node(child);
92
+ var parent = childLab.parent;
93
+ t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
94
+ }
95
+
96
+ /*
97
+ * Given the tight tree, its graph, and a child in the graph calculate and
98
+ * return the cut value for the edge between the child and its parent.
99
+ */
100
+ function calcCutValue(t, g, child) {
101
+ var childLab = t.node(child);
102
+ var parent = childLab.parent;
103
+ // True if the child is on the tail end of the edge in the directed graph
104
+ var childIsTail = true;
105
+ // The graph's view of the tree edge we're inspecting
106
+ var graphEdge = g.edge(child, parent);
107
+ // The accumulated cut value for the edge between this node and its parent
108
+ var cutValue = 0;
109
+
110
+ if (!graphEdge) {
111
+ childIsTail = false;
112
+ graphEdge = g.edge(parent, child);
113
+ }
114
+
115
+ cutValue = graphEdge.weight;
116
+
117
+ _.forEach(g.nodeEdges(child), function(e) {
118
+ var isOutEdge = e.v === child,
119
+ other = isOutEdge ? e.w : e.v;
120
+
121
+ if (other !== parent) {
122
+ var pointsToHead = isOutEdge === childIsTail,
123
+ otherWeight = g.edge(e).weight;
124
+
125
+ cutValue += pointsToHead ? otherWeight : -otherWeight;
126
+ if (isTreeEdge(t, child, other)) {
127
+ var otherCutValue = t.edge(child, other).cutvalue;
128
+ cutValue += pointsToHead ? -otherCutValue : otherCutValue;
129
+ }
130
+ }
131
+ });
132
+
133
+ return cutValue;
134
+ }
135
+
136
+ function initLowLimValues(tree, root) {
137
+ if (arguments.length < 2) {
138
+ root = tree.nodes()[0];
139
+ }
140
+ dfsAssignLowLim(tree, {}, 1, root);
141
+ }
142
+
143
+ function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
144
+ var low = nextLim;
145
+ var label = tree.node(v);
146
+
147
+ visited[v] = true;
148
+ _.forEach(tree.neighbors(v), function(w) {
149
+ if (!_.has(visited, w)) {
150
+ nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
151
+ }
152
+ });
153
+
154
+ label.low = low;
155
+ label.lim = nextLim++;
156
+ if (parent) {
157
+ label.parent = parent;
158
+ } else {
159
+ // TODO should be able to remove this when we incrementally update low lim
160
+ delete label.parent;
161
+ }
162
+
163
+ return nextLim;
164
+ }
165
+
166
+ function leaveEdge(tree) {
167
+ return _.find(tree.edges(), function(e) {
168
+ return tree.edge(e).cutvalue < 0;
169
+ });
170
+ }
171
+
172
+ function enterEdge(t, g, edge) {
173
+ var v = edge.v;
174
+ var w = edge.w;
175
+
176
+ // For the rest of this function we assume that v is the tail and w is the
177
+ // head, so if we don't have this edge in the graph we should flip it to
178
+ // match the correct orientation.
179
+ if (!g.hasEdge(v, w)) {
180
+ v = edge.w;
181
+ w = edge.v;
182
+ }
183
+
184
+ var vLabel = t.node(v);
185
+ var wLabel = t.node(w);
186
+ var tailLabel = vLabel;
187
+ var flip = false;
188
+
189
+ // If the root is in the tail of the edge then we need to flip the logic that
190
+ // checks for the head and tail nodes in the candidates function below.
191
+ if (vLabel.lim > wLabel.lim) {
192
+ tailLabel = wLabel;
193
+ flip = true;
194
+ }
195
+
196
+ var candidates = _.filter(g.edges(), function(edge) {
197
+ return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
198
+ flip !== isDescendant(t, t.node(edge.w), tailLabel);
199
+ });
200
+
201
+ return _.minBy(candidates, function(edge) { return slack(g, edge); });
202
+ }
203
+
204
+ function exchangeEdges(t, g, e, f) {
205
+ var v = e.v;
206
+ var w = e.w;
207
+ t.removeEdge(v, w);
208
+ t.setEdge(f.v, f.w, {});
209
+ initLowLimValues(t);
210
+ initCutValues(t, g);
211
+ updateRanks(t, g);
212
+ }
213
+
214
+ function updateRanks(t, g) {
215
+ var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });
216
+ var vs = preorder(t, root);
217
+ vs = vs.slice(1);
218
+ _.forEach(vs, function(v) {
219
+ var parent = t.node(v).parent,
220
+ edge = g.edge(v, parent),
221
+ flipped = false;
222
+
223
+ if (!edge) {
224
+ edge = g.edge(parent, v);
225
+ flipped = true;
226
+ }
227
+
228
+ g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
229
+ });
230
+ }
231
+
232
+ /*
233
+ * Returns true if the edge is in the tree.
234
+ */
235
+ function isTreeEdge(tree, u, v) {
236
+ return tree.hasEdge(u, v);
237
+ }
238
+
239
+ /*
240
+ * Returns true if the specified node is descendant of the root node per the
241
+ * assigned low and lim attributes in the tree.
242
+ */
243
+ function isDescendant(tree, vLabel, rootLabel) {
244
+ return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
245
+ }
246
+ return networkSimplex_1;
247
+ }
248
+
249
+ export { requireNetworkSimplex as __require };
250
+ //# sourceMappingURL=network-simplex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-simplex.js","sources":["../../../../../node_modules/dagre/lib/rank/network-simplex.js"],"sourcesContent":["\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":"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","x_google_ignoreList":[0]}
@@ -0,0 +1,75 @@
1
+ import { __require as requireLodash } from '../lodash.js';
2
+
3
+ var util;
4
+ var hasRequiredUtil;
5
+
6
+ function requireUtil () {
7
+ if (hasRequiredUtil) return util;
8
+ hasRequiredUtil = 1;
9
+
10
+ var _ = requireLodash();
11
+
12
+ util = {
13
+ longestPath: longestPath,
14
+ slack: slack
15
+ };
16
+
17
+ /*
18
+ * Initializes ranks for the input graph using the longest path algorithm. This
19
+ * algorithm scales well and is fast in practice, it yields rather poor
20
+ * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
21
+ * ranks wide and leaving edges longer than necessary. However, due to its
22
+ * speed, this algorithm is good for getting an initial ranking that can be fed
23
+ * into other algorithms.
24
+ *
25
+ * This algorithm does not normalize layers because it will be used by other
26
+ * algorithms in most cases. If using this algorithm directly, be sure to
27
+ * run normalize at the end.
28
+ *
29
+ * Pre-conditions:
30
+ *
31
+ * 1. Input graph is a DAG.
32
+ * 2. Input graph node labels can be assigned properties.
33
+ *
34
+ * Post-conditions:
35
+ *
36
+ * 1. Each node will be assign an (unnormalized) "rank" property.
37
+ */
38
+ function longestPath(g) {
39
+ var visited = {};
40
+
41
+ function dfs(v) {
42
+ var label = g.node(v);
43
+ if (_.has(visited, v)) {
44
+ return label.rank;
45
+ }
46
+ visited[v] = true;
47
+
48
+ var rank = _.min(_.map(g.outEdges(v), function(e) {
49
+ return dfs(e.w) - g.edge(e).minlen;
50
+ }));
51
+
52
+ if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
53
+ rank === undefined || // return value of _.map([]) for Lodash 4
54
+ rank === null) { // return value of _.map([null])
55
+ rank = 0;
56
+ }
57
+
58
+ return (label.rank = rank);
59
+ }
60
+
61
+ _.forEach(g.sources(), dfs);
62
+ }
63
+
64
+ /*
65
+ * Returns the amount of slack for the given edge. The slack is defined as the
66
+ * difference between the length of the edge and its minimum length.
67
+ */
68
+ function slack(g, e) {
69
+ return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
70
+ }
71
+ return util;
72
+ }
73
+
74
+ export { requireUtil as __require };
75
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sources":["../../../../../node_modules/dagre/lib/rank/util.js"],"sourcesContent":["\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n"],"names":["require$$0"],"mappings":";;;;;;;;;CAEA,IAAI,CAAC,GAAGA,aAAA,EAAoB;;AAE5B,CAAA,IAAc,GAAG;GACf,WAAW,EAAE,WAAW;AAC1B,GAAE,KAAK,EAAE;EACR;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,WAAW,CAAC,CAAC,EAAE;GACtB,IAAI,OAAO,GAAG,EAAE;;AAElB,GAAE,SAAS,GAAG,CAAC,CAAC,EAAE;KACd,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;KACrB,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;OACrB,OAAO,KAAK,CAAC,IAAI;AACvB,KAAA;AACA,KAAI,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;;KAEjB,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE;AACtD,OAAM,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM;AACxC,KAAA,CAAK,CAAC,CAAC;;AAEP,KAAI,IAAI,IAAI,KAAK,MAAM,CAAC,iBAAiB;SACjC,IAAI,KAAK,SAAS;SAClB,IAAI,KAAK,IAAI,EAAE;OACjB,IAAI,GAAG,CAAC;AACd,KAAA;;AAEA,KAAI,QAAQ,KAAK,CAAC,IAAI,GAAG,IAAI;AAC7B,GAAA;;GAEE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC;AAC7B,CAAA;;AAEA;AACA;AACA;AACA;AACA,CAAA,SAAS,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE;AACrB,GAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM;AAC/D,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,251 @@
1
+ import { __require as requireLodash } from './lodash.js';
2
+ import { __require as requireGraphlib } from './graphlib.js';
3
+
4
+ /* eslint "no-console": off */
5
+
6
+ var util$1;
7
+ var hasRequiredUtil$1;
8
+
9
+ function requireUtil$1 () {
10
+ if (hasRequiredUtil$1) return util$1;
11
+ hasRequiredUtil$1 = 1;
12
+
13
+ var _ = requireLodash();
14
+ var Graph = requireGraphlib().Graph;
15
+
16
+ util$1 = {
17
+ addDummyNode: addDummyNode,
18
+ simplify: simplify,
19
+ asNonCompoundGraph: asNonCompoundGraph,
20
+ successorWeights: successorWeights,
21
+ predecessorWeights: predecessorWeights,
22
+ intersectRect: intersectRect,
23
+ buildLayerMatrix: buildLayerMatrix,
24
+ normalizeRanks: normalizeRanks,
25
+ removeEmptyRanks: removeEmptyRanks,
26
+ addBorderNode: addBorderNode,
27
+ maxRank: maxRank,
28
+ partition: partition,
29
+ time: time,
30
+ notime: notime
31
+ };
32
+
33
+ /*
34
+ * Adds a dummy node to the graph and return v.
35
+ */
36
+ function addDummyNode(g, type, attrs, name) {
37
+ var v;
38
+ do {
39
+ v = _.uniqueId(name);
40
+ } while (g.hasNode(v));
41
+
42
+ attrs.dummy = type;
43
+ g.setNode(v, attrs);
44
+ return v;
45
+ }
46
+
47
+ /*
48
+ * Returns a new graph with only simple edges. Handles aggregation of data
49
+ * associated with multi-edges.
50
+ */
51
+ function simplify(g) {
52
+ var simplified = new Graph().setGraph(g.graph());
53
+ _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
54
+ _.forEach(g.edges(), function(e) {
55
+ var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };
56
+ var label = g.edge(e);
57
+ simplified.setEdge(e.v, e.w, {
58
+ weight: simpleLabel.weight + label.weight,
59
+ minlen: Math.max(simpleLabel.minlen, label.minlen)
60
+ });
61
+ });
62
+ return simplified;
63
+ }
64
+
65
+ function asNonCompoundGraph(g) {
66
+ var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
67
+ _.forEach(g.nodes(), function(v) {
68
+ if (!g.children(v).length) {
69
+ simplified.setNode(v, g.node(v));
70
+ }
71
+ });
72
+ _.forEach(g.edges(), function(e) {
73
+ simplified.setEdge(e, g.edge(e));
74
+ });
75
+ return simplified;
76
+ }
77
+
78
+ function successorWeights(g) {
79
+ var weightMap = _.map(g.nodes(), function(v) {
80
+ var sucs = {};
81
+ _.forEach(g.outEdges(v), function(e) {
82
+ sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
83
+ });
84
+ return sucs;
85
+ });
86
+ return _.zipObject(g.nodes(), weightMap);
87
+ }
88
+
89
+ function predecessorWeights(g) {
90
+ var weightMap = _.map(g.nodes(), function(v) {
91
+ var preds = {};
92
+ _.forEach(g.inEdges(v), function(e) {
93
+ preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
94
+ });
95
+ return preds;
96
+ });
97
+ return _.zipObject(g.nodes(), weightMap);
98
+ }
99
+
100
+ /*
101
+ * Finds where a line starting at point ({x, y}) would intersect a rectangle
102
+ * ({x, y, width, height}) if it were pointing at the rectangle's center.
103
+ */
104
+ function intersectRect(rect, point) {
105
+ var x = rect.x;
106
+ var y = rect.y;
107
+
108
+ // Rectangle intersection algorithm from:
109
+ // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
110
+ var dx = point.x - x;
111
+ var dy = point.y - y;
112
+ var w = rect.width / 2;
113
+ var h = rect.height / 2;
114
+
115
+ if (!dx && !dy) {
116
+ throw new Error("Not possible to find intersection inside of the rectangle");
117
+ }
118
+
119
+ var sx, sy;
120
+ if (Math.abs(dy) * w > Math.abs(dx) * h) {
121
+ // Intersection is top or bottom of rect.
122
+ if (dy < 0) {
123
+ h = -h;
124
+ }
125
+ sx = h * dx / dy;
126
+ sy = h;
127
+ } else {
128
+ // Intersection is left or right of rect.
129
+ if (dx < 0) {
130
+ w = -w;
131
+ }
132
+ sx = w;
133
+ sy = w * dy / dx;
134
+ }
135
+
136
+ return { x: x + sx, y: y + sy };
137
+ }
138
+
139
+ /*
140
+ * Given a DAG with each node assigned "rank" and "order" properties, this
141
+ * function will produce a matrix with the ids of each node.
142
+ */
143
+ function buildLayerMatrix(g) {
144
+ var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
145
+ _.forEach(g.nodes(), function(v) {
146
+ var node = g.node(v);
147
+ var rank = node.rank;
148
+ if (!_.isUndefined(rank)) {
149
+ layering[rank][node.order] = v;
150
+ }
151
+ });
152
+ return layering;
153
+ }
154
+
155
+ /*
156
+ * Adjusts the ranks for all nodes in the graph such that all nodes v have
157
+ * rank(v) >= 0 and at least one node w has rank(w) = 0.
158
+ */
159
+ function normalizeRanks(g) {
160
+ var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
161
+ _.forEach(g.nodes(), function(v) {
162
+ var node = g.node(v);
163
+ if (_.has(node, "rank")) {
164
+ node.rank -= min;
165
+ }
166
+ });
167
+ }
168
+
169
+ function removeEmptyRanks(g) {
170
+ // Ranks may not start at 0, so we need to offset them
171
+ var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
172
+
173
+ var layers = [];
174
+ _.forEach(g.nodes(), function(v) {
175
+ var rank = g.node(v).rank - offset;
176
+ if (!layers[rank]) {
177
+ layers[rank] = [];
178
+ }
179
+ layers[rank].push(v);
180
+ });
181
+
182
+ var delta = 0;
183
+ var nodeRankFactor = g.graph().nodeRankFactor;
184
+ _.forEach(layers, function(vs, i) {
185
+ if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
186
+ --delta;
187
+ } else if (delta) {
188
+ _.forEach(vs, function(v) { g.node(v).rank += delta; });
189
+ }
190
+ });
191
+ }
192
+
193
+ function addBorderNode(g, prefix, rank, order) {
194
+ var node = {
195
+ width: 0,
196
+ height: 0
197
+ };
198
+ if (arguments.length >= 4) {
199
+ node.rank = rank;
200
+ node.order = order;
201
+ }
202
+ return addDummyNode(g, "border", node, prefix);
203
+ }
204
+
205
+ function maxRank(g) {
206
+ return _.max(_.map(g.nodes(), function(v) {
207
+ var rank = g.node(v).rank;
208
+ if (!_.isUndefined(rank)) {
209
+ return rank;
210
+ }
211
+ }));
212
+ }
213
+
214
+ /*
215
+ * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
216
+ * function returns true for an entry it goes into `lhs`. Otherwise it goes
217
+ * into `rhs.
218
+ */
219
+ function partition(collection, fn) {
220
+ var result = { lhs: [], rhs: [] };
221
+ _.forEach(collection, function(value) {
222
+ if (fn(value)) {
223
+ result.lhs.push(value);
224
+ } else {
225
+ result.rhs.push(value);
226
+ }
227
+ });
228
+ return result;
229
+ }
230
+
231
+ /*
232
+ * Returns a new function that wraps `fn` with a timer. The wrapper logs the
233
+ * time it takes to execute the function.
234
+ */
235
+ function time(name, fn) {
236
+ var start = _.now();
237
+ try {
238
+ return fn();
239
+ } finally {
240
+ console.log(name + " time: " + (_.now() - start) + "ms");
241
+ }
242
+ }
243
+
244
+ function notime(name, fn) {
245
+ return fn();
246
+ }
247
+ return util$1;
248
+ }
249
+
250
+ export { requireUtil$1 as __require };
251
+ //# sourceMappingURL=util.js.map