@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,433 @@
1
+ import { __require as requireLodash } from '../lodash.js';
2
+ import { __require as requireGraphlib } from '../graphlib.js';
3
+ import { __require as requireUtil } from '../util.js';
4
+
5
+ var bk;
6
+ var hasRequiredBk;
7
+
8
+ function requireBk () {
9
+ if (hasRequiredBk) return bk;
10
+ hasRequiredBk = 1;
11
+
12
+ var _ = requireLodash();
13
+ var Graph = requireGraphlib().Graph;
14
+ var util = requireUtil();
15
+
16
+ /*
17
+ * This module provides coordinate assignment based on Brandes and Köpf, "Fast
18
+ * and Simple Horizontal Coordinate Assignment."
19
+ */
20
+
21
+ bk = {
22
+ positionX: positionX,
23
+ findType1Conflicts: findType1Conflicts,
24
+ findType2Conflicts: findType2Conflicts,
25
+ addConflict: addConflict,
26
+ hasConflict: hasConflict,
27
+ verticalAlignment: verticalAlignment,
28
+ horizontalCompaction: horizontalCompaction,
29
+ alignCoordinates: alignCoordinates,
30
+ findSmallestWidthAlignment: findSmallestWidthAlignment,
31
+ balance: balance
32
+ };
33
+
34
+ /*
35
+ * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
36
+ * property. A type-1 conflict is one where a non-inner segment crosses an
37
+ * inner segment. An inner segment is an edge with both incident nodes marked
38
+ * with the "dummy" property.
39
+ *
40
+ * This algorithm scans layer by layer, starting with the second, for type-1
41
+ * conflicts between the current layer and the previous layer. For each layer
42
+ * it scans the nodes from left to right until it reaches one that is incident
43
+ * on an inner segment. It then scans predecessors to determine if they have
44
+ * edges that cross that inner segment. At the end a final scan is done for all
45
+ * nodes on the current rank to see if they cross the last visited inner
46
+ * segment.
47
+ *
48
+ * This algorithm (safely) assumes that a dummy node will only be incident on a
49
+ * single node in the layers being scanned.
50
+ */
51
+ function findType1Conflicts(g, layering) {
52
+ var conflicts = {};
53
+
54
+ function visitLayer(prevLayer, layer) {
55
+ var
56
+ // last visited node in the previous layer that is incident on an inner
57
+ // segment.
58
+ k0 = 0,
59
+ // Tracks the last node in this layer scanned for crossings with a type-1
60
+ // segment.
61
+ scanPos = 0,
62
+ prevLayerLength = prevLayer.length,
63
+ lastNode = _.last(layer);
64
+
65
+ _.forEach(layer, function(v, i) {
66
+ var w = findOtherInnerSegmentNode(g, v),
67
+ k1 = w ? g.node(w).order : prevLayerLength;
68
+
69
+ if (w || v === lastNode) {
70
+ _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
71
+ _.forEach(g.predecessors(scanNode), function(u) {
72
+ var uLabel = g.node(u),
73
+ uPos = uLabel.order;
74
+ if ((uPos < k0 || k1 < uPos) &&
75
+ !(uLabel.dummy && g.node(scanNode).dummy)) {
76
+ addConflict(conflicts, u, scanNode);
77
+ }
78
+ });
79
+ });
80
+ scanPos = i + 1;
81
+ k0 = k1;
82
+ }
83
+ });
84
+
85
+ return layer;
86
+ }
87
+
88
+ _.reduce(layering, visitLayer);
89
+ return conflicts;
90
+ }
91
+
92
+ function findType2Conflicts(g, layering) {
93
+ var conflicts = {};
94
+
95
+ function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
96
+ var v;
97
+ _.forEach(_.range(southPos, southEnd), function(i) {
98
+ v = south[i];
99
+ if (g.node(v).dummy) {
100
+ _.forEach(g.predecessors(v), function(u) {
101
+ var uNode = g.node(u);
102
+ if (uNode.dummy &&
103
+ (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
104
+ addConflict(conflicts, u, v);
105
+ }
106
+ });
107
+ }
108
+ });
109
+ }
110
+
111
+
112
+ function visitLayer(north, south) {
113
+ var prevNorthPos = -1,
114
+ nextNorthPos,
115
+ southPos = 0;
116
+
117
+ _.forEach(south, function(v, southLookahead) {
118
+ if (g.node(v).dummy === "border") {
119
+ var predecessors = g.predecessors(v);
120
+ if (predecessors.length) {
121
+ nextNorthPos = g.node(predecessors[0]).order;
122
+ scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
123
+ southPos = southLookahead;
124
+ prevNorthPos = nextNorthPos;
125
+ }
126
+ }
127
+ scan(south, southPos, south.length, nextNorthPos, north.length);
128
+ });
129
+
130
+ return south;
131
+ }
132
+
133
+ _.reduce(layering, visitLayer);
134
+ return conflicts;
135
+ }
136
+
137
+ function findOtherInnerSegmentNode(g, v) {
138
+ if (g.node(v).dummy) {
139
+ return _.find(g.predecessors(v), function(u) {
140
+ return g.node(u).dummy;
141
+ });
142
+ }
143
+ }
144
+
145
+ function addConflict(conflicts, v, w) {
146
+ if (v > w) {
147
+ var tmp = v;
148
+ v = w;
149
+ w = tmp;
150
+ }
151
+
152
+ var conflictsV = conflicts[v];
153
+ if (!conflictsV) {
154
+ conflicts[v] = conflictsV = {};
155
+ }
156
+ conflictsV[w] = true;
157
+ }
158
+
159
+ function hasConflict(conflicts, v, w) {
160
+ if (v > w) {
161
+ var tmp = v;
162
+ v = w;
163
+ w = tmp;
164
+ }
165
+ return _.has(conflicts[v], w);
166
+ }
167
+
168
+ /*
169
+ * Try to align nodes into vertical "blocks" where possible. This algorithm
170
+ * attempts to align a node with one of its median neighbors. If the edge
171
+ * connecting a neighbor is a type-1 conflict then we ignore that possibility.
172
+ * If a previous node has already formed a block with a node after the node
173
+ * we're trying to form a block with, we also ignore that possibility - our
174
+ * blocks would be split in that scenario.
175
+ */
176
+ function verticalAlignment(g, layering, conflicts, neighborFn) {
177
+ var root = {},
178
+ align = {},
179
+ pos = {};
180
+
181
+ // We cache the position here based on the layering because the graph and
182
+ // layering may be out of sync. The layering matrix is manipulated to
183
+ // generate different extreme alignments.
184
+ _.forEach(layering, function(layer) {
185
+ _.forEach(layer, function(v, order) {
186
+ root[v] = v;
187
+ align[v] = v;
188
+ pos[v] = order;
189
+ });
190
+ });
191
+
192
+ _.forEach(layering, function(layer) {
193
+ var prevIdx = -1;
194
+ _.forEach(layer, function(v) {
195
+ var ws = neighborFn(v);
196
+ if (ws.length) {
197
+ ws = _.sortBy(ws, function(w) { return pos[w]; });
198
+ var mp = (ws.length - 1) / 2;
199
+ for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
200
+ var w = ws[i];
201
+ if (align[v] === v &&
202
+ prevIdx < pos[w] &&
203
+ !hasConflict(conflicts, v, w)) {
204
+ align[w] = v;
205
+ align[v] = root[v] = root[w];
206
+ prevIdx = pos[w];
207
+ }
208
+ }
209
+ }
210
+ });
211
+ });
212
+
213
+ return { root: root, align: align };
214
+ }
215
+
216
+ function horizontalCompaction(g, layering, root, align, reverseSep) {
217
+ // This portion of the algorithm differs from BK due to a number of problems.
218
+ // Instead of their algorithm we construct a new block graph and do two
219
+ // sweeps. The first sweep places blocks with the smallest possible
220
+ // coordinates. The second sweep removes unused space by moving blocks to the
221
+ // greatest coordinates without violating separation.
222
+ var xs = {},
223
+ blockG = buildBlockGraph(g, layering, root, reverseSep),
224
+ borderType = reverseSep ? "borderLeft" : "borderRight";
225
+
226
+ function iterate(setXsFunc, nextNodesFunc) {
227
+ var stack = blockG.nodes();
228
+ var elem = stack.pop();
229
+ var visited = {};
230
+ while (elem) {
231
+ if (visited[elem]) {
232
+ setXsFunc(elem);
233
+ } else {
234
+ visited[elem] = true;
235
+ stack.push(elem);
236
+ stack = stack.concat(nextNodesFunc(elem));
237
+ }
238
+
239
+ elem = stack.pop();
240
+ }
241
+ }
242
+
243
+ // First pass, assign smallest coordinates
244
+ function pass1(elem) {
245
+ xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
246
+ return Math.max(acc, xs[e.v] + blockG.edge(e));
247
+ }, 0);
248
+ }
249
+
250
+ // Second pass, assign greatest coordinates
251
+ function pass2(elem) {
252
+ var min = blockG.outEdges(elem).reduce(function(acc, e) {
253
+ return Math.min(acc, xs[e.w] - blockG.edge(e));
254
+ }, Number.POSITIVE_INFINITY);
255
+
256
+ var node = g.node(elem);
257
+ if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
258
+ xs[elem] = Math.max(xs[elem], min);
259
+ }
260
+ }
261
+
262
+ iterate(pass1, blockG.predecessors.bind(blockG));
263
+ iterate(pass2, blockG.successors.bind(blockG));
264
+
265
+ // Assign x coordinates to all nodes
266
+ _.forEach(align, function(v) {
267
+ xs[v] = xs[root[v]];
268
+ });
269
+
270
+ return xs;
271
+ }
272
+
273
+
274
+ function buildBlockGraph(g, layering, root, reverseSep) {
275
+ var blockGraph = new Graph(),
276
+ graphLabel = g.graph(),
277
+ sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
278
+
279
+ _.forEach(layering, function(layer) {
280
+ var u;
281
+ _.forEach(layer, function(v) {
282
+ var vRoot = root[v];
283
+ blockGraph.setNode(vRoot);
284
+ if (u) {
285
+ var uRoot = root[u],
286
+ prevMax = blockGraph.edge(uRoot, vRoot);
287
+ blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
288
+ }
289
+ u = v;
290
+ });
291
+ });
292
+
293
+ return blockGraph;
294
+ }
295
+
296
+ /*
297
+ * Returns the alignment that has the smallest width of the given alignments.
298
+ */
299
+ function findSmallestWidthAlignment(g, xss) {
300
+ return _.minBy(_.values(xss), function (xs) {
301
+ var max = Number.NEGATIVE_INFINITY;
302
+ var min = Number.POSITIVE_INFINITY;
303
+
304
+ _.forIn(xs, function (x, v) {
305
+ var halfWidth = width(g, v) / 2;
306
+
307
+ max = Math.max(x + halfWidth, max);
308
+ min = Math.min(x - halfWidth, min);
309
+ });
310
+
311
+ return max - min;
312
+ });
313
+ }
314
+
315
+ /*
316
+ * Align the coordinates of each of the layout alignments such that
317
+ * left-biased alignments have their minimum coordinate at the same point as
318
+ * the minimum coordinate of the smallest width alignment and right-biased
319
+ * alignments have their maximum coordinate at the same point as the maximum
320
+ * coordinate of the smallest width alignment.
321
+ */
322
+ function alignCoordinates(xss, alignTo) {
323
+ var alignToVals = _.values(alignTo),
324
+ alignToMin = _.min(alignToVals),
325
+ alignToMax = _.max(alignToVals);
326
+
327
+ _.forEach(["u", "d"], function(vert) {
328
+ _.forEach(["l", "r"], function(horiz) {
329
+ var alignment = vert + horiz,
330
+ xs = xss[alignment],
331
+ delta;
332
+ if (xs === alignTo) return;
333
+
334
+ var xsVals = _.values(xs);
335
+ delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
336
+
337
+ if (delta) {
338
+ xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
339
+ }
340
+ });
341
+ });
342
+ }
343
+
344
+ function balance(xss, align) {
345
+ return _.mapValues(xss.ul, function(ignore, v) {
346
+ if (align) {
347
+ return xss[align.toLowerCase()][v];
348
+ } else {
349
+ var xs = _.sortBy(_.map(xss, v));
350
+ return (xs[1] + xs[2]) / 2;
351
+ }
352
+ });
353
+ }
354
+
355
+ function positionX(g) {
356
+ var layering = util.buildLayerMatrix(g);
357
+ var conflicts = _.merge(
358
+ findType1Conflicts(g, layering),
359
+ findType2Conflicts(g, layering));
360
+
361
+ var xss = {};
362
+ var adjustedLayering;
363
+ _.forEach(["u", "d"], function(vert) {
364
+ adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
365
+ _.forEach(["l", "r"], function(horiz) {
366
+ if (horiz === "r") {
367
+ adjustedLayering = _.map(adjustedLayering, function(inner) {
368
+ return _.values(inner).reverse();
369
+ });
370
+ }
371
+
372
+ var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
373
+ var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
374
+ var xs = horizontalCompaction(g, adjustedLayering,
375
+ align.root, align.align, horiz === "r");
376
+ if (horiz === "r") {
377
+ xs = _.mapValues(xs, function(x) { return -x; });
378
+ }
379
+ xss[vert + horiz] = xs;
380
+ });
381
+ });
382
+
383
+ var smallestWidth = findSmallestWidthAlignment(g, xss);
384
+ alignCoordinates(xss, smallestWidth);
385
+ return balance(xss, g.graph().align);
386
+ }
387
+
388
+ function sep(nodeSep, edgeSep, reverseSep) {
389
+ return function(g, v, w) {
390
+ var vLabel = g.node(v);
391
+ var wLabel = g.node(w);
392
+ var sum = 0;
393
+ var delta;
394
+
395
+ sum += vLabel.width / 2;
396
+ if (_.has(vLabel, "labelpos")) {
397
+ switch (vLabel.labelpos.toLowerCase()) {
398
+ case "l": delta = -vLabel.width / 2; break;
399
+ case "r": delta = vLabel.width / 2; break;
400
+ }
401
+ }
402
+ if (delta) {
403
+ sum += reverseSep ? delta : -delta;
404
+ }
405
+ delta = 0;
406
+
407
+ sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
408
+ sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
409
+
410
+ sum += wLabel.width / 2;
411
+ if (_.has(wLabel, "labelpos")) {
412
+ switch (wLabel.labelpos.toLowerCase()) {
413
+ case "l": delta = wLabel.width / 2; break;
414
+ case "r": delta = -wLabel.width / 2; break;
415
+ }
416
+ }
417
+ if (delta) {
418
+ sum += reverseSep ? delta : -delta;
419
+ }
420
+ delta = 0;
421
+
422
+ return sum;
423
+ };
424
+ }
425
+
426
+ function width(g, v) {
427
+ return g.node(v).width;
428
+ }
429
+ return bk;
430
+ }
431
+
432
+ export { requireBk as __require };
433
+ //# sourceMappingURL=bk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bk.js","sources":["../../../../../node_modules/dagre/lib/position/bk.js"],"sourcesContent":["\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;CAEA,IAAI,CAAC,GAAGA,aAAA,EAAoB;AAC5B,CAAA,IAAI,KAAK,GAAGC,eAAA,EAAsB,CAAC,KAAK;CACxC,IAAI,IAAI,GAAGC,WAAA,EAAkB;;AAE7B;AACA;AACA;AACA;;AAEA,CAAA,EAAc,GAAG;GACf,SAAS,EAAE,SAAS;GACpB,kBAAkB,EAAE,kBAAkB;GACtC,kBAAkB,EAAE,kBAAkB;GACtC,WAAW,EAAE,WAAW;GACxB,WAAW,EAAE,WAAW;GACxB,iBAAiB,EAAE,iBAAiB;GACpC,oBAAoB,EAAE,oBAAoB;GAC1C,gBAAgB,EAAE,gBAAgB;GAClC,0BAA0B,EAAE,0BAA0B;AACxD,GAAE,OAAO,EAAE;EACV;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,SAAS,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE;GACvC,IAAI,SAAS,GAAG,EAAE;;AAEpB,GAAE,SAAS,UAAU,CAAC,SAAS,EAAE,KAAK,EAAE;KACpC;AACJ;AACA;OACM,EAAE,GAAG,CAAC;AACZ;AACA;OACM,OAAO,GAAG,CAAC;AACjB,OAAM,eAAe,GAAG,SAAS,CAAC,MAAM;AACxC,OAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;;KAE1B,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE;OAC9B,IAAI,CAAC,GAAG,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC;AAC7C,SAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,IA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AAC;;AAEjD,KAAI,GAAG,IAAI,MAAM,CAAC,KAAK,GAAG,CAAC;KACvB,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;AACnC,OAAM,QAAQ,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE;OACrC,KAAK,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;AAC1C,OAAM,KAAK,GAAG,EAAE,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;AAC3C;AACA,KAAA;KACI,IAAI,KAAK,EAAE;AACf,OAAM,GAAG,IAAI,UAAU,GAAG,KAAK,GAAG,CAAC,KAAK;AACxC,KAAA;KACI,KAAK,GAAG,CAAC;;AAEb,KAAI,OAAO,GAAG;GACd,CAAG;AACH,CAAA;;AAEA,CAAA,SAAS,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE;GACnB,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK;AACxB,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,43 @@
1
+ import { __require as requireLodash } from '../lodash.js';
2
+ import { __require as requireUtil } from '../util.js';
3
+ import { __require as requireBk } from './bk.js';
4
+
5
+ var position_1;
6
+ var hasRequiredPosition;
7
+
8
+ function requirePosition () {
9
+ if (hasRequiredPosition) return position_1;
10
+ hasRequiredPosition = 1;
11
+
12
+ var _ = requireLodash();
13
+ var util = requireUtil();
14
+ var positionX = requireBk().positionX;
15
+
16
+ position_1 = position;
17
+
18
+ function position(g) {
19
+ g = util.asNonCompoundGraph(g);
20
+
21
+ positionY(g);
22
+ _.forEach(positionX(g), function(x, v) {
23
+ g.node(v).x = x;
24
+ });
25
+ }
26
+
27
+ function positionY(g) {
28
+ var layering = util.buildLayerMatrix(g);
29
+ var rankSep = g.graph().ranksep;
30
+ var prevY = 0;
31
+ _.forEach(layering, function(layer) {
32
+ var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
33
+ _.forEach(layer, function(v) {
34
+ g.node(v).y = prevY + maxHeight / 2;
35
+ });
36
+ prevY += maxHeight + rankSep;
37
+ });
38
+ }
39
+ return position_1;
40
+ }
41
+
42
+ export { requirePosition as __require };
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/dagre/lib/position/index.js"],"sourcesContent":["\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;CAEA,IAAI,CAAC,GAAGA,aAAA,EAAoB;CAC5B,IAAI,IAAI,GAAGC,WAAA,EAAkB;AAC7B,CAAA,IAAI,SAAS,GAAGC,SAAA,EAAe,CAAC,SAAS;;AAEzC,CAAA,UAAc,GAAG,QAAQ;;CAEzB,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrB,GAAE,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;;GAE9B,SAAS,CAAC,CAAC,CAAC;AACd,GAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE;KACrC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACnB,GAAA,CAAG,CAAC;AACJ,CAAA;;CAEA,SAAS,SAAS,CAAC,CAAC,EAAE;GACpB,IAAI,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;GACvC,IAAI,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO;GAC/B,IAAI,KAAK,GAAG,CAAC;GACb,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,KAAK,EAAE;AACtC,KAAI,IAAI,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA,CAAE,CAAC,CAAC;KAC7E,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE;AACjC,OAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,SAAS,GAAG,CAAC;AACzC,KAAA,CAAK,CAAC;AACN,KAAI,KAAK,IAAI,SAAS,GAAG,OAAO;AAChC,GAAA,CAAG,CAAC;AACJ,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,103 @@
1
+ import { __require as requireLodash } from '../lodash.js';
2
+ import { __require as requireGraphlib } from '../graphlib.js';
3
+ import { __require as requireUtil } from './util.js';
4
+
5
+ var feasibleTree_1;
6
+ var hasRequiredFeasibleTree;
7
+
8
+ function requireFeasibleTree () {
9
+ if (hasRequiredFeasibleTree) return feasibleTree_1;
10
+ hasRequiredFeasibleTree = 1;
11
+
12
+ var _ = requireLodash();
13
+ var Graph = requireGraphlib().Graph;
14
+ var slack = requireUtil().slack;
15
+
16
+ feasibleTree_1 = feasibleTree;
17
+
18
+ /*
19
+ * Constructs a spanning tree with tight edges and adjusted the input node's
20
+ * ranks to achieve this. A tight edge is one that is has a length that matches
21
+ * its "minlen" attribute.
22
+ *
23
+ * The basic structure for this function is derived from Gansner, et al., "A
24
+ * Technique for Drawing Directed Graphs."
25
+ *
26
+ * Pre-conditions:
27
+ *
28
+ * 1. Graph must be a DAG.
29
+ * 2. Graph must be connected.
30
+ * 3. Graph must have at least one node.
31
+ * 5. Graph nodes must have been previously assigned a "rank" property that
32
+ * respects the "minlen" property of incident edges.
33
+ * 6. Graph edges must have a "minlen" property.
34
+ *
35
+ * Post-conditions:
36
+ *
37
+ * - Graph nodes will have their rank adjusted to ensure that all edges are
38
+ * tight.
39
+ *
40
+ * Returns a tree (undirected graph) that is constructed using only "tight"
41
+ * edges.
42
+ */
43
+ function feasibleTree(g) {
44
+ var t = new Graph({ directed: false });
45
+
46
+ // Choose arbitrary node from which to start our tree
47
+ var start = g.nodes()[0];
48
+ var size = g.nodeCount();
49
+ t.setNode(start, {});
50
+
51
+ var edge, delta;
52
+ while (tightTree(t, g) < size) {
53
+ edge = findMinSlackEdge(t, g);
54
+ delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
55
+ shiftRanks(t, g, delta);
56
+ }
57
+
58
+ return t;
59
+ }
60
+
61
+ /*
62
+ * Finds a maximal tree of tight edges and returns the number of nodes in the
63
+ * tree.
64
+ */
65
+ function tightTree(t, g) {
66
+ function dfs(v) {
67
+ _.forEach(g.nodeEdges(v), function(e) {
68
+ var edgeV = e.v,
69
+ w = (v === edgeV) ? e.w : edgeV;
70
+ if (!t.hasNode(w) && !slack(g, e)) {
71
+ t.setNode(w, {});
72
+ t.setEdge(v, w, {});
73
+ dfs(w);
74
+ }
75
+ });
76
+ }
77
+
78
+ _.forEach(t.nodes(), dfs);
79
+ return t.nodeCount();
80
+ }
81
+
82
+ /*
83
+ * Finds the edge with the smallest slack that is incident on tree and returns
84
+ * it.
85
+ */
86
+ function findMinSlackEdge(t, g) {
87
+ return _.minBy(g.edges(), function(e) {
88
+ if (t.hasNode(e.v) !== t.hasNode(e.w)) {
89
+ return slack(g, e);
90
+ }
91
+ });
92
+ }
93
+
94
+ function shiftRanks(t, g, delta) {
95
+ _.forEach(t.nodes(), function(v) {
96
+ g.node(v).rank += delta;
97
+ });
98
+ }
99
+ return feasibleTree_1;
100
+ }
101
+
102
+ export { requireFeasibleTree as __require };
103
+ //# sourceMappingURL=feasible-tree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feasible-tree.js","sources":["../../../../../node_modules/dagre/lib/rank/feasible-tree.js"],"sourcesContent":["\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;CAEA,IAAI,CAAC,GAAGA,aAAA,EAAoB;AAC5B,CAAA,IAAI,KAAK,GAAGC,eAAA,EAAsB,CAAC,KAAK;AACxC,CAAA,IAAI,KAAK,GAAGC,WAAA,EAAiB,CAAC,KAAK;;AAEnC,CAAA,cAAc,GAAG,YAAY;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,YAAY,CAAC,CAAC,EAAE;GACvB,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;AAExC;GACE,IAAI,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAC1B,GAAE,IAAI,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE;AAC1B,GAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;;GAEpB,IAAI,IAAI,EAAE,KAAK;GACf,OAAO,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE;AACjC,KAAI,IAAI,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;KAC7B,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK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