@antv/layout 0.3.12 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -32
- package/dist/3a54d760230d1933f953.worker.js +2 -0
- package/dist/3a54d760230d1933f953.worker.js.map +1 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/lib/Circular.d.ts +40 -0
- package/lib/Supervisor.d.ts +65 -0
- package/lib/index.d.ts +4 -3
- package/lib/registry.d.ts +3 -0
- package/lib/types.d.ts +128 -0
- package/lib/util/gpu.d.ts +22 -22
- package/lib/util/index.d.ts +6 -6
- package/lib/util/math.d.ts +3 -3
- package/lib/worker.d.ts +3 -0
- package/package.json +21 -95
- package/dist/layout.min.js +0 -3
- package/dist/layout.min.js.LICENSE.txt +0 -1
- package/dist/layout.min.js.map +0 -1
- package/es/index.d.ts +0 -3
- package/es/index.js +0 -6
- package/es/index.js.map +0 -1
- package/es/layout/base.d.ts +0 -22
- package/es/layout/base.js +0 -51
- package/es/layout/base.js.map +0 -1
- package/es/layout/circular.d.ts +0 -80
- package/es/layout/circular.js +0 -314
- package/es/layout/circular.js.map +0 -1
- package/es/layout/comboCombined.d.ts +0 -54
- package/es/layout/comboCombined.js +0 -354
- package/es/layout/comboCombined.js.map +0 -1
- package/es/layout/comboForce.d.ts +0 -134
- package/es/layout/comboForce.js +0 -801
- package/es/layout/comboForce.js.map +0 -1
- package/es/layout/concentric.d.ts +0 -67
- package/es/layout/concentric.js +0 -219
- package/es/layout/concentric.js.map +0 -1
- package/es/layout/constants.d.ts +0 -12
- package/es/layout/constants.js +0 -22
- package/es/layout/constants.js.map +0 -1
- package/es/layout/dagre/graph.d.ts +0 -91
- package/es/layout/dagre/graph.js +0 -4
- package/es/layout/dagre/graph.js.map +0 -1
- package/es/layout/dagre/index.d.ts +0 -8
- package/es/layout/dagre/index.js +0 -31
- package/es/layout/dagre/index.js.map +0 -1
- package/es/layout/dagre/src/acyclic.d.ts +0 -6
- package/es/layout/dagre/src/acyclic.js +0 -52
- package/es/layout/dagre/src/acyclic.js.map +0 -1
- package/es/layout/dagre/src/add-border-segments.d.ts +0 -3
- package/es/layout/dagre/src/add-border-segments.js +0 -32
- package/es/layout/dagre/src/add-border-segments.js.map +0 -1
- package/es/layout/dagre/src/coordinate-system.d.ts +0 -6
- package/es/layout/dagre/src/coordinate-system.js +0 -69
- package/es/layout/dagre/src/coordinate-system.js.map +0 -1
- package/es/layout/dagre/src/data/list.d.ts +0 -12
- package/es/layout/dagre/src/data/list.js +0 -48
- package/es/layout/dagre/src/data/list.js.map +0 -1
- package/es/layout/dagre/src/debug.d.ts +0 -3
- package/es/layout/dagre/src/debug.js +0 -24
- package/es/layout/dagre/src/debug.js.map +0 -1
- package/es/layout/dagre/src/greedy-fas.d.ts +0 -3
- package/es/layout/dagre/src/greedy-fas.js +0 -114
- package/es/layout/dagre/src/greedy-fas.js.map +0 -1
- package/es/layout/dagre/src/layout.d.ts +0 -3
- package/es/layout/dagre/src/layout.js +0 -518
- package/es/layout/dagre/src/layout.js.map +0 -1
- package/es/layout/dagre/src/nesting-graph.d.ts +0 -6
- package/es/layout/dagre/src/nesting-graph.js +0 -117
- package/es/layout/dagre/src/nesting-graph.js.map +0 -1
- package/es/layout/dagre/src/normalize.d.ts +0 -6
- package/es/layout/dagre/src/normalize.js +0 -89
- package/es/layout/dagre/src/normalize.js.map +0 -1
- package/es/layout/dagre/src/order/add-subgraph-constraints.d.ts +0 -3
- package/es/layout/dagre/src/order/add-subgraph-constraints.js +0 -27
- package/es/layout/dagre/src/order/add-subgraph-constraints.js.map +0 -1
- package/es/layout/dagre/src/order/barycenter.d.ts +0 -11
- package/es/layout/dagre/src/order/barycenter.js +0 -24
- package/es/layout/dagre/src/order/barycenter.js.map +0 -1
- package/es/layout/dagre/src/order/build-layer-graph.d.ts +0 -3
- package/es/layout/dagre/src/order/build-layer-graph.js +0 -71
- package/es/layout/dagre/src/order/build-layer-graph.js.map +0 -1
- package/es/layout/dagre/src/order/cross-count.d.ts +0 -3
- package/es/layout/dagre/src/order/cross-count.js +0 -65
- package/es/layout/dagre/src/order/cross-count.js.map +0 -1
- package/es/layout/dagre/src/order/index.d.ts +0 -3
- package/es/layout/dagre/src/order/index.js +0 -91
- package/es/layout/dagre/src/order/index.js.map +0 -1
- package/es/layout/dagre/src/order/init-data-order.d.ts +0 -6
- package/es/layout/dagre/src/order/init-data-order.js +0 -25
- package/es/layout/dagre/src/order/init-data-order.js.map +0 -1
- package/es/layout/dagre/src/order/init-order.d.ts +0 -3
- package/es/layout/dagre/src/order/init-order.js +0 -52
- package/es/layout/dagre/src/order/init-order.js.map +0 -1
- package/es/layout/dagre/src/order/resolve-conflicts.d.ts +0 -19
- package/es/layout/dagre/src/order/resolve-conflicts.js +0 -93
- package/es/layout/dagre/src/order/resolve-conflicts.js.map +0 -1
- package/es/layout/dagre/src/order/sort-subgraph.d.ts +0 -7
- package/es/layout/dagre/src/order/sort-subgraph.js +0 -85
- package/es/layout/dagre/src/order/sort-subgraph.js.map +0 -1
- package/es/layout/dagre/src/order/sort.d.ts +0 -7
- package/es/layout/dagre/src/order/sort.js +0 -68
- package/es/layout/dagre/src/order/sort.js.map +0 -1
- package/es/layout/dagre/src/parent-dummy-chains.d.ts +0 -3
- package/es/layout/dagre/src/parent-dummy-chains.js +0 -81
- package/es/layout/dagre/src/parent-dummy-chains.js.map +0 -1
- package/es/layout/dagre/src/position/bk.d.ts +0 -23
- package/es/layout/dagre/src/position/bk.js +0 -370
- package/es/layout/dagre/src/position/bk.js.map +0 -1
- package/es/layout/dagre/src/position/index.d.ts +0 -3
- package/es/layout/dagre/src/position/index.js +0 -51
- package/es/layout/dagre/src/position/index.js.map +0 -1
- package/es/layout/dagre/src/rank/feasible-tree.d.ts +0 -9
- package/es/layout/dagre/src/rank/feasible-tree.js +0 -148
- package/es/layout/dagre/src/rank/feasible-tree.js.map +0 -1
- package/es/layout/dagre/src/rank/index.d.ts +0 -3
- package/es/layout/dagre/src/rank/index.js +0 -53
- package/es/layout/dagre/src/rank/index.js.map +0 -1
- package/es/layout/dagre/src/rank/network-simplex.d.ts +0 -9
- package/es/layout/dagre/src/rank/network-simplex.js +0 -195
- package/es/layout/dagre/src/rank/network-simplex.js.map +0 -1
- package/es/layout/dagre/src/rank/util.d.ts +0 -11
- package/es/layout/dagre/src/rank/util.js +0 -141
- package/es/layout/dagre/src/rank/util.js.map +0 -1
- package/es/layout/dagre/src/util.d.ts +0 -31
- package/es/layout/dagre/src/util.js +0 -261
- package/es/layout/dagre/src/util.js.map +0 -1
- package/es/layout/dagre.d.ts +0 -71
- package/es/layout/dagre.js +0 -433
- package/es/layout/dagre.js.map +0 -1
- package/es/layout/dagreCompound.d.ts +0 -121
- package/es/layout/dagreCompound.js +0 -391
- package/es/layout/dagreCompound.js.map +0 -1
- package/es/layout/er/core.d.ts +0 -1
- package/es/layout/er/core.js +0 -107
- package/es/layout/er/core.js.map +0 -1
- package/es/layout/er/forceGrid.d.ts +0 -8
- package/es/layout/er/forceGrid.js +0 -88
- package/es/layout/er/forceGrid.js.map +0 -1
- package/es/layout/er/grid.d.ts +0 -26
- package/es/layout/er/grid.js +0 -162
- package/es/layout/er/grid.js.map +0 -1
- package/es/layout/er/index.d.ts +0 -29
- package/es/layout/er/index.js +0 -54
- package/es/layout/er/index.js.map +0 -1
- package/es/layout/er/mysqlWorkbench.d.ts +0 -6
- package/es/layout/er/mysqlWorkbench.js +0 -324
- package/es/layout/er/mysqlWorkbench.js.map +0 -1
- package/es/layout/er/type.d.ts +0 -35
- package/es/layout/er/type.js +0 -2
- package/es/layout/er/type.js.map +0 -1
- package/es/layout/force/force-in-a-box.d.ts +0 -28
- package/es/layout/force/force-in-a-box.js +0 -330
- package/es/layout/force/force-in-a-box.js.map +0 -1
- package/es/layout/force/force.d.ts +0 -100
- package/es/layout/force/force.js +0 -340
- package/es/layout/force/force.js.map +0 -1
- package/es/layout/force/index.d.ts +0 -1
- package/es/layout/force/index.js +0 -2
- package/es/layout/force/index.js.map +0 -1
- package/es/layout/force2/ForceNBody.d.ts +0 -7
- package/es/layout/force2/ForceNBody.js +0 -94
- package/es/layout/force2/ForceNBody.js.map +0 -1
- package/es/layout/force2/index.d.ts +0 -119
- package/es/layout/force2/index.js +0 -608
- package/es/layout/force2/index.js.map +0 -1
- package/es/layout/forceAtlas2/body.d.ts +0 -33
- package/es/layout/forceAtlas2/body.js +0 -89
- package/es/layout/forceAtlas2/body.js.map +0 -1
- package/es/layout/forceAtlas2/index.d.ts +0 -115
- package/es/layout/forceAtlas2/index.js +0 -484
- package/es/layout/forceAtlas2/index.js.map +0 -1
- package/es/layout/forceAtlas2/quad.d.ts +0 -27
- package/es/layout/forceAtlas2/quad.js +0 -96
- package/es/layout/forceAtlas2/quad.js.map +0 -1
- package/es/layout/forceAtlas2/quadTree.d.ts +0 -20
- package/es/layout/forceAtlas2/quadTree.js +0 -103
- package/es/layout/forceAtlas2/quadTree.js.map +0 -1
- package/es/layout/fruchterman.d.ts +0 -73
- package/es/layout/fruchterman.js +0 -296
- package/es/layout/fruchterman.js.map +0 -1
- package/es/layout/gForce.d.ts +0 -96
- package/es/layout/gForce.js +0 -399
- package/es/layout/gForce.js.map +0 -1
- package/es/layout/gpu/fruchterman.d.ts +0 -57
- package/es/layout/gpu/fruchterman.js +0 -267
- package/es/layout/gpu/fruchterman.js.map +0 -1
- package/es/layout/gpu/fruchtermanShader.d.ts +0 -4
- package/es/layout/gpu/fruchtermanShader.js +0 -201
- package/es/layout/gpu/fruchtermanShader.js.map +0 -1
- package/es/layout/gpu/gForce.d.ts +0 -68
- package/es/layout/gpu/gForce.js +0 -330
- package/es/layout/gpu/gForce.js.map +0 -1
- package/es/layout/gpu/gForceShader.d.ts +0 -4
- package/es/layout/gpu/gForceShader.js +0 -218
- package/es/layout/gpu/gForceShader.js.map +0 -1
- package/es/layout/grid.d.ts +0 -83
- package/es/layout/grid.js +0 -317
- package/es/layout/grid.js.map +0 -1
- package/es/layout/index.d.ts +0 -22
- package/es/layout/index.js +0 -25
- package/es/layout/index.js.map +0 -1
- package/es/layout/layout.d.ts +0 -26
- package/es/layout/layout.js +0 -97
- package/es/layout/layout.js.map +0 -1
- package/es/layout/mds.d.ts +0 -39
- package/es/layout/mds.js +0 -122
- package/es/layout/mds.js.map +0 -1
- package/es/layout/radial/index.d.ts +0 -1
- package/es/layout/radial/index.js +0 -2
- package/es/layout/radial/index.js.map +0 -1
- package/es/layout/radial/mds.d.ts +0 -15
- package/es/layout/radial/mds.js +0 -38
- package/es/layout/radial/mds.js.map +0 -1
- package/es/layout/radial/radial.d.ts +0 -74
- package/es/layout/radial/radial.js +0 -420
- package/es/layout/radial/radial.js.map +0 -1
- package/es/layout/radial/radialNonoverlapForce.d.ts +0 -50
- package/es/layout/radial/radialNonoverlapForce.js +0 -123
- package/es/layout/radial/radialNonoverlapForce.js.map +0 -1
- package/es/layout/random.d.ts +0 -35
- package/es/layout/random.js +0 -62
- package/es/layout/random.js.map +0 -1
- package/es/layout/types.d.ts +0 -432
- package/es/layout/types.js +0 -2
- package/es/layout/types.js.map +0 -1
- package/es/registy/index.d.ts +0 -3
- package/es/registy/index.js +0 -41
- package/es/registy/index.js.map +0 -1
- package/es/util/array.d.ts +0 -1
- package/es/util/array.js +0 -2
- package/es/util/array.js.map +0 -1
- package/es/util/function.d.ts +0 -6
- package/es/util/function.js +0 -56
- package/es/util/function.js.map +0 -1
- package/es/util/gpu.d.ts +0 -52
- package/es/util/gpu.js +0 -239
- package/es/util/gpu.js.map +0 -1
- package/es/util/index.d.ts +0 -6
- package/es/util/index.js +0 -7
- package/es/util/index.js.map +0 -1
- package/es/util/math.d.ts +0 -48
- package/es/util/math.js +0 -276
- package/es/util/math.js.map +0 -1
- package/es/util/number.d.ts +0 -3
- package/es/util/number.js +0 -7
- package/es/util/number.js.map +0 -1
- package/es/util/object.d.ts +0 -2
- package/es/util/object.js +0 -25
- package/es/util/object.js.map +0 -1
- package/es/util/string.d.ts +0 -2
- package/es/util/string.js +0 -16
- package/es/util/string.js.map +0 -1
- package/lib/index.js +0 -24
- package/lib/index.js.map +0 -1
- package/lib/layout/base.d.ts +0 -22
- package/lib/layout/base.js +0 -56
- package/lib/layout/base.js.map +0 -1
- package/lib/layout/circular.d.ts +0 -80
- package/lib/layout/circular.js +0 -337
- package/lib/layout/circular.js.map +0 -1
- package/lib/layout/comboCombined.d.ts +0 -54
- package/lib/layout/comboCombined.js +0 -390
- package/lib/layout/comboCombined.js.map +0 -1
- package/lib/layout/comboForce.d.ts +0 -134
- package/lib/layout/comboForce.js +0 -826
- package/lib/layout/comboForce.js.map +0 -1
- package/lib/layout/concentric.d.ts +0 -67
- package/lib/layout/concentric.js +0 -243
- package/lib/layout/concentric.js.map +0 -1
- package/lib/layout/constants.d.ts +0 -12
- package/lib/layout/constants.js +0 -25
- package/lib/layout/constants.js.map +0 -1
- package/lib/layout/dagre/graph.d.ts +0 -91
- package/lib/layout/dagre/graph.js +0 -28
- package/lib/layout/dagre/graph.js.map +0 -1
- package/lib/layout/dagre/index.d.ts +0 -8
- package/lib/layout/dagre/index.js +0 -36
- package/lib/layout/dagre/index.js.map +0 -1
- package/lib/layout/dagre/src/acyclic.d.ts +0 -6
- package/lib/layout/dagre/src/acyclic.js +0 -57
- package/lib/layout/dagre/src/acyclic.js.map +0 -1
- package/lib/layout/dagre/src/add-border-segments.d.ts +0 -3
- package/lib/layout/dagre/src/add-border-segments.js +0 -34
- package/lib/layout/dagre/src/add-border-segments.js.map +0 -1
- package/lib/layout/dagre/src/coordinate-system.d.ts +0 -6
- package/lib/layout/dagre/src/coordinate-system.js +0 -71
- package/lib/layout/dagre/src/coordinate-system.js.map +0 -1
- package/lib/layout/dagre/src/data/list.d.ts +0 -12
- package/lib/layout/dagre/src/data/list.js +0 -52
- package/lib/layout/dagre/src/data/list.js.map +0 -1
- package/lib/layout/dagre/src/debug.d.ts +0 -3
- package/lib/layout/dagre/src/debug.js +0 -26
- package/lib/layout/dagre/src/debug.js.map +0 -1
- package/lib/layout/dagre/src/greedy-fas.d.ts +0 -3
- package/lib/layout/dagre/src/greedy-fas.js +0 -144
- package/lib/layout/dagre/src/greedy-fas.js.map +0 -1
- package/lib/layout/dagre/src/layout.d.ts +0 -3
- package/lib/layout/dagre/src/layout.js +0 -535
- package/lib/layout/dagre/src/layout.js.map +0 -1
- package/lib/layout/dagre/src/nesting-graph.d.ts +0 -6
- package/lib/layout/dagre/src/nesting-graph.js +0 -119
- package/lib/layout/dagre/src/nesting-graph.js.map +0 -1
- package/lib/layout/dagre/src/normalize.d.ts +0 -6
- package/lib/layout/dagre/src/normalize.js +0 -91
- package/lib/layout/dagre/src/normalize.js.map +0 -1
- package/lib/layout/dagre/src/order/add-subgraph-constraints.d.ts +0 -3
- package/lib/layout/dagre/src/order/add-subgraph-constraints.js +0 -29
- package/lib/layout/dagre/src/order/add-subgraph-constraints.js.map +0 -1
- package/lib/layout/dagre/src/order/barycenter.d.ts +0 -11
- package/lib/layout/dagre/src/order/barycenter.js +0 -26
- package/lib/layout/dagre/src/order/barycenter.js.map +0 -1
- package/lib/layout/dagre/src/order/build-layer-graph.d.ts +0 -3
- package/lib/layout/dagre/src/order/build-layer-graph.js +0 -73
- package/lib/layout/dagre/src/order/build-layer-graph.js.map +0 -1
- package/lib/layout/dagre/src/order/cross-count.d.ts +0 -3
- package/lib/layout/dagre/src/order/cross-count.js +0 -67
- package/lib/layout/dagre/src/order/cross-count.js.map +0 -1
- package/lib/layout/dagre/src/order/index.d.ts +0 -3
- package/lib/layout/dagre/src/order/index.js +0 -96
- package/lib/layout/dagre/src/order/index.js.map +0 -1
- package/lib/layout/dagre/src/order/init-data-order.d.ts +0 -6
- package/lib/layout/dagre/src/order/init-data-order.js +0 -27
- package/lib/layout/dagre/src/order/init-data-order.js.map +0 -1
- package/lib/layout/dagre/src/order/init-order.d.ts +0 -3
- package/lib/layout/dagre/src/order/init-order.js +0 -54
- package/lib/layout/dagre/src/order/init-order.js.map +0 -1
- package/lib/layout/dagre/src/order/resolve-conflicts.d.ts +0 -19
- package/lib/layout/dagre/src/order/resolve-conflicts.js +0 -98
- package/lib/layout/dagre/src/order/resolve-conflicts.js.map +0 -1
- package/lib/layout/dagre/src/order/sort-subgraph.d.ts +0 -7
- package/lib/layout/dagre/src/order/sort-subgraph.js +0 -90
- package/lib/layout/dagre/src/order/sort-subgraph.js.map +0 -1
- package/lib/layout/dagre/src/order/sort.d.ts +0 -7
- package/lib/layout/dagre/src/order/sort.js +0 -70
- package/lib/layout/dagre/src/order/sort.js.map +0 -1
- package/lib/layout/dagre/src/parent-dummy-chains.d.ts +0 -3
- package/lib/layout/dagre/src/parent-dummy-chains.js +0 -83
- package/lib/layout/dagre/src/parent-dummy-chains.js.map +0 -1
- package/lib/layout/dagre/src/position/bk.d.ts +0 -23
- package/lib/layout/dagre/src/position/bk.js +0 -409
- package/lib/layout/dagre/src/position/bk.js.map +0 -1
- package/lib/layout/dagre/src/position/index.d.ts +0 -3
- package/lib/layout/dagre/src/position/index.js +0 -64
- package/lib/layout/dagre/src/position/index.js.map +0 -1
- package/lib/layout/dagre/src/rank/feasible-tree.d.ts +0 -9
- package/lib/layout/dagre/src/rank/feasible-tree.js +0 -152
- package/lib/layout/dagre/src/rank/feasible-tree.js.map +0 -1
- package/lib/layout/dagre/src/rank/index.d.ts +0 -3
- package/lib/layout/dagre/src/rank/index.js +0 -58
- package/lib/layout/dagre/src/rank/index.js.map +0 -1
- package/lib/layout/dagre/src/rank/network-simplex.d.ts +0 -9
- package/lib/layout/dagre/src/rank/network-simplex.js +0 -205
- package/lib/layout/dagre/src/rank/network-simplex.js.map +0 -1
- package/lib/layout/dagre/src/rank/util.d.ts +0 -11
- package/lib/layout/dagre/src/rank/util.js +0 -146
- package/lib/layout/dagre/src/rank/util.js.map +0 -1
- package/lib/layout/dagre/src/util.d.ts +0 -31
- package/lib/layout/dagre/src/util.js +0 -280
- package/lib/layout/dagre/src/util.js.map +0 -1
- package/lib/layout/dagre.d.ts +0 -71
- package/lib/layout/dagre.js +0 -462
- package/lib/layout/dagre.js.map +0 -1
- package/lib/layout/dagreCompound.d.ts +0 -121
- package/lib/layout/dagreCompound.js +0 -429
- package/lib/layout/dagreCompound.js.map +0 -1
- package/lib/layout/er/core.d.ts +0 -1
- package/lib/layout/er/core.js +0 -147
- package/lib/layout/er/core.js.map +0 -1
- package/lib/layout/er/forceGrid.d.ts +0 -8
- package/lib/layout/er/forceGrid.js +0 -97
- package/lib/layout/er/forceGrid.js.map +0 -1
- package/lib/layout/er/grid.d.ts +0 -26
- package/lib/layout/er/grid.js +0 -177
- package/lib/layout/er/grid.js.map +0 -1
- package/lib/layout/er/index.d.ts +0 -29
- package/lib/layout/er/index.js +0 -80
- package/lib/layout/er/index.js.map +0 -1
- package/lib/layout/er/mysqlWorkbench.d.ts +0 -6
- package/lib/layout/er/mysqlWorkbench.js +0 -326
- package/lib/layout/er/mysqlWorkbench.js.map +0 -1
- package/lib/layout/er/type.d.ts +0 -35
- package/lib/layout/er/type.js +0 -3
- package/lib/layout/er/type.js.map +0 -1
- package/lib/layout/force/force-in-a-box.d.ts +0 -28
- package/lib/layout/force/force-in-a-box.js +0 -357
- package/lib/layout/force/force-in-a-box.js.map +0 -1
- package/lib/layout/force/force.d.ts +0 -100
- package/lib/layout/force/force.js +0 -388
- package/lib/layout/force/force.js.map +0 -1
- package/lib/layout/force/index.d.ts +0 -1
- package/lib/layout/force/index.js +0 -18
- package/lib/layout/force/index.js.map +0 -1
- package/lib/layout/force2/ForceNBody.d.ts +0 -7
- package/lib/layout/force2/ForceNBody.js +0 -98
- package/lib/layout/force2/ForceNBody.js.map +0 -1
- package/lib/layout/force2/index.d.ts +0 -119
- package/lib/layout/force2/index.js +0 -643
- package/lib/layout/force2/index.js.map +0 -1
- package/lib/layout/forceAtlas2/body.d.ts +0 -33
- package/lib/layout/forceAtlas2/body.js +0 -93
- package/lib/layout/forceAtlas2/body.js.map +0 -1
- package/lib/layout/forceAtlas2/index.d.ts +0 -115
- package/lib/layout/forceAtlas2/index.js +0 -509
- package/lib/layout/forceAtlas2/index.js.map +0 -1
- package/lib/layout/forceAtlas2/quad.d.ts +0 -27
- package/lib/layout/forceAtlas2/quad.js +0 -100
- package/lib/layout/forceAtlas2/quad.js.map +0 -1
- package/lib/layout/forceAtlas2/quadTree.d.ts +0 -20
- package/lib/layout/forceAtlas2/quadTree.js +0 -107
- package/lib/layout/forceAtlas2/quadTree.js.map +0 -1
- package/lib/layout/fruchterman.d.ts +0 -73
- package/lib/layout/fruchterman.js +0 -320
- package/lib/layout/fruchterman.js.map +0 -1
- package/lib/layout/gForce.d.ts +0 -96
- package/lib/layout/gForce.js +0 -421
- package/lib/layout/gForce.js.map +0 -1
- package/lib/layout/gpu/fruchterman.d.ts +0 -57
- package/lib/layout/gpu/fruchterman.js +0 -361
- package/lib/layout/gpu/fruchterman.js.map +0 -1
- package/lib/layout/gpu/fruchtermanShader.d.ts +0 -4
- package/lib/layout/gpu/fruchtermanShader.js +0 -8
- package/lib/layout/gpu/fruchtermanShader.js.map +0 -1
- package/lib/layout/gpu/gForce.d.ts +0 -68
- package/lib/layout/gpu/gForce.js +0 -415
- package/lib/layout/gpu/gForce.js.map +0 -1
- package/lib/layout/gpu/gForceShader.d.ts +0 -4
- package/lib/layout/gpu/gForceShader.js +0 -8
- package/lib/layout/gpu/gForceShader.js.map +0 -1
- package/lib/layout/grid.d.ts +0 -83
- package/lib/layout/grid.js +0 -339
- package/lib/layout/grid.js.map +0 -1
- package/lib/layout/index.d.ts +0 -22
- package/lib/layout/index.js +0 -59
- package/lib/layout/index.js.map +0 -1
- package/lib/layout/layout.d.ts +0 -26
- package/lib/layout/layout.js +0 -102
- package/lib/layout/layout.js.map +0 -1
- package/lib/layout/mds.d.ts +0 -39
- package/lib/layout/mds.js +0 -144
- package/lib/layout/mds.js.map +0 -1
- package/lib/layout/radial/index.d.ts +0 -1
- package/lib/layout/radial/index.js +0 -18
- package/lib/layout/radial/index.js.map +0 -1
- package/lib/layout/radial/mds.d.ts +0 -15
- package/lib/layout/radial/mds.js +0 -42
- package/lib/layout/radial/mds.js.map +0 -1
- package/lib/layout/radial/radial.d.ts +0 -74
- package/lib/layout/radial/radial.js +0 -445
- package/lib/layout/radial/radial.js.map +0 -1
- package/lib/layout/radial/radialNonoverlapForce.d.ts +0 -50
- package/lib/layout/radial/radialNonoverlapForce.js +0 -127
- package/lib/layout/radial/radialNonoverlapForce.js.map +0 -1
- package/lib/layout/random.d.ts +0 -35
- package/lib/layout/random.js +0 -84
- package/lib/layout/random.js.map +0 -1
- package/lib/layout/types.d.ts +0 -432
- package/lib/layout/types.js +0 -3
- package/lib/layout/types.js.map +0 -1
- package/lib/registy/index.d.ts +0 -3
- package/lib/registy/index.js +0 -65
- package/lib/registy/index.js.map +0 -1
- package/lib/util/array.js +0 -5
- package/lib/util/array.js.map +0 -1
- package/lib/util/function.js +0 -65
- package/lib/util/function.js.map +0 -1
- package/lib/util/gpu.js +0 -250
- package/lib/util/gpu.js.map +0 -1
- package/lib/util/index.js +0 -23
- package/lib/util/index.js.map +0 -1
- package/lib/util/math.js +0 -289
- package/lib/util/math.js.map +0 -1
- package/lib/util/number.js +0 -13
- package/lib/util/number.js.map +0 -1
- package/lib/util/object.js +0 -43
- package/lib/util/object.js.map +0 -1
- package/lib/util/string.js +0 -20
- package/lib/util/string.js.map +0 -1
- package/src/index.ts +0 -7
- package/src/layout/base.ts +0 -57
- package/src/layout/circular.ts +0 -370
- package/src/layout/comboCombined.ts +0 -397
- package/src/layout/comboForce.ts +0 -873
- package/src/layout/concentric.ts +0 -289
- package/src/layout/constants.ts +0 -22
- package/src/layout/dagre/graph.ts +0 -104
- package/src/layout/dagre/index.ts +0 -31
- package/src/layout/dagre/src/acyclic.ts +0 -58
- package/src/layout/dagre/src/add-border-segments.ts +0 -47
- package/src/layout/dagre/src/coordinate-system.ts +0 -77
- package/src/layout/dagre/src/data/list.ts +0 -60
- package/src/layout/dagre/src/debug.ts +0 -30
- package/src/layout/dagre/src/greedy-fas.ts +0 -144
- package/src/layout/dagre/src/layout.ts +0 -579
- package/src/layout/dagre/src/nesting-graph.ts +0 -143
- package/src/layout/dagre/src/normalize.ts +0 -96
- package/src/layout/dagre/src/order/add-subgraph-constraints.ts +0 -29
- package/src/layout/dagre/src/order/barycenter.ts +0 -26
- package/src/layout/dagre/src/order/build-layer-graph.ts +0 -82
- package/src/layout/dagre/src/order/cross-count.ts +0 -77
- package/src/layout/dagre/src/order/index.ts +0 -105
- package/src/layout/dagre/src/order/init-data-order.ts +0 -27
- package/src/layout/dagre/src/order/init-order.ts +0 -56
- package/src/layout/dagre/src/order/resolve-conflicts.ts +0 -152
- package/src/layout/dagre/src/order/sort-subgraph.ts +0 -105
- package/src/layout/dagre/src/order/sort.ts +0 -76
- package/src/layout/dagre/src/parent-dummy-chains.ts +0 -102
- package/src/layout/dagre/src/position/bk.ts +0 -493
- package/src/layout/dagre/src/position/index.ts +0 -82
- package/src/layout/dagre/src/rank/feasible-tree.ts +0 -165
- package/src/layout/dagre/src/rank/index.ts +0 -54
- package/src/layout/dagre/src/rank/network-simplex.ts +0 -225
- package/src/layout/dagre/src/rank/util.ts +0 -166
- package/src/layout/dagre/src/util.ts +0 -309
- package/src/layout/dagre.ts +0 -460
- package/src/layout/dagreCompound.ts +0 -518
- package/src/layout/er/core.ts +0 -117
- package/src/layout/er/forceGrid.ts +0 -95
- package/src/layout/er/grid.ts +0 -185
- package/src/layout/er/index.ts +0 -68
- package/src/layout/er/mysqlWorkbench.ts +0 -345
- package/src/layout/er/type.ts +0 -39
- package/src/layout/force/force-in-a-box.ts +0 -400
- package/src/layout/force/force.ts +0 -391
- package/src/layout/force/index.ts +0 -1
- package/src/layout/force2/ForceNBody.ts +0 -128
- package/src/layout/force2/index.ts +0 -741
- package/src/layout/forceAtlas2/body.ts +0 -115
- package/src/layout/forceAtlas2/index.ts +0 -556
- package/src/layout/forceAtlas2/quad.ts +0 -115
- package/src/layout/forceAtlas2/quadTree.ts +0 -107
- package/src/layout/fruchterman.ts +0 -361
- package/src/layout/gForce.ts +0 -488
- package/src/layout/gpu/fruchterman.ts +0 -314
- package/src/layout/gpu/fruchtermanShader.ts +0 -203
- package/src/layout/gpu/gForce.ts +0 -407
- package/src/layout/gpu/gForceShader.ts +0 -220
- package/src/layout/grid.ts +0 -404
- package/src/layout/index.ts +0 -47
- package/src/layout/layout.ts +0 -110
- package/src/layout/mds.ts +0 -140
- package/src/layout/radial/index.ts +0 -1
- package/src/layout/radial/mds.ts +0 -51
- package/src/layout/radial/radial.ts +0 -500
- package/src/layout/radial/radialNonoverlapForce.ts +0 -189
- package/src/layout/random.ts +0 -75
- package/src/layout/types.ts +0 -496
- package/src/registy/index.ts +0 -43
- package/src/util/array.ts +0 -1
- package/src/util/function.ts +0 -64
- package/src/util/gpu.ts +0 -256
- package/src/util/index.ts +0 -6
- package/src/util/math.ts +0 -294
- package/src/util/number.ts +0 -8
- package/src/util/object.ts +0 -28
- package/src/util/string.ts +0 -18
package/lib/layout/grid.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileOverview grid layout
|
|
3
|
-
* @author shiwu.wyy@antfin.com
|
|
4
|
-
* this algorithm refers to <cytoscape.js> - https://github.com/cytoscape/cytoscape.js/
|
|
5
|
-
*/
|
|
6
|
-
import { Base } from "./base";
|
|
7
|
-
import { OutNode, Edge, PointTuple, Size, GridLayoutOptions } from "./types";
|
|
8
|
-
type INode = OutNode & {
|
|
9
|
-
degree: number;
|
|
10
|
-
size: number | PointTuple | Size;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* 网格布局
|
|
14
|
-
*/
|
|
15
|
-
export declare class GridLayout extends Base {
|
|
16
|
-
/** 布局起始点 */
|
|
17
|
-
begin: PointTuple;
|
|
18
|
-
/** prevents node overlap, may overflow boundingBox if not enough space */
|
|
19
|
-
preventOverlap: boolean;
|
|
20
|
-
/** extra spacing around nodes when preventOverlap: true */
|
|
21
|
-
preventOverlapPadding: number;
|
|
22
|
-
/** uses all available space on false, uses minimal space on true */
|
|
23
|
-
condense: boolean;
|
|
24
|
-
/** force num of rows in the grid */
|
|
25
|
-
rows: number | undefined;
|
|
26
|
-
/** force num of columns in the grid */
|
|
27
|
-
cols: number | undefined;
|
|
28
|
-
/** the spacing between two nodes */
|
|
29
|
-
nodeSpacing: ((d?: unknown) => number) | number | undefined;
|
|
30
|
-
/** returns { row, col } for element */
|
|
31
|
-
position: ((node: INode) => {
|
|
32
|
-
row?: number;
|
|
33
|
-
col?: number;
|
|
34
|
-
}) | undefined;
|
|
35
|
-
/** a sorting function to order the nodes; e.g. function(a, b){ return a.datapublic ('weight') - b.data('weight') } */
|
|
36
|
-
sortBy: string;
|
|
37
|
-
nodeSize: number | number[] | {
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
} | undefined;
|
|
41
|
-
nodes: INode[];
|
|
42
|
-
edges: Edge[];
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
private cells;
|
|
46
|
-
private row;
|
|
47
|
-
private col;
|
|
48
|
-
private splits;
|
|
49
|
-
private columns;
|
|
50
|
-
private cellWidth;
|
|
51
|
-
private cellHeight;
|
|
52
|
-
private cellUsed;
|
|
53
|
-
private id2manPos;
|
|
54
|
-
/** 迭代结束的回调函数 */
|
|
55
|
-
onLayoutEnd: () => void;
|
|
56
|
-
constructor(options?: GridLayoutOptions);
|
|
57
|
-
getDefaultCfg(): {
|
|
58
|
-
begin: number[];
|
|
59
|
-
preventOverlap: boolean;
|
|
60
|
-
preventOverlapPadding: number;
|
|
61
|
-
condense: boolean;
|
|
62
|
-
rows: undefined;
|
|
63
|
-
cols: undefined;
|
|
64
|
-
position: undefined;
|
|
65
|
-
sortBy: string;
|
|
66
|
-
nodeSize: number;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* 执行布局
|
|
70
|
-
*/
|
|
71
|
-
execute(): {
|
|
72
|
-
nodes: INode[];
|
|
73
|
-
edges: Edge[];
|
|
74
|
-
};
|
|
75
|
-
private small;
|
|
76
|
-
private large;
|
|
77
|
-
private used;
|
|
78
|
-
private use;
|
|
79
|
-
private moveToNextCell;
|
|
80
|
-
private getPos;
|
|
81
|
-
getType(): string;
|
|
82
|
-
}
|
|
83
|
-
export {};
|
package/lib/layout/grid.js
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @fileOverview grid layout
|
|
4
|
-
* @author shiwu.wyy@antfin.com
|
|
5
|
-
* this algorithm refers to <cytoscape.js> - https://github.com/cytoscape/cytoscape.js/
|
|
6
|
-
*/
|
|
7
|
-
var __extends = (this && this.__extends) || (function () {
|
|
8
|
-
var extendStatics = function (d, b) {
|
|
9
|
-
extendStatics = Object.setPrototypeOf ||
|
|
10
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
if (typeof b !== "function" && b !== null)
|
|
16
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17
|
-
extendStatics(d, b);
|
|
18
|
-
function __() { this.constructor = d; }
|
|
19
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20
|
-
};
|
|
21
|
-
})();
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.GridLayout = void 0;
|
|
24
|
-
var util_1 = require("../util");
|
|
25
|
-
var base_1 = require("./base");
|
|
26
|
-
/**
|
|
27
|
-
* 网格布局
|
|
28
|
-
*/
|
|
29
|
-
var GridLayout = /** @class */ (function (_super) {
|
|
30
|
-
__extends(GridLayout, _super);
|
|
31
|
-
function GridLayout(options) {
|
|
32
|
-
var _this = _super.call(this) || this;
|
|
33
|
-
/** 布局起始点 */
|
|
34
|
-
_this.begin = [0, 0];
|
|
35
|
-
/** prevents node overlap, may overflow boundingBox if not enough space */
|
|
36
|
-
_this.preventOverlap = true;
|
|
37
|
-
/** extra spacing around nodes when preventOverlap: true */
|
|
38
|
-
_this.preventOverlapPadding = 10;
|
|
39
|
-
/** uses all available space on false, uses minimal space on true */
|
|
40
|
-
_this.condense = false;
|
|
41
|
-
/** a sorting function to order the nodes; e.g. function(a, b){ return a.datapublic ('weight') - b.data('weight') } */
|
|
42
|
-
_this.sortBy = "degree";
|
|
43
|
-
_this.nodes = [];
|
|
44
|
-
_this.edges = [];
|
|
45
|
-
_this.width = 300;
|
|
46
|
-
_this.height = 300;
|
|
47
|
-
_this.row = 0;
|
|
48
|
-
_this.col = 0;
|
|
49
|
-
_this.cellWidth = 0;
|
|
50
|
-
_this.cellHeight = 0;
|
|
51
|
-
_this.cellUsed = {};
|
|
52
|
-
_this.id2manPos = {};
|
|
53
|
-
/** 迭代结束的回调函数 */
|
|
54
|
-
_this.onLayoutEnd = function () { };
|
|
55
|
-
_this.updateCfg(options);
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
GridLayout.prototype.getDefaultCfg = function () {
|
|
59
|
-
return {
|
|
60
|
-
begin: [0, 0],
|
|
61
|
-
preventOverlap: true,
|
|
62
|
-
preventOverlapPadding: 10,
|
|
63
|
-
condense: false,
|
|
64
|
-
rows: undefined,
|
|
65
|
-
cols: undefined,
|
|
66
|
-
position: undefined,
|
|
67
|
-
sortBy: "degree",
|
|
68
|
-
nodeSize: 30
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* 执行布局
|
|
73
|
-
*/
|
|
74
|
-
GridLayout.prototype.execute = function () {
|
|
75
|
-
var self = this;
|
|
76
|
-
var nodes = self.nodes, edges = self.edges, begin = self.begin;
|
|
77
|
-
var n = nodes.length;
|
|
78
|
-
if (n === 0) {
|
|
79
|
-
if (self.onLayoutEnd)
|
|
80
|
-
self.onLayoutEnd();
|
|
81
|
-
return {
|
|
82
|
-
nodes: nodes,
|
|
83
|
-
edges: edges
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
if (n === 1) {
|
|
87
|
-
nodes[0].x = begin[0];
|
|
88
|
-
nodes[0].y = begin[1];
|
|
89
|
-
if (self.onLayoutEnd)
|
|
90
|
-
self.onLayoutEnd();
|
|
91
|
-
return {
|
|
92
|
-
nodes: nodes,
|
|
93
|
-
edges: edges,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
var sortBy = self.sortBy, width = self.width, height = self.height;
|
|
97
|
-
var condense = self.condense, preventOverlapPadding = self.preventOverlapPadding, preventOverlap = self.preventOverlap, paramNodeSpacing = self.nodeSpacing, paramNodeSize = self.nodeSize;
|
|
98
|
-
var layoutNodes = [];
|
|
99
|
-
nodes.forEach(function (node) {
|
|
100
|
-
layoutNodes.push(node);
|
|
101
|
-
});
|
|
102
|
-
var nodeIdxMap = {};
|
|
103
|
-
layoutNodes.forEach(function (node, i) {
|
|
104
|
-
nodeIdxMap[node.id] = i;
|
|
105
|
-
});
|
|
106
|
-
if (sortBy === "degree" ||
|
|
107
|
-
!(0, util_1.isString)(sortBy) ||
|
|
108
|
-
layoutNodes[0][sortBy] === undefined) {
|
|
109
|
-
sortBy = "degree";
|
|
110
|
-
if ((0, util_1.isNaN)(nodes[0].degree)) {
|
|
111
|
-
var values_1 = (0, util_1.getDegree)(layoutNodes.length, nodeIdxMap, edges);
|
|
112
|
-
layoutNodes.forEach(function (node, i) {
|
|
113
|
-
node.degree = values_1[i].all;
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
// sort nodes by value
|
|
118
|
-
layoutNodes.sort(function (n1, n2) { return n2[sortBy] - n1[sortBy]; });
|
|
119
|
-
if (!width && typeof window !== "undefined") {
|
|
120
|
-
width = window.innerWidth;
|
|
121
|
-
}
|
|
122
|
-
if (!height && typeof window !== "undefined") {
|
|
123
|
-
height = window.innerHeight;
|
|
124
|
-
}
|
|
125
|
-
var oRows = self.rows;
|
|
126
|
-
var oCols = self.cols != null ? self.cols : self.columns;
|
|
127
|
-
self.cells = n;
|
|
128
|
-
// if rows or columns were set in self, use those values
|
|
129
|
-
if (oRows != null && oCols != null) {
|
|
130
|
-
self.rows = oRows;
|
|
131
|
-
self.cols = oCols;
|
|
132
|
-
}
|
|
133
|
-
else if (oRows != null && oCols == null) {
|
|
134
|
-
self.rows = oRows;
|
|
135
|
-
self.cols = Math.ceil(self.cells / self.rows);
|
|
136
|
-
}
|
|
137
|
-
else if (oRows == null && oCols != null) {
|
|
138
|
-
self.cols = oCols;
|
|
139
|
-
self.rows = Math.ceil(self.cells / self.cols);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
// otherwise use the automatic values and adjust accordingly // otherwise use the automatic values and adjust accordingly
|
|
143
|
-
// width/height * splits^2 = cells where splits is number of times to split width
|
|
144
|
-
self.splits = Math.sqrt((self.cells * self.height) / self.width);
|
|
145
|
-
self.rows = Math.round(self.splits);
|
|
146
|
-
self.cols = Math.round((self.width / self.height) * self.splits);
|
|
147
|
-
}
|
|
148
|
-
self.rows = Math.max(self.rows, 1);
|
|
149
|
-
self.cols = Math.max(self.cols, 1);
|
|
150
|
-
if (self.cols * self.rows > self.cells) {
|
|
151
|
-
// otherwise use the automatic values and adjust accordingly
|
|
152
|
-
// if rounding was up, see if we can reduce rows or columns
|
|
153
|
-
var sm = self.small();
|
|
154
|
-
var lg = self.large();
|
|
155
|
-
// reducing the small side takes away the most cells, so try it first
|
|
156
|
-
if ((sm - 1) * lg >= self.cells) {
|
|
157
|
-
self.small(sm - 1);
|
|
158
|
-
}
|
|
159
|
-
else if ((lg - 1) * sm >= self.cells) {
|
|
160
|
-
self.large(lg - 1);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
// if rounding was too low, add rows or columns
|
|
165
|
-
while (self.cols * self.rows < self.cells) {
|
|
166
|
-
var sm = self.small();
|
|
167
|
-
var lg = self.large();
|
|
168
|
-
// try to add to larger side first (adds less in multiplication)
|
|
169
|
-
if ((lg + 1) * sm >= self.cells) {
|
|
170
|
-
self.large(lg + 1);
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
self.small(sm + 1);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
self.cellWidth = width / self.cols;
|
|
178
|
-
self.cellHeight = height / self.rows;
|
|
179
|
-
if (condense) {
|
|
180
|
-
self.cellWidth = 0;
|
|
181
|
-
self.cellHeight = 0;
|
|
182
|
-
}
|
|
183
|
-
if (preventOverlap || paramNodeSpacing) {
|
|
184
|
-
var nodeSpacing_1 = (0, util_1.getFuncByUnknownType)(10, paramNodeSpacing);
|
|
185
|
-
var nodeSize_1 = (0, util_1.getFuncByUnknownType)(30, paramNodeSize, false);
|
|
186
|
-
layoutNodes.forEach(function (node) {
|
|
187
|
-
if (!node.x || !node.y) {
|
|
188
|
-
// for bb
|
|
189
|
-
node.x = 0;
|
|
190
|
-
node.y = 0;
|
|
191
|
-
}
|
|
192
|
-
var res = nodeSize_1(node) || 30;
|
|
193
|
-
var nodeW;
|
|
194
|
-
var nodeH;
|
|
195
|
-
if ((0, util_1.isArray)(res)) {
|
|
196
|
-
nodeW = res[0];
|
|
197
|
-
nodeH = res[1];
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
nodeW = res;
|
|
201
|
-
nodeH = res;
|
|
202
|
-
}
|
|
203
|
-
var p = nodeSpacing_1 !== undefined ? nodeSpacing_1(node) : preventOverlapPadding;
|
|
204
|
-
var w = nodeW + p;
|
|
205
|
-
var h = nodeH + p;
|
|
206
|
-
self.cellWidth = Math.max(self.cellWidth, w);
|
|
207
|
-
self.cellHeight = Math.max(self.cellHeight, h);
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
self.cellUsed = {}; // e.g. 'c-0-2' => true
|
|
211
|
-
// to keep track of current cell position
|
|
212
|
-
self.row = 0;
|
|
213
|
-
self.col = 0;
|
|
214
|
-
// get a cache of all the manual positions
|
|
215
|
-
self.id2manPos = {};
|
|
216
|
-
for (var i = 0; i < layoutNodes.length; i++) {
|
|
217
|
-
var node = layoutNodes[i];
|
|
218
|
-
var rcPos = void 0;
|
|
219
|
-
if (self.position) {
|
|
220
|
-
rcPos = self.position(node);
|
|
221
|
-
}
|
|
222
|
-
if (rcPos && (rcPos.row !== undefined || rcPos.col !== undefined)) {
|
|
223
|
-
// must have at least row or col def'd
|
|
224
|
-
var pos = {
|
|
225
|
-
row: rcPos.row,
|
|
226
|
-
col: rcPos.col
|
|
227
|
-
};
|
|
228
|
-
if (pos.col === undefined) {
|
|
229
|
-
// find unused col
|
|
230
|
-
pos.col = 0;
|
|
231
|
-
while (self.used(pos.row, pos.col)) {
|
|
232
|
-
pos.col++;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
else if (pos.row === undefined) {
|
|
236
|
-
// find unused row
|
|
237
|
-
pos.row = 0;
|
|
238
|
-
while (self.used(pos.row, pos.col)) {
|
|
239
|
-
pos.row++;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
self.id2manPos[node.id] = pos;
|
|
243
|
-
self.use(pos.row, pos.col);
|
|
244
|
-
}
|
|
245
|
-
self.getPos(node);
|
|
246
|
-
}
|
|
247
|
-
if (self.onLayoutEnd)
|
|
248
|
-
self.onLayoutEnd();
|
|
249
|
-
return {
|
|
250
|
-
edges: edges,
|
|
251
|
-
nodes: layoutNodes
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
GridLayout.prototype.small = function (val) {
|
|
255
|
-
var self = this;
|
|
256
|
-
var res;
|
|
257
|
-
var rows = self.rows || 5;
|
|
258
|
-
var cols = self.cols || 5;
|
|
259
|
-
if (val == null) {
|
|
260
|
-
res = Math.min(rows, cols);
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
var min = Math.min(rows, cols);
|
|
264
|
-
if (min === self.rows) {
|
|
265
|
-
self.rows = val;
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
self.cols = val;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return res;
|
|
272
|
-
};
|
|
273
|
-
GridLayout.prototype.large = function (val) {
|
|
274
|
-
var self = this;
|
|
275
|
-
var res;
|
|
276
|
-
var rows = self.rows || 5;
|
|
277
|
-
var cols = self.cols || 5;
|
|
278
|
-
if (val == null) {
|
|
279
|
-
res = Math.max(rows, cols);
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
var max = Math.max(rows, cols);
|
|
283
|
-
if (max === self.rows) {
|
|
284
|
-
self.rows = val;
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
self.cols = val;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return res;
|
|
291
|
-
};
|
|
292
|
-
GridLayout.prototype.used = function (row, col) {
|
|
293
|
-
var self = this;
|
|
294
|
-
return self.cellUsed["c-".concat(row, "-").concat(col)] || false;
|
|
295
|
-
};
|
|
296
|
-
GridLayout.prototype.use = function (row, col) {
|
|
297
|
-
var self = this;
|
|
298
|
-
self.cellUsed["c-".concat(row, "-").concat(col)] = true;
|
|
299
|
-
};
|
|
300
|
-
GridLayout.prototype.moveToNextCell = function () {
|
|
301
|
-
var self = this;
|
|
302
|
-
var cols = self.cols || 5;
|
|
303
|
-
self.col++;
|
|
304
|
-
if (self.col >= cols) {
|
|
305
|
-
self.col = 0;
|
|
306
|
-
self.row++;
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
GridLayout.prototype.getPos = function (node) {
|
|
310
|
-
var self = this;
|
|
311
|
-
var begin = self.begin, cellWidth = self.cellWidth, cellHeight = self.cellHeight;
|
|
312
|
-
var x;
|
|
313
|
-
var y;
|
|
314
|
-
// see if we have a manual position set
|
|
315
|
-
var rcPos = self.id2manPos[node.id];
|
|
316
|
-
if (rcPos) {
|
|
317
|
-
x = rcPos.col * cellWidth + cellWidth / 2 + begin[0];
|
|
318
|
-
y = rcPos.row * cellHeight + cellHeight / 2 + begin[1];
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
// otherwise set automatically
|
|
322
|
-
while (self.used(self.row, self.col)) {
|
|
323
|
-
self.moveToNextCell();
|
|
324
|
-
}
|
|
325
|
-
x = self.col * cellWidth + cellWidth / 2 + begin[0];
|
|
326
|
-
y = self.row * cellHeight + cellHeight / 2 + begin[1];
|
|
327
|
-
self.use(self.row, self.col);
|
|
328
|
-
self.moveToNextCell();
|
|
329
|
-
}
|
|
330
|
-
node.x = x;
|
|
331
|
-
node.y = y;
|
|
332
|
-
};
|
|
333
|
-
GridLayout.prototype.getType = function () {
|
|
334
|
-
return "grid";
|
|
335
|
-
};
|
|
336
|
-
return GridLayout;
|
|
337
|
-
}(base_1.Base));
|
|
338
|
-
exports.GridLayout = GridLayout;
|
|
339
|
-
//# sourceMappingURL=grid.js.map
|
package/lib/layout/grid.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/layout/grid.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;AAEH,gCAAoF;AACpF,+BAA8B;AAe9B;;GAEG;AACH;IAAgC,8BAAI;IAoElC,oBAAY,OAA2B;QAAvC,YACE,iBAAO,SAER;QAtED,YAAY;QACL,WAAK,GAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAElC,0EAA0E;QACnE,oBAAc,GAAY,IAAI,CAAC;QAEtC,2DAA2D;QACpD,2BAAqB,GAAW,EAAE,CAAC;QAE1C,oEAAoE;QAC7D,cAAQ,GAAY,KAAK,CAAC;QAgBjC,sHAAsH;QAC/G,YAAM,GAAW,QAAQ,CAAC;QAI1B,WAAK,GAAY,EAAE,CAAC;QAEpB,WAAK,GAAW,EAAE,CAAC;QAEnB,WAAK,GAAW,GAAG,CAAC;QAEpB,YAAM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,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACtD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAE7B,IAAI,CAAC,cAAc,EAAE,CAAC;SACvB;QACD,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAEM,4BAAO,GAAd;QACE,OAAO,MAAM,CAAC;IAChB,CAAC;IACH,iBAAC;AAAD,CAAC,AA1XD,CAAgC,WAAI,GA0XnC;AA1XY,gCAAU"}
|
package/lib/layout/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GridLayout } from "./grid";
|
|
2
|
-
import { RandomLayout } from "./random";
|
|
3
|
-
import { GForceLayout } from "./gForce";
|
|
4
|
-
import { Force2Layout } from "./force2";
|
|
5
|
-
import { ForceLayout } from "./force";
|
|
6
|
-
import { CircularLayout } from "./circular";
|
|
7
|
-
import { DagreLayout } from "./dagre";
|
|
8
|
-
import { DagreCompoundLayout } from "./dagreCompound";
|
|
9
|
-
import { RadialLayout } from "./radial";
|
|
10
|
-
import { ConcentricLayout } from "./concentric";
|
|
11
|
-
import { MDSLayout } from "./mds";
|
|
12
|
-
import { FruchtermanLayout } from "./fruchterman";
|
|
13
|
-
import { FruchtermanGPULayout } from "./gpu/fruchterman";
|
|
14
|
-
import { GForceGPULayout } from "./gpu/gForce";
|
|
15
|
-
import { ComboForceLayout } from "./comboForce";
|
|
16
|
-
import { ComboCombinedLayout } from "./comboCombined";
|
|
17
|
-
import { ForceAtlas2Layout } from "./forceAtlas2";
|
|
18
|
-
import { ERLayout } from './er';
|
|
19
|
-
import { Layout, Layouts } from "./layout";
|
|
20
|
-
export { Layout, Layouts };
|
|
21
|
-
export { GridLayout, RandomLayout, GForceLayout, Force2Layout, ForceLayout, CircularLayout, DagreLayout, DagreCompoundLayout, RadialLayout, ConcentricLayout, MDSLayout, FruchtermanLayout, FruchtermanGPULayout, GForceGPULayout, ComboForceLayout, ComboCombinedLayout, ForceAtlas2Layout, ERLayout };
|
|
22
|
-
export * from "./types";
|
package/lib/layout/index.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ERLayout = exports.ForceAtlas2Layout = exports.ComboCombinedLayout = exports.ComboForceLayout = exports.GForceGPULayout = exports.FruchtermanGPULayout = exports.FruchtermanLayout = exports.MDSLayout = exports.ConcentricLayout = exports.RadialLayout = exports.DagreCompoundLayout = exports.DagreLayout = exports.CircularLayout = exports.ForceLayout = exports.Force2Layout = exports.GForceLayout = exports.RandomLayout = exports.GridLayout = exports.Layouts = exports.Layout = void 0;
|
|
18
|
-
var grid_1 = require("./grid");
|
|
19
|
-
Object.defineProperty(exports, "GridLayout", { enumerable: true, get: function () { return grid_1.GridLayout; } });
|
|
20
|
-
var random_1 = require("./random");
|
|
21
|
-
Object.defineProperty(exports, "RandomLayout", { enumerable: true, get: function () { return random_1.RandomLayout; } });
|
|
22
|
-
var gForce_1 = require("./gForce");
|
|
23
|
-
Object.defineProperty(exports, "GForceLayout", { enumerable: true, get: function () { return gForce_1.GForceLayout; } });
|
|
24
|
-
var force2_1 = require("./force2");
|
|
25
|
-
Object.defineProperty(exports, "Force2Layout", { enumerable: true, get: function () { return force2_1.Force2Layout; } });
|
|
26
|
-
var force_1 = require("./force");
|
|
27
|
-
Object.defineProperty(exports, "ForceLayout", { enumerable: true, get: function () { return force_1.ForceLayout; } });
|
|
28
|
-
var circular_1 = require("./circular");
|
|
29
|
-
Object.defineProperty(exports, "CircularLayout", { enumerable: true, get: function () { return circular_1.CircularLayout; } });
|
|
30
|
-
var dagre_1 = require("./dagre");
|
|
31
|
-
Object.defineProperty(exports, "DagreLayout", { enumerable: true, get: function () { return dagre_1.DagreLayout; } });
|
|
32
|
-
var dagreCompound_1 = require("./dagreCompound");
|
|
33
|
-
Object.defineProperty(exports, "DagreCompoundLayout", { enumerable: true, get: function () { return dagreCompound_1.DagreCompoundLayout; } });
|
|
34
|
-
var radial_1 = require("./radial");
|
|
35
|
-
Object.defineProperty(exports, "RadialLayout", { enumerable: true, get: function () { return radial_1.RadialLayout; } });
|
|
36
|
-
var concentric_1 = require("./concentric");
|
|
37
|
-
Object.defineProperty(exports, "ConcentricLayout", { enumerable: true, get: function () { return concentric_1.ConcentricLayout; } });
|
|
38
|
-
var mds_1 = require("./mds");
|
|
39
|
-
Object.defineProperty(exports, "MDSLayout", { enumerable: true, get: function () { return mds_1.MDSLayout; } });
|
|
40
|
-
var fruchterman_1 = require("./fruchterman");
|
|
41
|
-
Object.defineProperty(exports, "FruchtermanLayout", { enumerable: true, get: function () { return fruchterman_1.FruchtermanLayout; } });
|
|
42
|
-
var fruchterman_2 = require("./gpu/fruchterman");
|
|
43
|
-
Object.defineProperty(exports, "FruchtermanGPULayout", { enumerable: true, get: function () { return fruchterman_2.FruchtermanGPULayout; } });
|
|
44
|
-
var gForce_2 = require("./gpu/gForce");
|
|
45
|
-
Object.defineProperty(exports, "GForceGPULayout", { enumerable: true, get: function () { return gForce_2.GForceGPULayout; } });
|
|
46
|
-
var comboForce_1 = require("./comboForce");
|
|
47
|
-
Object.defineProperty(exports, "ComboForceLayout", { enumerable: true, get: function () { return comboForce_1.ComboForceLayout; } });
|
|
48
|
-
var comboCombined_1 = require("./comboCombined");
|
|
49
|
-
Object.defineProperty(exports, "ComboCombinedLayout", { enumerable: true, get: function () { return comboCombined_1.ComboCombinedLayout; } });
|
|
50
|
-
var forceAtlas2_1 = require("./forceAtlas2");
|
|
51
|
-
Object.defineProperty(exports, "ForceAtlas2Layout", { enumerable: true, get: function () { return forceAtlas2_1.ForceAtlas2Layout; } });
|
|
52
|
-
var er_1 = require("./er");
|
|
53
|
-
Object.defineProperty(exports, "ERLayout", { enumerable: true, get: function () { return er_1.ERLayout; } });
|
|
54
|
-
var layout_1 = require("./layout");
|
|
55
|
-
Object.defineProperty(exports, "Layout", { enumerable: true, get: function () { return layout_1.Layout; } });
|
|
56
|
-
Object.defineProperty(exports, "Layouts", { enumerable: true, get: function () { return layout_1.Layouts; } });
|
|
57
|
-
// types file
|
|
58
|
-
__exportStar(require("./types"), exports);
|
|
59
|
-
//# sourceMappingURL=index.js.map
|
package/lib/layout/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+BAAoC;AAyBlC,2FAzBO,iBAAU,OAyBP;AAxBZ,mCAAwC;AAyBtC,6FAzBO,qBAAY,OAyBP;AAxBd,mCAAwC;AAyBtC,6FAzBO,qBAAY,OAyBP;AAxBd,mCAAwC;AAyBtC,6FAzBO,qBAAY,OAyBP;AAxBd,iCAAsC;AAyBpC,4FAzBO,mBAAW,OAyBP;AAxBb,uCAA4C;AAyB1C,+FAzBO,yBAAc,OAyBP;AAxBhB,iCAAsC;AAyBpC,4FAzBO,mBAAW,OAyBP;AAxBb,iDAAsD;AAyBpD,oGAzBO,mCAAmB,OAyBP;AAxBrB,mCAAwC;AAyBtC,6FAzBO,qBAAY,OAyBP;AAxBd,2CAAgD;AAyB9C,iGAzBO,6BAAgB,OAyBP;AAxBlB,6BAAkC;AAyBhC,0FAzBO,eAAS,OAyBP;AAxBX,6CAAkD;AAyBhD,kGAzBO,+BAAiB,OAyBP;AAxBnB,iDAAyD;AAyBvD,qGAzBO,kCAAoB,OAyBP;AAxBtB,uCAA+C;AAyB7C,gGAzBO,wBAAe,OAyBP;AAxBjB,2CAAgD;AAyB9C,iGAzBO,6BAAgB,OAyBP;AAxBlB,iDAAsD;AAyBpD,oGAzBO,mCAAmB,OAyBP;AAxBrB,6CAAkD;AAyBhD,kGAzBO,+BAAiB,OAyBP;AAxBnB,2BAAgC;AAyB9B,yFAzBO,aAAQ,OAyBP;AAvBV,mCAA2C;AAElC,uFAFA,eAAM,OAEA;AAAE,wFAFA,gBAAO,OAEA;AAwBxB,aAAa;AACb,0CAAwB"}
|
package/lib/layout/layout.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Base } from "./base";
|
|
2
|
-
import { Model, ILayout, Node } from "./types";
|
|
3
|
-
interface DagreNodeData extends Node {
|
|
4
|
-
layer?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare class Layout {
|
|
7
|
-
readonly layoutInstance: Base;
|
|
8
|
-
constructor(options: ILayout.LayoutOptions);
|
|
9
|
-
layout(data: Model): Model;
|
|
10
|
-
updateCfg(cfg: ILayout.LayoutOptions): void;
|
|
11
|
-
init(data: Model): void;
|
|
12
|
-
/**
|
|
13
|
-
* correcting the layers on the node data
|
|
14
|
-
* if min(layer) <= 0, layers should begin from abs(min(layer)) + 1
|
|
15
|
-
* @param nodes
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
correctLayers(nodes: DagreNodeData[] | undefined): void;
|
|
19
|
-
execute(): void;
|
|
20
|
-
getDefaultCfg(): {};
|
|
21
|
-
destroy(): void;
|
|
22
|
-
}
|
|
23
|
-
export declare const Layouts: {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
package/lib/layout/layout.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Layouts = exports.Layout = void 0;
|
|
4
|
-
var registy_1 = require("../registy");
|
|
5
|
-
var grid_1 = require("./grid");
|
|
6
|
-
var random_1 = require("./random");
|
|
7
|
-
var force2_1 = require("./force2");
|
|
8
|
-
var gForce_1 = require("./gForce");
|
|
9
|
-
var force_1 = require("./force");
|
|
10
|
-
var circular_1 = require("./circular");
|
|
11
|
-
var dagre_1 = require("./dagre");
|
|
12
|
-
var radial_1 = require("./radial");
|
|
13
|
-
var concentric_1 = require("./concentric");
|
|
14
|
-
var mds_1 = require("./mds");
|
|
15
|
-
var fruchterman_1 = require("./fruchterman");
|
|
16
|
-
var fruchterman_2 = require("./gpu/fruchterman");
|
|
17
|
-
var gForce_2 = require("./gpu/gForce");
|
|
18
|
-
var comboForce_1 = require("./comboForce");
|
|
19
|
-
var comboCombined_1 = require("./comboCombined");
|
|
20
|
-
var forceAtlas2_1 = require("./forceAtlas2");
|
|
21
|
-
var er_1 = require("./er");
|
|
22
|
-
var dagreCompound_1 = require("./dagreCompound");
|
|
23
|
-
var util_1 = require("../util");
|
|
24
|
-
var Layout = /** @class */ (function () {
|
|
25
|
-
function Layout(options) {
|
|
26
|
-
var layoutClass = (0, registy_1.getLayoutByName)(options.type);
|
|
27
|
-
this.layoutInstance = new layoutClass(options);
|
|
28
|
-
}
|
|
29
|
-
Layout.prototype.layout = function (data) {
|
|
30
|
-
return this.layoutInstance.layout(data);
|
|
31
|
-
};
|
|
32
|
-
Layout.prototype.updateCfg = function (cfg) {
|
|
33
|
-
this.layoutInstance.updateCfg(cfg);
|
|
34
|
-
};
|
|
35
|
-
Layout.prototype.init = function (data) {
|
|
36
|
-
this.correctLayers(data.nodes);
|
|
37
|
-
this.layoutInstance.init(data);
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* correcting the layers on the node data
|
|
41
|
-
* if min(layer) <= 0, layers should begin from abs(min(layer)) + 1
|
|
42
|
-
* @param nodes
|
|
43
|
-
* @returns
|
|
44
|
-
*/
|
|
45
|
-
Layout.prototype.correctLayers = function (nodes) {
|
|
46
|
-
if (!(nodes === null || nodes === void 0 ? void 0 : nodes.length))
|
|
47
|
-
return;
|
|
48
|
-
var minLayer = Infinity;
|
|
49
|
-
var hasLayerNodes = [];
|
|
50
|
-
nodes.forEach(function (node) {
|
|
51
|
-
if ((0, util_1.isString)(node.layer)) {
|
|
52
|
-
node.layer = parseInt(node.layer, 10);
|
|
53
|
-
}
|
|
54
|
-
// keep node.layer === undefined for TS problem
|
|
55
|
-
if (node.layer === undefined || isNaN(node.layer))
|
|
56
|
-
return;
|
|
57
|
-
hasLayerNodes.push(node);
|
|
58
|
-
if (node.layer < minLayer)
|
|
59
|
-
minLayer = node.layer;
|
|
60
|
-
});
|
|
61
|
-
if (minLayer <= 0) {
|
|
62
|
-
var layerOffset_1 = Math.abs(minLayer) + 1;
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
hasLayerNodes.forEach(function (node) { return node.layer += layerOffset_1; });
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
Layout.prototype.execute = function () {
|
|
68
|
-
this.layoutInstance.execute();
|
|
69
|
-
};
|
|
70
|
-
Layout.prototype.getDefaultCfg = function () {
|
|
71
|
-
return this.layoutInstance.getDefaultCfg();
|
|
72
|
-
};
|
|
73
|
-
Layout.prototype.destroy = function () {
|
|
74
|
-
return this.layoutInstance.destroy();
|
|
75
|
-
};
|
|
76
|
-
return Layout;
|
|
77
|
-
}());
|
|
78
|
-
exports.Layout = Layout;
|
|
79
|
-
// FIXME
|
|
80
|
-
// FOR G6
|
|
81
|
-
// tslint:disable-next-line
|
|
82
|
-
exports.Layouts = {
|
|
83
|
-
force: force_1.ForceLayout,
|
|
84
|
-
fruchterman: fruchterman_1.FruchtermanLayout,
|
|
85
|
-
forceAtlas2: forceAtlas2_1.ForceAtlas2Layout,
|
|
86
|
-
gForce: gForce_1.GForceLayout,
|
|
87
|
-
force2: force2_1.Force2Layout,
|
|
88
|
-
dagre: dagre_1.DagreLayout,
|
|
89
|
-
dagreCompound: dagreCompound_1.DagreCompoundLayout,
|
|
90
|
-
circular: circular_1.CircularLayout,
|
|
91
|
-
radial: radial_1.RadialLayout,
|
|
92
|
-
concentric: concentric_1.ConcentricLayout,
|
|
93
|
-
grid: grid_1.GridLayout,
|
|
94
|
-
mds: mds_1.MDSLayout,
|
|
95
|
-
comboForce: comboForce_1.ComboForceLayout,
|
|
96
|
-
comboCombined: comboCombined_1.ComboCombinedLayout,
|
|
97
|
-
random: random_1.RandomLayout,
|
|
98
|
-
'gForce-gpu': gForce_2.GForceGPULayout,
|
|
99
|
-
'fruchterman-gpu': fruchterman_2.FruchtermanGPULayout,
|
|
100
|
-
er: er_1.ERLayout,
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=layout.js.map
|
package/lib/layout/layout.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/layout/layout.ts"],"names":[],"mappings":";;;AAEA,sCAA6C;AAC7C,+BAAoC;AACpC,mCAAwC;AACxC,mCAAwC;AACxC,mCAAwC;AACxC,iCAAsC;AACtC,uCAA4C;AAC5C,iCAAsC;AACtC,mCAAwC;AACxC,2CAAgD;AAChD,6BAAkC;AAClC,6CAAkD;AAClD,iDAAyD;AACzD,uCAA+C;AAC/C,2CAAgD;AAChD,iDAAsD;AACtD,6CAAkD;AAClD,2BAAgC;AAChC,iDAAsD;AACtD,gCAAmC;AAMnC;IAGE,gBAAY,OAA8B;QACxC,IAAM,WAAW,GAAG,IAAA,yBAAe,EAAC,OAAO,CAAC,IAAc,CAAC,CAAC;Q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