@antv/layout 2.0.0-alpha.1 → 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 +938 -900
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -3
- package/dist/index.min.js.map +1 -1
- package/dist/worker.js +1 -1
- package/dist/worker.js.map +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/index2.js +1 -1
- package/lib/_virtual/index3.js +1 -1
- package/lib/_virtual/matrix.js +1 -1
- package/lib/algorithm/antv-dagre/acyclic.js.map +1 -0
- package/lib/algorithm/antv-dagre/add-border-segments.js.map +1 -0
- package/lib/algorithm/antv-dagre/coordinate-system.js.map +1 -0
- package/lib/algorithm/antv-dagre/data/list.js.map +1 -0
- package/lib/algorithm/antv-dagre/graph.js.map +1 -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.map +1 -0
- package/lib/algorithm/antv-dagre/normalize.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/add-subgraph-constraints.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/barycenter.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/build-layer-graph.js.map +1 -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.map +1 -0
- package/lib/algorithm/antv-dagre/order/init-order.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/resolve-conflicts.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/sort-subgraph.js.map +1 -0
- package/lib/algorithm/antv-dagre/order/sort.js.map +1 -0
- package/lib/algorithm/antv-dagre/parent-dummy-chains.js.map +1 -0
- package/lib/algorithm/antv-dagre/position/bk.js.map +1 -0
- package/lib/algorithm/antv-dagre/position/index.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/feasible-tree.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/index.js.map +1 -0
- package/lib/algorithm/antv-dagre/rank/network-simplex.js.map +1 -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.js +73 -0
- package/lib/algorithm/d3-force-3d/index.js.map +1 -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.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.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.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.map +1 -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 +35 -32
- package/lib/index.js +18 -16
- 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.map +1 -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.map +1 -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.map +1 -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.map +1 -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.map +1 -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.map +1 -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.map +1 -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.map +1 -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.map +1 -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.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/pick.js.map +1 -0
- package/lib/node_modules/@antv/util/esm/lodash/set.js.map +1 -0
- package/lib/node_modules/comlink/dist/esm/comlink.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/add.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/binarytree.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/cover.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/data.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/extent.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/find.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/half.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/remove.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/root.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/size.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/visit.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/visitAfter.js.map +1 -0
- package/lib/node_modules/d3-binarytree/src/x.js.map +1 -0
- package/lib/node_modules/d3-dispatch/src/dispatch.js.map +1 -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.map +1 -0
- package/lib/node_modules/d3-force/src/jiggle.js.map +1 -0
- package/lib/node_modules/d3-force/src/lcg.js.map +1 -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.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.map +1 -0
- package/lib/node_modules/d3-force/src/y.js.map +1 -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.map +1 -0
- package/lib/node_modules/d3-force-3d/src/jiggle.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/lcg.js.map +1 -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.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.map +1 -0
- package/lib/node_modules/d3-force-3d/src/y.js.map +1 -0
- package/lib/node_modules/d3-force-3d/src/z.js.map +1 -0
- package/lib/node_modules/d3-octree/src/add.js.map +1 -0
- package/lib/node_modules/d3-octree/src/cover.js.map +1 -0
- package/lib/node_modules/d3-octree/src/data.js.map +1 -0
- package/lib/node_modules/d3-octree/src/extent.js.map +1 -0
- package/lib/node_modules/d3-octree/src/find.js.map +1 -0
- package/lib/node_modules/d3-octree/src/findAll.js.map +1 -0
- package/lib/node_modules/d3-octree/src/octant.js.map +1 -0
- package/lib/node_modules/d3-octree/src/octree.js.map +1 -0
- package/lib/node_modules/d3-octree/src/remove.js.map +1 -0
- package/lib/node_modules/d3-octree/src/root.js.map +1 -0
- package/lib/node_modules/d3-octree/src/size.js.map +1 -0
- package/lib/node_modules/d3-octree/src/visit.js.map +1 -0
- package/lib/node_modules/d3-octree/src/visitAfter.js.map +1 -0
- package/lib/node_modules/d3-octree/src/x.js.map +1 -0
- package/lib/node_modules/d3-octree/src/y.js.map +1 -0
- package/lib/node_modules/d3-octree/src/z.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/add.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/cover.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/data.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/extent.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/find.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/quad.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/quadtree.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/remove.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/root.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/size.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/visit.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/visitAfter.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/x.js.map +1 -0
- package/lib/node_modules/d3-quadtree/src/y.js.map +1 -0
- package/lib/node_modules/d3-timer/src/timer.js.map +1 -0
- package/lib/node_modules/dagre/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/acyclic.js.map +1 -0
- package/lib/node_modules/dagre/lib/add-border-segments.js.map +1 -0
- package/lib/node_modules/dagre/lib/coordinate-system.js.map +1 -0
- package/lib/node_modules/dagre/lib/data/list.js.map +1 -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.map +1 -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.map +1 -0
- package/lib/node_modules/dagre/lib/normalize.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/barycenter.js.map +1 -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.map +1 -0
- package/lib/node_modules/dagre/lib/order/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/init-order.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/resolve-conflicts.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/sort-subgraph.js.map +1 -0
- package/lib/node_modules/dagre/lib/order/sort.js.map +1 -0
- package/lib/node_modules/dagre/lib/parent-dummy-chains.js.map +1 -0
- package/lib/node_modules/dagre/lib/position/bk.js.map +1 -0
- package/lib/node_modules/dagre/lib/position/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/feasible-tree.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/index.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/network-simplex.js.map +1 -0
- package/lib/node_modules/dagre/lib/rank/util.js.map +1 -0
- package/lib/node_modules/dagre/lib/util.js.map +1 -0
- package/lib/node_modules/dagre/lib/version.js.map +1 -0
- package/lib/node_modules/graphlib/index.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/components.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/dfs.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/dijkstra-all.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/dijkstra.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/find-cycles.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/floyd-warshall.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/index.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/is-acyclic.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/postorder.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/preorder.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/prim.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/tarjan.js.map +1 -0
- package/lib/node_modules/graphlib/lib/alg/topsort.js.map +1 -0
- package/lib/node_modules/graphlib/lib/data/priority-queue.js.map +1 -0
- package/lib/node_modules/graphlib/lib/graph.js.map +1 -0
- package/lib/node_modules/graphlib/lib/index.js.map +1 -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.map +1 -0
- package/lib/node_modules/is-any-array/lib-esm/index.js.map +1 -0
- package/lib/node_modules/lodash/_DataView.js.map +1 -0
- package/lib/node_modules/lodash/_Hash.js.map +1 -0
- package/lib/node_modules/lodash/_ListCache.js.map +1 -0
- package/lib/node_modules/lodash/_Map.js.map +1 -0
- package/lib/node_modules/lodash/_MapCache.js.map +1 -0
- package/lib/node_modules/lodash/_Promise.js.map +1 -0
- package/lib/node_modules/lodash/_Set.js.map +1 -0
- package/lib/node_modules/lodash/_SetCache.js.map +1 -0
- package/lib/node_modules/lodash/_Stack.js.map +1 -0
- package/lib/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/lib/node_modules/lodash/_WeakMap.js.map +1 -0
- package/lib/node_modules/lodash/_apply.js.map +1 -0
- package/lib/node_modules/lodash/_arrayEach.js.map +1 -0
- package/lib/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/lib/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/lib/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/lib/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/lib/node_modules/lodash/_arrayMap.js.map +1 -0
- package/lib/node_modules/lodash/_arrayPush.js.map +1 -0
- package/lib/node_modules/lodash/_arrayReduce.js.map +1 -0
- package/lib/node_modules/lodash/_arraySome.js.map +1 -0
- package/lib/node_modules/lodash/_asciiSize.js.map +1 -0
- package/lib/node_modules/lodash/_assignMergeValue.js.map +1 -0
- package/lib/node_modules/lodash/_assignValue.js.map +1 -0
- package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseAssign.js.map +1 -0
- package/lib/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/lib/node_modules/lodash/_baseAssignValue.js.map +1 -0
- package/lib/node_modules/lodash/_baseClone.js.map +1 -0
- package/lib/node_modules/lodash/_baseCreate.js.map +1 -0
- package/lib/node_modules/lodash/_baseEach.js.map +1 -0
- package/lib/node_modules/lodash/_baseExtremum.js.map +1 -0
- package/lib/node_modules/lodash/_baseFilter.js.map +1 -0
- package/lib/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/lib/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/lib/node_modules/lodash/_baseFor.js.map +1 -0
- package/lib/node_modules/lodash/_baseForOwn.js.map +1 -0
- package/lib/node_modules/lodash/_baseGet.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/node_modules/lodash/_baseGt.js.map +1 -0
- package/lib/node_modules/lodash/_baseHas.js.map +1 -0
- package/lib/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/lib/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/lib/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/lib/node_modules/lodash/_baseKeys.js.map +1 -0
- package/lib/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/lib/node_modules/lodash/_baseLt.js.map +1 -0
- package/lib/node_modules/lodash/_baseMap.js.map +1 -0
- package/lib/node_modules/lodash/_baseMatches.js.map +1 -0
- package/lib/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/lib/node_modules/lodash/_baseMerge.js.map +1 -0
- package/lib/node_modules/lodash/_baseMergeDeep.js.map +1 -0
- package/lib/node_modules/lodash/_baseOrderBy.js.map +1 -0
- package/lib/node_modules/lodash/_basePick.js.map +1 -0
- package/lib/node_modules/lodash/_basePickBy.js.map +1 -0
- package/lib/node_modules/lodash/_baseProperty.js.map +1 -0
- package/lib/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/lib/node_modules/lodash/_baseRange.js.map +1 -0
- package/lib/node_modules/lodash/_baseReduce.js.map +1 -0
- package/lib/node_modules/lodash/_baseRest.js.map +1 -0
- package/lib/node_modules/lodash/_baseSet.js.map +1 -0
- package/lib/node_modules/lodash/_baseSetToString.js.map +1 -0
- package/lib/node_modules/lodash/_baseSortBy.js.map +1 -0
- package/lib/node_modules/lodash/_baseTimes.js.map +1 -0
- package/lib/node_modules/lodash/_baseToString.js.map +1 -0
- package/lib/node_modules/lodash/_baseTrim.js.map +1 -0
- package/lib/node_modules/lodash/_baseUnary.js.map +1 -0
- package/lib/node_modules/lodash/_baseUniq.js.map +1 -0
- package/lib/node_modules/lodash/_baseValues.js.map +1 -0
- package/lib/node_modules/lodash/_baseZipObject.js.map +1 -0
- package/lib/node_modules/lodash/_cacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_castFunction.js.map +1 -0
- package/lib/node_modules/lodash/_castPath.js.map +1 -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.map +1 -0
- package/lib/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/lib/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/lib/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/lib/node_modules/lodash/_compareAscending.js.map +1 -0
- package/lib/node_modules/lodash/_compareMultiple.js.map +1 -0
- package/lib/node_modules/lodash/_copyArray.js.map +1 -0
- package/lib/node_modules/lodash/_copyObject.js.map +1 -0
- package/lib/node_modules/lodash/_copySymbols.js.map +1 -0
- package/lib/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/node_modules/lodash/_createAssigner.js.map +1 -0
- package/lib/node_modules/lodash/_createBaseEach.js.map +1 -0
- package/lib/node_modules/lodash/_createBaseFor.js.map +1 -0
- package/lib/node_modules/lodash/_createFind.js.map +1 -0
- package/lib/node_modules/lodash/_createRange.js.map +1 -0
- package/lib/node_modules/lodash/_createSet.js.map +1 -0
- package/lib/node_modules/lodash/_defineProperty.js.map +1 -0
- package/lib/node_modules/lodash/_equalArrays.js.map +1 -0
- package/lib/node_modules/lodash/_equalByTag.js.map +1 -0
- package/lib/node_modules/lodash/_equalObjects.js.map +1 -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.map +1 -0
- package/lib/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/lib/node_modules/lodash/_getMapData.js.map +1 -0
- package/lib/node_modules/lodash/_getMatchData.js.map +1 -0
- package/lib/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/node_modules/lodash/_getPrototype.js.map +1 -0
- package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/node_modules/lodash/_getSymbols.js.map +1 -0
- package/lib/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/lib/node_modules/lodash/_getTag.js.map +1 -0
- package/lib/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/node_modules/lodash/_hasPath.js.map +1 -0
- package/lib/node_modules/lodash/_hasUnicode.js.map +1 -0
- package/lib/node_modules/lodash/_hashClear.js.map +1 -0
- package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
- package/lib/node_modules/lodash/_hashGet.js.map +1 -0
- package/lib/node_modules/lodash/_hashHas.js.map +1 -0
- package/lib/node_modules/lodash/_hashSet.js.map +1 -0
- package/lib/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/lib/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/lib/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/lib/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/lib/node_modules/lodash/_isIndex.js.map +1 -0
- package/lib/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/lib/node_modules/lodash/_isKey.js.map +1 -0
- package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
- package/lib/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/node_modules/lodash/_isPrototype.js.map +1 -0
- package/lib/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapToArray.js.map +1 -0
- package/lib/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/lib/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/node_modules/lodash/_nativeKeys.js.map +1 -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.map +1 -0
- package/lib/node_modules/lodash/_overArg.js.map +1 -0
- package/lib/node_modules/lodash/_overRest.js.map +1 -0
- package/lib/node_modules/lodash/_root.js.map +1 -0
- package/lib/node_modules/lodash/_safeGet.js.map +1 -0
- package/lib/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/lib/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_setToArray.js.map +1 -0
- package/lib/node_modules/lodash/_setToString.js.map +1 -0
- package/lib/node_modules/lodash/_shortOut.js.map +1 -0
- package/lib/node_modules/lodash/_stackClear.js.map +1 -0
- package/lib/node_modules/lodash/_stackDelete.js.map +1 -0
- package/lib/node_modules/lodash/_stackGet.js.map +1 -0
- package/lib/node_modules/lodash/_stackHas.js.map +1 -0
- package/lib/node_modules/lodash/_stackSet.js.map +1 -0
- package/lib/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_stringSize.js.map +1 -0
- package/lib/node_modules/lodash/_stringToPath.js.map +1 -0
- package/lib/node_modules/lodash/_toKey.js.map +1 -0
- package/lib/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/lib/node_modules/lodash/_unicodeSize.js.map +1 -0
- package/lib/node_modules/lodash/clone.js.map +1 -0
- package/lib/node_modules/lodash/cloneDeep.js.map +1 -0
- package/lib/node_modules/lodash/constant.js.map +1 -0
- package/lib/node_modules/lodash/defaults.js.map +1 -0
- package/lib/node_modules/lodash/each.js.map +1 -0
- package/lib/node_modules/lodash/eq.js.map +1 -0
- package/lib/node_modules/lodash/filter.js.map +1 -0
- package/lib/node_modules/lodash/find.js.map +1 -0
- package/lib/node_modules/lodash/findIndex.js.map +1 -0
- package/lib/node_modules/lodash/flatten.js.map +1 -0
- package/lib/node_modules/lodash/forEach.js.map +1 -0
- package/lib/node_modules/lodash/forIn.js.map +1 -0
- package/lib/node_modules/lodash/get.js.map +1 -0
- package/lib/node_modules/lodash/has.js.map +1 -0
- package/lib/node_modules/lodash/hasIn.js.map +1 -0
- package/lib/node_modules/lodash/identity.js.map +1 -0
- package/lib/node_modules/lodash/isArguments.js.map +1 -0
- package/lib/node_modules/lodash/isArray.js.map +1 -0
- package/lib/node_modules/lodash/isArrayLike.js.map +1 -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.map +1 -0
- package/lib/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/node_modules/lodash/isLength.js.map +1 -0
- package/lib/node_modules/lodash/isMap.js.map +1 -0
- package/lib/node_modules/lodash/isObject.js.map +1 -0
- package/lib/node_modules/lodash/isObjectLike.js.map +1 -0
- package/lib/node_modules/lodash/isPlainObject.js.map +1 -0
- package/lib/node_modules/lodash/isSet.js.map +1 -0
- package/lib/node_modules/lodash/isString.js.map +1 -0
- package/lib/node_modules/lodash/isSymbol.js.map +1 -0
- package/lib/node_modules/lodash/isTypedArray.js.map +1 -0
- package/lib/node_modules/lodash/isUndefined.js.map +1 -0
- package/lib/node_modules/lodash/keys.js.map +1 -0
- package/lib/node_modules/lodash/keysIn.js.map +1 -0
- package/lib/node_modules/lodash/last.js.map +1 -0
- package/lib/node_modules/lodash/map.js.map +1 -0
- package/lib/node_modules/lodash/mapValues.js.map +1 -0
- package/lib/node_modules/lodash/max.js.map +1 -0
- package/lib/node_modules/lodash/memoize.js.map +1 -0
- package/lib/node_modules/lodash/merge.js.map +1 -0
- package/lib/node_modules/lodash/min.js.map +1 -0
- package/lib/node_modules/lodash/minBy.js.map +1 -0
- package/lib/node_modules/lodash/noop.js.map +1 -0
- package/lib/node_modules/lodash/now.js.map +1 -0
- package/lib/node_modules/lodash/pick.js.map +1 -0
- package/lib/node_modules/lodash/property.js.map +1 -0
- package/lib/node_modules/lodash/range.js.map +1 -0
- package/lib/node_modules/lodash/reduce.js.map +1 -0
- package/lib/node_modules/lodash/size.js.map +1 -0
- package/lib/node_modules/lodash/sortBy.js.map +1 -0
- package/lib/node_modules/lodash/stubArray.js.map +1 -0
- package/lib/node_modules/lodash/stubFalse.js.map +1 -0
- package/lib/node_modules/lodash/toFinite.js.map +1 -0
- package/lib/node_modules/lodash/toInteger.js.map +1 -0
- package/lib/node_modules/lodash/toNumber.js.map +1 -0
- package/lib/node_modules/lodash/toPlainObject.js.map +1 -0
- package/lib/node_modules/lodash/toString.js.map +1 -0
- package/lib/node_modules/lodash/transform.js.map +1 -0
- package/lib/node_modules/lodash/union.js.map +1 -0
- package/lib/node_modules/lodash/uniqueId.js.map +1 -0
- package/lib/node_modules/lodash/values.js.map +1 -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.map +1 -0
- package/lib/registry.js +13 -13
- 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/data.d.ts +13 -10
- package/lib/types/edge-label.d.ts +6 -0
- package/lib/types/force.d.ts +1 -2
- package/lib/util/common.d.ts +2 -2
- package/lib/util/common.js.map +1 -1
- package/lib/util/format.js +3 -3
- package/lib/util/math.d.ts +3 -3
- package/lib/util/math.js +1 -1
- package/lib/util/math.js.map +1 -1
- package/lib/util/object.js +2 -2
- package/lib/util/order.d.ts +5 -5
- package/lib/util/order.js +2 -8
- package/lib/util/order.js.map +1 -1
- package/lib/util/size.js +1 -1
- package/lib/worker.js +279 -244
- package/lib/worker.js.map +1 -1
- package/package.json +30 -11
- 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/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/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/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-atlas2/index.ts +189 -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 +3 -25
- package/src/model/data.ts +381 -0
- package/src/model/index.ts +1 -0
- package/src/registry.ts +13 -13
- package/src/runtime/context.ts +49 -0
- package/src/runtime/index.ts +2 -0
- package/src/runtime/supervisor.ts +80 -0
- package/src/types/data.ts +20 -13
- package/src/types/edge-label.ts +5 -0
- package/src/types/force.ts +2 -2
- package/src/types/index.ts +1 -0
- package/src/util/common.ts +2 -2
- package/src/util/index.ts +0 -1
- package/src/util/math.ts +3 -3
- package/src/util/order.ts +13 -20
- package/src/worker.ts +2 -2
- package/lib/antv-dagre/acyclic.js.map +0 -1
- package/lib/antv-dagre/add-border-segments.js.map +0 -1
- package/lib/antv-dagre/coordinate-system.js.map +0 -1
- package/lib/antv-dagre/data/list.js.map +0 -1
- package/lib/antv-dagre/graph.js.map +0 -1
- package/lib/antv-dagre/greedy-fas.js.map +0 -1
- package/lib/antv-dagre/index.d.ts +0 -15
- package/lib/antv-dagre/index.js +0 -337
- package/lib/antv-dagre/index.js.map +0 -1
- package/lib/antv-dagre/layout.js +0 -471
- package/lib/antv-dagre/layout.js.map +0 -1
- package/lib/antv-dagre/nesting-graph.js.map +0 -1
- package/lib/antv-dagre/normalize.js.map +0 -1
- package/lib/antv-dagre/order/add-subgraph-constraints.js.map +0 -1
- package/lib/antv-dagre/order/barycenter.js.map +0 -1
- package/lib/antv-dagre/order/build-layer-graph.js.map +0 -1
- package/lib/antv-dagre/order/cross-count.js.map +0 -1
- package/lib/antv-dagre/order/index.js +0 -94
- package/lib/antv-dagre/order/index.js.map +0 -1
- package/lib/antv-dagre/order/init-data-order.js.map +0 -1
- package/lib/antv-dagre/order/init-order.js.map +0 -1
- package/lib/antv-dagre/order/resolve-conflicts.js.map +0 -1
- package/lib/antv-dagre/order/sort-subgraph.js.map +0 -1
- package/lib/antv-dagre/order/sort.js.map +0 -1
- package/lib/antv-dagre/parent-dummy-chains.js.map +0 -1
- package/lib/antv-dagre/position/bk.js.map +0 -1
- package/lib/antv-dagre/position/index.js.map +0 -1
- package/lib/antv-dagre/rank/feasible-tree.js.map +0 -1
- package/lib/antv-dagre/rank/index.js.map +0 -1
- package/lib/antv-dagre/rank/network-simplex.js.map +0 -1
- package/lib/antv-dagre/rank/util.js.map +0 -1
- package/lib/antv-dagre/types.d.ts +0 -170
- package/lib/antv-dagre/util.js +0 -265
- package/lib/antv-dagre/util.js.map +0 -1
- package/lib/circular/index.d.ts +0 -15
- package/lib/circular/index.js +0 -108
- package/lib/circular/index.js.map +0 -1
- package/lib/circular/types.d.ts +0 -105
- package/lib/combo-combined/index.d.ts +0 -33
- package/lib/combo-combined/index.js +0 -303
- package/lib/combo-combined/index.js.map +0 -1
- package/lib/combo-combined/types.d.ts +0 -37
- package/lib/concentric/index.d.ts +0 -15
- package/lib/concentric/index.js +0 -192
- package/lib/concentric/index.js.map +0 -1
- package/lib/concentric/types.d.ts +0 -92
- package/lib/core/base-layout.d.ts +0 -40
- package/lib/core/base-layout.js +0 -88
- package/lib/core/base-layout.js.map +0 -1
- package/lib/core/base-simulation.d.ts +0 -43
- package/lib/core/base-simulation.js +0 -75
- package/lib/core/base-simulation.js.map +0 -1
- package/lib/core/types.d.ts +0 -89
- package/lib/d3-force/force-in-a-box.js +0 -343
- package/lib/d3-force/force-in-a-box.js.map +0 -1
- package/lib/d3-force/index.d.ts +0 -53
- package/lib/d3-force/index.js +0 -552
- package/lib/d3-force/index.js.map +0 -1
- package/lib/d3-force/types.d.ts +0 -336
- package/lib/d3-force-3d/index.js +0 -73
- package/lib/d3-force-3d/index.js.map +0 -1
- package/lib/dagre/index.d.ts +0 -22
- package/lib/dagre/index.js +0 -142
- package/lib/dagre/index.js.map +0 -1
- package/lib/dagre/types.d.ts +0 -79
- package/lib/force/attractive.js.map +0 -1
- package/lib/force/centripetal.js +0 -87
- package/lib/force/centripetal.js.map +0 -1
- package/lib/force/collide.js +0 -172
- package/lib/force/collide.js.map +0 -1
- package/lib/force/gravity.js.map +0 -1
- package/lib/force/index.d.ts +0 -87
- package/lib/force/index.js +0 -450
- package/lib/force/index.js.map +0 -1
- package/lib/force/repulsive.js +0 -142
- package/lib/force/repulsive.js.map +0 -1
- package/lib/force/simulation.d.ts +0 -23
- package/lib/force/simulation.js +0 -137
- package/lib/force/simulation.js.map +0 -1
- package/lib/force/types.d.ts +0 -252
- package/lib/force-atlas2/body.js.map +0 -1
- package/lib/force-atlas2/index.d.ts +0 -22
- package/lib/force-atlas2/index.js +0 -155
- package/lib/force-atlas2/index.js.map +0 -1
- package/lib/force-atlas2/quad-tree.js.map +0 -1
- package/lib/force-atlas2/quad.js.map +0 -1
- package/lib/force-atlas2/simulation.d.ts +0 -39
- package/lib/force-atlas2/simulation.js +0 -388
- package/lib/force-atlas2/simulation.js.map +0 -1
- package/lib/force-atlas2/types.d.ts +0 -109
- package/lib/fruchterman/index.d.ts +0 -20
- package/lib/fruchterman/index.js +0 -93
- package/lib/fruchterman/index.js.map +0 -1
- package/lib/fruchterman/simulation.js +0 -356
- package/lib/fruchterman/simulation.js.map +0 -1
- package/lib/fruchterman/types.d.ts +0 -48
- package/lib/grid/index.d.ts +0 -16
- package/lib/grid/index.js +0 -243
- package/lib/grid/index.js.map +0 -1
- package/lib/grid/types.d.ts +0 -85
- package/lib/mds/index.d.ts +0 -15
- package/lib/mds/index.js +0 -127
- package/lib/mds/index.js.map +0 -1
- package/lib/mds/types.d.ts +0 -25
- package/lib/node_modules/.pnpm/@antv_event-emitter@0.1.3/node_modules/@antv/event-emitter/esm/index.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/clone.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/deep-mix.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/each.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/get-type.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/get.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-array-like.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-array.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-boolean.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-empty.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-function.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-nil.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-number.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-object-like.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-object.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-plain-object.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-prototype.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-string.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/is-type.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/pick.js.map +0 -1
- package/lib/node_modules/.pnpm/@antv_util@3.3.11/node_modules/@antv/util/esm/lodash/set.js.map +0 -1
- package/lib/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.54.0_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js.map +0 -1
- package/lib/node_modules/.pnpm/comlink@4.4.2/node_modules/comlink/dist/esm/comlink.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/add.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/binarytree.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/cover.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/data.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/extent.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/find.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/half.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/remove.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/root.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/size.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/visit.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/visitAfter.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/x.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/center.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/collide.js +0 -135
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/collide.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/constant.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/jiggle.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/lcg.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/link.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/manyBody.js +0 -142
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/manyBody.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/radial.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/simulation.js +0 -202
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/simulation.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/x.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/y.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/z.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js +0 -103
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/lcg.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js +0 -119
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/radial.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js +0 -159
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/x.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/y.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/add.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/cover.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/data.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/extent.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/find.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/findAll.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/octant.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/octree.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/remove.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/root.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/size.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/visit.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/visitAfter.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/x.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/y.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/z.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/add.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/cover.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/data.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/extent.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/find.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quad.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/remove.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/root.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/size.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/visit.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/visitAfter.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/x.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/y.js.map +0 -1
- package/lib/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/index.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/acyclic.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/add-border-segments.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/coordinate-system.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/data/list.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/debug.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/graphlib.js +0 -31
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/graphlib.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/greedy-fas.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/layout.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/lodash.js +0 -83
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/lodash.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/nesting-graph.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/normalize.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/add-subgraph-constraints.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/barycenter.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/build-layer-graph.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/cross-count.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/index.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/init-order.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/resolve-conflicts.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/sort-subgraph.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/order/sort.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/parent-dummy-chains.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/position/bk.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/position/index.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/rank/feasible-tree.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/rank/index.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/rank/network-simplex.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/rank/util.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/util.js.map +0 -1
- package/lib/node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/lib/version.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/index.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/components.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/dfs.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/dijkstra-all.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/dijkstra.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/find-cycles.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/floyd-warshall.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/index.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/is-acyclic.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/postorder.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/preorder.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/prim.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/tarjan.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/alg/topsort.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/data/priority-queue.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/graph.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/index.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/json.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/lodash.js +0 -63
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/lodash.js.map +0 -1
- package/lib/node_modules/.pnpm/graphlib@2.1.8/node_modules/graphlib/lib/version.js.map +0 -1
- package/lib/node_modules/.pnpm/is-any-array@2.0.1/node_modules/is-any-array/lib-esm/index.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayEach.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiSize.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssign.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseEach.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseExtremum.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFilter.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGt.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMap.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNaN.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseLt.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMap.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseOrderBy.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePick.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseReduce.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSortBy.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUniq.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseValues.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseZipObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castFunction.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js +0 -52
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneDataView.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneRegExp.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneSymbol.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_compareAscending.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_compareMultiple.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copySymbols.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copySymbolsIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseEach.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFind.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -18
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneByTag.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isFlattenable.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js +0 -47
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_strictIndexOf.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringSize.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeSize.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/clone.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/each.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/filter.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/find.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatten.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/has.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +0 -56
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isMap.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSet.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isUndefined.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/map.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/max.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/min.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/minBy.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/noop.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/reduce.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/size.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortBy.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/transform.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/union.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/values.js.map +0 -1
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/zipObject.js.map +0 -1
- package/lib/node_modules/.pnpm/ml-array-max@1.2.4/node_modules/ml-array-max/lib-es6/index.js +0 -37
- package/lib/node_modules/.pnpm/ml-array-max@1.2.4/node_modules/ml-array-max/lib-es6/index.js.map +0 -1
- package/lib/node_modules/.pnpm/ml-array-min@1.2.3/node_modules/ml-array-min/lib-es6/index.js +0 -37
- package/lib/node_modules/.pnpm/ml-array-min@1.2.3/node_modules/ml-array-min/lib-es6/index.js.map +0 -1
- package/lib/node_modules/.pnpm/ml-array-rescale@1.3.7/node_modules/ml-array-rescale/lib-es6/index.js +0 -52
- package/lib/node_modules/.pnpm/ml-array-rescale@1.3.7/node_modules/ml-array-rescale/lib-es6/index.js.map +0 -1
- package/lib/node_modules/.pnpm/ml-matrix@6.12.1/node_modules/ml-matrix/matrix.js +0 -8
- package/lib/node_modules/.pnpm/ml-matrix@6.12.1/node_modules/ml-matrix/matrix.js.map +0 -1
- package/lib/node_modules/.pnpm/ml-matrix@6.12.1/node_modules/ml-matrix/matrix2.js +0 -5660
- package/lib/node_modules/.pnpm/ml-matrix@6.12.1/node_modules/ml-matrix/matrix2.js.map +0 -1
- package/lib/radial/index.d.ts +0 -16
- package/lib/radial/index.js +0 -275
- package/lib/radial/index.js.map +0 -1
- package/lib/radial/radial-nonoverlap-force.js +0 -129
- package/lib/radial/radial-nonoverlap-force.js.map +0 -1
- package/lib/radial/types.d.ts +0 -103
- package/lib/random/index.d.ts +0 -15
- package/lib/random/index.js +0 -36
- package/lib/random/index.js.map +0 -1
- package/lib/random/types.d.ts +0 -11
- package/lib/supervisor.d.ts +0 -25
- package/lib/supervisor.js +0 -71
- package/lib/supervisor.js.map +0 -1
- package/lib/util/model.d.ts +0 -45
- package/lib/util/model.js +0 -273
- package/lib/util/model.js.map +0 -1
- package/src/antv-dagre/acyclic.ts +0 -70
- package/src/antv-dagre/add-border-segments.ts +0 -55
- package/src/antv-dagre/coordinate-system.ts +0 -77
- package/src/antv-dagre/graph.ts +0 -533
- package/src/antv-dagre/greedy-fas.ts +0 -185
- package/src/antv-dagre/index.ts +0 -620
- package/src/antv-dagre/layout.ts +0 -622
- package/src/antv-dagre/nesting-graph.ts +0 -184
- package/src/antv-dagre/normalize.ts +0 -125
- package/src/antv-dagre/order/add-subgraph-constraints.ts +0 -51
- package/src/antv-dagre/order/barycenter.ts +0 -26
- package/src/antv-dagre/order/build-layer-graph.ts +0 -109
- package/src/antv-dagre/order/cross-count.ts +0 -76
- package/src/antv-dagre/order/index.ts +0 -123
- package/src/antv-dagre/order/init-data-order.ts +0 -29
- package/src/antv-dagre/order/init-order.ts +0 -59
- package/src/antv-dagre/order/resolve-conflicts.ts +0 -153
- package/src/antv-dagre/order/sort-subgraph.ts +0 -111
- package/src/antv-dagre/order/sort.ts +0 -94
- package/src/antv-dagre/parent-dummy-chains.ts +0 -111
- package/src/antv-dagre/position/bk.ts +0 -560
- package/src/antv-dagre/position/index.ts +0 -109
- package/src/antv-dagre/rank/feasible-tree.ts +0 -179
- package/src/antv-dagre/rank/network-simplex.ts +0 -282
- package/src/antv-dagre/rank/util.ts +0 -157
- package/src/antv-dagre/types.ts +0 -175
- package/src/antv-dagre/util.ts +0 -359
- package/src/circular/index.ts +0 -123
- package/src/circular/types.ts +0 -105
- package/src/combo-combined/index.ts +0 -412
- package/src/combo-combined/types.ts +0 -39
- package/src/concentric/index.ts +0 -234
- package/src/concentric/types.ts +0 -89
- package/src/core/base-layout.ts +0 -126
- package/src/core/base-simulation.ts +0 -115
- package/src/core/types.ts +0 -145
- package/src/d3-force/force-in-a-box.ts +0 -404
- package/src/d3-force/index.ts +0 -642
- package/src/d3-force/types.ts +0 -378
- package/src/dagre/index.ts +0 -172
- package/src/dagre/types.ts +0 -85
- package/src/force/attractive.ts +0 -71
- package/src/force/centripetal.ts +0 -133
- package/src/force/collide.ts +0 -219
- package/src/force/gravity.ts +0 -61
- package/src/force/index.ts +0 -539
- package/src/force/repulsive.ts +0 -200
- package/src/force/simulation.ts +0 -172
- package/src/force/types.ts +0 -265
- package/src/force-atlas2/index.ts +0 -188
- package/src/force-atlas2/quad.ts +0 -117
- package/src/force-atlas2/simulation.ts +0 -445
- package/src/force-atlas2/types.ts +0 -106
- package/src/fruchterman/index.ts +0 -116
- package/src/fruchterman/simulation.ts +0 -447
- package/src/fruchterman/types.ts +0 -47
- package/src/grid/index.ts +0 -305
- package/src/grid/types.ts +0 -120
- package/src/mds/index.ts +0 -143
- package/src/mds/types.ts +0 -23
- package/src/radial/index.ts +0 -345
- package/src/radial/radial-nonoverlap-force.ts +0 -209
- package/src/radial/types.ts +0 -100
- package/src/random/index.ts +0 -35
- package/src/random/types.ts +0 -8
- package/src/supervisor.ts +0 -77
- package/src/util/model.ts +0 -372
- /package/lib/{antv-dagre → algorithm/antv-dagre}/acyclic.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/add-border-segments.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/coordinate-system.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/data/list.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/graph.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/greedy-fas.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/nesting-graph.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/normalize.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/add-subgraph-constraints.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/barycenter.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/build-layer-graph.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/cross-count.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/init-data-order.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/init-order.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/resolve-conflicts.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/sort-subgraph.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/order/sort.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/parent-dummy-chains.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/position/bk.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/position/index.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/rank/feasible-tree.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/rank/index.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/rank/network-simplex.js +0 -0
- /package/lib/{antv-dagre → algorithm/antv-dagre}/rank/util.js +0 -0
- /package/lib/{d3-force-3d → algorithm/d3-force-3d}/index.d.ts +0 -0
- /package/lib/{d3-force-3d → algorithm/d3-force-3d}/types.d.ts +0 -0
- /package/lib/{force → algorithm/force}/attractive.js +0 -0
- /package/lib/{force → algorithm/force}/gravity.js +0 -0
- /package/lib/{force-atlas2 → algorithm/force-atlas2}/body.js +0 -0
- /package/lib/{force-atlas2 → algorithm/force-atlas2}/quad-tree.js +0 -0
- /package/lib/{force-atlas2 → algorithm/force-atlas2}/quad.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_event-emitter@0.1.3/node_modules/@antv → @antv}/event-emitter/esm/index.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/clone.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/deep-mix.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/each.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/get-type.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/get.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-array-like.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-array.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-boolean.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-empty.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-function.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-nil.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-number.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-object-like.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-object.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-plain-object.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-prototype.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-string.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/is-type.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/pick.js +0 -0
- /package/lib/node_modules/{.pnpm/@antv_util@3.3.11/node_modules/@antv → @antv}/util/esm/lodash/set.js +0 -0
- /package/lib/node_modules/{.pnpm/comlink@4.4.2/node_modules/comlink → comlink}/dist/esm/comlink.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/add.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/binarytree.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/cover.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/data.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/extent.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/find.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/half.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/remove.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/root.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/size.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/visit.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/visitAfter.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree → d3-binarytree}/src/x.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch → d3-dispatch}/src/dispatch.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/center.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/constant.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/jiggle.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/lcg.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/link.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/radial.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/x.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force@3.0.0/node_modules/d3-force → d3-force}/src/y.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/center.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/constant.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/jiggle.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/lcg.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/link.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/radial.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/x.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/y.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d → d3-force-3d}/src/z.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/add.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/cover.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/data.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/extent.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/find.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/findAll.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/octant.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/octree.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/remove.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/root.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/size.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/visit.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/visitAfter.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/x.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/y.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-octree@1.1.0/node_modules/d3-octree → d3-octree}/src/z.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/add.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/cover.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/data.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/extent.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/find.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/quad.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/quadtree.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/remove.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/root.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/size.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/visit.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/visitAfter.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/x.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree → d3-quadtree}/src/y.js +0 -0
- /package/lib/node_modules/{.pnpm/d3-timer@3.0.1/node_modules/d3-timer → d3-timer}/src/timer.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/index.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/acyclic.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/add-border-segments.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/coordinate-system.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/data/list.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/debug.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/greedy-fas.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/layout.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/nesting-graph.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/normalize.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/add-subgraph-constraints.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/barycenter.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/build-layer-graph.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/cross-count.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/index.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/init-order.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/resolve-conflicts.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/sort-subgraph.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/order/sort.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/parent-dummy-chains.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/position/bk.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/position/index.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/rank/feasible-tree.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/rank/index.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/rank/network-simplex.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/rank/util.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/util.js +0 -0
- /package/lib/node_modules/{.pnpm/dagre@0.8.5/node_modules/dagre → dagre}/lib/version.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/index.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/components.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/dfs.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/dijkstra-all.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/dijkstra.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/find-cycles.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/floyd-warshall.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/index.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/is-acyclic.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/postorder.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/preorder.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/prim.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/tarjan.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/alg/topsort.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/data/priority-queue.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/graph.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/index.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/json.js +0 -0
- /package/lib/node_modules/{.pnpm/graphlib@2.1.8/node_modules/graphlib → graphlib}/lib/version.js +0 -0
- /package/lib/node_modules/{.pnpm/is-any-array@2.0.1/node_modules/is-any-array → is-any-array}/lib-esm/index.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_DataView.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Hash.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_ListCache.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Map.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_MapCache.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Promise.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Set.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_SetCache.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Stack.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Symbol.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_Uint8Array.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_WeakMap.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_apply.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayEach.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayFilter.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayIncludes.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayIncludesWith.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayLikeKeys.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayMap.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayPush.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arrayReduce.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_arraySome.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_asciiSize.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_assignMergeValue.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_assignValue.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_assocIndexOf.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseAssign.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseAssignIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseAssignValue.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseClone.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseCreate.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseEach.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseExtremum.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseFilter.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseFindIndex.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseFlatten.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseFor.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseForOwn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseGet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseGetAllKeys.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseGetTag.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseGt.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseHasIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIndexOf.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsArguments.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsEqual.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsEqualDeep.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsMap.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsMatch.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsNaN.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsNative.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIsTypedArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseIteratee.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseKeys.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseKeysIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseLt.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseMap.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseMatches.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseMatchesProperty.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseMerge.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseMergeDeep.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseOrderBy.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_basePick.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_basePickBy.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseProperty.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_basePropertyDeep.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseRange.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseReduce.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseRest.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseSetToString.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseSortBy.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseTimes.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseToString.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseTrim.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseUnary.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseUniq.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseValues.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_baseZipObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_cacheHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_castFunction.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_castPath.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_cloneArrayBuffer.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_cloneDataView.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_cloneRegExp.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_cloneSymbol.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_cloneTypedArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_compareAscending.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_compareMultiple.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_copyArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_copyObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_copySymbols.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_copySymbolsIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_coreJsData.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_createAssigner.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_createBaseEach.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_createBaseFor.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_createFind.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_createRange.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_createSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_defineProperty.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_equalArrays.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_equalByTag.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_equalObjects.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_flatRest.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getAllKeys.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getAllKeysIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getMapData.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getMatchData.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getNative.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getPrototype.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getRawTag.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getSymbols.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getSymbolsIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getTag.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_getValue.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hasPath.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hasUnicode.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hashClear.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hashDelete.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hashGet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hashHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_hashSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_initCloneArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_initCloneByTag.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_initCloneObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isFlattenable.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isIndex.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isIterateeCall.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isKey.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isKeyable.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isMasked.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isPrototype.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_isStrictComparable.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_listCacheClear.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_listCacheDelete.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_listCacheGet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_listCacheHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_listCacheSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_mapCacheClear.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_mapCacheDelete.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_mapCacheGet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_mapCacheHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_mapCacheSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_mapToArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_matchesStrictComparable.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_memoizeCapped.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_nativeCreate.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_nativeKeys.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_nativeKeysIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_objectToString.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_overArg.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_overRest.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_root.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_safeGet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_setCacheAdd.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_setCacheHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_setToArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_setToString.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_shortOut.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stackClear.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stackDelete.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stackGet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stackHas.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stackSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_strictIndexOf.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stringSize.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_stringToPath.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_toKey.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_toSource.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_trimmedEndIndex.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/_unicodeSize.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/clone.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/cloneDeep.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/constant.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/defaults.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/each.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/eq.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/filter.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/find.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/findIndex.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/flatten.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/forEach.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/forIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/get.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/has.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/hasIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/identity.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isArguments.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isArrayLike.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isArrayLikeObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isEmpty.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isFunction.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isLength.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isMap.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isObjectLike.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isPlainObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isSet.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isString.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isSymbol.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isTypedArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/isUndefined.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/keys.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/keysIn.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/last.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/map.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/mapValues.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/max.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/memoize.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/merge.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/min.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/minBy.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/noop.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/now.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/pick.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/property.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/range.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/reduce.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/size.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/sortBy.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/stubArray.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/stubFalse.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/toFinite.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/toInteger.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/toNumber.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/toPlainObject.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/toString.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/transform.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/union.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/uniqueId.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/values.js +0 -0
- /package/lib/node_modules/{.pnpm/lodash@4.17.21/node_modules/lodash → lodash}/zipObject.js +0 -0
- /package/lib/node_modules/{.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.54.0_tslib@2.8.1_typescript@4.9.5/node_modules/tslib → tslib}/tslib.es6.js +0 -0
- /package/src/{antv-dagre → algorithm/antv-dagre}/data/list.ts +0 -0
- /package/src/{antv-dagre → algorithm/antv-dagre}/rank/index.ts +0 -0
- /package/src/{d3-force-3d → algorithm/d3-force-3d}/index.ts +0 -0
- /package/src/{d3-force-3d → algorithm/d3-force-3d}/types.ts +0 -0
- /package/src/{d3-force-3d → algorithm/d3-force-3d}/typing.d.ts +0 -0
- /package/src/{force → algorithm/force}/typing.d.ts +0 -0
- /package/src/{force-atlas2 → algorithm/force-atlas2}/body.ts +0 -0
- /package/src/{force-atlas2 → algorithm/force-atlas2}/quad-tree.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -357,975 +357,1012 @@
|
|
|
357
357
|
return result;
|
|
358
358
|
});
|
|
359
359
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
const proxyMarker = Symbol("Comlink.proxy");
|
|
366
|
-
const createEndpoint = Symbol("Comlink.endpoint");
|
|
367
|
-
const releaseProxy = Symbol("Comlink.releaseProxy");
|
|
368
|
-
const finalizer = Symbol("Comlink.finalizer");
|
|
369
|
-
const throwMarker = Symbol("Comlink.thrown");
|
|
370
|
-
const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";
|
|
371
|
-
/**
|
|
372
|
-
* Internal transfer handle to handle objects marked to proxy.
|
|
373
|
-
*/
|
|
374
|
-
const proxyTransferHandler = {
|
|
375
|
-
canHandle: (val) => isObject(val) && val[proxyMarker],
|
|
376
|
-
serialize(obj) {
|
|
377
|
-
const { port1, port2 } = new MessageChannel();
|
|
378
|
-
expose(obj, port1);
|
|
379
|
-
return [port2, [port2]];
|
|
380
|
-
},
|
|
381
|
-
deserialize(port) {
|
|
382
|
-
port.start();
|
|
383
|
-
return wrap(port);
|
|
384
|
-
},
|
|
385
|
-
};
|
|
386
|
-
/**
|
|
387
|
-
* Internal transfer handler to handle thrown exceptions.
|
|
388
|
-
*/
|
|
389
|
-
const throwTransferHandler = {
|
|
390
|
-
canHandle: (value) => isObject(value) && throwMarker in value,
|
|
391
|
-
serialize({ value }) {
|
|
392
|
-
let serialized;
|
|
393
|
-
if (value instanceof Error) {
|
|
394
|
-
serialized = {
|
|
395
|
-
isError: true,
|
|
396
|
-
value: {
|
|
397
|
-
message: value.message,
|
|
398
|
-
name: value.name,
|
|
399
|
-
stack: value.stack,
|
|
400
|
-
},
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
else {
|
|
404
|
-
serialized = { isError: false, value };
|
|
405
|
-
}
|
|
406
|
-
return [serialized, []];
|
|
407
|
-
},
|
|
408
|
-
deserialize(serialized) {
|
|
409
|
-
if (serialized.isError) {
|
|
410
|
-
throw Object.assign(new Error(serialized.value.message), serialized.value);
|
|
411
|
-
}
|
|
412
|
-
throw serialized.value;
|
|
413
|
-
},
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Allows customizing the serialization of certain values.
|
|
417
|
-
*/
|
|
418
|
-
const transferHandlers = new Map([
|
|
419
|
-
["proxy", proxyTransferHandler],
|
|
420
|
-
["throw", throwTransferHandler],
|
|
421
|
-
]);
|
|
422
|
-
function isAllowedOrigin(allowedOrigins, origin) {
|
|
423
|
-
for (const allowedOrigin of allowedOrigins) {
|
|
424
|
-
if (origin === allowedOrigin || allowedOrigin === "*") {
|
|
425
|
-
return true;
|
|
426
|
-
}
|
|
427
|
-
if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {
|
|
428
|
-
return true;
|
|
429
|
-
}
|
|
360
|
+
class GraphLib {
|
|
361
|
+
constructor(data, options = {}) {
|
|
362
|
+
this.edgeIdCounter = new Map();
|
|
363
|
+
this.nodeMap = extractNodeData(data.nodes, options.node);
|
|
364
|
+
this.edgeMap = extractEdgeData(data.edges || [], options.edge, this.getEdgeId.bind(this));
|
|
430
365
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
366
|
+
data() {
|
|
367
|
+
return { nodes: this.nodeMap, edges: this.edgeMap };
|
|
368
|
+
}
|
|
369
|
+
replace(result) {
|
|
370
|
+
this.nodeMap = result.nodes;
|
|
371
|
+
this.edgeMap = result.edges;
|
|
372
|
+
this.clearCache();
|
|
373
|
+
}
|
|
374
|
+
nodes() {
|
|
375
|
+
return Array.from(this.nodeMap.values());
|
|
376
|
+
}
|
|
377
|
+
node(id) {
|
|
378
|
+
return this.nodeMap.get(id);
|
|
379
|
+
}
|
|
380
|
+
nodeAt(index) {
|
|
381
|
+
if (!this.indexNodeCache) {
|
|
382
|
+
this.buildNodeIndexCache();
|
|
441
383
|
}
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
case "GET" /* MessageType.GET */:
|
|
450
|
-
{
|
|
451
|
-
returnValue = rawValue;
|
|
452
|
-
}
|
|
453
|
-
break;
|
|
454
|
-
case "SET" /* MessageType.SET */:
|
|
455
|
-
{
|
|
456
|
-
parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);
|
|
457
|
-
returnValue = true;
|
|
458
|
-
}
|
|
459
|
-
break;
|
|
460
|
-
case "APPLY" /* MessageType.APPLY */:
|
|
461
|
-
{
|
|
462
|
-
returnValue = rawValue.apply(parent, argumentList);
|
|
463
|
-
}
|
|
464
|
-
break;
|
|
465
|
-
case "CONSTRUCT" /* MessageType.CONSTRUCT */:
|
|
466
|
-
{
|
|
467
|
-
const value = new rawValue(...argumentList);
|
|
468
|
-
returnValue = proxy(value);
|
|
469
|
-
}
|
|
470
|
-
break;
|
|
471
|
-
case "ENDPOINT" /* MessageType.ENDPOINT */:
|
|
472
|
-
{
|
|
473
|
-
const { port1, port2 } = new MessageChannel();
|
|
474
|
-
expose(obj, port2);
|
|
475
|
-
returnValue = transfer(port1, [port1]);
|
|
476
|
-
}
|
|
477
|
-
break;
|
|
478
|
-
case "RELEASE" /* MessageType.RELEASE */:
|
|
479
|
-
{
|
|
480
|
-
returnValue = undefined;
|
|
481
|
-
}
|
|
482
|
-
break;
|
|
483
|
-
default:
|
|
484
|
-
return;
|
|
485
|
-
}
|
|
384
|
+
const nodeId = this.indexNodeCache.get(index);
|
|
385
|
+
return nodeId ? this.nodeMap.get(nodeId) : undefined;
|
|
386
|
+
}
|
|
387
|
+
nodeIndexOf(id) {
|
|
388
|
+
var _a;
|
|
389
|
+
if (!this.nodeIndexCache) {
|
|
390
|
+
this.buildNodeIndexCache();
|
|
486
391
|
}
|
|
487
|
-
|
|
488
|
-
|
|
392
|
+
return (_a = this.nodeIndexCache.get(id)) !== null && _a !== void 0 ? _a : -1;
|
|
393
|
+
}
|
|
394
|
+
firstNode() {
|
|
395
|
+
return this.nodeMap.values().next().value;
|
|
396
|
+
}
|
|
397
|
+
forEachNode(callback) {
|
|
398
|
+
let i = 0;
|
|
399
|
+
this.nodeMap.forEach((node) => callback(node, i++));
|
|
400
|
+
}
|
|
401
|
+
originalNode(id) {
|
|
402
|
+
const node = this.nodeMap.get(id);
|
|
403
|
+
return node === null || node === void 0 ? void 0 : node._original;
|
|
404
|
+
}
|
|
405
|
+
nodeCount() {
|
|
406
|
+
return this.nodeMap.size;
|
|
407
|
+
}
|
|
408
|
+
edges() {
|
|
409
|
+
return Array.from(this.edgeMap.values());
|
|
410
|
+
}
|
|
411
|
+
edge(id) {
|
|
412
|
+
return this.edgeMap.get(id);
|
|
413
|
+
}
|
|
414
|
+
firstEdge() {
|
|
415
|
+
return this.edgeMap.values().next().value;
|
|
416
|
+
}
|
|
417
|
+
forEachEdge(callback) {
|
|
418
|
+
let i = 0;
|
|
419
|
+
this.edgeMap.forEach((edge) => callback(edge, i++));
|
|
420
|
+
}
|
|
421
|
+
originalEdge(id) {
|
|
422
|
+
const edge = this.edgeMap.get(id);
|
|
423
|
+
return edge === null || edge === void 0 ? void 0 : edge._original;
|
|
424
|
+
}
|
|
425
|
+
edgeCount() {
|
|
426
|
+
return this.edgeMap.size;
|
|
427
|
+
}
|
|
428
|
+
getEdgeId(edge) {
|
|
429
|
+
if (edge.id)
|
|
430
|
+
return edge.id;
|
|
431
|
+
const baseId = `${edge.source}-${edge.target}`;
|
|
432
|
+
const count = this.edgeIdCounter.get(baseId) || 0;
|
|
433
|
+
const id = count === 0 ? baseId : `${baseId}-${count}`;
|
|
434
|
+
this.edgeIdCounter.set(baseId, count + 1);
|
|
435
|
+
return id;
|
|
436
|
+
}
|
|
437
|
+
degree(nodeId, direction = 'both') {
|
|
438
|
+
if (!this.degreeCache) {
|
|
439
|
+
this.buildDegreeCache();
|
|
489
440
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
return
|
|
493
|
-
|
|
494
|
-
.then((returnValue) => {
|
|
495
|
-
const [wireValue, transferables] = toWireValue(returnValue);
|
|
496
|
-
ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);
|
|
497
|
-
if (type === "RELEASE" /* MessageType.RELEASE */) {
|
|
498
|
-
// detach and deactive after sending release response above.
|
|
499
|
-
ep.removeEventListener("message", callback);
|
|
500
|
-
closeEndPoint(ep);
|
|
501
|
-
if (finalizer in obj && typeof obj[finalizer] === "function") {
|
|
502
|
-
obj[finalizer]();
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
})
|
|
506
|
-
.catch((error) => {
|
|
507
|
-
// Send Serialization Error To Caller
|
|
508
|
-
const [wireValue, transferables] = toWireValue({
|
|
509
|
-
value: new TypeError("Unserializable return value"),
|
|
510
|
-
[throwMarker]: 0,
|
|
511
|
-
});
|
|
512
|
-
ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);
|
|
513
|
-
});
|
|
514
|
-
});
|
|
515
|
-
if (ep.start) {
|
|
516
|
-
ep.start();
|
|
441
|
+
const degree = this.degreeCache.get(nodeId);
|
|
442
|
+
if (!degree)
|
|
443
|
+
return 0;
|
|
444
|
+
return degree[direction];
|
|
517
445
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
522
|
-
function closeEndPoint(endpoint) {
|
|
523
|
-
if (isMessagePort(endpoint))
|
|
524
|
-
endpoint.close();
|
|
525
|
-
}
|
|
526
|
-
function wrap(ep, target) {
|
|
527
|
-
const pendingListeners = new Map();
|
|
528
|
-
ep.addEventListener("message", function handleMessage(ev) {
|
|
529
|
-
const { data } = ev;
|
|
530
|
-
if (!data || !data.id) {
|
|
531
|
-
return;
|
|
446
|
+
neighbors(nodeId, direction = 'both') {
|
|
447
|
+
if (!this.outAdjacencyCache || !this.inAdjacencyCache) {
|
|
448
|
+
this.buildAdjacencyCache();
|
|
532
449
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
return;
|
|
450
|
+
if (direction === 'out') {
|
|
451
|
+
return Array.from(this.outAdjacencyCache.get(nodeId) || []);
|
|
536
452
|
}
|
|
537
|
-
|
|
538
|
-
|
|
453
|
+
if (direction === 'in') {
|
|
454
|
+
return Array.from(this.inAdjacencyCache.get(nodeId) || []);
|
|
539
455
|
}
|
|
540
|
-
|
|
541
|
-
|
|
456
|
+
if (this.bothAdjacencyCache) {
|
|
457
|
+
return Array.from(this.bothAdjacencyCache.get(nodeId) || []);
|
|
542
458
|
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
459
|
+
const inSet = this.inAdjacencyCache.get(nodeId);
|
|
460
|
+
const outSet = this.outAdjacencyCache.get(nodeId);
|
|
461
|
+
if (!inSet && !outSet)
|
|
462
|
+
return [];
|
|
463
|
+
if (!inSet)
|
|
464
|
+
return Array.from(outSet);
|
|
465
|
+
if (!outSet)
|
|
466
|
+
return Array.from(inSet);
|
|
467
|
+
const merged = new Set();
|
|
468
|
+
inSet.forEach((id) => merged.add(id));
|
|
469
|
+
outSet.forEach((id) => merged.add(id));
|
|
470
|
+
return Array.from(merged);
|
|
549
471
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
return requestResponseMessage(ep, new Map(), {
|
|
553
|
-
type: "RELEASE" /* MessageType.RELEASE */,
|
|
554
|
-
}).then(() => {
|
|
555
|
-
closeEndPoint(ep);
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
const proxyCounter = new WeakMap();
|
|
559
|
-
const proxyFinalizers = "FinalizationRegistry" in globalThis &&
|
|
560
|
-
new FinalizationRegistry((ep) => {
|
|
561
|
-
const newCount = (proxyCounter.get(ep) || 0) - 1;
|
|
562
|
-
proxyCounter.set(ep, newCount);
|
|
563
|
-
if (newCount === 0) {
|
|
564
|
-
releaseEndpoint(ep);
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
function registerProxy(proxy, ep) {
|
|
568
|
-
const newCount = (proxyCounter.get(ep) || 0) + 1;
|
|
569
|
-
proxyCounter.set(ep, newCount);
|
|
570
|
-
if (proxyFinalizers) {
|
|
571
|
-
proxyFinalizers.register(proxy, ep, proxy);
|
|
472
|
+
successors(nodeId) {
|
|
473
|
+
return this.neighbors(nodeId, 'out');
|
|
572
474
|
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
if (proxyFinalizers) {
|
|
576
|
-
proxyFinalizers.unregister(proxy);
|
|
475
|
+
predecessors(nodeId) {
|
|
476
|
+
return this.neighbors(nodeId, 'in');
|
|
577
477
|
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
478
|
+
setNodeOrder(nodes) {
|
|
479
|
+
const next = new Map();
|
|
480
|
+
for (const node of nodes)
|
|
481
|
+
next.set(node.id, node);
|
|
482
|
+
this.nodeMap = next;
|
|
483
|
+
this.nodeIndexCache = undefined;
|
|
484
|
+
this.indexNodeCache = undefined;
|
|
485
|
+
}
|
|
486
|
+
clearCache() {
|
|
487
|
+
this.degreeCache = undefined;
|
|
488
|
+
this.inAdjacencyCache = undefined;
|
|
489
|
+
this.outAdjacencyCache = undefined;
|
|
490
|
+
this.bothAdjacencyCache = undefined;
|
|
491
|
+
this.nodeIndexCache = undefined;
|
|
492
|
+
this.indexNodeCache = undefined;
|
|
493
|
+
}
|
|
494
|
+
buildDegreeCache() {
|
|
495
|
+
this.degreeCache = new Map();
|
|
496
|
+
for (const edge of this.edges()) {
|
|
497
|
+
const { source, target } = edge;
|
|
498
|
+
if (edge.source === edge.target)
|
|
499
|
+
continue;
|
|
500
|
+
if (!this.degreeCache.has(source)) {
|
|
501
|
+
this.degreeCache.set(source, { in: 0, out: 0, both: 0 });
|
|
591
502
|
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
const r = requestResponseMessage(ep, pendingListeners, {
|
|
597
|
-
type: "GET" /* MessageType.GET */,
|
|
598
|
-
path: path.map((p) => p.toString()),
|
|
599
|
-
}).then(fromWireValue);
|
|
600
|
-
return r.then.bind(r);
|
|
503
|
+
const sourceDeg = this.degreeCache.get(edge.source);
|
|
504
|
+
if (sourceDeg) {
|
|
505
|
+
sourceDeg.out++;
|
|
506
|
+
sourceDeg.both++;
|
|
601
507
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
set(_target, prop, rawValue) {
|
|
605
|
-
throwIfProxyReleased(isProxyReleased);
|
|
606
|
-
// FIXME: ES6 Proxy Handler `set` methods are supposed to return a
|
|
607
|
-
// boolean. To show good will, we return true asynchronously ¯\_(ツ)_/¯
|
|
608
|
-
const [value, transferables] = toWireValue(rawValue);
|
|
609
|
-
return requestResponseMessage(ep, pendingListeners, {
|
|
610
|
-
type: "SET" /* MessageType.SET */,
|
|
611
|
-
path: [...path, prop].map((p) => p.toString()),
|
|
612
|
-
value,
|
|
613
|
-
}, transferables).then(fromWireValue);
|
|
614
|
-
},
|
|
615
|
-
apply(_target, _thisArg, rawArgumentList) {
|
|
616
|
-
throwIfProxyReleased(isProxyReleased);
|
|
617
|
-
const last = path[path.length - 1];
|
|
618
|
-
if (last === createEndpoint) {
|
|
619
|
-
return requestResponseMessage(ep, pendingListeners, {
|
|
620
|
-
type: "ENDPOINT" /* MessageType.ENDPOINT */,
|
|
621
|
-
}).then(fromWireValue);
|
|
508
|
+
if (!this.degreeCache.has(target)) {
|
|
509
|
+
this.degreeCache.set(target, { in: 0, out: 0, both: 0 });
|
|
622
510
|
}
|
|
623
|
-
|
|
624
|
-
if (
|
|
625
|
-
|
|
511
|
+
const targetDeg = this.degreeCache.get(edge.target);
|
|
512
|
+
if (targetDeg) {
|
|
513
|
+
targetDeg.in++;
|
|
514
|
+
targetDeg.both++;
|
|
626
515
|
}
|
|
627
|
-
const [argumentList, transferables] = processArguments(rawArgumentList);
|
|
628
|
-
return requestResponseMessage(ep, pendingListeners, {
|
|
629
|
-
type: "APPLY" /* MessageType.APPLY */,
|
|
630
|
-
path: path.map((p) => p.toString()),
|
|
631
|
-
argumentList,
|
|
632
|
-
}, transferables).then(fromWireValue);
|
|
633
|
-
},
|
|
634
|
-
construct(_target, rawArgumentList) {
|
|
635
|
-
throwIfProxyReleased(isProxyReleased);
|
|
636
|
-
const [argumentList, transferables] = processArguments(rawArgumentList);
|
|
637
|
-
return requestResponseMessage(ep, pendingListeners, {
|
|
638
|
-
type: "CONSTRUCT" /* MessageType.CONSTRUCT */,
|
|
639
|
-
path: path.map((p) => p.toString()),
|
|
640
|
-
argumentList,
|
|
641
|
-
}, transferables).then(fromWireValue);
|
|
642
|
-
},
|
|
643
|
-
});
|
|
644
|
-
registerProxy(proxy, ep);
|
|
645
|
-
return proxy;
|
|
646
|
-
}
|
|
647
|
-
function myFlat(arr) {
|
|
648
|
-
return Array.prototype.concat.apply([], arr);
|
|
649
|
-
}
|
|
650
|
-
function processArguments(argumentList) {
|
|
651
|
-
const processed = argumentList.map(toWireValue);
|
|
652
|
-
return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];
|
|
653
|
-
}
|
|
654
|
-
const transferCache = new WeakMap();
|
|
655
|
-
function transfer(obj, transfers) {
|
|
656
|
-
transferCache.set(obj, transfers);
|
|
657
|
-
return obj;
|
|
658
|
-
}
|
|
659
|
-
function proxy(obj) {
|
|
660
|
-
return Object.assign(obj, { [proxyMarker]: true });
|
|
661
|
-
}
|
|
662
|
-
function toWireValue(value) {
|
|
663
|
-
for (const [name, handler] of transferHandlers) {
|
|
664
|
-
if (handler.canHandle(value)) {
|
|
665
|
-
const [serializedValue, transferables] = handler.serialize(value);
|
|
666
|
-
return [
|
|
667
|
-
{
|
|
668
|
-
type: "HANDLER" /* WireValueType.HANDLER */,
|
|
669
|
-
name,
|
|
670
|
-
value: serializedValue,
|
|
671
|
-
},
|
|
672
|
-
transferables,
|
|
673
|
-
];
|
|
674
516
|
}
|
|
675
517
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
function fromWireValue(value) {
|
|
685
|
-
switch (value.type) {
|
|
686
|
-
case "HANDLER" /* WireValueType.HANDLER */:
|
|
687
|
-
return transferHandlers.get(value.name).deserialize(value.value);
|
|
688
|
-
case "RAW" /* WireValueType.RAW */:
|
|
689
|
-
return value.value;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
function requestResponseMessage(ep, pendingListeners, msg, transfers) {
|
|
693
|
-
return new Promise((resolve) => {
|
|
694
|
-
const id = generateUUID();
|
|
695
|
-
pendingListeners.set(id, resolve);
|
|
696
|
-
if (ep.start) {
|
|
697
|
-
ep.start();
|
|
698
|
-
}
|
|
699
|
-
ep.postMessage(Object.assign({ id }, msg), transfers);
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
function generateUUID() {
|
|
703
|
-
return new Array(4)
|
|
704
|
-
.fill(0)
|
|
705
|
-
.map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))
|
|
706
|
-
.join("-");
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
class Supervisor {
|
|
710
|
-
constructor() {
|
|
711
|
-
this.worker = null;
|
|
712
|
-
this.workerApi = null;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* Execute layout in worker
|
|
716
|
-
*/
|
|
717
|
-
execute(layoutId, data, options) {
|
|
718
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
719
|
-
if (!this.worker) {
|
|
720
|
-
yield this.initWorker();
|
|
518
|
+
buildAdjacencyCache() {
|
|
519
|
+
this.inAdjacencyCache = new Map();
|
|
520
|
+
this.outAdjacencyCache = new Map();
|
|
521
|
+
for (const edge of this.edges()) {
|
|
522
|
+
if (!this.nodeMap.has(edge.source) || !this.nodeMap.has(edge.target))
|
|
523
|
+
continue;
|
|
524
|
+
if (!this.outAdjacencyCache.has(edge.source)) {
|
|
525
|
+
this.outAdjacencyCache.set(edge.source, new Set());
|
|
721
526
|
}
|
|
722
|
-
|
|
723
|
-
|
|
527
|
+
this.outAdjacencyCache.get(edge.source).add(edge.target);
|
|
528
|
+
if (!this.inAdjacencyCache.has(edge.target)) {
|
|
529
|
+
this.inAdjacencyCache.set(edge.target, new Set());
|
|
724
530
|
}
|
|
725
|
-
|
|
726
|
-
|
|
531
|
+
this.inAdjacencyCache.get(edge.target).add(edge.source);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
buildNodeIndexCache() {
|
|
535
|
+
this.nodeIndexCache = new Map();
|
|
536
|
+
this.indexNodeCache = new Map();
|
|
537
|
+
let index = 0;
|
|
538
|
+
this.nodeMap.forEach((_node, nodeId) => {
|
|
539
|
+
this.nodeIndexCache.set(nodeId, index);
|
|
540
|
+
this.indexNodeCache.set(index, nodeId);
|
|
541
|
+
index++;
|
|
727
542
|
});
|
|
728
543
|
}
|
|
729
|
-
/**
|
|
730
|
-
* Destroy worker
|
|
731
|
-
*/
|
|
732
544
|
destroy() {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
this.worker.terminate();
|
|
738
|
-
this.worker = null;
|
|
739
|
-
this.workerApi = null;
|
|
740
|
-
}
|
|
545
|
+
this.clearCache();
|
|
546
|
+
this.nodeMap.clear();
|
|
547
|
+
this.edgeMap.clear();
|
|
548
|
+
this.edgeIdCounter.clear();
|
|
741
549
|
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
550
|
+
}
|
|
551
|
+
const nodeFields = [
|
|
552
|
+
'id',
|
|
553
|
+
'x',
|
|
554
|
+
'y',
|
|
555
|
+
'z',
|
|
556
|
+
'vx',
|
|
557
|
+
'vy',
|
|
558
|
+
'vz',
|
|
559
|
+
'fx',
|
|
560
|
+
'fy',
|
|
561
|
+
'fz',
|
|
562
|
+
'parentId',
|
|
563
|
+
];
|
|
564
|
+
const edgeFields = ['id', 'source', 'target', 'points'];
|
|
565
|
+
function extractNodeData(nodes, node) {
|
|
566
|
+
if (!nodes) {
|
|
567
|
+
throw new Error('Data.nodes is required');
|
|
753
568
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
569
|
+
const result = new Map();
|
|
570
|
+
for (const datum of nodes) {
|
|
571
|
+
const nodeData = { _original: datum };
|
|
572
|
+
for (const field of nodeFields) {
|
|
573
|
+
const value = datum[field];
|
|
574
|
+
if (isNil(value))
|
|
575
|
+
continue;
|
|
576
|
+
nodeData[field] = value;
|
|
761
577
|
}
|
|
762
|
-
if (
|
|
763
|
-
const
|
|
764
|
-
for (
|
|
765
|
-
const
|
|
766
|
-
if (
|
|
767
|
-
|
|
768
|
-
|
|
578
|
+
if (node) {
|
|
579
|
+
const customFields = node(datum);
|
|
580
|
+
for (const key in customFields) {
|
|
581
|
+
const value = customFields[key];
|
|
582
|
+
if (isNil(value))
|
|
583
|
+
continue;
|
|
584
|
+
nodeData[key] = value;
|
|
769
585
|
}
|
|
770
586
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
const isArray = Array.isArray;
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* Return the layout result for a graph with zero or one node.
|
|
779
|
-
* @param graph original graph
|
|
780
|
-
* @param center the layout center
|
|
781
|
-
* @returns layout result
|
|
782
|
-
*/
|
|
783
|
-
function applySingleNodeLayout(model, center, dimensions = 2) {
|
|
784
|
-
const n = model.nodeCount();
|
|
785
|
-
if (n === 1) {
|
|
786
|
-
const first = model.firstNode();
|
|
787
|
-
first.x = center[0];
|
|
788
|
-
first.y = center[1];
|
|
789
|
-
if (dimensions === 3) {
|
|
790
|
-
first.z = center[2] || 0;
|
|
587
|
+
if (isNil(nodeData.id)) {
|
|
588
|
+
throw new Error(`Node is missing id field`);
|
|
791
589
|
}
|
|
590
|
+
result.set(nodeData.id, nodeData);
|
|
792
591
|
}
|
|
592
|
+
return result;
|
|
793
593
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
const dist = Array.from({ length: n }, () => new Array(n));
|
|
802
|
-
for (let i = 0; i < n; i++) {
|
|
803
|
-
const row = adjMatrix[i];
|
|
804
|
-
const drow = dist[i];
|
|
805
|
-
for (let j = 0; j < n; j++) {
|
|
806
|
-
drow[j] = i === j ? 0 : row[j] > 0 ? row[j] : Infinity;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
// floyd
|
|
810
|
-
for (let k = 0; k < n; k++) {
|
|
811
|
-
const dk = dist[k];
|
|
812
|
-
for (let i = 0; i < n; i++) {
|
|
813
|
-
const di = dist[i];
|
|
814
|
-
const dik = di[k];
|
|
815
|
-
if (dik === Infinity)
|
|
594
|
+
function extractEdgeData(edges, edge, getEdgeId) {
|
|
595
|
+
const result = new Map();
|
|
596
|
+
for (const datum of edges) {
|
|
597
|
+
const edgeData = { _original: datum };
|
|
598
|
+
for (const field of edgeFields) {
|
|
599
|
+
const value = datum[field];
|
|
600
|
+
if (isNil(value))
|
|
816
601
|
continue;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
602
|
+
edgeData[field] = value;
|
|
603
|
+
}
|
|
604
|
+
if (edge) {
|
|
605
|
+
const customFields = edge(datum);
|
|
606
|
+
for (const key in customFields) {
|
|
607
|
+
const value = customFields[key];
|
|
608
|
+
if (isNil(value))
|
|
820
609
|
continue;
|
|
821
|
-
|
|
822
|
-
if (next < di[j]) {
|
|
823
|
-
di[j] = next;
|
|
824
|
-
}
|
|
610
|
+
edgeData[key] = value;
|
|
825
611
|
}
|
|
826
612
|
}
|
|
613
|
+
if (isNil(edgeData.source) || isNil(edgeData.target)) {
|
|
614
|
+
throw new Error(`Edge is missing source or target field`);
|
|
615
|
+
}
|
|
616
|
+
if (isNil(edgeData.id)) {
|
|
617
|
+
edgeData.id = getEdgeId === null || getEdgeId === void 0 ? void 0 : getEdgeId(datum);
|
|
618
|
+
}
|
|
619
|
+
result.set(edgeData.id, edgeData);
|
|
827
620
|
}
|
|
828
|
-
return
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
* Get the adjacency matrix of the graph model.
|
|
832
|
-
*/
|
|
833
|
-
const getAdjMatrix = (model, directed) => {
|
|
834
|
-
const n = model.nodeCount();
|
|
835
|
-
const matrix = Array.from({ length: n }, () => new Array(n));
|
|
836
|
-
// map node with index in data.nodes
|
|
837
|
-
const nodeMap = {};
|
|
838
|
-
let i = 0;
|
|
621
|
+
return result;
|
|
622
|
+
}
|
|
623
|
+
function initNodePosition(model, width, height, dimensions = 2) {
|
|
839
624
|
model.forEachNode((node) => {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
if (!directed) {
|
|
849
|
-
matrix[tIndex][sIndex] = 1;
|
|
625
|
+
if (isNil(node.x)) {
|
|
626
|
+
node.x = Math.random() * width;
|
|
627
|
+
}
|
|
628
|
+
if (isNil(node.y)) {
|
|
629
|
+
node.y = Math.random() * height;
|
|
630
|
+
}
|
|
631
|
+
if (dimensions === 3 && isNil(node.z)) {
|
|
632
|
+
node.z = Math.random() * Math.min(width, height);
|
|
850
633
|
}
|
|
851
634
|
});
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
class RuntimeContext {
|
|
638
|
+
constructor(data, options = {}) {
|
|
639
|
+
this.graph = new GraphLib(data, options);
|
|
640
|
+
}
|
|
641
|
+
export() {
|
|
642
|
+
return this.graph.data();
|
|
643
|
+
}
|
|
644
|
+
replace(result) {
|
|
645
|
+
this.graph.replace(result);
|
|
646
|
+
}
|
|
647
|
+
forEachNode(callback) {
|
|
648
|
+
this.graph.forEachNode(callback);
|
|
649
|
+
}
|
|
650
|
+
forEachEdge(callback) {
|
|
651
|
+
this.graph.forEachEdge((edge, i) => {
|
|
652
|
+
edge.sourceNode = this.graph.node(edge.source);
|
|
653
|
+
edge.targetNode = this.graph.node(edge.target);
|
|
654
|
+
callback(edge, i);
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
destroy() {
|
|
658
|
+
this.graph.destroy();
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
877
662
|
/**
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
*
|
|
663
|
+
* @license
|
|
664
|
+
* Copyright 2019 Google LLC
|
|
665
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
881
666
|
*/
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
667
|
+
const proxyMarker = Symbol("Comlink.proxy");
|
|
668
|
+
const createEndpoint = Symbol("Comlink.endpoint");
|
|
669
|
+
const releaseProxy = Symbol("Comlink.releaseProxy");
|
|
670
|
+
const finalizer = Symbol("Comlink.finalizer");
|
|
671
|
+
const throwMarker = Symbol("Comlink.thrown");
|
|
672
|
+
const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";
|
|
673
|
+
/**
|
|
674
|
+
* Internal transfer handle to handle objects marked to proxy.
|
|
675
|
+
*/
|
|
676
|
+
const proxyTransferHandler = {
|
|
677
|
+
canHandle: (val) => isObject(val) && val[proxyMarker],
|
|
678
|
+
serialize(obj) {
|
|
679
|
+
const { port1, port2 } = new MessageChannel();
|
|
680
|
+
expose(obj, port1);
|
|
681
|
+
return [port2, [port2]];
|
|
682
|
+
},
|
|
683
|
+
deserialize(port) {
|
|
684
|
+
port.start();
|
|
685
|
+
return wrap(port);
|
|
686
|
+
},
|
|
895
687
|
};
|
|
896
688
|
/**
|
|
897
|
-
*
|
|
898
|
-
* @param nodes nodes in the layout
|
|
899
|
-
* @returns
|
|
689
|
+
* Internal transfer handler to handle thrown exceptions.
|
|
900
690
|
*/
|
|
901
|
-
const
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
691
|
+
const throwTransferHandler = {
|
|
692
|
+
canHandle: (value) => isObject(value) && throwMarker in value,
|
|
693
|
+
serialize({ value }) {
|
|
694
|
+
let serialized;
|
|
695
|
+
if (value instanceof Error) {
|
|
696
|
+
serialized = {
|
|
697
|
+
isError: true,
|
|
698
|
+
value: {
|
|
699
|
+
message: value.message,
|
|
700
|
+
name: value.name,
|
|
701
|
+
stack: value.stack,
|
|
702
|
+
},
|
|
703
|
+
};
|
|
911
704
|
}
|
|
912
|
-
else
|
|
913
|
-
|
|
705
|
+
else {
|
|
706
|
+
serialized = { isError: false, value };
|
|
914
707
|
}
|
|
915
|
-
|
|
916
|
-
|
|
708
|
+
return [serialized, []];
|
|
709
|
+
},
|
|
710
|
+
deserialize(serialized) {
|
|
711
|
+
if (serialized.isError) {
|
|
712
|
+
throw Object.assign(new Error(serialized.value.message), serialized.value);
|
|
917
713
|
}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
const right = node.data.x + halfSize[0];
|
|
921
|
-
const top = node.data.y - halfSize[1];
|
|
922
|
-
const bottom = node.data.y + halfSize[1];
|
|
923
|
-
if (minX > left)
|
|
924
|
-
minX = left;
|
|
925
|
-
if (minY > top)
|
|
926
|
-
minY = top;
|
|
927
|
-
if (maxX < right)
|
|
928
|
-
maxX = right;
|
|
929
|
-
if (maxY < bottom)
|
|
930
|
-
maxY = bottom;
|
|
931
|
-
});
|
|
932
|
-
return { minX, minY, maxX, maxY };
|
|
933
|
-
};
|
|
934
|
-
/**
|
|
935
|
-
* calculate the euclidean distance form p1 to p2
|
|
936
|
-
* @param p1
|
|
937
|
-
* @param p2
|
|
938
|
-
* @returns
|
|
939
|
-
*/
|
|
940
|
-
const getEuclideanDistance = (p1, p2) => Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
|
|
941
|
-
/**
|
|
942
|
-
* Depth first search begin from nodes in graphCore data.
|
|
943
|
-
* @param graphCore graphlib data structure
|
|
944
|
-
* @param nodes begin nodes
|
|
945
|
-
* @param fn will be called while visiting each node
|
|
946
|
-
* @param mode 'TB' - visit from top to bottom; 'BT' - visit from bottom to top;
|
|
947
|
-
* @returns
|
|
948
|
-
*/
|
|
949
|
-
const graphTreeDfs = (graph, nodes, fn, mode = 'TB', treeKey, stopFns = {}) => {
|
|
950
|
-
if (!(nodes === null || nodes === void 0 ? void 0 : nodes.length))
|
|
951
|
-
return;
|
|
952
|
-
const { stopBranchFn, stopAllFn } = stopFns;
|
|
953
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
954
|
-
const node = nodes[i];
|
|
955
|
-
if (!graph.hasNode(node.id))
|
|
956
|
-
continue;
|
|
957
|
-
if (stopBranchFn === null || stopBranchFn === void 0 ? void 0 : stopBranchFn(node))
|
|
958
|
-
continue; // Stop this branch
|
|
959
|
-
if (stopAllFn === null || stopAllFn === void 0 ? void 0 : stopAllFn(node))
|
|
960
|
-
return; // Stop all
|
|
961
|
-
if (mode === 'TB')
|
|
962
|
-
fn(node); // Traverse from top to bottom
|
|
963
|
-
graphTreeDfs(graph, graph.getChildren(node.id, treeKey), fn, mode, treeKey, stopFns);
|
|
964
|
-
if (mode !== 'TB')
|
|
965
|
-
fn(node); // Traverse from bottom to top
|
|
966
|
-
}
|
|
714
|
+
throw serialized.value;
|
|
715
|
+
},
|
|
967
716
|
};
|
|
968
717
|
/**
|
|
969
|
-
*
|
|
970
|
-
* Fully compatible with floydWarshall(adjMatrix).
|
|
718
|
+
* Allows customizing the serialization of certain values.
|
|
971
719
|
*/
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
720
|
+
const transferHandlers = new Map([
|
|
721
|
+
["proxy", proxyTransferHandler],
|
|
722
|
+
["throw", throwTransferHandler],
|
|
723
|
+
]);
|
|
724
|
+
function isAllowedOrigin(allowedOrigins, origin) {
|
|
725
|
+
for (const allowedOrigin of allowedOrigins) {
|
|
726
|
+
if (origin === allowedOrigin || allowedOrigin === "*") {
|
|
727
|
+
return true;
|
|
728
|
+
}
|
|
729
|
+
if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {
|
|
730
|
+
return true;
|
|
731
|
+
}
|
|
984
732
|
}
|
|
985
|
-
return
|
|
733
|
+
return false;
|
|
986
734
|
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
735
|
+
function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {
|
|
736
|
+
ep.addEventListener("message", function callback(ev) {
|
|
737
|
+
if (!ev || !ev.data) {
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
if (!isAllowedOrigin(allowedOrigins, ev.origin)) {
|
|
741
|
+
console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
const { id, type, path } = Object.assign({ path: [] }, ev.data);
|
|
745
|
+
const argumentList = (ev.data.argumentList || []).map(fromWireValue);
|
|
746
|
+
let returnValue;
|
|
747
|
+
try {
|
|
748
|
+
const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);
|
|
749
|
+
const rawValue = path.reduce((obj, prop) => obj[prop], obj);
|
|
750
|
+
switch (type) {
|
|
751
|
+
case "GET" /* MessageType.GET */:
|
|
752
|
+
{
|
|
753
|
+
returnValue = rawValue;
|
|
754
|
+
}
|
|
755
|
+
break;
|
|
756
|
+
case "SET" /* MessageType.SET */:
|
|
757
|
+
{
|
|
758
|
+
parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);
|
|
759
|
+
returnValue = true;
|
|
760
|
+
}
|
|
761
|
+
break;
|
|
762
|
+
case "APPLY" /* MessageType.APPLY */:
|
|
763
|
+
{
|
|
764
|
+
returnValue = rawValue.apply(parent, argumentList);
|
|
765
|
+
}
|
|
766
|
+
break;
|
|
767
|
+
case "CONSTRUCT" /* MessageType.CONSTRUCT */:
|
|
768
|
+
{
|
|
769
|
+
const value = new rawValue(...argumentList);
|
|
770
|
+
returnValue = proxy(value);
|
|
771
|
+
}
|
|
772
|
+
break;
|
|
773
|
+
case "ENDPOINT" /* MessageType.ENDPOINT */:
|
|
774
|
+
{
|
|
775
|
+
const { port1, port2 } = new MessageChannel();
|
|
776
|
+
expose(obj, port2);
|
|
777
|
+
returnValue = transfer(port1, [port1]);
|
|
778
|
+
}
|
|
779
|
+
break;
|
|
780
|
+
case "RELEASE" /* MessageType.RELEASE */:
|
|
781
|
+
{
|
|
782
|
+
returnValue = undefined;
|
|
783
|
+
}
|
|
784
|
+
break;
|
|
785
|
+
default:
|
|
786
|
+
return;
|
|
1008
787
|
}
|
|
1009
788
|
}
|
|
789
|
+
catch (value) {
|
|
790
|
+
returnValue = { value, [throwMarker]: 0 };
|
|
791
|
+
}
|
|
792
|
+
Promise.resolve(returnValue)
|
|
793
|
+
.catch((value) => {
|
|
794
|
+
return { value, [throwMarker]: 0 };
|
|
795
|
+
})
|
|
796
|
+
.then((returnValue) => {
|
|
797
|
+
const [wireValue, transferables] = toWireValue(returnValue);
|
|
798
|
+
ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);
|
|
799
|
+
if (type === "RELEASE" /* MessageType.RELEASE */) {
|
|
800
|
+
// detach and deactive after sending release response above.
|
|
801
|
+
ep.removeEventListener("message", callback);
|
|
802
|
+
closeEndPoint(ep);
|
|
803
|
+
if (finalizer in obj && typeof obj[finalizer] === "function") {
|
|
804
|
+
obj[finalizer]();
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
})
|
|
808
|
+
.catch((error) => {
|
|
809
|
+
// Send Serialization Error To Caller
|
|
810
|
+
const [wireValue, transferables] = toWireValue({
|
|
811
|
+
value: new TypeError("Unserializable return value"),
|
|
812
|
+
[throwMarker]: 0,
|
|
813
|
+
});
|
|
814
|
+
ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);
|
|
815
|
+
});
|
|
816
|
+
});
|
|
817
|
+
if (ep.start) {
|
|
818
|
+
ep.start();
|
|
1010
819
|
}
|
|
1011
|
-
return dist;
|
|
1012
820
|
}
|
|
1013
|
-
|
|
1014
|
-
constructor
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1025
|
-
|
|
1026
|
-
this.bubbleDown(0);
|
|
821
|
+
function isMessagePort(endpoint) {
|
|
822
|
+
return endpoint.constructor.name === "MessagePort";
|
|
823
|
+
}
|
|
824
|
+
function closeEndPoint(endpoint) {
|
|
825
|
+
if (isMessagePort(endpoint))
|
|
826
|
+
endpoint.close();
|
|
827
|
+
}
|
|
828
|
+
function wrap(ep, target) {
|
|
829
|
+
const pendingListeners = new Map();
|
|
830
|
+
ep.addEventListener("message", function handleMessage(ev) {
|
|
831
|
+
const { data } = ev;
|
|
832
|
+
if (!data || !data.id) {
|
|
833
|
+
return;
|
|
1027
834
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
return this.data.length === 0;
|
|
1032
|
-
}
|
|
1033
|
-
bubbleUp(pos) {
|
|
1034
|
-
const data = this.data;
|
|
1035
|
-
while (pos > 0) {
|
|
1036
|
-
const parent = (pos - 1) >> 1;
|
|
1037
|
-
if (data[parent][0] <= data[pos][0])
|
|
1038
|
-
break;
|
|
1039
|
-
[data[parent], data[pos]] = [data[pos], data[parent]];
|
|
1040
|
-
pos = parent;
|
|
835
|
+
const resolver = pendingListeners.get(data.id);
|
|
836
|
+
if (!resolver) {
|
|
837
|
+
return;
|
|
1041
838
|
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
const data = this.data;
|
|
1045
|
-
const length = data.length;
|
|
1046
|
-
while (true) {
|
|
1047
|
-
const left = pos * 2 + 1;
|
|
1048
|
-
const right = pos * 2 + 2;
|
|
1049
|
-
let min = pos;
|
|
1050
|
-
if (left < length && data[left][0] < data[min][0])
|
|
1051
|
-
min = left;
|
|
1052
|
-
if (right < length && data[right][0] < data[min][0])
|
|
1053
|
-
min = right;
|
|
1054
|
-
if (min === pos)
|
|
1055
|
-
break;
|
|
1056
|
-
[data[pos], data[min]] = [data[min], data[pos]];
|
|
1057
|
-
pos = min;
|
|
839
|
+
try {
|
|
840
|
+
resolver(data);
|
|
1058
841
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
class LayoutModel {
|
|
1063
|
-
constructor(data, options = {}) {
|
|
1064
|
-
this.edgeIdCounter = new Map();
|
|
1065
|
-
this.nodeMap = extractNodeData(data.nodes, options.node);
|
|
1066
|
-
this.edgeMap = extractEdgeData(data.edges || [], options.edge, this.getEdgeId.bind(this));
|
|
1067
|
-
}
|
|
1068
|
-
data() {
|
|
1069
|
-
return { nodes: this.nodeMap, edges: this.edgeMap };
|
|
1070
|
-
}
|
|
1071
|
-
apply(result) {
|
|
1072
|
-
this.nodeMap = result.nodes;
|
|
1073
|
-
this.edgeMap = result.edges;
|
|
1074
|
-
this.clearCache();
|
|
1075
|
-
}
|
|
1076
|
-
nodes() {
|
|
1077
|
-
return Array.from(this.nodeMap.values());
|
|
1078
|
-
}
|
|
1079
|
-
node(id) {
|
|
1080
|
-
return this.nodeMap.get(id);
|
|
1081
|
-
}
|
|
1082
|
-
nodeAt(index) {
|
|
1083
|
-
if (!this.indexNodeCache) {
|
|
1084
|
-
this.buildNodeIndexCache();
|
|
842
|
+
finally {
|
|
843
|
+
pendingListeners.delete(data.id);
|
|
1085
844
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
845
|
+
});
|
|
846
|
+
return createProxy(ep, pendingListeners, [], target);
|
|
847
|
+
}
|
|
848
|
+
function throwIfProxyReleased(isReleased) {
|
|
849
|
+
if (isReleased) {
|
|
850
|
+
throw new Error("Proxy has been released and is not useable");
|
|
1088
851
|
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
852
|
+
}
|
|
853
|
+
function releaseEndpoint(ep) {
|
|
854
|
+
return requestResponseMessage(ep, new Map(), {
|
|
855
|
+
type: "RELEASE" /* MessageType.RELEASE */,
|
|
856
|
+
}).then(() => {
|
|
857
|
+
closeEndPoint(ep);
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
const proxyCounter = new WeakMap();
|
|
861
|
+
const proxyFinalizers = "FinalizationRegistry" in globalThis &&
|
|
862
|
+
new FinalizationRegistry((ep) => {
|
|
863
|
+
const newCount = (proxyCounter.get(ep) || 0) - 1;
|
|
864
|
+
proxyCounter.set(ep, newCount);
|
|
865
|
+
if (newCount === 0) {
|
|
866
|
+
releaseEndpoint(ep);
|
|
1093
867
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
let i = 0;
|
|
1101
|
-
this.nodeMap.forEach((node) => callback(node, i++));
|
|
1102
|
-
}
|
|
1103
|
-
originalNode(id) {
|
|
1104
|
-
const node = this.nodeMap.get(id);
|
|
1105
|
-
return node === null || node === void 0 ? void 0 : node._original;
|
|
1106
|
-
}
|
|
1107
|
-
nodeCount() {
|
|
1108
|
-
return this.nodeMap.size;
|
|
1109
|
-
}
|
|
1110
|
-
edges() {
|
|
1111
|
-
return Array.from(this.edgeMap.values());
|
|
1112
|
-
}
|
|
1113
|
-
edge(id) {
|
|
1114
|
-
return this.edgeMap.get(id);
|
|
1115
|
-
}
|
|
1116
|
-
firstEdge() {
|
|
1117
|
-
return this.edgeMap.values().next().value;
|
|
1118
|
-
}
|
|
1119
|
-
forEachEdge(callback) {
|
|
1120
|
-
let i = 0;
|
|
1121
|
-
this.edgeMap.forEach((edge) => callback(edge, i++));
|
|
868
|
+
});
|
|
869
|
+
function registerProxy(proxy, ep) {
|
|
870
|
+
const newCount = (proxyCounter.get(ep) || 0) + 1;
|
|
871
|
+
proxyCounter.set(ep, newCount);
|
|
872
|
+
if (proxyFinalizers) {
|
|
873
|
+
proxyFinalizers.register(proxy, ep, proxy);
|
|
1122
874
|
}
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
875
|
+
}
|
|
876
|
+
function unregisterProxy(proxy) {
|
|
877
|
+
if (proxyFinalizers) {
|
|
878
|
+
proxyFinalizers.unregister(proxy);
|
|
1126
879
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
880
|
+
}
|
|
881
|
+
function createProxy(ep, pendingListeners, path = [], target = function () { }) {
|
|
882
|
+
let isProxyReleased = false;
|
|
883
|
+
const proxy = new Proxy(target, {
|
|
884
|
+
get(_target, prop) {
|
|
885
|
+
throwIfProxyReleased(isProxyReleased);
|
|
886
|
+
if (prop === releaseProxy) {
|
|
887
|
+
return () => {
|
|
888
|
+
unregisterProxy(proxy);
|
|
889
|
+
releaseEndpoint(ep);
|
|
890
|
+
pendingListeners.clear();
|
|
891
|
+
isProxyReleased = true;
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
if (prop === "then") {
|
|
895
|
+
if (path.length === 0) {
|
|
896
|
+
return { then: () => proxy };
|
|
897
|
+
}
|
|
898
|
+
const r = requestResponseMessage(ep, pendingListeners, {
|
|
899
|
+
type: "GET" /* MessageType.GET */,
|
|
900
|
+
path: path.map((p) => p.toString()),
|
|
901
|
+
}).then(fromWireValue);
|
|
902
|
+
return r.then.bind(r);
|
|
903
|
+
}
|
|
904
|
+
return createProxy(ep, pendingListeners, [...path, prop]);
|
|
905
|
+
},
|
|
906
|
+
set(_target, prop, rawValue) {
|
|
907
|
+
throwIfProxyReleased(isProxyReleased);
|
|
908
|
+
// FIXME: ES6 Proxy Handler `set` methods are supposed to return a
|
|
909
|
+
// boolean. To show good will, we return true asynchronously ¯\_(ツ)_/¯
|
|
910
|
+
const [value, transferables] = toWireValue(rawValue);
|
|
911
|
+
return requestResponseMessage(ep, pendingListeners, {
|
|
912
|
+
type: "SET" /* MessageType.SET */,
|
|
913
|
+
path: [...path, prop].map((p) => p.toString()),
|
|
914
|
+
value,
|
|
915
|
+
}, transferables).then(fromWireValue);
|
|
916
|
+
},
|
|
917
|
+
apply(_target, _thisArg, rawArgumentList) {
|
|
918
|
+
throwIfProxyReleased(isProxyReleased);
|
|
919
|
+
const last = path[path.length - 1];
|
|
920
|
+
if (last === createEndpoint) {
|
|
921
|
+
return requestResponseMessage(ep, pendingListeners, {
|
|
922
|
+
type: "ENDPOINT" /* MessageType.ENDPOINT */,
|
|
923
|
+
}).then(fromWireValue);
|
|
924
|
+
}
|
|
925
|
+
// We just pretend that `bind()` didn’t happen.
|
|
926
|
+
if (last === "bind") {
|
|
927
|
+
return createProxy(ep, pendingListeners, path.slice(0, -1));
|
|
928
|
+
}
|
|
929
|
+
const [argumentList, transferables] = processArguments(rawArgumentList);
|
|
930
|
+
return requestResponseMessage(ep, pendingListeners, {
|
|
931
|
+
type: "APPLY" /* MessageType.APPLY */,
|
|
932
|
+
path: path.map((p) => p.toString()),
|
|
933
|
+
argumentList,
|
|
934
|
+
}, transferables).then(fromWireValue);
|
|
935
|
+
},
|
|
936
|
+
construct(_target, rawArgumentList) {
|
|
937
|
+
throwIfProxyReleased(isProxyReleased);
|
|
938
|
+
const [argumentList, transferables] = processArguments(rawArgumentList);
|
|
939
|
+
return requestResponseMessage(ep, pendingListeners, {
|
|
940
|
+
type: "CONSTRUCT" /* MessageType.CONSTRUCT */,
|
|
941
|
+
path: path.map((p) => p.toString()),
|
|
942
|
+
argumentList,
|
|
943
|
+
}, transferables).then(fromWireValue);
|
|
944
|
+
},
|
|
945
|
+
});
|
|
946
|
+
registerProxy(proxy, ep);
|
|
947
|
+
return proxy;
|
|
948
|
+
}
|
|
949
|
+
function myFlat(arr) {
|
|
950
|
+
return Array.prototype.concat.apply([], arr);
|
|
951
|
+
}
|
|
952
|
+
function processArguments(argumentList) {
|
|
953
|
+
const processed = argumentList.map(toWireValue);
|
|
954
|
+
return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];
|
|
955
|
+
}
|
|
956
|
+
const transferCache = new WeakMap();
|
|
957
|
+
function transfer(obj, transfers) {
|
|
958
|
+
transferCache.set(obj, transfers);
|
|
959
|
+
return obj;
|
|
960
|
+
}
|
|
961
|
+
function proxy(obj) {
|
|
962
|
+
return Object.assign(obj, { [proxyMarker]: true });
|
|
963
|
+
}
|
|
964
|
+
function toWireValue(value) {
|
|
965
|
+
for (const [name, handler] of transferHandlers) {
|
|
966
|
+
if (handler.canHandle(value)) {
|
|
967
|
+
const [serializedValue, transferables] = handler.serialize(value);
|
|
968
|
+
return [
|
|
969
|
+
{
|
|
970
|
+
type: "HANDLER" /* WireValueType.HANDLER */,
|
|
971
|
+
name,
|
|
972
|
+
value: serializedValue,
|
|
973
|
+
},
|
|
974
|
+
transferables,
|
|
975
|
+
];
|
|
976
|
+
}
|
|
1129
977
|
}
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
978
|
+
return [
|
|
979
|
+
{
|
|
980
|
+
type: "RAW" /* WireValueType.RAW */,
|
|
981
|
+
value,
|
|
982
|
+
},
|
|
983
|
+
transferCache.get(value) || [],
|
|
984
|
+
];
|
|
985
|
+
}
|
|
986
|
+
function fromWireValue(value) {
|
|
987
|
+
switch (value.type) {
|
|
988
|
+
case "HANDLER" /* WireValueType.HANDLER */:
|
|
989
|
+
return transferHandlers.get(value.name).deserialize(value.value);
|
|
990
|
+
case "RAW" /* WireValueType.RAW */:
|
|
991
|
+
return value.value;
|
|
1138
992
|
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
993
|
+
}
|
|
994
|
+
function requestResponseMessage(ep, pendingListeners, msg, transfers) {
|
|
995
|
+
return new Promise((resolve) => {
|
|
996
|
+
const id = generateUUID();
|
|
997
|
+
pendingListeners.set(id, resolve);
|
|
998
|
+
if (ep.start) {
|
|
999
|
+
ep.start();
|
|
1142
1000
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1001
|
+
ep.postMessage(Object.assign({ id }, msg), transfers);
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
function generateUUID() {
|
|
1005
|
+
return new Array(4)
|
|
1006
|
+
.fill(0)
|
|
1007
|
+
.map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))
|
|
1008
|
+
.join("-");
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
class Supervisor {
|
|
1012
|
+
constructor() {
|
|
1013
|
+
this.worker = null;
|
|
1014
|
+
this.workerApi = null;
|
|
1147
1015
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1016
|
+
/**
|
|
1017
|
+
* Execute layout in worker
|
|
1018
|
+
*/
|
|
1019
|
+
execute(layoutId, data, options) {
|
|
1020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
if (!this.worker) {
|
|
1022
|
+
yield this.initWorker();
|
|
1023
|
+
}
|
|
1024
|
+
if (!this.workerApi) {
|
|
1025
|
+
throw new Error('Worker API not initialized');
|
|
1026
|
+
}
|
|
1027
|
+
return yield this.workerApi.execute(layoutId, data, options);
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Destroy worker
|
|
1032
|
+
*/
|
|
1033
|
+
destroy() {
|
|
1034
|
+
if (this.workerApi) {
|
|
1035
|
+
this.workerApi.destroy();
|
|
1151
1036
|
}
|
|
1152
|
-
if (
|
|
1153
|
-
|
|
1037
|
+
if (this.worker) {
|
|
1038
|
+
this.worker.terminate();
|
|
1039
|
+
this.worker = null;
|
|
1040
|
+
this.workerApi = null;
|
|
1154
1041
|
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Initialize worker
|
|
1045
|
+
*/
|
|
1046
|
+
initWorker() {
|
|
1047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1048
|
+
const workerPath = this.resolveWorkerPath();
|
|
1049
|
+
const isESM = workerPath.includes('/lib/') || workerPath.endsWith('.mjs');
|
|
1050
|
+
const type = isESM ? 'module' : 'classic';
|
|
1051
|
+
this.worker = new Worker(workerPath, { type });
|
|
1052
|
+
this.workerApi = wrap(this.worker);
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Resolve worker script path which works in both ESM and UMD environments
|
|
1057
|
+
*/
|
|
1058
|
+
resolveWorkerPath() {
|
|
1059
|
+
if (typeof ({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)) }) !== 'undefined' && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href))) {
|
|
1060
|
+
const currentUrl = new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
|
|
1061
|
+
// e.g. `.../lib/runtime/supervisor.js` -> `.../lib/worker.js`
|
|
1062
|
+
const asRoot = currentUrl.href.replace(/\/runtime\/[^/]+\.js$/, '/worker.js');
|
|
1063
|
+
if (asRoot !== currentUrl.href)
|
|
1064
|
+
return asRoot;
|
|
1065
|
+
// Fallback: keep legacy behavior (same directory)
|
|
1066
|
+
return currentUrl.href.replace(/\/[^/]+\.js$/, '/worker.js');
|
|
1157
1067
|
}
|
|
1158
|
-
if (
|
|
1159
|
-
|
|
1068
|
+
if (typeof document !== 'undefined') {
|
|
1069
|
+
const scripts = document.getElementsByTagName('script');
|
|
1070
|
+
for (let i = scripts.length - 1; i >= 0; i--) {
|
|
1071
|
+
const src = scripts[i].src;
|
|
1072
|
+
if (src && (src.includes('index.js') || src.includes('index.min.js'))) {
|
|
1073
|
+
return src.replace(/index(\.min)?\.js/, 'worker.js');
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1160
1076
|
}
|
|
1161
|
-
|
|
1162
|
-
const outSet = this.outAdjacencyCache.get(nodeId);
|
|
1163
|
-
if (!inSet && !outSet)
|
|
1164
|
-
return [];
|
|
1165
|
-
if (!inSet)
|
|
1166
|
-
return Array.from(outSet);
|
|
1167
|
-
if (!outSet)
|
|
1168
|
-
return Array.from(inSet);
|
|
1169
|
-
const merged = new Set();
|
|
1170
|
-
inSet.forEach((id) => merged.add(id));
|
|
1171
|
-
outSet.forEach((id) => merged.add(id));
|
|
1172
|
-
return Array.from(merged);
|
|
1173
|
-
}
|
|
1174
|
-
successors(nodeId) {
|
|
1175
|
-
return this.neighbors(nodeId, 'out');
|
|
1077
|
+
return './worker.js';
|
|
1176
1078
|
}
|
|
1177
|
-
|
|
1178
|
-
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
const isArray = Array.isArray;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Return the layout result for a graph with zero or one node.
|
|
1085
|
+
* @param graph original graph
|
|
1086
|
+
* @param center the layout center
|
|
1087
|
+
* @returns layout result
|
|
1088
|
+
*/
|
|
1089
|
+
function applySingleNodeLayout(model, center, dimensions = 2) {
|
|
1090
|
+
const n = model.nodeCount();
|
|
1091
|
+
if (n === 1) {
|
|
1092
|
+
const first = model.firstNode();
|
|
1093
|
+
first.x = center[0];
|
|
1094
|
+
first.y = center[1];
|
|
1095
|
+
if (dimensions === 3) {
|
|
1096
|
+
first.z = center[2] || 0;
|
|
1097
|
+
}
|
|
1179
1098
|
}
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Floyd-Warshall algorithm to find shortest paths (but with no negative cycles).
|
|
1103
|
+
*/
|
|
1104
|
+
const floydWarshall = (adjMatrix) => {
|
|
1105
|
+
// initialize
|
|
1106
|
+
const n = adjMatrix.length;
|
|
1107
|
+
const dist = Array.from({ length: n }, () => new Array(n));
|
|
1108
|
+
for (let i = 0; i < n; i++) {
|
|
1109
|
+
const row = adjMatrix[i];
|
|
1110
|
+
const drow = dist[i];
|
|
1111
|
+
for (let j = 0; j < n; j++) {
|
|
1112
|
+
drow[j] = i === j ? 0 : row[j] > 0 ? row[j] : Infinity;
|
|
1113
|
+
}
|
|
1187
1114
|
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1115
|
+
// floyd
|
|
1116
|
+
for (let k = 0; k < n; k++) {
|
|
1117
|
+
const dk = dist[k];
|
|
1118
|
+
for (let i = 0; i < n; i++) {
|
|
1119
|
+
const di = dist[i];
|
|
1120
|
+
const dik = di[k];
|
|
1121
|
+
if (dik === Infinity)
|
|
1193
1122
|
continue;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
if (!this.degreeCache.has(target)) {
|
|
1203
|
-
this.degreeCache.set(target, { in: 0, out: 0, both: 0 });
|
|
1204
|
-
}
|
|
1205
|
-
const targetDeg = this.degreeCache.get(edge.target);
|
|
1206
|
-
if (targetDeg) {
|
|
1207
|
-
targetDeg.in++;
|
|
1208
|
-
targetDeg.both++;
|
|
1123
|
+
for (let j = 0; j < n; j++) {
|
|
1124
|
+
const dkj = dk[j];
|
|
1125
|
+
if (dkj === Infinity)
|
|
1126
|
+
continue;
|
|
1127
|
+
const next = dik + dkj;
|
|
1128
|
+
if (next < di[j]) {
|
|
1129
|
+
di[j] = next;
|
|
1130
|
+
}
|
|
1209
1131
|
}
|
|
1210
1132
|
}
|
|
1211
1133
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1134
|
+
return dist;
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Get the adjacency matrix of the graph model.
|
|
1138
|
+
*/
|
|
1139
|
+
const getAdjMatrix = (model, directed) => {
|
|
1140
|
+
const n = model.nodeCount();
|
|
1141
|
+
const matrix = Array.from({ length: n }, () => new Array(n));
|
|
1142
|
+
// map node with index in data.nodes
|
|
1143
|
+
const nodeMap = {};
|
|
1144
|
+
let i = 0;
|
|
1145
|
+
model.forEachNode((node) => {
|
|
1146
|
+
nodeMap[node.id] = i++;
|
|
1147
|
+
});
|
|
1148
|
+
model.forEachEdge((e) => {
|
|
1149
|
+
const sIndex = nodeMap[e.source];
|
|
1150
|
+
const tIndex = nodeMap[e.target];
|
|
1151
|
+
if (sIndex === undefined || tIndex === undefined)
|
|
1152
|
+
return;
|
|
1153
|
+
matrix[sIndex][tIndex] = 1;
|
|
1154
|
+
if (!directed) {
|
|
1155
|
+
matrix[tIndex][sIndex] = 1;
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
return matrix;
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Get the adjacency list of the graph model.
|
|
1162
|
+
*/
|
|
1163
|
+
const getAdjList = (model, directed) => {
|
|
1164
|
+
const n = model.nodeCount();
|
|
1165
|
+
const adjList = Array.from({ length: n }, () => []);
|
|
1166
|
+
// map node with index
|
|
1167
|
+
const nodeMap = {};
|
|
1168
|
+
let idx = 0;
|
|
1169
|
+
model.forEachNode((node) => {
|
|
1170
|
+
nodeMap[node.id] = idx++;
|
|
1171
|
+
});
|
|
1172
|
+
model.forEachEdge((e) => {
|
|
1173
|
+
const s = nodeMap[e.source];
|
|
1174
|
+
const t = nodeMap[e.target];
|
|
1175
|
+
if (s == null || t == null)
|
|
1176
|
+
return;
|
|
1177
|
+
adjList[s].push(t);
|
|
1178
|
+
if (!directed)
|
|
1179
|
+
adjList[t].push(s);
|
|
1180
|
+
});
|
|
1181
|
+
return adjList;
|
|
1182
|
+
};
|
|
1183
|
+
/**
|
|
1184
|
+
* scale matrix
|
|
1185
|
+
* @param matrix [ [], [], [] ]
|
|
1186
|
+
* @param ratio
|
|
1187
|
+
*/
|
|
1188
|
+
const scaleMatrix = (matrix, ratio) => {
|
|
1189
|
+
const n = matrix.length;
|
|
1190
|
+
const result = new Array(n);
|
|
1191
|
+
for (let i = 0; i < n; i++) {
|
|
1192
|
+
const row = matrix[i];
|
|
1193
|
+
const m = row.length;
|
|
1194
|
+
const newRow = new Array(m);
|
|
1195
|
+
for (let j = 0; j < m; j++) {
|
|
1196
|
+
newRow[j] = row[j] * ratio;
|
|
1226
1197
|
}
|
|
1198
|
+
result[i] = newRow;
|
|
1227
1199
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
const nodeFields = [
|
|
1246
|
-
'id',
|
|
1247
|
-
'x',
|
|
1248
|
-
'y',
|
|
1249
|
-
'z',
|
|
1250
|
-
'vx',
|
|
1251
|
-
'vy',
|
|
1252
|
-
'vz',
|
|
1253
|
-
'fx',
|
|
1254
|
-
'fy',
|
|
1255
|
-
'fz',
|
|
1256
|
-
'parentId',
|
|
1257
|
-
];
|
|
1258
|
-
const edgeFields = ['id', 'source', 'target', 'points'];
|
|
1259
|
-
function extractNodeData(nodes, node) {
|
|
1260
|
-
if (!nodes) {
|
|
1261
|
-
throw new Error('Data.nodes is required');
|
|
1262
|
-
}
|
|
1263
|
-
const result = new Map();
|
|
1264
|
-
for (const datum of nodes) {
|
|
1265
|
-
const nodeData = { _original: datum };
|
|
1266
|
-
for (const field of nodeFields) {
|
|
1267
|
-
const value = datum[field];
|
|
1268
|
-
if (isNil(value))
|
|
1269
|
-
continue;
|
|
1270
|
-
nodeData[field] = value;
|
|
1200
|
+
return result;
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* calculate the bounding box for the nodes according to their x, y, and size
|
|
1204
|
+
* @param nodes nodes in the layout
|
|
1205
|
+
* @returns
|
|
1206
|
+
*/
|
|
1207
|
+
const getLayoutBBox = (nodes) => {
|
|
1208
|
+
let minX = Infinity;
|
|
1209
|
+
let minY = Infinity;
|
|
1210
|
+
let maxX = -Infinity;
|
|
1211
|
+
let maxY = -Infinity;
|
|
1212
|
+
nodes.forEach((node) => {
|
|
1213
|
+
let size = node.data.size;
|
|
1214
|
+
if (isArray(size)) {
|
|
1215
|
+
if (size.length === 1)
|
|
1216
|
+
size = [size[0], size[0]];
|
|
1271
1217
|
}
|
|
1272
|
-
if (
|
|
1273
|
-
|
|
1274
|
-
for (const key in customFields) {
|
|
1275
|
-
const value = customFields[key];
|
|
1276
|
-
if (isNil(value))
|
|
1277
|
-
continue;
|
|
1278
|
-
nodeData[key] = value;
|
|
1279
|
-
}
|
|
1218
|
+
else if (size === undefined || isNaN(size)) {
|
|
1219
|
+
size = [30, 30];
|
|
1280
1220
|
}
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1221
|
+
else if (isNumber(size)) {
|
|
1222
|
+
size = [size, size];
|
|
1283
1223
|
}
|
|
1284
|
-
|
|
1224
|
+
const halfSize = [size[0] / 2, size[1] / 2];
|
|
1225
|
+
const left = node.data.x - halfSize[0];
|
|
1226
|
+
const right = node.data.x + halfSize[0];
|
|
1227
|
+
const top = node.data.y - halfSize[1];
|
|
1228
|
+
const bottom = node.data.y + halfSize[1];
|
|
1229
|
+
if (minX > left)
|
|
1230
|
+
minX = left;
|
|
1231
|
+
if (minY > top)
|
|
1232
|
+
minY = top;
|
|
1233
|
+
if (maxX < right)
|
|
1234
|
+
maxX = right;
|
|
1235
|
+
if (maxY < bottom)
|
|
1236
|
+
maxY = bottom;
|
|
1237
|
+
});
|
|
1238
|
+
return { minX, minY, maxX, maxY };
|
|
1239
|
+
};
|
|
1240
|
+
/**
|
|
1241
|
+
* calculate the euclidean distance form p1 to p2
|
|
1242
|
+
* @param p1
|
|
1243
|
+
* @param p2
|
|
1244
|
+
* @returns
|
|
1245
|
+
*/
|
|
1246
|
+
const getEuclideanDistance = (p1, p2) => Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
|
|
1247
|
+
/**
|
|
1248
|
+
* Depth first search begin from nodes in graphCore data.
|
|
1249
|
+
* @param graphCore graphlib data structure
|
|
1250
|
+
* @param nodes begin nodes
|
|
1251
|
+
* @param fn will be called while visiting each node
|
|
1252
|
+
* @param mode 'TB' - visit from top to bottom; 'BT' - visit from bottom to top;
|
|
1253
|
+
* @returns
|
|
1254
|
+
*/
|
|
1255
|
+
const graphTreeDfs = (graph, nodes, fn, mode = 'TB', treeKey, stopFns = {}) => {
|
|
1256
|
+
if (!(nodes === null || nodes === void 0 ? void 0 : nodes.length))
|
|
1257
|
+
return;
|
|
1258
|
+
const { stopBranchFn, stopAllFn } = stopFns;
|
|
1259
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1260
|
+
const node = nodes[i];
|
|
1261
|
+
if (!graph.hasNode(node.id))
|
|
1262
|
+
continue;
|
|
1263
|
+
if (stopBranchFn === null || stopBranchFn === void 0 ? void 0 : stopBranchFn(node))
|
|
1264
|
+
continue; // Stop this branch
|
|
1265
|
+
if (stopAllFn === null || stopAllFn === void 0 ? void 0 : stopAllFn(node))
|
|
1266
|
+
return; // Stop all
|
|
1267
|
+
if (mode === 'TB')
|
|
1268
|
+
fn(node); // Traverse from top to bottom
|
|
1269
|
+
graphTreeDfs(graph, graph.getChildren(node.id, treeKey), fn, mode, treeKey, stopFns);
|
|
1270
|
+
if (mode !== 'TB')
|
|
1271
|
+
fn(node); // Traverse from bottom to top
|
|
1285
1272
|
}
|
|
1286
|
-
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* Use Johnson + Dijkstra to compute APSP for sparse graph.
|
|
1276
|
+
* Fully compatible with floydWarshall(adjMatrix).
|
|
1277
|
+
*/
|
|
1278
|
+
function johnson(adjList) {
|
|
1279
|
+
const n = adjList.length;
|
|
1280
|
+
// Step 1: add a dummy node q connected to all nodes with weight 0
|
|
1281
|
+
new Array(n).fill(0);
|
|
1282
|
+
// Bellman-Ford to compute potentials h(v)
|
|
1283
|
+
// 因为权重全是 1,无负边,可直接跳过 BF,h 全 0 即可
|
|
1284
|
+
// Step 2: reweight edges
|
|
1285
|
+
// 因为 h(u)=h(v)=0,reweight 后仍然是 1,省略 reweight 过程
|
|
1286
|
+
// Step 3: run Dijkstra from each node
|
|
1287
|
+
const distAll = Array.from({ length: n }, () => new Array(n).fill(Infinity));
|
|
1288
|
+
for (let s = 0; s < n; s++) {
|
|
1289
|
+
distAll[s] = dijkstra(adjList, s);
|
|
1290
|
+
}
|
|
1291
|
+
return distAll;
|
|
1287
1292
|
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1293
|
+
/**
|
|
1294
|
+
* Dijkstra algorithm to find shortest paths from source to all nodes.
|
|
1295
|
+
*/
|
|
1296
|
+
function dijkstra(adjList, source) {
|
|
1297
|
+
const n = adjList.length;
|
|
1298
|
+
const dist = new Array(n).fill(Infinity);
|
|
1299
|
+
dist[source] = 0;
|
|
1300
|
+
// Minimal binary heap
|
|
1301
|
+
const heap = new MinHeap();
|
|
1302
|
+
heap.push([0, source]); // [distance, node]
|
|
1303
|
+
while (!heap.empty()) {
|
|
1304
|
+
const [d, u] = heap.pop();
|
|
1305
|
+
if (d !== dist[u])
|
|
1306
|
+
continue;
|
|
1307
|
+
const neighbors = adjList[u];
|
|
1308
|
+
for (let i = 0; i < neighbors.length; i++) {
|
|
1309
|
+
const v = neighbors[i];
|
|
1310
|
+
const nd = d + 1;
|
|
1311
|
+
if (nd < dist[v]) {
|
|
1312
|
+
dist[v] = nd;
|
|
1313
|
+
heap.push([nd, v]);
|
|
1305
1314
|
}
|
|
1306
1315
|
}
|
|
1307
|
-
if (isNil(edgeData.source) || isNil(edgeData.target)) {
|
|
1308
|
-
throw new Error(`Edge is missing source or target field`);
|
|
1309
|
-
}
|
|
1310
|
-
if (isNil(edgeData.id)) {
|
|
1311
|
-
edgeData.id = getEdgeId === null || getEdgeId === void 0 ? void 0 : getEdgeId(datum);
|
|
1312
|
-
}
|
|
1313
|
-
result.set(edgeData.id, edgeData);
|
|
1314
1316
|
}
|
|
1315
|
-
return
|
|
1317
|
+
return dist;
|
|
1316
1318
|
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1319
|
+
class MinHeap {
|
|
1320
|
+
constructor() {
|
|
1321
|
+
this.data = [];
|
|
1322
|
+
}
|
|
1323
|
+
push(item) {
|
|
1324
|
+
this.data.push(item);
|
|
1325
|
+
this.bubbleUp(this.data.length - 1);
|
|
1326
|
+
}
|
|
1327
|
+
pop() {
|
|
1328
|
+
const top = this.data[0];
|
|
1329
|
+
const end = this.data.pop();
|
|
1330
|
+
if (this.data.length > 0) {
|
|
1331
|
+
this.data[0] = end;
|
|
1332
|
+
this.bubbleDown(0);
|
|
1321
1333
|
}
|
|
1322
|
-
|
|
1323
|
-
|
|
1334
|
+
return top;
|
|
1335
|
+
}
|
|
1336
|
+
empty() {
|
|
1337
|
+
return this.data.length === 0;
|
|
1338
|
+
}
|
|
1339
|
+
bubbleUp(pos) {
|
|
1340
|
+
const data = this.data;
|
|
1341
|
+
while (pos > 0) {
|
|
1342
|
+
const parent = (pos - 1) >> 1;
|
|
1343
|
+
if (data[parent][0] <= data[pos][0])
|
|
1344
|
+
break;
|
|
1345
|
+
[data[parent], data[pos]] = [data[pos], data[parent]];
|
|
1346
|
+
pos = parent;
|
|
1324
1347
|
}
|
|
1325
|
-
|
|
1326
|
-
|
|
1348
|
+
}
|
|
1349
|
+
bubbleDown(pos) {
|
|
1350
|
+
const data = this.data;
|
|
1351
|
+
const length = data.length;
|
|
1352
|
+
while (true) {
|
|
1353
|
+
const left = pos * 2 + 1;
|
|
1354
|
+
const right = pos * 2 + 2;
|
|
1355
|
+
let min = pos;
|
|
1356
|
+
if (left < length && data[left][0] < data[min][0])
|
|
1357
|
+
min = left;
|
|
1358
|
+
if (right < length && data[right][0] < data[min][0])
|
|
1359
|
+
min = right;
|
|
1360
|
+
if (min === pos)
|
|
1361
|
+
break;
|
|
1362
|
+
[data[pos], data[min]] = [data[min], data[pos]];
|
|
1363
|
+
pos = min;
|
|
1327
1364
|
}
|
|
1328
|
-
}
|
|
1365
|
+
}
|
|
1329
1366
|
}
|
|
1330
1367
|
|
|
1331
1368
|
/**
|
|
@@ -1377,10 +1414,7 @@
|
|
|
1377
1414
|
function sort$1(model, compareFn) {
|
|
1378
1415
|
const nodes = model.nodes();
|
|
1379
1416
|
nodes.sort(compareFn);
|
|
1380
|
-
model.
|
|
1381
|
-
nodes.forEach((node) => {
|
|
1382
|
-
model.nodeMap.set(node.id, node);
|
|
1383
|
-
});
|
|
1417
|
+
model.setNodeOrder(nodes);
|
|
1384
1418
|
return model;
|
|
1385
1419
|
}
|
|
1386
1420
|
function orderByDegree(model) {
|
|
@@ -1474,10 +1508,7 @@
|
|
|
1474
1508
|
i++;
|
|
1475
1509
|
});
|
|
1476
1510
|
// Update model with ordered nodes
|
|
1477
|
-
model.
|
|
1478
|
-
orderedNodes.forEach((node) => {
|
|
1479
|
-
model.nodeMap.set(node.id, node);
|
|
1480
|
-
});
|
|
1511
|
+
model.setNodeOrder(orderedNodes);
|
|
1481
1512
|
return model;
|
|
1482
1513
|
}
|
|
1483
1514
|
|
|
@@ -1533,7 +1564,8 @@
|
|
|
1533
1564
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1534
1565
|
this.runtimeOptions = mergeOptions(this.initialOptions, userOptions);
|
|
1535
1566
|
const { node, edge, enableWorker } = this.runtimeOptions;
|
|
1536
|
-
this.
|
|
1567
|
+
this.context = new RuntimeContext(data, { node, edge });
|
|
1568
|
+
this.model = this.context.graph;
|
|
1537
1569
|
const shouldUseWorker = enableWorker && typeof Worker !== 'undefined';
|
|
1538
1570
|
if (shouldUseWorker) {
|
|
1539
1571
|
yield this.layoutInWorker(data, this.runtimeOptions);
|
|
@@ -1551,7 +1583,7 @@
|
|
|
1551
1583
|
this.supervisor = new Supervisor();
|
|
1552
1584
|
}
|
|
1553
1585
|
const result = yield this.supervisor.execute(this.id, data, options);
|
|
1554
|
-
(_a = this.
|
|
1586
|
+
(_a = this.context) === null || _a === void 0 ? void 0 : _a.replace(result);
|
|
1555
1587
|
}
|
|
1556
1588
|
catch (error) {
|
|
1557
1589
|
console.error('Layout in worker failed, fallback to main thread layout.', error);
|
|
@@ -1561,20 +1593,18 @@
|
|
|
1561
1593
|
});
|
|
1562
1594
|
}
|
|
1563
1595
|
forEachNode(callback) {
|
|
1564
|
-
this.
|
|
1596
|
+
this.context.forEachNode(callback);
|
|
1565
1597
|
}
|
|
1566
1598
|
forEachEdge(callback) {
|
|
1567
|
-
this.
|
|
1568
|
-
edge.sourceNode = this.model.nodeMap.get(edge.source);
|
|
1569
|
-
edge.targetNode = this.model.nodeMap.get(edge.target);
|
|
1570
|
-
callback(edge, i);
|
|
1571
|
-
});
|
|
1599
|
+
this.context.forEachEdge(callback);
|
|
1572
1600
|
}
|
|
1573
1601
|
destroy() {
|
|
1574
1602
|
var _a;
|
|
1575
|
-
(_a = this.
|
|
1603
|
+
(_a = this.context) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
1576
1604
|
// @ts-ignore
|
|
1577
1605
|
this.model = null;
|
|
1606
|
+
// @ts-ignore
|
|
1607
|
+
this.context = null;
|
|
1578
1608
|
if (this.supervisor) {
|
|
1579
1609
|
this.supervisor.destroy();
|
|
1580
1610
|
this.supervisor = null;
|
|
@@ -24213,7 +24243,7 @@
|
|
|
24213
24243
|
const options = this.parseOptions(this.options);
|
|
24214
24244
|
const { width, height, dimensions } = options;
|
|
24215
24245
|
this.initializePhysicsData(this.model, options);
|
|
24216
|
-
|
|
24246
|
+
initNodePosition(this.model, width, height, dimensions);
|
|
24217
24247
|
if (!((_a = this.model.nodes()) === null || _a === void 0 ? void 0 : _a.length))
|
|
24218
24248
|
return;
|
|
24219
24249
|
const simulation = this.setSimulation(options);
|
|
@@ -25305,7 +25335,7 @@
|
|
|
25305
25335
|
if (!n || n === 1) {
|
|
25306
25336
|
return applySingleNodeLayout(this.model, center);
|
|
25307
25337
|
}
|
|
25308
|
-
|
|
25338
|
+
initNodePosition(this.model, width, height);
|
|
25309
25339
|
const sizes = this.getSizes(merged.nodeSize, merged.nodeSpacing);
|
|
25310
25340
|
const simulation = this.setSimulation();
|
|
25311
25341
|
simulation.data(this.model, sizes);
|
|
@@ -25809,7 +25839,7 @@
|
|
|
25809
25839
|
applySingleNodeLayout(this.model, center, dimensions);
|
|
25810
25840
|
return;
|
|
25811
25841
|
}
|
|
25812
|
-
|
|
25842
|
+
initNodePosition(this.model, width, height, dimensions);
|
|
25813
25843
|
const simulation = this.setSimulation();
|
|
25814
25844
|
simulation.data(this.model);
|
|
25815
25845
|
simulation.initialize(options);
|
|
@@ -32413,8 +32443,6 @@ ${indent}columns: ${matrix.columns}
|
|
|
32413
32443
|
layout() {
|
|
32414
32444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32415
32445
|
const { width, height, center } = normalizeViewport(this.options);
|
|
32416
|
-
const layoutScale = 0.9;
|
|
32417
|
-
const randomCoord = (size) => (Math.random() - 0.5) * layoutScale * size;
|
|
32418
32446
|
this.model.forEachNode((node) => {
|
|
32419
32447
|
node.x = randomCoord(width) + center[0];
|
|
32420
32448
|
node.y = randomCoord(height) + center[1];
|
|
@@ -32422,6 +32450,13 @@ ${indent}columns: ${matrix.columns}
|
|
|
32422
32450
|
});
|
|
32423
32451
|
}
|
|
32424
32452
|
}
|
|
32453
|
+
const layoutScale = 0.9;
|
|
32454
|
+
/**
|
|
32455
|
+
* <zh/> 生成随机坐标
|
|
32456
|
+
*
|
|
32457
|
+
* <en/> Generate random coordinates
|
|
32458
|
+
*/
|
|
32459
|
+
const randomCoord = (size) => (Math.random() - 0.5) * layoutScale * size;
|
|
32425
32460
|
|
|
32426
32461
|
const registry = {
|
|
32427
32462
|
'antv-dagre': AntVDagreLayout,
|
|
@@ -32744,11 +32779,13 @@ ${indent}columns: ${matrix.columns}
|
|
|
32744
32779
|
exports.ForceAtlas2Layout = ForceAtlas2Layout;
|
|
32745
32780
|
exports.ForceLayout = ForceLayout;
|
|
32746
32781
|
exports.FruchtermanLayout = FruchtermanLayout;
|
|
32782
|
+
exports.GraphLib = GraphLib;
|
|
32747
32783
|
exports.GridLayout = GridLayout;
|
|
32748
|
-
exports.LayoutModel = LayoutModel;
|
|
32749
32784
|
exports.MDSLayout = MDSLayout;
|
|
32750
32785
|
exports.RadialLayout = RadialLayout;
|
|
32751
32786
|
exports.RandomLayout = RandomLayout;
|
|
32787
|
+
exports.RuntimeContext = RuntimeContext;
|
|
32788
|
+
exports.Supervisor = Supervisor;
|
|
32752
32789
|
exports.applySingleNodeLayout = applySingleNodeLayout;
|
|
32753
32790
|
exports.assignDefined = assignDefined;
|
|
32754
32791
|
exports.floydWarshall = floydWarshall;
|
|
@@ -32758,8 +32795,9 @@ ${indent}columns: ${matrix.columns}
|
|
|
32758
32795
|
exports.getLayoutBBox = getLayoutBBox;
|
|
32759
32796
|
exports.getNestedValue = getNestedValue;
|
|
32760
32797
|
exports.graphTreeDfs = graphTreeDfs;
|
|
32761
|
-
exports.
|
|
32798
|
+
exports.initNodePosition = initNodePosition;
|
|
32762
32799
|
exports.isArray = isArray;
|
|
32800
|
+
exports.isLayoutWithIterations = isLayoutWithIterations;
|
|
32763
32801
|
exports.johnson = johnson;
|
|
32764
32802
|
exports.mergeOptions = mergeOptions;
|
|
32765
32803
|
exports.normalizeViewport = normalizeViewport;
|