@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.
- package/README.md +26 -301
- package/dist/index.js +32816 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +7 -2
- package/dist/index.min.js.map +1 -1
- package/dist/worker.js +8 -0
- package/dist/worker.js.map +1 -0
- package/lib/_virtual/_cloneBuffer.js +4 -0
- package/lib/_virtual/_cloneBuffer.js.map +1 -0
- package/lib/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/lib/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/lib/_virtual/_commonjsHelpers.js +37 -0
- package/lib/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/_virtual/_nodeUtil.js +4 -0
- package/lib/_virtual/_nodeUtil.js.map +1 -0
- package/lib/_virtual/index.js +8 -0
- package/lib/_virtual/index.js.map +1 -0
- package/lib/_virtual/index2.js +7 -0
- package/lib/_virtual/index2.js.map +1 -0
- package/lib/_virtual/index3.js +7 -0
- package/lib/_virtual/index3.js.map +1 -0
- package/lib/_virtual/isBuffer.js +4 -0
- package/lib/_virtual/isBuffer.js.map +1 -0
- package/lib/_virtual/matrix.js +8 -0
- package/lib/_virtual/matrix.js.map +1 -0
- package/lib/_virtual/matrix2.js +4 -0
- package/lib/_virtual/matrix2.js.map +1 -0
- package/lib/algorithm/antv-dagre/acyclic.js +40 -0
- package/lib/algorithm/antv-dagre/acyclic.js.map +1 -0
- package/lib/algorithm/antv-dagre/add-border-segments.js +42 -0
- package/lib/algorithm/antv-dagre/add-border-segments.js.map +1 -0
- package/lib/algorithm/antv-dagre/coordinate-system.js +66 -0
- package/lib/algorithm/antv-dagre/coordinate-system.js.map +1 -0
- package/lib/algorithm/antv-dagre/data/list.js +50 -0
- package/lib/algorithm/antv-dagre/data/list.js.map +1 -0
- package/lib/algorithm/antv-dagre/graph.js +429 -0
- package/lib/algorithm/antv-dagre/graph.js.map +1 -0
- package/lib/algorithm/antv-dagre/greedy-fas.js +139 -0
- package/lib/algorithm/antv-dagre/greedy-fas.js.map +1 -0
- package/lib/algorithm/antv-dagre/index.d.ts +15 -0
- package/lib/algorithm/antv-dagre/index.js +337 -0
- package/lib/algorithm/antv-dagre/index.js.map +1 -0
- package/lib/algorithm/antv-dagre/layout.js +471 -0
- package/lib/algorithm/antv-dagre/layout.js.map +1 -0
- package/lib/algorithm/antv-dagre/nesting-graph.js +154 -0
- package/lib/algorithm/antv-dagre/nesting-graph.js.map +1 -0
- package/lib/algorithm/antv-dagre/normalize.js +100 -0
- package/lib/algorithm/antv-dagre/normalize.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/add-subgraph-constraints.js +47 -0
- package/lib/algorithm/antv-dagre/order/add-subgraph-constraints.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/barycenter.js +25 -0
- package/lib/algorithm/antv-dagre/order/barycenter.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/build-layer-graph.js +89 -0
- package/lib/algorithm/antv-dagre/order/build-layer-graph.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/cross-count.js +66 -0
- package/lib/algorithm/antv-dagre/order/cross-count.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/index.js +94 -0
- package/lib/algorithm/antv-dagre/order/index.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/init-data-order.js +29 -0
- package/lib/algorithm/antv-dagre/order/init-data-order.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/init-order.js +49 -0
- package/lib/algorithm/antv-dagre/order/init-order.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/resolve-conflicts.js +119 -0
- package/lib/algorithm/antv-dagre/order/resolve-conflicts.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/sort-subgraph.js +87 -0
- package/lib/algorithm/antv-dagre/order/sort-subgraph.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/sort.js +77 -0
- package/lib/algorithm/antv-dagre/order/sort.js.map +1 -0
- package/lib/algorithm/antv-dagre/parent-dummy-chains.js +82 -0
- package/lib/algorithm/antv-dagre/parent-dummy-chains.js.map +1 -0
- package/lib/algorithm/antv-dagre/position/bk.js +366 -0
- package/lib/algorithm/antv-dagre/position/bk.js.map +1 -0
- package/lib/algorithm/antv-dagre/position/index.js +54 -0
- package/lib/algorithm/antv-dagre/position/index.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/feasible-tree.js +166 -0
- package/lib/algorithm/antv-dagre/rank/feasible-tree.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/index.js +51 -0
- package/lib/algorithm/antv-dagre/rank/index.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/network-simplex.js +234 -0
- package/lib/algorithm/antv-dagre/rank/network-simplex.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/util.js +139 -0
- package/lib/algorithm/antv-dagre/rank/util.js.map +1 -0
- package/lib/algorithm/antv-dagre/types.d.ts +170 -0
- package/lib/algorithm/antv-dagre/util.js +265 -0
- package/lib/algorithm/antv-dagre/util.js.map +1 -0
- package/lib/algorithm/base-layout.d.ts +48 -0
- package/lib/algorithm/base-layout.js +87 -0
- package/lib/algorithm/base-layout.js.map +1 -0
- package/lib/algorithm/base-simulation.d.ts +20 -0
- package/lib/algorithm/base-simulation.js +75 -0
- package/lib/algorithm/base-simulation.js.map +1 -0
- package/lib/algorithm/circular/index.d.ts +15 -0
- package/lib/algorithm/circular/index.js +108 -0
- package/lib/algorithm/circular/index.js.map +1 -0
- package/lib/algorithm/circular/types.d.ts +105 -0
- package/lib/algorithm/combo-combined/index.d.ts +33 -0
- package/lib/algorithm/combo-combined/index.js +303 -0
- package/lib/algorithm/combo-combined/index.js.map +1 -0
- package/lib/algorithm/combo-combined/types.d.ts +37 -0
- package/lib/algorithm/concentric/index.d.ts +15 -0
- package/lib/algorithm/concentric/index.js +192 -0
- package/lib/algorithm/concentric/index.js.map +1 -0
- package/lib/algorithm/concentric/types.d.ts +92 -0
- package/lib/algorithm/d3-force/force-in-a-box.js +343 -0
- package/lib/algorithm/d3-force/force-in-a-box.js.map +1 -0
- package/lib/algorithm/d3-force/index.d.ts +53 -0
- package/lib/algorithm/d3-force/index.js +552 -0
- package/lib/algorithm/d3-force/index.js.map +1 -0
- package/lib/algorithm/d3-force/types.d.ts +336 -0
- package/lib/algorithm/d3-force-3d/index.d.ts +26 -0
- package/lib/algorithm/d3-force-3d/index.js +73 -0
- package/lib/algorithm/d3-force-3d/index.js.map +1 -0
- package/lib/algorithm/d3-force-3d/types.d.ts +50 -0
- package/lib/algorithm/dagre/index.d.ts +22 -0
- package/lib/algorithm/dagre/index.js +142 -0
- package/lib/algorithm/dagre/index.js.map +1 -0
- package/lib/algorithm/dagre/types.d.ts +79 -0
- package/lib/algorithm/force/attractive.js +60 -0
- package/lib/algorithm/force/attractive.js.map +1 -0
- package/lib/algorithm/force/centripetal.js +87 -0
- package/lib/algorithm/force/centripetal.js.map +1 -0
- package/lib/algorithm/force/collide.js +172 -0
- package/lib/algorithm/force/collide.js.map +1 -0
- package/lib/algorithm/force/gravity.js +50 -0
- package/lib/algorithm/force/gravity.js.map +1 -0
- package/lib/algorithm/force/index.d.ts +87 -0
- package/lib/algorithm/force/index.js +450 -0
- package/lib/algorithm/force/index.js.map +1 -0
- package/lib/algorithm/force/repulsive.js +142 -0
- package/lib/algorithm/force/repulsive.js.map +1 -0
- package/lib/algorithm/force/simulation.d.ts +23 -0
- package/lib/algorithm/force/simulation.js +137 -0
- package/lib/algorithm/force/simulation.js.map +1 -0
- package/lib/algorithm/force/types.d.ts +252 -0
- package/lib/algorithm/force-atlas2/body.js +91 -0
- package/lib/algorithm/force-atlas2/body.js.map +1 -0
- package/lib/algorithm/force-atlas2/index.d.ts +22 -0
- package/lib/algorithm/force-atlas2/index.js +155 -0
- package/lib/algorithm/force-atlas2/index.js.map +1 -0
- package/lib/algorithm/force-atlas2/quad-tree.js +106 -0
- package/lib/algorithm/force-atlas2/quad-tree.js.map +1 -0
- package/lib/algorithm/force-atlas2/quad.js +98 -0
- package/lib/algorithm/force-atlas2/quad.js.map +1 -0
- package/lib/algorithm/force-atlas2/simulation.d.ts +39 -0
- package/lib/algorithm/force-atlas2/simulation.js +388 -0
- package/lib/algorithm/force-atlas2/simulation.js.map +1 -0
- package/lib/algorithm/force-atlas2/types.d.ts +109 -0
- package/lib/algorithm/fruchterman/index.d.ts +20 -0
- package/lib/algorithm/fruchterman/index.js +93 -0
- package/lib/algorithm/fruchterman/index.js.map +1 -0
- package/lib/algorithm/fruchterman/simulation.js +356 -0
- package/lib/algorithm/fruchterman/simulation.js.map +1 -0
- package/lib/algorithm/fruchterman/types.d.ts +48 -0
- package/lib/algorithm/grid/index.d.ts +16 -0
- package/lib/algorithm/grid/index.js +243 -0
- package/lib/algorithm/grid/index.js.map +1 -0
- package/lib/algorithm/grid/types.d.ts +85 -0
- package/lib/algorithm/mds/index.d.ts +15 -0
- package/lib/algorithm/mds/index.js +127 -0
- package/lib/algorithm/mds/index.js.map +1 -0
- package/lib/algorithm/mds/types.d.ts +25 -0
- package/lib/algorithm/radial/index.d.ts +16 -0
- package/lib/algorithm/radial/index.js +275 -0
- package/lib/algorithm/radial/index.js.map +1 -0
- package/lib/algorithm/radial/radial-nonoverlap-force.js +129 -0
- package/lib/algorithm/radial/radial-nonoverlap-force.js.map +1 -0
- package/lib/algorithm/radial/types.d.ts +103 -0
- package/lib/algorithm/random/index.d.ts +15 -0
- package/lib/algorithm/random/index.js +41 -0
- package/lib/algorithm/random/index.js.map +1 -0
- package/lib/algorithm/random/types.d.ts +11 -0
- package/lib/algorithm/types.d.ts +142 -0
- package/lib/index.d.ts +50 -2
- package/lib/index.js +28 -3
- package/lib/index.js.map +1 -1
- package/lib/model/data.d.ts +46 -0
- package/lib/model/data.js +281 -0
- package/lib/model/data.js.map +1 -0
- package/lib/node_modules/@antv/event-emitter/esm/index.js +107 -0
- package/lib/node_modules/@antv/event-emitter/esm/index.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/clone.js +34 -0
- package/lib/node_modules/@antv/util/esm/lodash/clone.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/deep-mix.js +54 -0
- package/lib/node_modules/@antv/util/esm/lodash/deep-mix.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/each.js +30 -0
- package/lib/node_modules/@antv/util/esm/lodash/each.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/get-type.js +10 -0
- package/lib/node_modules/@antv/util/esm/lodash/get-type.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/get.js +19 -0
- package/lib/node_modules/@antv/util/esm/lodash/get.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-array-like.js +12 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-array-like.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-array.js +10 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-array.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-boolean.js +14 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-boolean.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-empty.js +39 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-empty.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-function.js +10 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-function.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-nil.js +10 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-nil.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-number.js +10 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-number.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-object-like.js +12 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-object-like.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-object.js +13 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-object.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-plain-object.js +25 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-plain-object.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-prototype.js +9 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-prototype.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-string.js +10 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-string.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-type.js +5 -0
- package/lib/node_modules/@antv/util/esm/lodash/is-type.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/pick.js +19 -0
- package/lib/node_modules/@antv/util/esm/lodash/pick.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/set.js +30 -0
- package/lib/node_modules/@antv/util/esm/lodash/set.js.map +1 -0
- package/lib/node_modules/comlink/dist/esm/comlink.js +351 -0
- package/lib/node_modules/comlink/dist/esm/comlink.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/add.js +71 -0
- package/lib/node_modules/d3-binarytree/src/add.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/binarytree.js +71 -0
- package/lib/node_modules/d3-binarytree/src/binarytree.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/cover.js +39 -0
- package/lib/node_modules/d3-binarytree/src/cover.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/data.js +10 -0
- package/lib/node_modules/d3-binarytree/src/data.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/extent.js +8 -0
- package/lib/node_modules/d3-binarytree/src/extent.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/find.js +61 -0
- package/lib/node_modules/d3-binarytree/src/find.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/half.js +8 -0
- package/lib/node_modules/d3-binarytree/src/half.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/remove.js +59 -0
- package/lib/node_modules/d3-binarytree/src/remove.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/root.js +6 -0
- package/lib/node_modules/d3-binarytree/src/root.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/size.js +10 -0
- package/lib/node_modules/d3-binarytree/src/size.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/visit.js +17 -0
- package/lib/node_modules/d3-binarytree/src/visit.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/visitAfter.js +22 -0
- package/lib/node_modules/d3-binarytree/src/visitAfter.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/x.js +10 -0
- package/lib/node_modules/d3-binarytree/src/x.js.map +1 -0
- package/lib/node_modules/d3-dispatch/src/dispatch.js +85 -0
- package/lib/node_modules/d3-dispatch/src/dispatch.js.map +1 -0
- package/lib/node_modules/d3-force/src/center.js +43 -0
- package/lib/node_modules/d3-force/src/center.js.map +1 -0
- package/lib/node_modules/d3-force/src/collide.js +103 -0
- package/lib/node_modules/d3-force/src/collide.js.map +1 -0
- package/lib/node_modules/d3-force/src/constant.js +8 -0
- package/lib/node_modules/d3-force/src/constant.js.map +1 -0
- package/lib/node_modules/d3-force/src/jiggle.js +6 -0
- package/lib/node_modules/d3-force/src/jiggle.js.map +1 -0
- package/lib/node_modules/d3-force/src/lcg.js +12 -0
- package/lib/node_modules/d3-force/src/lcg.js.map +1 -0
- package/lib/node_modules/d3-force/src/link.js +120 -0
- package/lib/node_modules/d3-force/src/link.js.map +1 -0
- package/lib/node_modules/d3-force/src/manyBody.js +119 -0
- package/lib/node_modules/d3-force/src/manyBody.js.map +1 -0
- package/lib/node_modules/d3-force/src/radial.js +60 -0
- package/lib/node_modules/d3-force/src/radial.js.map +1 -0
- package/lib/node_modules/d3-force/src/simulation.js +159 -0
- package/lib/node_modules/d3-force/src/simulation.js.map +1 -0
- package/lib/node_modules/d3-force/src/x.js +44 -0
- package/lib/node_modules/d3-force/src/x.js.map +1 -0
- package/lib/node_modules/d3-force/src/y.js +44 -0
- package/lib/node_modules/d3-force/src/y.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/center.js +52 -0
- package/lib/node_modules/d3-force-3d/src/center.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/collide.js +135 -0
- package/lib/node_modules/d3-force-3d/src/collide.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/constant.js +8 -0
- package/lib/node_modules/d3-force-3d/src/constant.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/jiggle.js +6 -0
- package/lib/node_modules/d3-force-3d/src/jiggle.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/lcg.js +12 -0
- package/lib/node_modules/d3-force-3d/src/lcg.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/link.js +127 -0
- package/lib/node_modules/d3-force-3d/src/link.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/manyBody.js +142 -0
- package/lib/node_modules/d3-force-3d/src/manyBody.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/radial.js +70 -0
- package/lib/node_modules/d3-force-3d/src/radial.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/simulation.js +202 -0
- package/lib/node_modules/d3-force-3d/src/simulation.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/x.js +44 -0
- package/lib/node_modules/d3-force-3d/src/x.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/y.js +44 -0
- package/lib/node_modules/d3-force-3d/src/y.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/z.js +44 -0
- package/lib/node_modules/d3-force-3d/src/z.js.map +1 -0
- package/lib/node_modules/d3-octree/src/add.js +101 -0
- package/lib/node_modules/d3-octree/src/add.js.map +1 -0
- package/lib/node_modules/d3-octree/src/cover.js +55 -0
- package/lib/node_modules/d3-octree/src/cover.js.map +1 -0
- package/lib/node_modules/d3-octree/src/data.js +10 -0
- package/lib/node_modules/d3-octree/src/data.js.map +1 -0
- package/lib/node_modules/d3-octree/src/extent.js +8 -0
- package/lib/node_modules/d3-octree/src/extent.js.map +1 -0
- package/lib/node_modules/d3-octree/src/find.js +85 -0
- package/lib/node_modules/d3-octree/src/find.js.map +1 -0
- package/lib/node_modules/d3-octree/src/findAll.js +29 -0
- package/lib/node_modules/d3-octree/src/findAll.js.map +1 -0
- package/lib/node_modules/d3-octree/src/octant.js +12 -0
- package/lib/node_modules/d3-octree/src/octant.js.map +1 -0
- package/lib/node_modules/d3-octree/src/octree.js +83 -0
- package/lib/node_modules/d3-octree/src/octree.js.map +1 -0
- package/lib/node_modules/d3-octree/src/remove.js +71 -0
- package/lib/node_modules/d3-octree/src/remove.js.map +1 -0
- package/lib/node_modules/d3-octree/src/root.js +6 -0
- package/lib/node_modules/d3-octree/src/root.js.map +1 -0
- package/lib/node_modules/d3-octree/src/size.js +10 -0
- package/lib/node_modules/d3-octree/src/size.js.map +1 -0
- package/lib/node_modules/d3-octree/src/visit.js +23 -0
- package/lib/node_modules/d3-octree/src/visit.js.map +1 -0
- package/lib/node_modules/d3-octree/src/visitAfter.js +28 -0
- package/lib/node_modules/d3-octree/src/visitAfter.js.map +1 -0
- package/lib/node_modules/d3-octree/src/x.js +10 -0
- package/lib/node_modules/d3-octree/src/x.js.map +1 -0
- package/lib/node_modules/d3-octree/src/y.js +10 -0
- package/lib/node_modules/d3-octree/src/y.js.map +1 -0
- package/lib/node_modules/d3-octree/src/z.js +10 -0
- package/lib/node_modules/d3-octree/src/z.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/add.js +87 -0
- package/lib/node_modules/d3-quadtree/src/add.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/cover.js +46 -0
- package/lib/node_modules/d3-quadtree/src/cover.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/data.js +10 -0
- package/lib/node_modules/d3-quadtree/src/data.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/extent.js +8 -0
- package/lib/node_modules/d3-quadtree/src/extent.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/find.js +73 -0
- package/lib/node_modules/d3-quadtree/src/find.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/quad.js +10 -0
- package/lib/node_modules/d3-quadtree/src/quad.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/quadtree.js +76 -0
- package/lib/node_modules/d3-quadtree/src/quadtree.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/remove.js +65 -0
- package/lib/node_modules/d3-quadtree/src/remove.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/root.js +6 -0
- package/lib/node_modules/d3-quadtree/src/root.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/size.js +10 -0
- package/lib/node_modules/d3-quadtree/src/size.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/visit.js +19 -0
- package/lib/node_modules/d3-quadtree/src/visit.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/visitAfter.js +24 -0
- package/lib/node_modules/d3-quadtree/src/visitAfter.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/x.js +10 -0
- package/lib/node_modules/d3-quadtree/src/x.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/y.js +10 -0
- package/lib/node_modules/d3-quadtree/src/y.js.map +1 -0
- package/lib/node_modules/d3-timer/src/timer.js +113 -0
- package/lib/node_modules/d3-timer/src/timer.js.map +1 -0
- package/lib/node_modules/dagre/index.js +50 -0
- package/lib/node_modules/dagre/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/acyclic.js +80 -0
- package/lib/node_modules/dagre/lib/acyclic.js.map +1 -0
- package/lib/node_modules/dagre/lib/add-border-segments.js +52 -0
- package/lib/node_modules/dagre/lib/add-border-segments.js.map +1 -0
- package/lib/node_modules/dagre/lib/coordinate-system.js +84 -0
- package/lib/node_modules/dagre/lib/coordinate-system.js.map +1 -0
- package/lib/node_modules/dagre/lib/data/list.js +67 -0
- package/lib/node_modules/dagre/lib/data/list.js.map +1 -0
- package/lib/node_modules/dagre/lib/debug.js +49 -0
- package/lib/node_modules/dagre/lib/debug.js.map +1 -0
- package/lib/node_modules/dagre/lib/graphlib.js +31 -0
- package/lib/node_modules/dagre/lib/graphlib.js.map +1 -0
- package/lib/node_modules/dagre/lib/greedy-fas.js +133 -0
- package/lib/node_modules/dagre/lib/greedy-fas.js.map +1 -0
- package/lib/node_modules/dagre/lib/layout.js +415 -0
- package/lib/node_modules/dagre/lib/layout.js.map +1 -0
- package/lib/node_modules/dagre/lib/lodash.js +83 -0
- package/lib/node_modules/dagre/lib/lodash.js.map +1 -0
- package/lib/node_modules/dagre/lib/nesting-graph.js +146 -0
- package/lib/node_modules/dagre/lib/nesting-graph.js.map +1 -0
- package/lib/node_modules/dagre/lib/normalize.js +103 -0
- package/lib/node_modules/dagre/lib/normalize.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js +66 -0
- package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/barycenter.js +40 -0
- package/lib/node_modules/dagre/lib/order/barycenter.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/build-layer-graph.js +87 -0
- package/lib/node_modules/dagre/lib/order/build-layer-graph.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/cross-count.js +79 -0
- package/lib/node_modules/dagre/lib/order/cross-count.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/index.js +98 -0
- package/lib/node_modules/dagre/lib/order/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/init-order.js +50 -0
- package/lib/node_modules/dagre/lib/order/init-order.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/resolve-conflicts.js +134 -0
- package/lib/node_modules/dagre/lib/order/resolve-conflicts.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/sort-subgraph.js +92 -0
- package/lib/node_modules/dagre/lib/order/sort-subgraph.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/sort.js +71 -0
- package/lib/node_modules/dagre/lib/order/sort.js.map +1 -0
- package/lib/node_modules/dagre/lib/parent-dummy-chains.js +99 -0
- package/lib/node_modules/dagre/lib/parent-dummy-chains.js.map +1 -0
- package/lib/node_modules/dagre/lib/position/bk.js +433 -0
- package/lib/node_modules/dagre/lib/position/bk.js.map +1 -0
- package/lib/node_modules/dagre/lib/position/index.js +43 -0
- package/lib/node_modules/dagre/lib/position/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/feasible-tree.js +103 -0
- package/lib/node_modules/dagre/lib/rank/feasible-tree.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/index.js +62 -0
- package/lib/node_modules/dagre/lib/rank/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/network-simplex.js +250 -0
- package/lib/node_modules/dagre/lib/rank/network-simplex.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/util.js +75 -0
- package/lib/node_modules/dagre/lib/rank/util.js.map +1 -0
- package/lib/node_modules/dagre/lib/util.js +251 -0
- package/lib/node_modules/dagre/lib/util.js.map +1 -0
- package/lib/node_modules/dagre/lib/version.js +12 -0
- package/lib/node_modules/dagre/lib/version.js.map +1 -0
- package/lib/node_modules/graphlib/index.js +53 -0
- package/lib/node_modules/graphlib/index.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/components.js +40 -0
- package/lib/node_modules/graphlib/lib/alg/components.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/dfs.js +55 -0
- package/lib/node_modules/graphlib/lib/alg/dfs.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js +24 -0
- package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/dijkstra.js +68 -0
- package/lib/node_modules/graphlib/lib/alg/dijkstra.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/find-cycles.js +24 -0
- package/lib/node_modules/graphlib/lib/alg/find-cycles.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js +63 -0
- package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/index.js +36 -0
- package/lib/node_modules/graphlib/lib/alg/index.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/is-acyclic.js +28 -0
- package/lib/node_modules/graphlib/lib/alg/is-acyclic.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/postorder.js +20 -0
- package/lib/node_modules/graphlib/lib/alg/postorder.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/preorder.js +20 -0
- package/lib/node_modules/graphlib/lib/alg/preorder.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/prim.js +67 -0
- package/lib/node_modules/graphlib/lib/alg/prim.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/tarjan.js +60 -0
- package/lib/node_modules/graphlib/lib/alg/tarjan.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/topsort.js +48 -0
- package/lib/node_modules/graphlib/lib/alg/topsort.js.map +1 -0
- package/lib/node_modules/graphlib/lib/data/priority-queue.js +165 -0
- package/lib/node_modules/graphlib/lib/data/priority-queue.js.map +1 -0
- package/lib/node_modules/graphlib/lib/graph.js +544 -0
- package/lib/node_modules/graphlib/lib/graph.js.map +1 -0
- package/lib/node_modules/graphlib/lib/index.js +19 -0
- package/lib/node_modules/graphlib/lib/index.js.map +1 -0
- package/lib/node_modules/graphlib/lib/json.js +80 -0
- package/lib/node_modules/graphlib/lib/json.js.map +1 -0
- package/lib/node_modules/graphlib/lib/lodash.js +63 -0
- package/lib/node_modules/graphlib/lib/lodash.js.map +1 -0
- package/lib/node_modules/graphlib/lib/version.js +12 -0
- package/lib/node_modules/graphlib/lib/version.js.map +1 -0
- package/lib/node_modules/is-any-array/lib-esm/index.js +15 -0
- package/lib/node_modules/is-any-array/lib-esm/index.js.map +1 -0
- package/lib/node_modules/lodash/_DataView.js +21 -0
- package/lib/node_modules/lodash/_DataView.js.map +1 -0
- package/lib/node_modules/lodash/_Hash.js +49 -0
- package/lib/node_modules/lodash/_Hash.js.map +1 -0
- package/lib/node_modules/lodash/_ListCache.js +49 -0
- package/lib/node_modules/lodash/_ListCache.js.map +1 -0
- package/lib/node_modules/lodash/_Map.js +21 -0
- package/lib/node_modules/lodash/_Map.js.map +1 -0
- package/lib/node_modules/lodash/_MapCache.js +49 -0
- package/lib/node_modules/lodash/_MapCache.js.map +1 -0
- package/lib/node_modules/lodash/_Promise.js +21 -0
- package/lib/node_modules/lodash/_Promise.js.map +1 -0
- package/lib/node_modules/lodash/_Set.js +21 -0
- package/lib/node_modules/lodash/_Set.js.map +1 -0
- package/lib/node_modules/lodash/_SetCache.js +42 -0
- package/lib/node_modules/lodash/_SetCache.js.map +1 -0
- package/lib/node_modules/lodash/_Stack.js +45 -0
- package/lib/node_modules/lodash/_Stack.js.map +1 -0
- package/lib/node_modules/lodash/_Symbol.js +19 -0
- package/lib/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/node_modules/lodash/_Uint8Array.js +19 -0
- package/lib/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/lib/node_modules/lodash/_WeakMap.js +21 -0
- package/lib/node_modules/lodash/_WeakMap.js.map +1 -0
- package/lib/node_modules/lodash/_apply.js +33 -0
- package/lib/node_modules/lodash/_apply.js.map +1 -0
- package/lib/node_modules/lodash/_arrayEach.js +34 -0
- package/lib/node_modules/lodash/_arrayEach.js.map +1 -0
- package/lib/node_modules/lodash/_arrayFilter.js +37 -0
- package/lib/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/lib/node_modules/lodash/_arrayIncludes.js +30 -0
- package/lib/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/lib/node_modules/lodash/_arrayIncludesWith.js +34 -0
- package/lib/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/lib/node_modules/lodash/_arrayLikeKeys.js +67 -0
- package/lib/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/lib/node_modules/lodash/_arrayMap.js +33 -0
- package/lib/node_modules/lodash/_arrayMap.js.map +1 -0
- package/lib/node_modules/lodash/_arrayPush.js +32 -0
- package/lib/node_modules/lodash/_arrayPush.js.map +1 -0
- package/lib/node_modules/lodash/_arrayReduce.js +38 -0
- package/lib/node_modules/lodash/_arrayReduce.js.map +1 -0
- package/lib/node_modules/lodash/_arraySome.js +35 -0
- package/lib/node_modules/lodash/_arraySome.js.map +1 -0
- package/lib/node_modules/lodash/_asciiSize.js +25 -0
- package/lib/node_modules/lodash/_asciiSize.js.map +1 -0
- package/lib/node_modules/lodash/_assignMergeValue.js +34 -0
- package/lib/node_modules/lodash/_assignMergeValue.js.map +1 -0
- package/lib/node_modules/lodash/_assignValue.js +42 -0
- package/lib/node_modules/lodash/_assignValue.js.map +1 -0
- package/lib/node_modules/lodash/_assocIndexOf.js +34 -0
- package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseAssign.js +31 -0
- package/lib/node_modules/lodash/_baseAssign.js.map +1 -0
- package/lib/node_modules/lodash/_baseAssignIn.js +31 -0
- package/lib/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/lib/node_modules/lodash/_baseAssignValue.js +38 -0
- package/lib/node_modules/lodash/_baseAssignValue.js.map +1 -0
- package/lib/node_modules/lodash/_baseClone.js +200 -0
- package/lib/node_modules/lodash/_baseClone.js.map +1 -0
- package/lib/node_modules/lodash/_baseCreate.js +43 -0
- package/lib/node_modules/lodash/_baseCreate.js.map +1 -0
- package/lib/node_modules/lodash/_baseEach.js +28 -0
- package/lib/node_modules/lodash/_baseEach.js.map +1 -0
- package/lib/node_modules/lodash/_baseExtremum.js +45 -0
- package/lib/node_modules/lodash/_baseExtremum.js.map +1 -0
- package/lib/node_modules/lodash/_baseFilter.js +34 -0
- package/lib/node_modules/lodash/_baseFilter.js.map +1 -0
- package/lib/node_modules/lodash/_baseFindIndex.js +36 -0
- package/lib/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/lib/node_modules/lodash/_baseFlatten.js +52 -0
- package/lib/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/lib/node_modules/lodash/_baseFor.js +29 -0
- package/lib/node_modules/lodash/_baseFor.js.map +1 -0
- package/lib/node_modules/lodash/_baseForOwn.js +30 -0
- package/lib/node_modules/lodash/_baseForOwn.js.map +1 -0
- package/lib/node_modules/lodash/_baseGet.js +38 -0
- package/lib/node_modules/lodash/_baseGet.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetAllKeys.js +34 -0
- package/lib/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetTag.js +43 -0
- package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/node_modules/lodash/_baseGt.js +26 -0
- package/lib/node_modules/lodash/_baseGt.js.map +1 -0
- package/lib/node_modules/lodash/_baseHas.js +31 -0
- package/lib/node_modules/lodash/_baseHas.js.map +1 -0
- package/lib/node_modules/lodash/_baseHasIn.js +25 -0
- package/lib/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/lib/node_modules/lodash/_baseIndexOf.js +35 -0
- package/lib/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsArguments.js +32 -0
- package/lib/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsEqual.js +42 -0
- package/lib/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsEqualDeep.js +103 -0
- package/lib/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsMap.js +32 -0
- package/lib/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsMatch.js +76 -0
- package/lib/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNaN.js +24 -0
- package/lib/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNative.js +63 -0
- package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsSet.js +32 -0
- package/lib/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsTypedArray.js +75 -0
- package/lib/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/lib/node_modules/lodash/_baseIteratee.js +48 -0
- package/lib/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/lib/node_modules/lodash/_baseKeys.js +44 -0
- package/lib/node_modules/lodash/_baseKeys.js.map +1 -0
- package/lib/node_modules/lodash/_baseKeysIn.js +48 -0
- package/lib/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/lib/node_modules/lodash/_baseLt.js +26 -0
- package/lib/node_modules/lodash/_baseLt.js.map +1 -0
- package/lib/node_modules/lodash/_baseMap.js +36 -0
- package/lib/node_modules/lodash/_baseMap.js.map +1 -0
- package/lib/node_modules/lodash/_baseMatches.js +37 -0
- package/lib/node_modules/lodash/_baseMatches.js.map +1 -0
- package/lib/node_modules/lodash/_baseMatchesProperty.js +52 -0
- package/lib/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/lib/node_modules/lodash/_baseMerge.js +61 -0
- package/lib/node_modules/lodash/_baseMerge.js.map +1 -0
- package/lib/node_modules/lodash/_baseMergeDeep.js +121 -0
- package/lib/node_modules/lodash/_baseMergeDeep.js.map +1 -0
- package/lib/node_modules/lodash/_baseOrderBy.js +70 -0
- package/lib/node_modules/lodash/_baseOrderBy.js.map +1 -0
- package/lib/node_modules/lodash/_basePick.js +33 -0
- package/lib/node_modules/lodash/_basePick.js.map +1 -0
- package/lib/node_modules/lodash/_basePickBy.js +45 -0
- package/lib/node_modules/lodash/_basePickBy.js.map +1 -0
- package/lib/node_modules/lodash/_baseProperty.js +26 -0
- package/lib/node_modules/lodash/_baseProperty.js.map +1 -0
- package/lib/node_modules/lodash/_basePropertyDeep.js +29 -0
- package/lib/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/lib/node_modules/lodash/_baseRange.js +40 -0
- package/lib/node_modules/lodash/_baseRange.js.map +1 -0
- package/lib/node_modules/lodash/_baseReduce.js +35 -0
- package/lib/node_modules/lodash/_baseReduce.js.map +1 -0
- package/lib/node_modules/lodash/_baseRest.js +32 -0
- package/lib/node_modules/lodash/_baseRest.js.map +1 -0
- package/lib/node_modules/lodash/_baseSet.js +68 -0
- package/lib/node_modules/lodash/_baseSet.js.map +1 -0
- package/lib/node_modules/lodash/_baseSetToString.js +37 -0
- package/lib/node_modules/lodash/_baseSetToString.js.map +1 -0
- package/lib/node_modules/lodash/_baseSortBy.js +33 -0
- package/lib/node_modules/lodash/_baseSortBy.js.map +1 -0
- package/lib/node_modules/lodash/_baseTimes.js +32 -0
- package/lib/node_modules/lodash/_baseTimes.js.map +1 -0
- package/lib/node_modules/lodash/_baseToString.js +50 -0
- package/lib/node_modules/lodash/_baseToString.js.map +1 -0
- package/lib/node_modules/lodash/_baseTrim.js +32 -0
- package/lib/node_modules/lodash/_baseTrim.js.map +1 -0
- package/lib/node_modules/lodash/_baseUnary.js +26 -0
- package/lib/node_modules/lodash/_baseUnary.js.map +1 -0
- package/lib/node_modules/lodash/_baseUniq.js +90 -0
- package/lib/node_modules/lodash/_baseUniq.js.map +1 -0
- package/lib/node_modules/lodash/_baseValues.js +32 -0
- package/lib/node_modules/lodash/_baseValues.js.map +1 -0
- package/lib/node_modules/lodash/_baseZipObject.js +35 -0
- package/lib/node_modules/lodash/_baseZipObject.js.map +1 -0
- package/lib/node_modules/lodash/_cacheHas.js +25 -0
- package/lib/node_modules/lodash/_cacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_castFunction.js +27 -0
- package/lib/node_modules/lodash/_castFunction.js.map +1 -0
- package/lib/node_modules/lodash/_castPath.js +37 -0
- package/lib/node_modules/lodash/_castPath.js.map +1 -0
- package/lib/node_modules/lodash/_cloneArrayBuffer.js +29 -0
- package/lib/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/lib/node_modules/lodash/_cloneBuffer.js +52 -0
- package/lib/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/lib/node_modules/lodash/_cloneDataView.js +29 -0
- package/lib/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/lib/node_modules/lodash/_cloneRegExp.js +29 -0
- package/lib/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/lib/node_modules/lodash/_cloneSymbol.js +31 -0
- package/lib/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/lib/node_modules/lodash/_cloneTypedArray.js +29 -0
- package/lib/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/lib/node_modules/lodash/_compareAscending.js +54 -0
- package/lib/node_modules/lodash/_compareAscending.js.map +1 -0
- package/lib/node_modules/lodash/_compareMultiple.js +57 -0
- package/lib/node_modules/lodash/_compareMultiple.js.map +1 -0
- package/lib/node_modules/lodash/_copyArray.js +32 -0
- package/lib/node_modules/lodash/_copyArray.js.map +1 -0
- package/lib/node_modules/lodash/_copyObject.js +54 -0
- package/lib/node_modules/lodash/_copyObject.js.map +1 -0
- package/lib/node_modules/lodash/_copySymbols.js +30 -0
- package/lib/node_modules/lodash/_copySymbols.js.map +1 -0
- package/lib/node_modules/lodash/_copySymbolsIn.js +30 -0
- package/lib/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/lib/node_modules/lodash/_coreJsData.js +19 -0
- package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/node_modules/lodash/_createAssigner.js +51 -0
- package/lib/node_modules/lodash/_createAssigner.js.map +1 -0
- package/lib/node_modules/lodash/_createBaseEach.js +45 -0
- package/lib/node_modules/lodash/_createBaseEach.js.map +1 -0
- package/lib/node_modules/lodash/_createBaseFor.js +37 -0
- package/lib/node_modules/lodash/_createBaseFor.js.map +1 -0
- package/lib/node_modules/lodash/_createFind.js +40 -0
- package/lib/node_modules/lodash/_createFind.js.map +1 -0
- package/lib/node_modules/lodash/_createRange.js +45 -0
- package/lib/node_modules/lodash/_createRange.js.map +1 -0
- package/lib/node_modules/lodash/_createSet.js +34 -0
- package/lib/node_modules/lodash/_createSet.js.map +1 -0
- package/lib/node_modules/lodash/_defineProperty.js +24 -0
- package/lib/node_modules/lodash/_defineProperty.js.map +1 -0
- package/lib/node_modules/lodash/_equalArrays.js +99 -0
- package/lib/node_modules/lodash/_equalArrays.js.map +1 -0
- package/lib/node_modules/lodash/_equalByTag.js +130 -0
- package/lib/node_modules/lodash/_equalByTag.js.map +1 -0
- package/lib/node_modules/lodash/_equalObjects.js +103 -0
- package/lib/node_modules/lodash/_equalObjects.js.map +1 -0
- package/lib/node_modules/lodash/_flatRest.js +31 -0
- package/lib/node_modules/lodash/_flatRest.js.map +1 -0
- package/lib/node_modules/lodash/_freeGlobal.js +18 -0
- package/lib/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/node_modules/lodash/_getAllKeys.js +31 -0
- package/lib/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/lib/node_modules/lodash/_getAllKeysIn.js +32 -0
- package/lib/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/lib/node_modules/lodash/_getMapData.js +31 -0
- package/lib/node_modules/lodash/_getMapData.js.map +1 -0
- package/lib/node_modules/lodash/_getMatchData.js +38 -0
- package/lib/node_modules/lodash/_getMatchData.js.map +1 -0
- package/lib/node_modules/lodash/_getNative.js +31 -0
- package/lib/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/node_modules/lodash/_getPrototype.js +19 -0
- package/lib/node_modules/lodash/_getPrototype.js.map +1 -0
- package/lib/node_modules/lodash/_getRawTag.js +59 -0
- package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/node_modules/lodash/_getSymbols.js +44 -0
- package/lib/node_modules/lodash/_getSymbols.js.map +1 -0
- package/lib/node_modules/lodash/_getSymbolsIn.js +41 -0
- package/lib/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/lib/node_modules/lodash/_getTag.js +77 -0
- package/lib/node_modules/lodash/_getTag.js.map +1 -0
- package/lib/node_modules/lodash/_getValue.js +25 -0
- package/lib/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/node_modules/lodash/_hasPath.js +57 -0
- package/lib/node_modules/lodash/_hasPath.js.map +1 -0
- package/lib/node_modules/lodash/_hasUnicode.js +38 -0
- package/lib/node_modules/lodash/_hasUnicode.js.map +1 -0
- package/lib/node_modules/lodash/_hashClear.js +28 -0
- package/lib/node_modules/lodash/_hashClear.js.map +1 -0
- package/lib/node_modules/lodash/_hashDelete.js +29 -0
- package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
- package/lib/node_modules/lodash/_hashGet.js +43 -0
- package/lib/node_modules/lodash/_hashGet.js.map +1 -0
- package/lib/node_modules/lodash/_hashHas.js +36 -0
- package/lib/node_modules/lodash/_hashHas.js.map +1 -0
- package/lib/node_modules/lodash/_hashSet.js +36 -0
- package/lib/node_modules/lodash/_hashSet.js.map +1 -0
- package/lib/node_modules/lodash/_initCloneArray.js +38 -0
- package/lib/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/lib/node_modules/lodash/_initCloneByTag.js +94 -0
- package/lib/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/lib/node_modules/lodash/_initCloneObject.js +33 -0
- package/lib/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/lib/node_modules/lodash/_isFlattenable.js +35 -0
- package/lib/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/lib/node_modules/lodash/_isIndex.js +37 -0
- package/lib/node_modules/lodash/_isIndex.js.map +1 -0
- package/lib/node_modules/lodash/_isIterateeCall.js +46 -0
- package/lib/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/lib/node_modules/lodash/_isKey.js +43 -0
- package/lib/node_modules/lodash/_isKey.js.map +1 -0
- package/lib/node_modules/lodash/_isKeyable.js +27 -0
- package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
- package/lib/node_modules/lodash/_isMasked.js +33 -0
- package/lib/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/node_modules/lodash/_isPrototype.js +30 -0
- package/lib/node_modules/lodash/_isPrototype.js.map +1 -0
- package/lib/node_modules/lodash/_isStrictComparable.js +28 -0
- package/lib/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheClear.js +25 -0
- package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheDelete.js +48 -0
- package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheGet.js +32 -0
- package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheHas.js +29 -0
- package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheSet.js +39 -0
- package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheClear.js +36 -0
- package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js +31 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheGet.js +29 -0
- package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheHas.js +29 -0
- package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheSet.js +35 -0
- package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapToArray.js +30 -0
- package/lib/node_modules/lodash/_mapToArray.js.map +1 -0
- package/lib/node_modules/lodash/_matchesStrictComparable.js +32 -0
- package/lib/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/lib/node_modules/lodash/_memoizeCapped.js +39 -0
- package/lib/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/lib/node_modules/lodash/_nativeCreate.js +19 -0
- package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/node_modules/lodash/_nativeKeys.js +19 -0
- package/lib/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/lib/node_modules/lodash/_nativeKeysIn.js +32 -0
- package/lib/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/lib/node_modules/lodash/_nodeUtil.js +47 -0
- package/lib/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/lib/node_modules/lodash/_objectToString.js +34 -0
- package/lib/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/node_modules/lodash/_overArg.js +27 -0
- package/lib/node_modules/lodash/_overArg.js.map +1 -0
- package/lib/node_modules/lodash/_overRest.js +49 -0
- package/lib/node_modules/lodash/_overRest.js.map +1 -0
- package/lib/node_modules/lodash/_root.js +22 -0
- package/lib/node_modules/lodash/_root.js.map +1 -0
- package/lib/node_modules/lodash/_safeGet.js +33 -0
- package/lib/node_modules/lodash/_safeGet.js.map +1 -0
- package/lib/node_modules/lodash/_setCacheAdd.js +31 -0
- package/lib/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/lib/node_modules/lodash/_setCacheHas.js +26 -0
- package/lib/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_setToArray.js +30 -0
- package/lib/node_modules/lodash/_setToArray.js.map +1 -0
- package/lib/node_modules/lodash/_setToString.js +28 -0
- package/lib/node_modules/lodash/_setToString.js.map +1 -0
- package/lib/node_modules/lodash/_shortOut.js +49 -0
- package/lib/node_modules/lodash/_shortOut.js.map +1 -0
- package/lib/node_modules/lodash/_stackClear.js +28 -0
- package/lib/node_modules/lodash/_stackClear.js.map +1 -0
- package/lib/node_modules/lodash/_stackDelete.js +30 -0
- package/lib/node_modules/lodash/_stackDelete.js.map +1 -0
- package/lib/node_modules/lodash/_stackGet.js +26 -0
- package/lib/node_modules/lodash/_stackGet.js.map +1 -0
- package/lib/node_modules/lodash/_stackHas.js +26 -0
- package/lib/node_modules/lodash/_stackHas.js.map +1 -0
- package/lib/node_modules/lodash/_stackSet.js +49 -0
- package/lib/node_modules/lodash/_stackSet.js.map +1 -0
- package/lib/node_modules/lodash/_strictIndexOf.js +35 -0
- package/lib/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_stringSize.js +33 -0
- package/lib/node_modules/lodash/_stringSize.js.map +1 -0
- package/lib/node_modules/lodash/_stringToPath.js +40 -0
- package/lib/node_modules/lodash/_stringToPath.js.map +1 -0
- package/lib/node_modules/lodash/_toKey.js +31 -0
- package/lib/node_modules/lodash/_toKey.js.map +1 -0
- package/lib/node_modules/lodash/_toSource.js +38 -0
- package/lib/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/node_modules/lodash/_trimmedEndIndex.js +31 -0
- package/lib/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/lib/node_modules/lodash/_unicodeSize.js +56 -0
- package/lib/node_modules/lodash/_unicodeSize.js.map +1 -0
- package/lib/node_modules/lodash/clone.js +49 -0
- package/lib/node_modules/lodash/clone.js.map +1 -0
- package/lib/node_modules/lodash/cloneDeep.js +42 -0
- package/lib/node_modules/lodash/cloneDeep.js.map +1 -0
- package/lib/node_modules/lodash/constant.js +38 -0
- package/lib/node_modules/lodash/constant.js.map +1 -0
- package/lib/node_modules/lodash/defaults.js +80 -0
- package/lib/node_modules/lodash/defaults.js.map +1 -0
- package/lib/node_modules/lodash/each.js +14 -0
- package/lib/node_modules/lodash/each.js.map +1 -0
- package/lib/node_modules/lodash/eq.js +49 -0
- package/lib/node_modules/lodash/eq.js.map +1 -0
- package/lib/node_modules/lodash/filter.js +68 -0
- package/lib/node_modules/lodash/filter.js.map +1 -0
- package/lib/node_modules/lodash/find.js +56 -0
- package/lib/node_modules/lodash/find.js.map +1 -0
- package/lib/node_modules/lodash/findIndex.js +70 -0
- package/lib/node_modules/lodash/findIndex.js.map +1 -0
- package/lib/node_modules/lodash/flatten.js +35 -0
- package/lib/node_modules/lodash/flatten.js.map +1 -0
- package/lib/node_modules/lodash/forEach.js +57 -0
- package/lib/node_modules/lodash/forEach.js.map +1 -0
- package/lib/node_modules/lodash/forIn.js +54 -0
- package/lib/node_modules/lodash/forIn.js.map +1 -0
- package/lib/node_modules/lodash/get.js +46 -0
- package/lib/node_modules/lodash/get.js.map +1 -0
- package/lib/node_modules/lodash/has.js +49 -0
- package/lib/node_modules/lodash/has.js.map +1 -0
- package/lib/node_modules/lodash/hasIn.js +48 -0
- package/lib/node_modules/lodash/hasIn.js.map +1 -0
- package/lib/node_modules/lodash/identity.js +33 -0
- package/lib/node_modules/lodash/identity.js.map +1 -0
- package/lib/node_modules/lodash/isArguments.js +50 -0
- package/lib/node_modules/lodash/isArguments.js.map +1 -0
- package/lib/node_modules/lodash/isArray.js +38 -0
- package/lib/node_modules/lodash/isArray.js.map +1 -0
- package/lib/node_modules/lodash/isArrayLike.js +47 -0
- package/lib/node_modules/lodash/isArrayLike.js.map +1 -0
- package/lib/node_modules/lodash/isArrayLikeObject.js +47 -0
- package/lib/node_modules/lodash/isArrayLikeObject.js.map +1 -0
- package/lib/node_modules/lodash/isBuffer.js +56 -0
- package/lib/node_modules/lodash/isBuffer.js.map +1 -0
- package/lib/node_modules/lodash/isEmpty.js +97 -0
- package/lib/node_modules/lodash/isEmpty.js.map +1 -0
- package/lib/node_modules/lodash/isFunction.js +51 -0
- package/lib/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/node_modules/lodash/isLength.js +47 -0
- package/lib/node_modules/lodash/isLength.js.map +1 -0
- package/lib/node_modules/lodash/isMap.js +42 -0
- package/lib/node_modules/lodash/isMap.js.map +1 -0
- package/lib/node_modules/lodash/isObject.js +43 -0
- package/lib/node_modules/lodash/isObject.js.map +1 -0
- package/lib/node_modules/lodash/isObjectLike.js +41 -0
- package/lib/node_modules/lodash/isObjectLike.js.map +1 -0
- package/lib/node_modules/lodash/isPlainObject.js +77 -0
- package/lib/node_modules/lodash/isPlainObject.js.map +1 -0
- package/lib/node_modules/lodash/isSet.js +42 -0
- package/lib/node_modules/lodash/isSet.js.map +1 -0
- package/lib/node_modules/lodash/isString.js +45 -0
- package/lib/node_modules/lodash/isString.js.map +1 -0
- package/lib/node_modules/lodash/isSymbol.js +43 -0
- package/lib/node_modules/lodash/isSymbol.js.map +1 -0
- package/lib/node_modules/lodash/isTypedArray.js +42 -0
- package/lib/node_modules/lodash/isTypedArray.js.map +1 -0
- package/lib/node_modules/lodash/isUndefined.js +34 -0
- package/lib/node_modules/lodash/isUndefined.js.map +1 -0
- package/lib/node_modules/lodash/keys.js +52 -0
- package/lib/node_modules/lodash/keys.js.map +1 -0
- package/lib/node_modules/lodash/keysIn.js +47 -0
- package/lib/node_modules/lodash/keysIn.js.map +1 -0
- package/lib/node_modules/lodash/last.js +32 -0
- package/lib/node_modules/lodash/last.js.map +1 -0
- package/lib/node_modules/lodash/map.js +69 -0
- package/lib/node_modules/lodash/map.js.map +1 -0
- package/lib/node_modules/lodash/mapValues.js +58 -0
- package/lib/node_modules/lodash/mapValues.js.map +1 -0
- package/lib/node_modules/lodash/max.js +44 -0
- package/lib/node_modules/lodash/max.js.map +1 -0
- package/lib/node_modules/lodash/memoize.js +86 -0
- package/lib/node_modules/lodash/memoize.js.map +1 -0
- package/lib/node_modules/lodash/merge.js +53 -0
- package/lib/node_modules/lodash/merge.js.map +1 -0
- package/lib/node_modules/lodash/min.js +44 -0
- package/lib/node_modules/lodash/min.js.map +1 -0
- package/lib/node_modules/lodash/minBy.js +49 -0
- package/lib/node_modules/lodash/minBy.js.map +1 -0
- package/lib/node_modules/lodash/noop.js +29 -0
- package/lib/node_modules/lodash/noop.js.map +1 -0
- package/lib/node_modules/lodash/now.js +36 -0
- package/lib/node_modules/lodash/now.js.map +1 -0
- package/lib/node_modules/lodash/pick.js +39 -0
- package/lib/node_modules/lodash/pick.js.map +1 -0
- package/lib/node_modules/lodash/property.js +48 -0
- package/lib/node_modules/lodash/property.js.map +1 -0
- package/lib/node_modules/lodash/range.js +59 -0
- package/lib/node_modules/lodash/range.js.map +1 -0
- package/lib/node_modules/lodash/reduce.js +68 -0
- package/lib/node_modules/lodash/reduce.js.map +1 -0
- package/lib/node_modules/lodash/size.js +63 -0
- package/lib/node_modules/lodash/size.js.map +1 -0
- package/lib/node_modules/lodash/sortBy.js +64 -0
- package/lib/node_modules/lodash/sortBy.js.map +1 -0
- package/lib/node_modules/lodash/stubArray.js +35 -0
- package/lib/node_modules/lodash/stubArray.js.map +1 -0
- package/lib/node_modules/lodash/stubFalse.js +30 -0
- package/lib/node_modules/lodash/stubFalse.js.map +1 -0
- package/lib/node_modules/lodash/toFinite.js +55 -0
- package/lib/node_modules/lodash/toFinite.js.map +1 -0
- package/lib/node_modules/lodash/toInteger.js +49 -0
- package/lib/node_modules/lodash/toInteger.js.map +1 -0
- package/lib/node_modules/lodash/toNumber.js +79 -0
- package/lib/node_modules/lodash/toNumber.js.map +1 -0
- package/lib/node_modules/lodash/toPlainObject.js +46 -0
- package/lib/node_modules/lodash/toPlainObject.js.map +1 -0
- package/lib/node_modules/lodash/toString.js +41 -0
- package/lib/node_modules/lodash/toString.js.map +1 -0
- package/lib/node_modules/lodash/transform.js +87 -0
- package/lib/node_modules/lodash/transform.js.map +1 -0
- package/lib/node_modules/lodash/union.js +42 -0
- package/lib/node_modules/lodash/union.js.map +1 -0
- package/lib/node_modules/lodash/uniqueId.js +41 -0
- package/lib/node_modules/lodash/uniqueId.js.map +1 -0
- package/lib/node_modules/lodash/values.js +48 -0
- package/lib/node_modules/lodash/values.js.map +1 -0
- package/lib/node_modules/lodash/zipObject.js +38 -0
- package/lib/node_modules/lodash/zipObject.js.map +1 -0
- package/lib/node_modules/ml-array-max/lib-es6/index.js +37 -0
- package/lib/node_modules/ml-array-max/lib-es6/index.js.map +1 -0
- package/lib/node_modules/ml-array-min/lib-es6/index.js +37 -0
- package/lib/node_modules/ml-array-min/lib-es6/index.js.map +1 -0
- package/lib/node_modules/ml-array-rescale/lib-es6/index.js +52 -0
- package/lib/node_modules/ml-array-rescale/lib-es6/index.js.map +1 -0
- package/lib/node_modules/ml-matrix/matrix.js +8 -0
- package/lib/node_modules/ml-matrix/matrix.js.map +1 -0
- package/lib/node_modules/ml-matrix/matrix2.js +5660 -0
- package/lib/node_modules/ml-matrix/matrix2.js.map +1 -0
- package/lib/node_modules/tslib/tslib.es6.js +46 -0
- package/lib/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/registry.d.ts +3 -2
- package/lib/registry.js +27 -26
- package/lib/registry.js.map +1 -1
- package/lib/runtime/context.d.ts +15 -0
- package/lib/runtime/context.js +29 -0
- package/lib/runtime/context.js.map +1 -0
- package/lib/runtime/supervisor.d.ts +25 -0
- package/lib/runtime/supervisor.js +75 -0
- package/lib/runtime/supervisor.js.map +1 -0
- package/lib/types/common.d.ts +4 -0
- package/lib/types/data.d.ts +59 -0
- package/lib/types/edge-label.d.ts +6 -0
- package/lib/types/force.d.ts +46 -0
- package/lib/types/id.d.ts +3 -0
- package/lib/types/point.d.ts +9 -0
- package/lib/types/position.d.ts +10 -0
- package/lib/types/size.d.ts +4 -0
- package/lib/util/array.d.ts +3 -1
- package/lib/util/array.js +4 -2
- package/lib/util/array.js.map +1 -1
- package/lib/util/common.d.ts +8 -8
- package/lib/util/common.js +14 -25
- package/lib/util/common.js.map +1 -1
- package/lib/util/format.js +72 -0
- package/lib/util/format.js.map +1 -0
- package/lib/util/math.d.ts +30 -12
- package/lib/util/math.js +178 -55
- package/lib/util/math.js.map +1 -1
- package/lib/util/object.d.ts +22 -7
- package/lib/util/object.js +46 -40
- package/lib/util/object.js.map +1 -1
- package/lib/util/order.d.ts +20 -0
- package/lib/util/order.js +106 -0
- package/lib/util/order.js.map +1 -0
- package/lib/util/point.d.ts +6 -0
- package/lib/util/point.js +11 -0
- package/lib/util/point.js.map +1 -0
- package/lib/util/size.d.ts +5 -3
- package/lib/util/size.js +7 -4
- package/lib/util/size.js.map +1 -1
- package/lib/util/viewport.d.ts +16 -0
- package/lib/util/viewport.js +17 -0
- package/lib/util/viewport.js.map +1 -0
- package/lib/worker.js +32302 -33
- package/lib/worker.js.map +1 -1
- package/package.json +78 -19
- package/src/algorithm/antv-dagre/acyclic.ts +70 -0
- package/src/algorithm/antv-dagre/add-border-segments.ts +55 -0
- package/src/algorithm/antv-dagre/coordinate-system.ts +77 -0
- package/src/algorithm/antv-dagre/data/list.ts +60 -0
- package/src/algorithm/antv-dagre/graph.ts +533 -0
- package/src/algorithm/antv-dagre/greedy-fas.ts +185 -0
- package/src/algorithm/antv-dagre/index.ts +620 -0
- package/src/algorithm/antv-dagre/layout.ts +622 -0
- package/src/algorithm/antv-dagre/nesting-graph.ts +184 -0
- package/src/algorithm/antv-dagre/normalize.ts +125 -0
- package/src/algorithm/antv-dagre/order/add-subgraph-constraints.ts +51 -0
- package/src/algorithm/antv-dagre/order/barycenter.ts +26 -0
- package/src/algorithm/antv-dagre/order/build-layer-graph.ts +109 -0
- package/src/algorithm/antv-dagre/order/cross-count.ts +76 -0
- package/src/algorithm/antv-dagre/order/index.ts +123 -0
- package/src/algorithm/antv-dagre/order/init-data-order.ts +29 -0
- package/src/algorithm/antv-dagre/order/init-order.ts +59 -0
- package/src/algorithm/antv-dagre/order/resolve-conflicts.ts +153 -0
- package/src/algorithm/antv-dagre/order/sort-subgraph.ts +111 -0
- package/src/algorithm/antv-dagre/order/sort.ts +94 -0
- package/src/algorithm/antv-dagre/parent-dummy-chains.ts +111 -0
- package/src/algorithm/antv-dagre/position/bk.ts +560 -0
- package/src/algorithm/antv-dagre/position/index.ts +109 -0
- package/src/algorithm/antv-dagre/rank/feasible-tree.ts +179 -0
- package/src/algorithm/antv-dagre/rank/index.ts +55 -0
- package/src/algorithm/antv-dagre/rank/network-simplex.ts +282 -0
- package/src/algorithm/antv-dagre/rank/util.ts +157 -0
- package/src/algorithm/antv-dagre/types.ts +175 -0
- package/src/algorithm/antv-dagre/util.ts +359 -0
- package/src/algorithm/base-layout.ts +132 -0
- package/src/algorithm/base-simulation.ts +94 -0
- package/src/algorithm/circular/index.ts +123 -0
- package/src/algorithm/circular/types.ts +105 -0
- package/src/algorithm/combo-combined/index.ts +412 -0
- package/src/algorithm/combo-combined/types.ts +39 -0
- package/src/algorithm/concentric/index.ts +234 -0
- package/src/algorithm/concentric/types.ts +89 -0
- package/src/algorithm/d3-force/force-in-a-box.ts +404 -0
- package/src/algorithm/d3-force/index.ts +642 -0
- package/src/algorithm/d3-force/types.ts +378 -0
- package/src/algorithm/d3-force-3d/index.ts +88 -0
- package/src/algorithm/d3-force-3d/types.ts +68 -0
- package/src/algorithm/d3-force-3d/typing.d.ts +301 -0
- package/src/algorithm/dagre/index.ts +172 -0
- package/src/algorithm/dagre/types.ts +84 -0
- package/src/algorithm/force/attractive.ts +71 -0
- package/src/algorithm/force/centripetal.ts +133 -0
- package/src/algorithm/force/collide.ts +219 -0
- package/src/algorithm/force/gravity.ts +61 -0
- package/src/algorithm/force/index.ts +541 -0
- package/src/algorithm/force/repulsive.ts +200 -0
- package/src/algorithm/force/simulation.ts +172 -0
- package/src/algorithm/force/types.ts +265 -0
- package/src/algorithm/force/typing.d.ts +76 -0
- package/src/algorithm/force-atlas2/body.ts +115 -0
- package/src/algorithm/force-atlas2/index.ts +189 -0
- package/src/algorithm/force-atlas2/quad-tree.ts +109 -0
- package/src/algorithm/force-atlas2/quad.ts +117 -0
- package/src/algorithm/force-atlas2/simulation.ts +445 -0
- package/src/algorithm/force-atlas2/types.ts +106 -0
- package/src/algorithm/fruchterman/index.ts +116 -0
- package/src/algorithm/fruchterman/simulation.ts +447 -0
- package/src/algorithm/fruchterman/types.ts +47 -0
- package/src/algorithm/grid/index.ts +305 -0
- package/src/algorithm/grid/types.ts +120 -0
- package/src/algorithm/index.ts +29 -0
- package/src/algorithm/mds/index.ts +143 -0
- package/src/algorithm/mds/types.ts +23 -0
- package/src/algorithm/radial/index.ts +346 -0
- package/src/algorithm/radial/radial-nonoverlap-force.ts +210 -0
- package/src/algorithm/radial/types.ts +100 -0
- package/src/algorithm/random/index.ts +41 -0
- package/src/algorithm/random/types.ts +8 -0
- package/src/algorithm/types.ts +172 -0
- package/src/index.ts +6 -0
- package/src/model/data.ts +381 -0
- package/src/model/index.ts +1 -0
- package/src/registry.ts +29 -0
- package/src/runtime/context.ts +49 -0
- package/src/runtime/index.ts +2 -0
- package/src/runtime/supervisor.ts +80 -0
- package/src/types/common.ts +3 -0
- package/src/types/data.ts +79 -0
- package/src/types/edge-label.ts +5 -0
- package/src/types/force.ts +49 -0
- package/src/types/id.ts +1 -0
- package/src/types/index.ts +8 -0
- package/src/types/point.ts +9 -0
- package/src/types/position.ts +11 -0
- package/src/types/size.ts +3 -0
- package/src/util/array.ts +1 -0
- package/src/util/common.ts +25 -0
- package/src/util/format.ts +92 -0
- package/src/util/index.ts +8 -0
- package/src/util/math.ts +312 -0
- package/src/util/object.ts +54 -0
- package/src/util/order.ts +143 -0
- package/src/util/point.ts +9 -0
- package/src/util/size.ts +10 -0
- package/src/util/viewport.ts +27 -0
- package/src/worker.ts +50 -0
- package/dist/e2b4e534ff10c7df8b27.worker.js +0 -2
- package/dist/e2b4e534ff10c7df8b27.worker.js.map +0 -1
- package/lib/antv-dagre/acyclic.d.ts +0 -4
- package/lib/antv-dagre/acyclic.js +0 -61
- package/lib/antv-dagre/acyclic.js.map +0 -1
- package/lib/antv-dagre/add-border-segments.d.ts +0 -2
- package/lib/antv-dagre/add-border-segments.js +0 -37
- package/lib/antv-dagre/add-border-segments.js.map +0 -1
- package/lib/antv-dagre/coordinate-system.d.ts +0 -5
- package/lib/antv-dagre/coordinate-system.js +0 -65
- package/lib/antv-dagre/coordinate-system.js.map +0 -1
- package/lib/antv-dagre/data/list.d.ts +0 -12
- package/lib/antv-dagre/data/list.js +0 -48
- package/lib/antv-dagre/data/list.js.map +0 -1
- package/lib/antv-dagre/greedy-fas.d.ts +0 -3
- package/lib/antv-dagre/greedy-fas.js +0 -136
- package/lib/antv-dagre/greedy-fas.js.map +0 -1
- package/lib/antv-dagre/layout.d.ts +0 -19
- package/lib/antv-dagre/layout.js +0 -468
- package/lib/antv-dagre/layout.js.map +0 -1
- package/lib/antv-dagre/nesting-graph.d.ts +0 -8
- package/lib/antv-dagre/nesting-graph.js +0 -152
- package/lib/antv-dagre/nesting-graph.js.map +0 -1
- package/lib/antv-dagre/normalize.d.ts +0 -5
- package/lib/antv-dagre/normalize.js +0 -98
- package/lib/antv-dagre/normalize.js.map +0 -1
- package/lib/antv-dagre/order/add-subgraph-constraints.d.ts +0 -3
- package/lib/antv-dagre/order/add-subgraph-constraints.js +0 -45
- package/lib/antv-dagre/order/add-subgraph-constraints.js.map +0 -1
- package/lib/antv-dagre/order/barycenter.d.ts +0 -14
- package/lib/antv-dagre/order/barycenter.js +0 -23
- package/lib/antv-dagre/order/barycenter.js.map +0 -1
- package/lib/antv-dagre/order/build-layer-graph.d.ts +0 -3
- package/lib/antv-dagre/order/build-layer-graph.js +0 -92
- package/lib/antv-dagre/order/build-layer-graph.js.map +0 -1
- package/lib/antv-dagre/order/cross-count.d.ts +0 -3
- package/lib/antv-dagre/order/cross-count.js +0 -63
- package/lib/antv-dagre/order/cross-count.js.map +0 -1
- package/lib/antv-dagre/order/index.d.ts +0 -2
- package/lib/antv-dagre/order/index.js +0 -91
- package/lib/antv-dagre/order/index.js.map +0 -1
- package/lib/antv-dagre/order/init-data-order.d.ts +0 -6
- package/lib/antv-dagre/order/init-data-order.js +0 -27
- package/lib/antv-dagre/order/init-data-order.js.map +0 -1
- package/lib/antv-dagre/order/init-order.d.ts +0 -3
- package/lib/antv-dagre/order/init-order.js +0 -47
- package/lib/antv-dagre/order/init-order.js.map +0 -1
- package/lib/antv-dagre/order/resolve-conflicts.d.ts +0 -20
- package/lib/antv-dagre/order/resolve-conflicts.js +0 -118
- package/lib/antv-dagre/order/resolve-conflicts.js.map +0 -1
- package/lib/antv-dagre/order/sort-subgraph.d.ts +0 -7
- package/lib/antv-dagre/order/sort-subgraph.js +0 -84
- package/lib/antv-dagre/order/sort-subgraph.js.map +0 -1
- package/lib/antv-dagre/order/sort.d.ts +0 -7
- package/lib/antv-dagre/order/sort.js +0 -74
- package/lib/antv-dagre/order/sort.js.map +0 -1
- package/lib/antv-dagre/parent-dummy-chains.d.ts +0 -3
- package/lib/antv-dagre/parent-dummy-chains.js +0 -80
- package/lib/antv-dagre/parent-dummy-chains.js.map +0 -1
- package/lib/antv-dagre/position/bk.d.ts +0 -26
- package/lib/antv-dagre/position/bk.js +0 -395
- package/lib/antv-dagre/position/bk.js.map +0 -1
- package/lib/antv-dagre/position/index.d.ts +0 -8
- package/lib/antv-dagre/position/index.js +0 -51
- package/lib/antv-dagre/position/index.js.map +0 -1
- package/lib/antv-dagre/rank/feasible-tree.d.ts +0 -5
- package/lib/antv-dagre/rank/feasible-tree.js +0 -164
- package/lib/antv-dagre/rank/feasible-tree.js.map +0 -1
- package/lib/antv-dagre/rank/index.d.ts +0 -2
- package/lib/antv-dagre/rank/index.js +0 -48
- package/lib/antv-dagre/rank/index.js.map +0 -1
- package/lib/antv-dagre/rank/network-simplex.d.ts +0 -16
- package/lib/antv-dagre/rank/network-simplex.js +0 -231
- package/lib/antv-dagre/rank/network-simplex.js.map +0 -1
- package/lib/antv-dagre/rank/util.d.ts +0 -6
- package/lib/antv-dagre/rank/util.js +0 -138
- package/lib/antv-dagre/rank/util.js.map +0 -1
- package/lib/antv-dagre/types.d.ts +0 -2
- package/lib/antv-dagre/types.js +0 -2
- package/lib/antv-dagre/types.js.map +0 -1
- package/lib/antv-dagre/util.d.ts +0 -35
- package/lib/antv-dagre/util.js +0 -281
- package/lib/antv-dagre/util.js.map +0 -1
- package/lib/antv-dagre.d.ts +0 -205
- package/lib/antv-dagre.js +0 -526
- package/lib/antv-dagre.js.map +0 -1
- package/lib/bundle-entry.d.ts +0 -2
- package/lib/bundle-entry.js +0 -3
- package/lib/bundle-entry.js.map +0 -1
- package/lib/bundle-supervisor.d.ts +0 -33
- package/lib/bundle-supervisor.js +0 -95
- package/lib/bundle-supervisor.js.map +0 -1
- package/lib/bundle-worker.d.ts +0 -3
- package/lib/bundle-worker.js +0 -51
- package/lib/bundle-worker.js.map +0 -1
- package/lib/circular.d.ts +0 -20
- package/lib/circular.js +0 -232
- package/lib/circular.js.map +0 -1
- package/lib/combo-combined.d.ts +0 -22
- package/lib/combo-combined.js +0 -415
- package/lib/combo-combined.js.map +0 -1
- package/lib/concentric.d.ts +0 -20
- package/lib/concentric.js +0 -210
- package/lib/concentric.js.map +0 -1
- package/lib/d3-force/index.d.ts +0 -35
- package/lib/d3-force/index.js +0 -173
- package/lib/d3-force/index.js.map +0 -1
- package/lib/d3-force/types.d.ts +0 -147
- package/lib/d3-force/types.js +0 -2
- package/lib/d3-force/types.js.map +0 -1
- package/lib/d3-force-3d/index.d.ts +0 -25
- package/lib/d3-force-3d/index.js +0 -47
- package/lib/d3-force-3d/index.js.map +0 -1
- package/lib/d3-force-3d/types.d.ts +0 -43
- package/lib/d3-force-3d/types.js +0 -2
- package/lib/d3-force-3d/types.js.map +0 -1
- package/lib/dagre.d.ts +0 -20
- package/lib/dagre.js +0 -69
- package/lib/dagre.js.map +0 -1
- package/lib/exports.d.ts +0 -20
- package/lib/exports.js +0 -18
- package/lib/exports.js.map +0 -1
- package/lib/force/force-n-body.d.ts +0 -7
- package/lib/force/force-n-body.js +0 -120
- package/lib/force/force-n-body.js.map +0 -1
- package/lib/force/index.d.ts +0 -128
- package/lib/force/index.js +0 -739
- package/lib/force/index.js.map +0 -1
- package/lib/force/types.d.ts +0 -43
- package/lib/force/types.js +0 -2
- package/lib/force/types.js.map +0 -1
- package/lib/force-atlas2/body.d.ts +0 -33
- package/lib/force-atlas2/body.js +0 -89
- package/lib/force-atlas2/body.js.map +0 -1
- package/lib/force-atlas2/index.d.ts +0 -95
- package/lib/force-atlas2/index.js +0 -510
- package/lib/force-atlas2/index.js.map +0 -1
- package/lib/force-atlas2/quad-tree.d.ts +0 -20
- package/lib/force-atlas2/quad-tree.js +0 -104
- package/lib/force-atlas2/quad-tree.js.map +0 -1
- package/lib/force-atlas2/quad.d.ts +0 -27
- package/lib/force-atlas2/quad.js +0 -96
- package/lib/force-atlas2/quad.js.map +0 -1
- package/lib/fruchterman.d.ts +0 -43
- package/lib/fruchterman.js +0 -346
- package/lib/fruchterman.js.map +0 -1
- package/lib/grid.d.ts +0 -20
- package/lib/grid.js +0 -279
- package/lib/grid.js.map +0 -1
- package/lib/mds.d.ts +0 -20
- package/lib/mds.js +0 -117
- package/lib/mds.js.map +0 -1
- package/lib/radial/index.d.ts +0 -22
- package/lib/radial/index.js +0 -338
- package/lib/radial/index.js.map +0 -1
- package/lib/radial/mds.d.ts +0 -2
- package/lib/radial/mds.js +0 -31
- package/lib/radial/mds.js.map +0 -1
- package/lib/radial/radial-nonoverlap-force.d.ts +0 -16
- package/lib/radial/radial-nonoverlap-force.js +0 -99
- package/lib/radial/radial-nonoverlap-force.js.map +0 -1
- package/lib/random.d.ts +0 -20
- package/lib/random.js +0 -75
- package/lib/random.js.map +0 -1
- package/lib/supervisor.d.ts +0 -50
- package/lib/supervisor.js +0 -91
- package/lib/supervisor.js.map +0 -1
- package/lib/types.d.ts +0 -1284
- package/lib/types.js +0 -4
- package/lib/types.js.map +0 -1
- package/lib/util/function.d.ts +0 -27
- package/lib/util/function.js +0 -111
- package/lib/util/function.js.map +0 -1
- package/lib/util/index.d.ts +0 -4
- package/lib/util/index.js +0 -5
- package/lib/util/index.js.map +0 -1
- package/lib/worker.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feasible-tree.js","sourceRoot":"","sources":["../../../src/antv-dagre/rank/feasible-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,EAAM,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,YAAY,GAAG,CAAC,CAAS,EAAE,EAAE;IACjC,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC;QAClB,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;IAEH,qDAAqD;IACrD,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;IACjC,MAAM,IAAI,G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E,CAAC,CAAC,EAAE,EAAE;QAClC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE;YAC/C,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACpB;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,KAAa,EAAE,EAAE;IACzD,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QAC7B,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI;YAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,IAAK,IAAI,KAAK,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { feasibleTreeWithLayer as feasibleTree } from './feasible-tree';
|
|
2
|
-
import { networkSimplex } from './network-simplex';
|
|
3
|
-
import { longestPath, longestPathWithLayer } from './util';
|
|
4
|
-
/*
|
|
5
|
-
* Assigns a rank to each node in the input graph that respects the "minlen"
|
|
6
|
-
* constraint specified on edges between nodes.
|
|
7
|
-
*
|
|
8
|
-
* This basic structure is derived from Gansner, et al., "A Technique for
|
|
9
|
-
* Drawing Directed Graphs."
|
|
10
|
-
*
|
|
11
|
-
* Pre-conditions:
|
|
12
|
-
*
|
|
13
|
-
* 1. Graph must be a connected DAG
|
|
14
|
-
* 2. Graph nodes must be objects
|
|
15
|
-
* 3. Graph edges must have "weight" and "minlen" attributes
|
|
16
|
-
*
|
|
17
|
-
* Post-conditions:
|
|
18
|
-
*
|
|
19
|
-
* 1. Graph nodes will have a "rank" attribute based on the results of the
|
|
20
|
-
* algorithm. Ranks can start at any index (including negative), we'll
|
|
21
|
-
* fix them up later.
|
|
22
|
-
*/
|
|
23
|
-
export const rank = (g, ranker) => {
|
|
24
|
-
switch (ranker) {
|
|
25
|
-
case 'network-simplex':
|
|
26
|
-
networkSimplexRanker(g);
|
|
27
|
-
break;
|
|
28
|
-
case 'tight-tree':
|
|
29
|
-
tightTreeRanker(g);
|
|
30
|
-
break;
|
|
31
|
-
case 'longest-path':
|
|
32
|
-
longestPathRanker(g);
|
|
33
|
-
break;
|
|
34
|
-
// default: networkSimplexRanker(g);
|
|
35
|
-
default:
|
|
36
|
-
tightTreeRanker(g);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
// A fast and simple ranker, but results are far from optimal.
|
|
40
|
-
const longestPathRanker = longestPath;
|
|
41
|
-
const tightTreeRanker = (g) => {
|
|
42
|
-
longestPathWithLayer(g);
|
|
43
|
-
feasibleTree(g);
|
|
44
|
-
};
|
|
45
|
-
const networkSimplexRanker = (g) => {
|
|
46
|
-
networkSimplex(g);
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/antv-dagre/rank/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,CAAS,EACT,MAAyD,EACzD,EAAE;IACF,QAAQ,MAAM,EAAE;QACd,KAAK,iBAAiB;YACpB,oBAAoB,CAAC,CAAC,CAAC,CAAC;YACxB,MAAM;QACR,KAAK,YAAY;YACf,eAAe,CAAC,CAAC,CAAC,CAAC;YACnB,MAAM;QACR,KAAK,cAAc;YACjB,iBAAiB,CAAC,CAAC,CAAC,CAAC;YACrB,MAAM;QACR,oCAAoC;QACpC;YACE,eAAe,CAAC,CAAC,CAAC,CAAC;KACtB;AACH,CAAC,CAAC;AAEF,8DAA8D;AAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAEtC,MAAM,eAAe,GAAG,CAAC,CAAS,EAAE,EAAE;IACpC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACxB,YAAY,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,CAAS,EAAE,EAAE;IACzC,cAAc,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Edge, ID } from '@antv/graphlib';
|
|
2
|
-
import { EdgeData, Graph as IGraph } from '../../types';
|
|
3
|
-
export declare const networkSimplex: (og: IGraph) => void;
|
|
4
|
-
export declare const initCutValues: (t: IGraph, g: IGraph) => void;
|
|
5
|
-
export declare const calcCutValue: (t: IGraph, g: IGraph, child: ID) => number;
|
|
6
|
-
export declare const initLowLimValues: (tree: IGraph, root?: ID) => void;
|
|
7
|
-
export declare const leaveEdge: (tree: IGraph) => Edge<EdgeData>;
|
|
8
|
-
export declare const enterEdge: (t: IGraph, g: IGraph, edge: Edge<EdgeData>) => Edge<EdgeData>;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param t
|
|
12
|
-
* @param g
|
|
13
|
-
* @param e edge to remove
|
|
14
|
-
* @param f edge to add
|
|
15
|
-
*/
|
|
16
|
-
export declare const exchangeEdges: (t: IGraph, g: IGraph, e: Edge<EdgeData>, f: Edge<EdgeData>) => void;
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { dfs, minBy, simplify } from '../util';
|
|
2
|
-
import { feasibleTree } from './feasible-tree';
|
|
3
|
-
import { longestPath as initRank, slack } from './util';
|
|
4
|
-
/*
|
|
5
|
-
* The network simplex algorithm assigns ranks to each node in the input graph
|
|
6
|
-
* and iteratively improves the ranking to reduce the length of edges.
|
|
7
|
-
*
|
|
8
|
-
* Preconditions:
|
|
9
|
-
*
|
|
10
|
-
* 1. The input graph must be a DAG.
|
|
11
|
-
* 2. All nodes in the graph must have an object value.
|
|
12
|
-
* 3. All edges in the graph must have "minlen" and "weight" attributes.
|
|
13
|
-
*
|
|
14
|
-
* Postconditions:
|
|
15
|
-
*
|
|
16
|
-
* 1. All nodes in the graph will have an assigned "rank" attribute that has
|
|
17
|
-
* been optimized by the network simplex algorithm. Ranks start at 0.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* A rough sketch of the algorithm is as follows:
|
|
21
|
-
*
|
|
22
|
-
* 1. Assign initial ranks to each node. We use the longest path algorithm,
|
|
23
|
-
* which assigns ranks to the lowest position possible. In general this
|
|
24
|
-
* leads to very wide bottom ranks and unnecessarily long edges.
|
|
25
|
-
* 2. Construct a feasible tight tree. A tight tree is one such that all
|
|
26
|
-
* edges in the tree have no slack (difference between length of edge
|
|
27
|
-
* and minlen for the edge). This by itself greatly improves the assigned
|
|
28
|
-
* rankings by shorting edges.
|
|
29
|
-
* 3. Iteratively find edges that have negative cut values. Generally a
|
|
30
|
-
* negative cut value indicates that the edge could be removed and a new
|
|
31
|
-
* tree edge could be added to produce a more compact graph.
|
|
32
|
-
*
|
|
33
|
-
* Much of the algorithms here are derived from Gansner, et al., "A Technique
|
|
34
|
-
* for Drawing Directed Graphs." The structure of the file roughly follows the
|
|
35
|
-
* structure of the overall algorithm.
|
|
36
|
-
*/
|
|
37
|
-
export const networkSimplex = (og) => {
|
|
38
|
-
const g = simplify(og);
|
|
39
|
-
initRank(g);
|
|
40
|
-
const t = feasibleTree(g);
|
|
41
|
-
initLowLimValues(t);
|
|
42
|
-
initCutValues(t, g);
|
|
43
|
-
let e;
|
|
44
|
-
let f;
|
|
45
|
-
while ((e = leaveEdge(t))) {
|
|
46
|
-
f = enterEdge(t, g, e);
|
|
47
|
-
exchangeEdges(t, g, e, f);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
/*
|
|
51
|
-
* Initializes cut values for all edges in the tree.
|
|
52
|
-
*/
|
|
53
|
-
export const initCutValues = (t, g) => {
|
|
54
|
-
let vs = dfs(t, t.getAllNodes(), 'post', false);
|
|
55
|
-
vs = vs.slice(0, (vs === null || vs === void 0 ? void 0 : vs.length) - 1);
|
|
56
|
-
vs.forEach((v) => {
|
|
57
|
-
assignCutValue(t, g, v);
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
const assignCutValue = (t, g, child) => {
|
|
61
|
-
const childLab = t.getNode(child);
|
|
62
|
-
const parent = childLab.data.parent;
|
|
63
|
-
// FIXME: use undirected edge?
|
|
64
|
-
const edge = t
|
|
65
|
-
.getRelatedEdges(child, 'both')
|
|
66
|
-
.find((e) => e.target === parent || e.source === parent);
|
|
67
|
-
edge.data.cutvalue = calcCutValue(t, g, child);
|
|
68
|
-
};
|
|
69
|
-
/*
|
|
70
|
-
* Given the tight tree, its graph, and a child in the graph calculate and
|
|
71
|
-
* return the cut value for the edge between the child and its parent.
|
|
72
|
-
*/
|
|
73
|
-
export const calcCutValue = (t, g, child) => {
|
|
74
|
-
const childLab = t.getNode(child);
|
|
75
|
-
const parent = childLab.data.parent;
|
|
76
|
-
// True if the child is on the tail end of the edge in the directed graph
|
|
77
|
-
let childIsTail = true;
|
|
78
|
-
// The graph's view of the tree edge we're inspecting
|
|
79
|
-
let graphEdge = g
|
|
80
|
-
.getRelatedEdges(child, 'out')
|
|
81
|
-
.find((e) => e.target === parent);
|
|
82
|
-
// The accumulated cut value for the edge between this node and its parent
|
|
83
|
-
let cutValue = 0;
|
|
84
|
-
if (!graphEdge) {
|
|
85
|
-
childIsTail = false;
|
|
86
|
-
graphEdge = g
|
|
87
|
-
.getRelatedEdges(parent, 'out')
|
|
88
|
-
.find((e) => e.target === child);
|
|
89
|
-
}
|
|
90
|
-
cutValue = graphEdge.data.weight;
|
|
91
|
-
g.getRelatedEdges(child, 'both').forEach((e) => {
|
|
92
|
-
const isOutEdge = e.source === child;
|
|
93
|
-
const other = isOutEdge ? e.target : e.source;
|
|
94
|
-
if (other !== parent) {
|
|
95
|
-
const pointsToHead = isOutEdge === childIsTail;
|
|
96
|
-
const otherWeight = e.data.weight;
|
|
97
|
-
cutValue += pointsToHead ? otherWeight : -otherWeight;
|
|
98
|
-
if (isTreeEdge(t, child, other)) {
|
|
99
|
-
// FIXME: use undirected edge?
|
|
100
|
-
const otherCutValue = t
|
|
101
|
-
.getRelatedEdges(child, 'both')
|
|
102
|
-
.find((e) => e.source === other || e.target === other).data
|
|
103
|
-
.cutvalue;
|
|
104
|
-
cutValue += pointsToHead ? -otherCutValue : otherCutValue;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
return cutValue;
|
|
109
|
-
};
|
|
110
|
-
export const initLowLimValues = (tree, root = tree.getAllNodes()[0].id) => {
|
|
111
|
-
dfsAssignLowLim(tree, {}, 1, root);
|
|
112
|
-
};
|
|
113
|
-
const dfsAssignLowLim = (tree, visited, nextLim, v, parent) => {
|
|
114
|
-
var _a;
|
|
115
|
-
const low = nextLim;
|
|
116
|
-
let useNextLim = nextLim;
|
|
117
|
-
const label = tree.getNode(v);
|
|
118
|
-
visited[v] = true;
|
|
119
|
-
(_a = tree.getNeighbors(v)) === null || _a === void 0 ? void 0 : _a.forEach((w) => {
|
|
120
|
-
if (!visited[w.id]) {
|
|
121
|
-
useNextLim = dfsAssignLowLim(tree, visited, useNextLim, w.id, v);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
label.data.low = low;
|
|
125
|
-
label.data.lim = useNextLim++;
|
|
126
|
-
if (parent) {
|
|
127
|
-
label.data.parent = parent;
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
// TODO should be able to remove this when we incrementally update low lim
|
|
131
|
-
delete label.data.parent;
|
|
132
|
-
}
|
|
133
|
-
return useNextLim;
|
|
134
|
-
};
|
|
135
|
-
export const leaveEdge = (tree) => {
|
|
136
|
-
return tree.getAllEdges().find((e) => {
|
|
137
|
-
return e.data.cutvalue < 0;
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
export const enterEdge = (t, g, edge) => {
|
|
141
|
-
let v = edge.source;
|
|
142
|
-
let w = edge.target;
|
|
143
|
-
// For the rest of this function we assume that v is the tail and w is the
|
|
144
|
-
// head, so if we don't have this edge in the graph we should flip it to
|
|
145
|
-
// match the correct orientation.
|
|
146
|
-
if (!g.getRelatedEdges(v, 'out').find((e) => e.target === w)) {
|
|
147
|
-
v = edge.target;
|
|
148
|
-
w = edge.source;
|
|
149
|
-
}
|
|
150
|
-
const vLabel = t.getNode(v);
|
|
151
|
-
const wLabel = t.getNode(w);
|
|
152
|
-
let tailLabel = vLabel;
|
|
153
|
-
let flip = false;
|
|
154
|
-
// If the root is in the tail of the edge then we need to flip the logic that
|
|
155
|
-
// checks for the head and tail nodes in the candidates function below.
|
|
156
|
-
if (vLabel.data.lim > wLabel.data.lim) {
|
|
157
|
-
tailLabel = wLabel;
|
|
158
|
-
flip = true;
|
|
159
|
-
}
|
|
160
|
-
const candidates = g.getAllEdges().filter((edge) => {
|
|
161
|
-
return (flip === isDescendant(t.getNode(edge.source), tailLabel) &&
|
|
162
|
-
flip !== isDescendant(t.getNode(edge.target), tailLabel));
|
|
163
|
-
});
|
|
164
|
-
return minBy(candidates, (edge) => {
|
|
165
|
-
return slack(g, edge);
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
* @param t
|
|
171
|
-
* @param g
|
|
172
|
-
* @param e edge to remove
|
|
173
|
-
* @param f edge to add
|
|
174
|
-
*/
|
|
175
|
-
export const exchangeEdges = (t, g, e, f) => {
|
|
176
|
-
// FIXME: use undirected edge?
|
|
177
|
-
const existed = t
|
|
178
|
-
.getRelatedEdges(e.source, 'both')
|
|
179
|
-
.find((edge) => edge.source === e.target || edge.target === e.target);
|
|
180
|
-
if (existed) {
|
|
181
|
-
t.removeEdge(existed.id);
|
|
182
|
-
}
|
|
183
|
-
t.addEdge({
|
|
184
|
-
id: `e${Math.random()}`,
|
|
185
|
-
source: f.source,
|
|
186
|
-
target: f.target,
|
|
187
|
-
data: {},
|
|
188
|
-
});
|
|
189
|
-
initLowLimValues(t);
|
|
190
|
-
initCutValues(t, g);
|
|
191
|
-
updateRanks(t, g);
|
|
192
|
-
};
|
|
193
|
-
const updateRanks = (t, g) => {
|
|
194
|
-
const root = t.getAllNodes().find((v) => {
|
|
195
|
-
return !v.data.parent;
|
|
196
|
-
});
|
|
197
|
-
let vs = dfs(t, root, 'pre', false);
|
|
198
|
-
vs = vs.slice(1);
|
|
199
|
-
vs.forEach((v) => {
|
|
200
|
-
const parent = t.getNode(v).data.parent;
|
|
201
|
-
let edge = g.getRelatedEdges(v, 'out').find((e) => e.target === parent);
|
|
202
|
-
// let edge = g.edgeFromArgs(v, parent);
|
|
203
|
-
let flipped = false;
|
|
204
|
-
if (!edge && g.hasNode(parent)) {
|
|
205
|
-
// edge = g.edgeFromArgs(parent, v)!;
|
|
206
|
-
edge = g.getRelatedEdges(parent, 'out').find((e) => e.target === v);
|
|
207
|
-
flipped = true;
|
|
208
|
-
}
|
|
209
|
-
g.getNode(v).data.rank =
|
|
210
|
-
((g.hasNode(parent) && g.getNode(parent).data.rank) || 0) +
|
|
211
|
-
(flipped ? edge === null || edge === void 0 ? void 0 : edge.data.minlen : -(edge === null || edge === void 0 ? void 0 : edge.data.minlen));
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
|
-
/*
|
|
215
|
-
* Returns true if the edge is in the tree.
|
|
216
|
-
*/
|
|
217
|
-
const isTreeEdge = (tree, u, v) => {
|
|
218
|
-
// FIXME: use undirected edge?
|
|
219
|
-
return tree
|
|
220
|
-
.getRelatedEdges(u, 'both')
|
|
221
|
-
.find((e) => e.source === v || e.target === v);
|
|
222
|
-
};
|
|
223
|
-
/*
|
|
224
|
-
* Returns true if the specified node is descendant of the root node per the
|
|
225
|
-
* assigned low and lim attributes in the tree.
|
|
226
|
-
*/
|
|
227
|
-
const isDescendant = (vLabel, rootLabel) => {
|
|
228
|
-
return (rootLabel.data.low <= vLabel.data.lim &&
|
|
229
|
-
vLabel.data.lim <= rootLabel.data.lim);
|
|
230
|
-
};
|
|
231
|
-
//# sourceMappingURL=network-simplex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-simplex.js","sourceRoot":"","sources":["../../../src/antv-dagre/rank/network-simplex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,IAAI,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAU,EAAE,EAAE;IAC3C,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvB,QAAQ,CAAC,CAAC,CAAC,CAAC;IACZ,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAC1B,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACpB,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEpB,IAAI,CAA6B,CAAC;IAClC,IAAI,CAAiB,CAAC;IACtB,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;QACzB,CAAC,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC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C,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI;YACpB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAK,CAAC,IAAI,CAAC,CAAC;gBAC1D,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,MAAO,CAAC,CAAC,CAAC,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,MAAO,CAAA,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,CAAK,EAAE,CAAK,EAAE,EAAE;IAChD,8BAA8B;IAC9B,OAAO,IAAI;SACR,eAAe,CAAC,CAAC,EAAE,MAAM,CAAC;SAC1B,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,YAAY,GAAG,CAAC,MAAsB,EAAE,SAAyB,EAAE,EAAE;IACzE,OAAO,CACL,SAAS,CAAC,IAAI,CAAC,GAAI,IAAI,MAAM,CAAC,IAAI,CAAC,GAAI;QACvC,MAAM,CAAC,IAAI,CAAC,GAAI,IAAI,SAAS,CAAC,IAAI,CAAC,GAAI,CACxC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Edge } from '@antv/graphlib';
|
|
2
|
-
import { EdgeData, Graph } from '../../types';
|
|
3
|
-
declare const longestPath: (g: Graph) => void;
|
|
4
|
-
declare const longestPathWithLayer: (g: Graph) => void;
|
|
5
|
-
declare const slack: (g: Graph, e: Edge<EdgeData>) => number;
|
|
6
|
-
export { longestPath, longestPathWithLayer, slack };
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Initializes ranks for the input graph using the longest path algorithm. This
|
|
3
|
-
* algorithm scales well and is fast in practice, it yields rather poor
|
|
4
|
-
* solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
|
|
5
|
-
* ranks wide and leaving edges longer than necessary. However, due to its
|
|
6
|
-
* speed, this algorithm is good for getting an initial ranking that can be fed
|
|
7
|
-
* into other algorithms.
|
|
8
|
-
*
|
|
9
|
-
* This algorithm does not normalize layers because it will be used by other
|
|
10
|
-
* algorithms in most cases. If using this algorithm directly, be sure to
|
|
11
|
-
* run normalize at the end.
|
|
12
|
-
*
|
|
13
|
-
* Pre-conditions:
|
|
14
|
-
*
|
|
15
|
-
* 1. Input graph is a DAG.
|
|
16
|
-
* 2. Input graph node labels can be assigned properties.
|
|
17
|
-
*
|
|
18
|
-
* Post-conditions:
|
|
19
|
-
*
|
|
20
|
-
* 1. Each node will be assign an (unnormalized) "rank" property.
|
|
21
|
-
*/
|
|
22
|
-
const longestPath = (g) => {
|
|
23
|
-
const visited = {};
|
|
24
|
-
const dfs = (v) => {
|
|
25
|
-
var _a;
|
|
26
|
-
const label = g.getNode(v);
|
|
27
|
-
if (!label)
|
|
28
|
-
return 0;
|
|
29
|
-
if (visited[v]) {
|
|
30
|
-
return label.data.rank;
|
|
31
|
-
}
|
|
32
|
-
visited[v] = true;
|
|
33
|
-
let rank;
|
|
34
|
-
(_a = g.getRelatedEdges(v, 'out')) === null || _a === void 0 ? void 0 : _a.forEach((e) => {
|
|
35
|
-
const wRank = dfs(e.target);
|
|
36
|
-
const minLen = e.data.minlen;
|
|
37
|
-
const r = wRank - minLen;
|
|
38
|
-
if (r) {
|
|
39
|
-
if (rank === undefined || r < rank) {
|
|
40
|
-
rank = r;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
if (!rank) {
|
|
45
|
-
rank = 0;
|
|
46
|
-
}
|
|
47
|
-
label.data.rank = rank;
|
|
48
|
-
return rank;
|
|
49
|
-
};
|
|
50
|
-
g.getAllNodes()
|
|
51
|
-
.filter((n) => g.getRelatedEdges(n.id, 'in').length === 0)
|
|
52
|
-
.forEach((source) => dfs(source.id));
|
|
53
|
-
};
|
|
54
|
-
const longestPathWithLayer = (g) => {
|
|
55
|
-
// 用longest path,找出最深的点
|
|
56
|
-
const visited = {};
|
|
57
|
-
let minRank;
|
|
58
|
-
const dfs = (v) => {
|
|
59
|
-
var _a;
|
|
60
|
-
const label = g.getNode(v);
|
|
61
|
-
if (!label)
|
|
62
|
-
return 0;
|
|
63
|
-
if (visited[v]) {
|
|
64
|
-
return label.data.rank;
|
|
65
|
-
}
|
|
66
|
-
visited[v] = true;
|
|
67
|
-
let rank;
|
|
68
|
-
(_a = g.getRelatedEdges(v, 'out')) === null || _a === void 0 ? void 0 : _a.forEach((e) => {
|
|
69
|
-
const wRank = dfs(e.target);
|
|
70
|
-
const minLen = e.data.minlen;
|
|
71
|
-
const r = wRank - minLen;
|
|
72
|
-
if (r) {
|
|
73
|
-
if (rank === undefined || r < rank) {
|
|
74
|
-
rank = r;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
if (!rank) {
|
|
79
|
-
rank = 0;
|
|
80
|
-
}
|
|
81
|
-
if (minRank === undefined || rank < minRank) {
|
|
82
|
-
minRank = rank;
|
|
83
|
-
}
|
|
84
|
-
label.data.rank = rank;
|
|
85
|
-
return rank;
|
|
86
|
-
};
|
|
87
|
-
g.getAllNodes()
|
|
88
|
-
.filter((n) => g.getRelatedEdges(n.id, 'in').length === 0)
|
|
89
|
-
.forEach((source) => {
|
|
90
|
-
if (source)
|
|
91
|
-
dfs(source.id);
|
|
92
|
-
});
|
|
93
|
-
if (minRank === undefined) {
|
|
94
|
-
minRank = 0;
|
|
95
|
-
}
|
|
96
|
-
// minRank += 1; // NOTE: 最小的层级是dummy root,+1
|
|
97
|
-
// forward一遍,赋值层级
|
|
98
|
-
const forwardVisited = {};
|
|
99
|
-
const dfsForward = (v, nextRank) => {
|
|
100
|
-
var _a;
|
|
101
|
-
const label = g.getNode(v);
|
|
102
|
-
const currRank = !isNaN(label.data.layer) ? label.data.layer : nextRank;
|
|
103
|
-
// 没有指定,取最大值
|
|
104
|
-
if (label.data.rank === undefined || label.data.rank < currRank) {
|
|
105
|
-
label.data.rank = currRank;
|
|
106
|
-
}
|
|
107
|
-
if (forwardVisited[v])
|
|
108
|
-
return;
|
|
109
|
-
forwardVisited[v] = true;
|
|
110
|
-
// DFS遍历子节点
|
|
111
|
-
(_a = g.getRelatedEdges(v, 'out')) === null || _a === void 0 ? void 0 : _a.forEach((e) => {
|
|
112
|
-
dfsForward(e.target, currRank + e.data.minlen);
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
// 指定层级的,更新下游
|
|
116
|
-
g.getAllNodes().forEach((n) => {
|
|
117
|
-
const label = n.data;
|
|
118
|
-
if (!label)
|
|
119
|
-
return;
|
|
120
|
-
if (!isNaN(label.layer)) {
|
|
121
|
-
dfsForward(n.id, label.layer); // 默认的dummy root所在层的rank是-1
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
label.rank -= minRank;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
/*
|
|
129
|
-
* Returns the amount of slack for the given edge. The slack is defined as the
|
|
130
|
-
* difference between the length of the edge and its minimum length.
|
|
131
|
-
*/
|
|
132
|
-
const slack = (g, e) => {
|
|
133
|
-
return (g.getNode(e.target).data.rank -
|
|
134
|
-
g.getNode(e.source).data.rank -
|
|
135
|
-
e.data.minlen);
|
|
136
|
-
};
|
|
137
|
-
export { longestPath, longestPathWithLayer, slack };
|
|
138
|
-
//# sourceMappingURL=util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/antv-dagre/rank/util.ts"],"names":[],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CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,aAAa;IACb,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5B,MAAM,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAM,CAAC,EAAE;YACxB,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,KAAM,CAAC,CAAC,CAAC,2BAA2B;SAC5D;aAAM;YACL,KAAK,CAAC,IAAK,IAAI,OAAO,CAAC;SACxB;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,KAAK,GAAG,CAAC,CAAQ,EAAE,CAAiB,EAAE,EAAE;IAC5C,OAAO,CACL,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAK;QAC9B,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAK;QAC9B,CAAC,CAAC,IAAI,CAAC,MAAO,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC"}
|
package/lib/antv-dagre/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/antv-dagre/types.ts"],"names":[],"mappings":""}
|
package/lib/antv-dagre/util.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Graph, ID, Node } from '@antv/graphlib';
|
|
2
|
-
import { EdgeData, Graph as IGraph, NodeData } from '../types';
|
|
3
|
-
export declare const addDummyNode: (g: IGraph, type: string, data: NodeData, name: string) => ID;
|
|
4
|
-
export declare const simplify: (g: IGraph) => Graph<NodeData, EdgeData>;
|
|
5
|
-
export declare const asNonCompoundGraph: (g: IGraph) => IGraph;
|
|
6
|
-
export declare const zipObject: <T = any>(keys: ID[], values: T[]) => Record<ID, T>;
|
|
7
|
-
export declare const successorWeights: (g: IGraph) => Record<ID, Record<string, number>>;
|
|
8
|
-
export declare const predecessorWeights: (g: IGraph) => Record<ID, Record<ID, number>>;
|
|
9
|
-
export declare const intersectRect: (rect: {
|
|
10
|
-
x?: number;
|
|
11
|
-
y?: number;
|
|
12
|
-
width?: number;
|
|
13
|
-
height?: number;
|
|
14
|
-
}, point: {
|
|
15
|
-
x?: number;
|
|
16
|
-
y?: number;
|
|
17
|
-
}) => {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const buildLayerMatrix: (g: IGraph) => ID[][];
|
|
22
|
-
export declare const normalizeRanks: (g: IGraph) => void;
|
|
23
|
-
export declare const removeEmptyRanks: (g: IGraph, nodeRankFactor?: number) => void;
|
|
24
|
-
export declare const addBorderNode: (g: IGraph, prefix: string, rank?: number, order?: number) => ID;
|
|
25
|
-
export declare const maxRank: (g: IGraph) => number;
|
|
26
|
-
export declare const partition: <T = any>(collection: T[], fn: (val: T) => boolean) => {
|
|
27
|
-
lhs: T[];
|
|
28
|
-
rhs: T[];
|
|
29
|
-
};
|
|
30
|
-
export declare const minBy: <T = any>(array: T[], func: (param: T) => number) => T;
|
|
31
|
-
/**
|
|
32
|
-
* @description DFS traversal.
|
|
33
|
-
* @description.zh-CN DFS 遍历。
|
|
34
|
-
*/
|
|
35
|
-
export declare const dfs: (graph: IGraph, node: Node<NodeData> | Node<NodeData>[], order: 'pre' | 'post', isDirected: boolean) => ID[];
|