@deck.gl-community/graph-layers 9.2.0-beta.3 → 9.2.0-beta.5
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/dist/_deprecated/old-constants.d.ts +1 -0
- package/dist/_deprecated/old-constants.js +1 -0
- package/dist/core/cache.d.ts +1 -0
- package/dist/core/cache.js +1 -0
- package/dist/core/constants.d.ts +2 -1
- package/dist/core/constants.js +1 -0
- package/dist/core/graph-engine.d.ts +5 -4
- package/dist/core/graph-engine.js +6 -5
- package/dist/core/graph-layout.d.ts +2 -1
- package/dist/core/graph-layout.js +2 -1
- package/dist/core/interaction-manager.d.ts +4 -3
- package/dist/core/interaction-manager.js +3 -2
- package/dist/graph/arrow-graph.d.ts +6 -5
- package/dist/graph/arrow-graph.js +6 -5
- package/dist/graph/classic-graph.d.ts +6 -5
- package/dist/graph/classic-graph.js +7 -6
- package/dist/graph/edge.d.ts +3 -2
- package/dist/graph/edge.js +1 -0
- package/dist/graph/functions/arrow-utils.d.ts +1 -0
- package/dist/graph/functions/arrow-utils.js +1 -0
- package/dist/graph/functions/create-graph-from-data.d.ts +3 -2
- package/dist/graph/functions/create-graph-from-data.js +4 -3
- package/dist/graph/graph-normalization.d.ts +2 -1
- package/dist/graph/graph-normalization.js +1 -0
- package/dist/graph/graph.d.ts +2 -1
- package/dist/graph/graph.js +1 -0
- package/dist/graph/node.d.ts +3 -2
- package/dist/graph/node.js +1 -0
- package/dist/graph-data/arrow-graph-data-builder.d.ts +2 -1
- package/dist/graph-data/arrow-graph-data-builder.js +2 -1
- package/dist/graph-data/graph-data-builder.d.ts +2 -1
- package/dist/graph-data/graph-data-builder.js +1 -0
- package/dist/graph-data/graph-data.d.ts +2 -1
- package/dist/graph-data/graph-data.js +1 -0
- package/dist/graph-data/plain-graph-data-builder.d.ts +3 -2
- package/dist/graph-data/plain-graph-data-builder.js +2 -1
- package/dist/graph-style-schema.cdn.js +1 -1
- package/dist/graph-style-schema.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +36 -35
- package/dist/index.js +29 -28
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer-fragment.glsl.d.ts +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer-fragment.glsl.js +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex-tf.glsl.d.ts +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex-tf.glsl.js +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex.glsl.d.ts +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex.glsl.js +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer.d.ts +1 -0
- package/dist/layers/common-layers/flow-path-layer/flow-path-layer.js +1 -0
- package/dist/layers/common-layers/grid-layer/grid-layer.d.ts +1 -0
- package/dist/layers/common-layers/grid-layer/grid-layer.js +1 -0
- package/dist/layers/common-layers/marker-layer/atlas-data-url.d.ts +1 -0
- package/dist/layers/common-layers/marker-layer/atlas-data-url.js +1 -0
- package/dist/layers/common-layers/marker-layer/marker-layer.d.ts +1 -0
- package/dist/layers/common-layers/marker-layer/marker-layer.js +3 -2
- package/dist/layers/common-layers/marker-layer/marker-list.d.ts +1 -0
- package/dist/layers/common-layers/marker-layer/marker-list.js +1 -0
- package/dist/layers/common-layers/marker-layer/marker-mapping.d.ts +1 -0
- package/dist/layers/common-layers/marker-layer/marker-mapping.js +1 -0
- package/dist/layers/common-layers/spline-layer/spline-layer.d.ts +1 -0
- package/dist/layers/common-layers/spline-layer/spline-layer.js +1 -0
- package/dist/layers/common-layers/zoomable-text-layer/zoomable-text-layer.d.ts +1 -0
- package/dist/layers/common-layers/zoomable-text-layer/zoomable-text-layer.js +1 -0
- package/dist/layers/edge-attachment-helper.d.ts +4 -3
- package/dist/layers/edge-attachment-helper.js +3 -2
- package/dist/layers/edge-layer.d.ts +1 -0
- package/dist/layers/edge-layer.js +4 -3
- package/dist/layers/edge-layers/arrow-2d-geometry.d.ts +1 -0
- package/dist/layers/edge-layers/arrow-2d-geometry.js +1 -0
- package/dist/layers/edge-layers/curved-edge-layer.d.ts +2 -1
- package/dist/layers/edge-layers/curved-edge-layer.js +2 -1
- package/dist/layers/edge-layers/edge-arrow-layer.d.ts +1 -0
- package/dist/layers/edge-layers/edge-arrow-layer.js +2 -1
- package/dist/layers/edge-layers/edge-label-layer.d.ts +2 -1
- package/dist/layers/edge-layers/edge-label-layer.js +2 -1
- package/dist/layers/edge-layers/flow-layer.d.ts +2 -1
- package/dist/layers/edge-layers/flow-layer.js +2 -1
- package/dist/layers/edge-layers/path-edge-layer.d.ts +1 -0
- package/dist/layers/edge-layers/path-edge-layer.js +1 -0
- package/dist/layers/edge-layers/straight-line-edge-layer.d.ts +1 -0
- package/dist/layers/edge-layers/straight-line-edge-layer.js +1 -0
- package/dist/layers/graph-layer.d.ts +12 -11
- package/dist/layers/graph-layer.js +25 -24
- package/dist/layers/node-layers/circle-layer.d.ts +1 -0
- package/dist/layers/node-layers/circle-layer.js +1 -0
- package/dist/layers/node-layers/image-layer.d.ts +1 -0
- package/dist/layers/node-layers/image-layer.js +1 -0
- package/dist/layers/node-layers/label-layer.d.ts +2 -1
- package/dist/layers/node-layers/label-layer.js +2 -1
- package/dist/layers/node-layers/path-rounded-rectangle-layer.d.ts +1 -0
- package/dist/layers/node-layers/path-rounded-rectangle-layer.js +2 -1
- package/dist/layers/node-layers/rectangle-layer.d.ts +1 -0
- package/dist/layers/node-layers/rectangle-layer.js +1 -0
- package/dist/layers/node-layers/rounded-rectangle-layer-fragment.d.ts +1 -0
- package/dist/layers/node-layers/rounded-rectangle-layer-fragment.js +1 -0
- package/dist/layers/node-layers/rounded-rectangle-layer.d.ts +2 -1
- package/dist/layers/node-layers/rounded-rectangle-layer.js +3 -2
- package/dist/layers/node-layers/zoomable-marker-layer.d.ts +2 -1
- package/dist/layers/node-layers/zoomable-marker-layer.js +2 -1
- package/dist/layouts/d3-dag/collapsable-d3-dag-layout.d.ts +3 -2
- package/dist/layouts/d3-dag/collapsable-d3-dag-layout.js +3 -2
- package/dist/layouts/d3-dag/d3-dag-layout.d.ts +3 -2
- package/dist/layouts/d3-dag/d3-dag-layout.js +4 -3
- package/dist/layouts/d3-force/d3-force-layout.d.ts +3 -2
- package/dist/layouts/d3-force/d3-force-layout.js +3 -2
- package/dist/layouts/d3-force/worker.d.ts +1 -0
- package/dist/layouts/d3-force/worker.js +1 -0
- package/dist/layouts/experimental/force-multi-graph-layout.d.ts +3 -2
- package/dist/layouts/experimental/force-multi-graph-layout.js +2 -1
- package/dist/layouts/experimental/hive-plot-layout.d.ts +3 -2
- package/dist/layouts/experimental/hive-plot-layout.js +2 -1
- package/dist/layouts/experimental/radial-layout.d.ts +3 -2
- package/dist/layouts/experimental/radial-layout.js +2 -1
- package/dist/layouts/gpu-force/gpu-force-layout.d.ts +3 -2
- package/dist/layouts/gpu-force/gpu-force-layout.js +2 -1
- package/dist/layouts/gpu-force/worker.d.ts +1 -0
- package/dist/layouts/gpu-force/worker.js +1 -0
- package/dist/layouts/simple-layout.d.ts +3 -2
- package/dist/layouts/simple-layout.js +2 -1
- package/dist/loaders/dot-graph-loader.d.ts +2 -1
- package/dist/loaders/dot-graph-loader.js +3 -2
- package/dist/loaders/json-graph-loader.d.ts +1 -0
- package/dist/loaders/json-graph-loader.js +2 -1
- package/dist/loaders/parsers/edge-parsers.d.ts +2 -1
- package/dist/loaders/parsers/edge-parsers.js +2 -1
- package/dist/loaders/parsers/node-parsers.d.ts +2 -1
- package/dist/loaders/parsers/node-parsers.js +2 -1
- package/dist/loaders/parsers/parse-json-graph.d.ts +3 -2
- package/dist/loaders/parsers/parse-json-graph.js +5 -4
- package/dist/style/graph-layer-stylesheet.d.ts +3 -2
- package/dist/style/graph-layer-stylesheet.js +1 -0
- package/dist/style/graph-style-accessor-map.d.ts +1 -0
- package/dist/style/graph-style-accessor-map.js +1 -0
- package/dist/style/graph-style-engine.d.ts +3 -2
- package/dist/style/graph-style-engine.js +5 -4
- package/dist/style/graph-stylesheet.schema.d.ts +1 -0
- package/dist/style/graph-stylesheet.schema.js +1 -0
- package/dist/style/style-property.d.ts +1 -0
- package/dist/style/style-property.js +2 -1
- package/dist/style/stylesheet-engine.d.ts +2 -1
- package/dist/style/stylesheet-engine.js +3 -2
- package/dist/utils/collapsed-chains.d.ts +3 -2
- package/dist/utils/collapsed-chains.js +1 -0
- package/dist/utils/layer-utils.d.ts +1 -0
- package/dist/utils/layer-utils.js +1 -0
- package/dist/utils/log.d.ts +1 -0
- package/dist/utils/log.js +1 -0
- package/dist/utils/node-boundary.d.ts +1 -0
- package/dist/utils/node-boundary.js +1 -0
- package/dist/utils/polygon-calculations.d.ts +1 -0
- package/dist/utils/polygon-calculations.js +1 -0
- package/dist/utils/rank-grid.d.ts +2 -1
- package/dist/utils/rank-grid.js +1 -0
- package/package.json +9 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CompositeLayer } from '@deck.gl/core';
|
|
2
|
-
import { ZoomableTextLayer } from
|
|
2
|
+
import { ZoomableTextLayer } from "../common-layers/zoomable-text-layer/zoomable-text-layer.js";
|
|
3
3
|
export declare class LabelLayer extends CompositeLayer {
|
|
4
4
|
static layerName: string;
|
|
5
5
|
renderLayers(): ZoomableTextLayer[];
|
|
6
6
|
}
|
|
7
|
+
//# sourceMappingURL=label-layer.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import { CompositeLayer } from '@deck.gl/core';
|
|
5
|
-
import { ZoomableTextLayer } from
|
|
5
|
+
import { ZoomableTextLayer } from "../common-layers/zoomable-text-layer/zoomable-text-layer.js";
|
|
6
6
|
export class LabelLayer extends CompositeLayer {
|
|
7
7
|
static layerName = 'LabelLayer';
|
|
8
8
|
renderLayers() {
|
|
@@ -21,3 +21,4 @@ export class LabelLayer extends CompositeLayer {
|
|
|
21
21
|
];
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
//# sourceMappingURL=label-layer.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import { CompositeLayer } from '@deck.gl/core';
|
|
5
5
|
import { PolygonLayer } from '@deck.gl/layers';
|
|
6
|
-
import { generateRoundedCorners } from
|
|
6
|
+
import { generateRoundedCorners } from "../../utils/polygon-calculations.js";
|
|
7
7
|
const generateRoundedRectangle = (node, { getWidth, getHeight, getPosition, getCornerRadius }) => {
|
|
8
8
|
const pos = getPosition(node);
|
|
9
9
|
const width = typeof getWidth === 'function' ? getWidth(node) : getWidth;
|
|
@@ -44,3 +44,4 @@ export class PathBasedRoundedRectangleLayer extends CompositeLayer {
|
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
//# sourceMappingURL=path-rounded-rectangle-layer.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare const fs = "#define SHADER_NAME rounded-rectangle-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vFillColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n\n float distToCenter = length(unitPosition);\n\n /* Calculate the cutoff radius for the rounded corners */\n float threshold = sqrt(2.0) * (1.0 - roundedRectangle.cornerRadius) + 1.0 * roundedRectangle.cornerRadius;\n if (distToCenter <= threshold) {\n gl_FragColor = vFillColor;\n } else {\n discard;\n }\n\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n}\n";
|
|
2
|
+
//# sourceMappingURL=rounded-rectangle-layer-fragment.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RectangleLayer } from
|
|
1
|
+
import { RectangleLayer } from "./rectangle-layer.js";
|
|
2
2
|
export type RoundedRectangleProps = {
|
|
3
3
|
cornerRadius: number;
|
|
4
4
|
};
|
|
@@ -15,3 +15,4 @@ export declare class RoundedRectangleLayer extends RectangleLayer {
|
|
|
15
15
|
draw(props: any): void;
|
|
16
16
|
getShaders(): any;
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=rounded-rectangle-layer.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { fs } from
|
|
5
|
-
import { RectangleLayer } from
|
|
4
|
+
import { fs } from "./rounded-rectangle-layer-fragment.js";
|
|
5
|
+
import { RectangleLayer } from "./rectangle-layer.js";
|
|
6
6
|
const uniformBlock = `\
|
|
7
7
|
uniform roundedRectangleUniforms {
|
|
8
8
|
float cornerRadius;
|
|
@@ -40,3 +40,4 @@ RoundedRectangleLayer.defaultProps = {
|
|
|
40
40
|
// 0 - rectangle. 1 - circle.
|
|
41
41
|
cornerRadius: 0.1
|
|
42
42
|
};
|
|
43
|
+
//# sourceMappingURL=rounded-rectangle-layer.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CompositeLayer } from '@deck.gl/core';
|
|
2
|
-
import { MarkerLayer } from
|
|
2
|
+
import { MarkerLayer } from "../common-layers/marker-layer/marker-layer.js";
|
|
3
3
|
export declare class ZoomableMarkerLayer extends CompositeLayer {
|
|
4
4
|
static layerName: string;
|
|
5
5
|
shouldUpdateState({ props, changeFlags }: {
|
|
@@ -8,3 +8,4 @@ export declare class ZoomableMarkerLayer extends CompositeLayer {
|
|
|
8
8
|
}): any;
|
|
9
9
|
renderLayers(): MarkerLayer[];
|
|
10
10
|
}
|
|
11
|
+
//# sourceMappingURL=zoomable-marker-layer.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import { CompositeLayer } from '@deck.gl/core';
|
|
5
|
-
import { MarkerLayer } from
|
|
5
|
+
import { MarkerLayer } from "../common-layers/marker-layer/marker-layer.js";
|
|
6
6
|
export class ZoomableMarkerLayer extends CompositeLayer {
|
|
7
7
|
static layerName = 'ZoomableMarkerLayer';
|
|
8
8
|
shouldUpdateState({ props, changeFlags }) {
|
|
@@ -38,3 +38,4 @@ export class ZoomableMarkerLayer extends CompositeLayer {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
//# sourceMappingURL=zoomable-marker-layer.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Graph } from
|
|
2
|
-
import { D3DagLayout, type D3DagLayoutProps } from
|
|
1
|
+
import type { Graph } from "../../graph/graph.js";
|
|
2
|
+
import { D3DagLayout, type D3DagLayoutProps } from "./d3-dag-layout.js";
|
|
3
3
|
export type CollapsableD3DagLayoutProps = D3DagLayoutProps & {
|
|
4
4
|
/** Whether to collapse linear chains of nodes into a single representative. */
|
|
5
5
|
collapseLinearChains?: boolean;
|
|
@@ -22,3 +22,4 @@ export declare class CollapsableD3DagLayout extends D3DagLayout<CollapsableD3Dag
|
|
|
22
22
|
private _createChainId;
|
|
23
23
|
private _isChainCollapsed;
|
|
24
24
|
}
|
|
25
|
+
//# sourceMappingURL=collapsable-d3-dag-layout.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { log } from
|
|
5
|
-
import { D3DagLayout } from
|
|
4
|
+
import { log } from "../../utils/log.js";
|
|
5
|
+
import { D3DagLayout } from "./d3-dag-layout.js";
|
|
6
6
|
export class CollapsableD3DagLayout extends D3DagLayout {
|
|
7
7
|
static defaultProps = {
|
|
8
8
|
...D3DagLayout.defaultProps,
|
|
@@ -249,3 +249,4 @@ export class CollapsableD3DagLayout extends D3DagLayout {
|
|
|
249
249
|
return this._collapsedChainState.get(chainId) ?? collapseDefault;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
+
//# sourceMappingURL=collapsable-d3-dag-layout.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../../graph/graph.js";
|
|
3
3
|
import { coordCenter, coordGreedy, coordQuad, coordSimplex, coordTopological, decrossDfs, decrossOpt, decrossTwoLayer, layeringLongestPath, layeringSimplex, layeringTopological, type DefaultGrid, type DefaultSugiyama, type DefaultZherebko, type LayoutResult, type MutGraph, type NodeSize } from 'd3-dag';
|
|
4
4
|
export type D3DagLayoutProps = GraphLayoutProps & {
|
|
5
5
|
/** Which high-level layout operator to use. */
|
|
@@ -100,3 +100,4 @@ export declare class D3DagLayout<PropsT extends D3DagLayoutProps = D3DagLayoutPr
|
|
|
100
100
|
protected _fromDagId(id: string): string | number;
|
|
101
101
|
}
|
|
102
102
|
export {};
|
|
103
|
+
//# sourceMappingURL=d3-dag-layout.d.ts.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
/* eslint-disable no-continue, complexity, max-statements */
|
|
5
|
-
import { GraphLayout } from
|
|
6
|
-
import { Node } from
|
|
5
|
+
import { GraphLayout } from "../../core/graph-layout.js";
|
|
6
|
+
import { Node } from "../../graph/node.js";
|
|
7
7
|
import { coordCenter, coordGreedy, coordQuad, coordSimplex, coordTopological, decrossDfs, decrossOpt, decrossTwoLayer, graph as createDagGraph, graphConnect, graphStratify, grid, layeringLongestPath, layeringSimplex, layeringTopological, sugiyama, zherebko } from 'd3-dag';
|
|
8
|
-
import { log } from
|
|
8
|
+
import { log } from "../../utils/log.js";
|
|
9
9
|
const DAG_ID_SEPARATOR = '::';
|
|
10
10
|
const DEFAULT_NODE_SIZE = [140, 120];
|
|
11
11
|
const DEFAULT_GAP = [0, 0];
|
|
@@ -529,3 +529,4 @@ export class D3DagLayout extends GraphLayout {
|
|
|
529
529
|
return this._stringIdLookup.get(id) ?? id;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
+
//# sourceMappingURL=d3-dag-layout.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../../graph/graph.js";
|
|
3
3
|
export type D3ForceLayoutOptions = GraphLayoutProps & {
|
|
4
4
|
alpha?: number;
|
|
5
5
|
resumeAlpha?: number;
|
|
@@ -44,3 +44,4 @@ export declare class D3ForceLayout extends GraphLayout<D3ForceLayoutOptions> {
|
|
|
44
44
|
unlockNodePosition: (node: NodeInterface) => void;
|
|
45
45
|
protected _updateBounds(): void;
|
|
46
46
|
}
|
|
47
|
+
//# sourceMappingURL=d3-force-layout.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GraphLayout } from
|
|
5
|
-
import { log } from
|
|
4
|
+
import { GraphLayout } from "../../core/graph-layout.js";
|
|
5
|
+
import { log } from "../../utils/log.js";
|
|
6
6
|
export class D3ForceLayout extends GraphLayout {
|
|
7
7
|
static defaultProps = {
|
|
8
8
|
...GraphLayout.defaultProps,
|
|
@@ -149,3 +149,4 @@ export class D3ForceLayout extends GraphLayout {
|
|
|
149
149
|
this._bounds = this._calculateBounds(positions);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
//# sourceMappingURL=d3-force-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=worker.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../../graph/graph.js";
|
|
3
3
|
import * as d3 from 'd3-force';
|
|
4
4
|
export type ForceMultiGraphLayoutProps = GraphLayoutProps & {
|
|
5
5
|
alpha?: number;
|
|
@@ -46,3 +46,4 @@ export declare class ForceMultiGraphLayout extends GraphLayout<ForceMultiGraphLa
|
|
|
46
46
|
lockNodePosition: (node: NodeInterface, x: number, y: number) => void;
|
|
47
47
|
protected _updateBounds(): void;
|
|
48
48
|
}
|
|
49
|
+
//# sourceMappingURL=force-multi-graph-layout.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GraphLayout } from
|
|
4
|
+
import { GraphLayout } from "../../core/graph-layout.js";
|
|
5
5
|
import * as d3 from 'd3-force';
|
|
6
6
|
export class ForceMultiGraphLayout extends GraphLayout {
|
|
7
7
|
static defaultProps = {
|
|
@@ -238,3 +238,4 @@ function computeControlPoint(source, target, direction, offset) {
|
|
|
238
238
|
midPoint[1] + normalized[1] * offset * direction
|
|
239
239
|
];
|
|
240
240
|
}
|
|
241
|
+
//# sourceMappingURL=force-multi-graph-layout.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../../graph/graph.js";
|
|
3
3
|
export type HivePlotLayoutProps = GraphLayoutProps & {
|
|
4
4
|
innerRadius?: number;
|
|
5
5
|
outerRadius?: number;
|
|
@@ -38,3 +38,4 @@ export declare class HivePlotLayout extends GraphLayout<HivePlotLayoutProps> {
|
|
|
38
38
|
lockNodePosition: (node: NodeInterface, x: number, y: number) => void;
|
|
39
39
|
protected _updateBounds(): void;
|
|
40
40
|
}
|
|
41
|
+
//# sourceMappingURL=hive-plot-layout.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GraphLayout } from
|
|
4
|
+
import { GraphLayout } from "../../core/graph-layout.js";
|
|
5
5
|
export class HivePlotLayout extends GraphLayout {
|
|
6
6
|
static defaultProps = {
|
|
7
7
|
...GraphLayout.defaultProps,
|
|
@@ -145,3 +145,4 @@ function computeControlPoint({ sourcePosition, sourceNodeAxis, targetPosition, t
|
|
|
145
145
|
midPoint[1] + normalized[1] * offset * direction
|
|
146
146
|
];
|
|
147
147
|
}
|
|
148
|
+
//# sourceMappingURL=hive-plot-layout.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../../graph/graph.js";
|
|
3
3
|
export type RadialLayoutProps = GraphLayoutProps & {
|
|
4
4
|
radius?: number;
|
|
5
5
|
tree?: any;
|
|
@@ -34,3 +34,4 @@ export declare class RadialLayout extends GraphLayout<RadialLayoutProps> {
|
|
|
34
34
|
lockNodePosition: (node: NodeInterface, x: number, y: number) => void;
|
|
35
35
|
protected _updateBounds(): void;
|
|
36
36
|
}
|
|
37
|
+
//# sourceMappingURL=radial-layout.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GraphLayout } from
|
|
4
|
+
import { GraphLayout } from "../../core/graph-layout.js";
|
|
5
5
|
const getTreeNode = (nodeId, nodeMap) => {
|
|
6
6
|
const node = nodeMap[nodeId];
|
|
7
7
|
if (node) {
|
|
@@ -185,3 +185,4 @@ function rotate(cx, cy, x, y, angle) {
|
|
|
185
185
|
const ny = cos * (y - cy) - sin * (x - cx) + cy;
|
|
186
186
|
return [nx, ny];
|
|
187
187
|
}
|
|
188
|
+
//# sourceMappingURL=radial-layout.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../../graph/graph.js";
|
|
3
3
|
export type GPUForceLayoutOptions = GraphLayoutProps & {
|
|
4
4
|
alpha?: number;
|
|
5
5
|
resumeAlpha?: number;
|
|
@@ -44,3 +44,4 @@ export declare class GPUForceLayout extends GraphLayout<GPUForceLayoutOptions> {
|
|
|
44
44
|
unlockNodePosition: (node: NodeInterface) => void;
|
|
45
45
|
protected _updateBounds(): void;
|
|
46
46
|
}
|
|
47
|
+
//# sourceMappingURL=gpu-force-layout.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GraphLayout } from
|
|
4
|
+
import { GraphLayout } from "../../core/graph-layout.js";
|
|
5
5
|
/**
|
|
6
6
|
* @todo this layout should be updated with the organizational and logic improvements made in d3-force
|
|
7
7
|
*/
|
|
@@ -245,3 +245,4 @@ export class GPUForceLayout extends GraphLayout {
|
|
|
245
245
|
this._bounds = this._calculateBounds(positions);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
//# sourceMappingURL=gpu-force-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=worker.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphLayout, GraphLayoutProps } from
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
1
|
+
import { GraphLayout, GraphLayoutProps } from "../core/graph-layout.js";
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../graph/graph.js";
|
|
3
3
|
export type SimpleLayoutProps = GraphLayoutProps & {
|
|
4
4
|
/** The accessor lets the application supply the position ([x, y]) of each node. */
|
|
5
5
|
nodePositionAccessor?: (node: NodeInterface) => [number, number];
|
|
@@ -30,3 +30,4 @@ export declare class SimpleLayout extends GraphLayout<SimpleLayoutProps> {
|
|
|
30
30
|
_notifyLayoutComplete(): void;
|
|
31
31
|
protected _updateBounds(): void;
|
|
32
32
|
}
|
|
33
|
+
//# sourceMappingURL=simple-layout.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GraphLayout } from
|
|
4
|
+
import { GraphLayout } from "../core/graph-layout.js";
|
|
5
5
|
/** A basic layout where the application controls positions of each node */
|
|
6
6
|
export class SimpleLayout extends GraphLayout {
|
|
7
7
|
static defaultProps = {
|
|
@@ -71,3 +71,4 @@ export class SimpleLayout extends GraphLayout {
|
|
|
71
71
|
this._bounds = this._calculateBounds(positions);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
//# sourceMappingURL=simple-layout.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
-
import type { ArrowGraphData } from
|
|
2
|
+
import type { ArrowGraphData } from "../graph-data/graph-data.js";
|
|
3
3
|
type DOTAttributeMap = Record<string, unknown>;
|
|
4
4
|
type ParsedSubgraph = {
|
|
5
5
|
id: string;
|
|
@@ -23,3 +23,4 @@ export declare const DOTGraphLoader: any;
|
|
|
23
23
|
export declare function loadDOTGraph(dot: string, options?: DOTGraphParserOptions): ArrowGraphData;
|
|
24
24
|
export declare function parseDOTToArrowGraphData(dot: string, options?: DOTGraphParserOptions): ArrowGraphData;
|
|
25
25
|
export {};
|
|
26
|
+
//# sourceMappingURL=dot-graph-loader.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ArrowGraphDataBuilder } from
|
|
4
|
+
import { ArrowGraphDataBuilder } from "../graph-data/arrow-graph-data-builder.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof
|
|
7
|
+
const VERSION = typeof "9.2.0-beta.5" !== 'undefined' ? "9.2.0-beta.5" : 'latest';
|
|
8
8
|
export const DOTGraphLoader = {
|
|
9
9
|
dataType: null,
|
|
10
10
|
batchType: null,
|
|
@@ -666,3 +666,4 @@ function deriveDirectedFlag(attributes, defaultDirected) {
|
|
|
666
666
|
}
|
|
667
667
|
return defaultDirected;
|
|
668
668
|
}
|
|
669
|
+
//# sourceMappingURL=dot-graph-loader.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// import {PlainGraphDataBuilder} from '../graph-data/plain-graph-data-builder';
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof
|
|
7
|
+
const VERSION = typeof "9.2.0-beta.5" !== 'undefined' ? "9.2.0-beta.5" : 'latest';
|
|
8
8
|
export const JSONGraphLoader = {
|
|
9
9
|
dataType: null,
|
|
10
10
|
batchType: null,
|
|
@@ -29,3 +29,4 @@ export const JSONGraphLoader = {
|
|
|
29
29
|
// return loadSimpleJSONGraph(text, parseOptions);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
+
//# sourceMappingURL=json-graph-loader.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { error } from
|
|
4
|
+
import { error } from "../../utils/log.js";
|
|
5
5
|
export function basicEdgeParser(edge) {
|
|
6
6
|
const { id, directed, sourceId, targetId } = edge;
|
|
7
7
|
if (sourceId === undefined || targetId === undefined) {
|
|
@@ -15,3 +15,4 @@ export function basicEdgeParser(edge) {
|
|
|
15
15
|
targetId
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=edge-parsers.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { error } from
|
|
4
|
+
import { error } from "../../utils/log.js";
|
|
5
5
|
export function basicNodeParser(node) {
|
|
6
6
|
if (node.id === undefined) {
|
|
7
7
|
error('Invalid node: id is missing.');
|
|
@@ -9,3 +9,4 @@ export function basicNodeParser(node) {
|
|
|
9
9
|
}
|
|
10
10
|
return { id: node.id };
|
|
11
11
|
}
|
|
12
|
+
//# sourceMappingURL=node-parsers.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NodeState, EdgeState } from
|
|
2
|
-
import type { PlainGraphData } from
|
|
1
|
+
import type { NodeState, EdgeState } from "../../core/constants.js";
|
|
2
|
+
import type { PlainGraphData } from "../../graph-data/graph-data.js";
|
|
3
3
|
type GraphJSON = {
|
|
4
4
|
version?: number;
|
|
5
5
|
nodes?: unknown[] | null;
|
|
@@ -27,3 +27,4 @@ export type ParseJSONGraphOptions = {
|
|
|
27
27
|
};
|
|
28
28
|
export declare function parseJSONGraph({ json, nodeParser, edgeParser }: ParseJSONGraphOptions): PlainGraphData | null;
|
|
29
29
|
export {};
|
|
30
|
+
//# sourceMappingURL=parse-json-graph.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { PlainGraphDataBuilder } from
|
|
5
|
-
import { basicNodeParser } from
|
|
6
|
-
import { basicEdgeParser } from
|
|
7
|
-
import { error } from
|
|
4
|
+
import { PlainGraphDataBuilder } from "../../graph-data/plain-graph-data-builder.js";
|
|
5
|
+
import { basicNodeParser } from "../parsers/node-parsers.js";
|
|
6
|
+
import { basicEdgeParser } from "../parsers/edge-parsers.js";
|
|
7
|
+
import { error } from "../../utils/log.js";
|
|
8
8
|
export function parseJSONGraph({ json, nodeParser = basicNodeParser, edgeParser = basicEdgeParser }) {
|
|
9
9
|
const nodes = json?.nodes ?? null;
|
|
10
10
|
const edges = json?.edges ?? null;
|
|
@@ -76,3 +76,4 @@ function cloneRecord(value) {
|
|
|
76
76
|
}
|
|
77
77
|
return {};
|
|
78
78
|
}
|
|
79
|
+
//# sourceMappingURL=parse-json-graph.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GraphStylesheet, GraphStyleType } from
|
|
1
|
+
import type { GraphStylesheet, GraphStyleType } from "./graph-style-engine.js";
|
|
2
2
|
export type GraphNodeStyleType = Exclude<GraphStyleType, 'Edge' | 'edge' | 'edge-label' | 'flow' | 'arrow'>;
|
|
3
3
|
export type GraphEdgeDecoratorType = Extract<GraphStyleType, 'edge-label' | 'flow' | 'arrow'>;
|
|
4
4
|
export type GraphLayerNodeStyle = GraphStylesheet<GraphNodeStyleType> & {
|
|
@@ -31,4 +31,5 @@ export type GraphLayerStylesheetSources = {
|
|
|
31
31
|
edgeStyle?: GraphLayerEdgeStyle | GraphLayerEdgeStyle[];
|
|
32
32
|
};
|
|
33
33
|
export declare function normalizeGraphLayerStylesheet({ stylesheet, nodeStyle, edgeStyle }: GraphLayerStylesheetSources): NormalizedGraphLayerStylesheet;
|
|
34
|
-
export type { GraphStyleValue, GraphStylesheet, GraphStyleType } from
|
|
34
|
+
export type { GraphStyleValue, GraphStylesheet, GraphStyleType } from "./graph-style-engine.js";
|
|
35
|
+
//# sourceMappingURL=graph-layer-stylesheet.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StylesheetEngine } from
|
|
1
|
+
import { StylesheetEngine } from "./stylesheet-engine.js";
|
|
2
2
|
import { type GraphStylesheet } from './graph-stylesheet.schema';
|
|
3
3
|
export declare class GraphStylesheetEngine extends StylesheetEngine {
|
|
4
4
|
constructor(style: GraphStylesheet, { stateUpdateTrigger }?: {
|
|
@@ -9,4 +9,5 @@ export declare const GraphStyleEngine: typeof GraphStylesheetEngine;
|
|
|
9
9
|
export type GraphStyleEngine = GraphStylesheetEngine;
|
|
10
10
|
export { GraphStyleScaleTypeEnum, GraphStyleScaleSchema, GraphStyleAttributeReferenceSchema, GraphStyleLeafValueSchema, GraphStyleStateMapSchema, GraphStyleValueSchema, GraphStylesheetSchema } from './graph-stylesheet.schema';
|
|
11
11
|
export type { GraphStylesheet, GraphStylesheetInput, GraphStylesheetParsed, GraphStyleSelector, GraphStyleType, GraphStyleAttributeReference, GraphStyleLeafValue, GraphStyleScale, GraphStyleScaleType, GraphStyleValue } from './graph-stylesheet.schema';
|
|
12
|
-
export { GRAPH_DECKGL_ACCESSOR_MAP } from
|
|
12
|
+
export { GRAPH_DECKGL_ACCESSOR_MAP } from "./graph-style-accessor-map.js";
|
|
13
|
+
//# sourceMappingURL=graph-style-engine.d.ts.map
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
/* eslint-disable no-continue */
|
|
5
5
|
import { ZodError } from 'zod';
|
|
6
|
-
import { StylesheetEngine } from
|
|
6
|
+
import { StylesheetEngine } from "./stylesheet-engine.js";
|
|
7
7
|
import { GraphStylesheetSchema } from './graph-stylesheet.schema';
|
|
8
|
-
import { GRAPH_DECKGL_ACCESSOR_MAP } from
|
|
9
|
-
import { warn } from
|
|
8
|
+
import { GRAPH_DECKGL_ACCESSOR_MAP } from "./graph-style-accessor-map.js";
|
|
9
|
+
import { warn } from "../utils/log.js";
|
|
10
10
|
const GRAPH_DECKGL_UPDATE_TRIGGERS = {
|
|
11
11
|
circle: ['getFillColor', 'getRadius', 'getLineColor', 'getLineWidth'],
|
|
12
12
|
rectangle: ['getFillColor', 'getLineColor', 'getLineWidth'],
|
|
@@ -44,7 +44,7 @@ export class GraphStylesheetEngine extends StylesheetEngine {
|
|
|
44
44
|
}
|
|
45
45
|
export const GraphStyleEngine = GraphStylesheetEngine;
|
|
46
46
|
export { GraphStyleScaleTypeEnum, GraphStyleScaleSchema, GraphStyleAttributeReferenceSchema, GraphStyleLeafValueSchema, GraphStyleStateMapSchema, GraphStyleValueSchema, GraphStylesheetSchema } from './graph-stylesheet.schema';
|
|
47
|
-
export { GRAPH_DECKGL_ACCESSOR_MAP } from
|
|
47
|
+
export { GRAPH_DECKGL_ACCESSOR_MAP } from "./graph-style-accessor-map.js";
|
|
48
48
|
// eslint-disable-next-line max-statements, complexity
|
|
49
49
|
function sanitizeStylesheet(style, issues) {
|
|
50
50
|
if (issues.length) {
|
|
@@ -162,3 +162,4 @@ function isEmptyObject(value) {
|
|
|
162
162
|
}
|
|
163
163
|
return Object.keys(value).length === 0;
|
|
164
164
|
}
|
|
165
|
+
//# sourceMappingURL=graph-style-engine.js.map
|
|
@@ -235,3 +235,4 @@ const GraphStylesheetVariants = Object.entries(GRAPH_DECKGL_ACCESSOR_MAP).map(([
|
|
|
235
235
|
* Schema that validates stylesheet definitions for all graph style primitives.
|
|
236
236
|
*/
|
|
237
237
|
export const GraphStylesheetSchema = z.discriminatedUnion('type', GraphStylesheetVariants);
|
|
238
|
+
//# sourceMappingURL=graph-stylesheet.schema.js.map
|