@deck.gl-community/graph-layers 9.2.0-beta.3 → 9.2.0-beta.4
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 +5 -5
package/dist/core/cache.d.ts
CHANGED
package/dist/core/cache.js
CHANGED
package/dist/core/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Marker } from
|
|
1
|
+
export { Marker } from "../layers/common-layers/marker-layer/marker-list.js";
|
|
2
2
|
/** The interaction state of a node. */
|
|
3
3
|
export type NodeState = 'default' | 'hover' | 'dragging' | 'selected';
|
|
4
4
|
/** The interaction state of an edge. */
|
|
@@ -12,3 +12,4 @@ export declare const EDGE_TYPE: {
|
|
|
12
12
|
};
|
|
13
13
|
export type EdgeDecoratorType = 'label' | 'flow' | 'arrow';
|
|
14
14
|
export type LayoutState = 'init' | 'start' | 'calculating' | 'done' | 'error';
|
|
15
|
+
//# sourceMappingURL=constants.d.ts.map
|
package/dist/core/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Bounds2D } from '@math.gl/types';
|
|
2
|
-
import type { Graph, EdgeInterface, NodeInterface } from
|
|
3
|
-
import { ClassicGraph } from
|
|
4
|
-
import { GraphLayout, type GraphLayoutEventDetail } from
|
|
5
|
-
import { GraphStylesheetEngine, type GraphStylesheet } from
|
|
2
|
+
import type { Graph, EdgeInterface, NodeInterface } from "../graph/graph.js";
|
|
3
|
+
import { ClassicGraph } from "../graph/classic-graph.js";
|
|
4
|
+
import { GraphLayout, type GraphLayoutEventDetail } from "./graph-layout.js";
|
|
5
|
+
import { GraphStylesheetEngine, type GraphStylesheet } from "../style/graph-style-engine.js";
|
|
6
6
|
type ClassicGraphEngineProps = {
|
|
7
7
|
graph: ClassicGraph;
|
|
8
8
|
layout: GraphLayout;
|
|
@@ -105,3 +105,4 @@ export declare class GraphEngine {
|
|
|
105
105
|
private _detachLayoutCallbacks;
|
|
106
106
|
}
|
|
107
107
|
export {};
|
|
108
|
+
//# sourceMappingURL=graph-engine.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { ClassicGraph } from
|
|
5
|
-
import { GraphLayout } from
|
|
6
|
-
import { Cache } from
|
|
7
|
-
import { log } from
|
|
8
|
-
import { GraphStylesheetEngine } from
|
|
4
|
+
import { ClassicGraph } from "../graph/classic-graph.js";
|
|
5
|
+
import { GraphLayout } from "./graph-layout.js";
|
|
6
|
+
import { Cache } from "./cache.js";
|
|
7
|
+
import { log } from "../utils/log.js";
|
|
8
|
+
import { GraphStylesheetEngine } from "../style/graph-style-engine.js";
|
|
9
9
|
/** Graph engine controls the graph data and layout calculation */
|
|
10
10
|
export class GraphEngine {
|
|
11
11
|
_props;
|
|
@@ -227,3 +227,4 @@ export class GraphEngine {
|
|
|
227
227
|
this._layoutCallbacksAttached = false;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
+
//# sourceMappingURL=graph-engine.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Bounds2D } from '@math.gl/types';
|
|
2
|
-
import type { Graph, NodeInterface, EdgeInterface } from
|
|
2
|
+
import type { Graph, NodeInterface, EdgeInterface } from "../graph/graph.js";
|
|
3
3
|
export type GraphLayoutState = 'init' | 'start' | 'calculating' | 'done' | 'error';
|
|
4
4
|
export type GraphLayoutEventDetail = {
|
|
5
5
|
bounds: Bounds2D | null;
|
|
@@ -98,3 +98,4 @@ export declare abstract class GraphLayout<PropsT extends GraphLayoutProps = Grap
|
|
|
98
98
|
/** @fires GraphLayout#onLayoutError */
|
|
99
99
|
protected _onLayoutError: () => void;
|
|
100
100
|
}
|
|
101
|
+
//# sourceMappingURL=graph-layout.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
import isEqual from 'lodash.isequal';
|
|
5
|
-
import { log } from
|
|
5
|
+
import { log } from "../utils/log.js";
|
|
6
6
|
export class GraphLayout {
|
|
7
7
|
static defaultProps = {
|
|
8
8
|
onLayoutStart: undefined,
|
|
@@ -197,3 +197,4 @@ export class GraphLayout {
|
|
|
197
197
|
this.props.onLayoutError?.();
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
+
//# sourceMappingURL=graph-layout.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GraphEngine } from
|
|
2
|
-
import type { NodeInterface } from
|
|
3
|
-
import { resolveChainInteractionSource, type ChainInteractionSource } from
|
|
1
|
+
import { GraphEngine } from "./graph-engine.js";
|
|
2
|
+
import type { NodeInterface } from "../graph/graph.js";
|
|
3
|
+
import { resolveChainInteractionSource, type ChainInteractionSource } from "../utils/collapsed-chains.js";
|
|
4
4
|
export { resolveChainInteractionSource };
|
|
5
5
|
export type { ChainInteractionSource };
|
|
6
6
|
export declare function shouldToggleCollapsedChain(isCollapsed: boolean, source: ChainInteractionSource): boolean;
|
|
@@ -41,3 +41,4 @@ export declare class InteractionManager {
|
|
|
41
41
|
onDrag(info: any, event: any): void;
|
|
42
42
|
onDragEnd(info: any, event: any): void;
|
|
43
43
|
}
|
|
44
|
+
//# sourceMappingURL=interaction-manager.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 { resolveChainInteractionSource } from
|
|
4
|
+
import { log } from "../utils/log.js";
|
|
5
|
+
import { resolveChainInteractionSource } from "../utils/collapsed-chains.js";
|
|
6
6
|
export { resolveChainInteractionSource };
|
|
7
7
|
export function shouldToggleCollapsedChain(isCollapsed, source) {
|
|
8
8
|
if (isCollapsed) {
|
|
@@ -212,3 +212,4 @@ export class InteractionManager {
|
|
|
212
212
|
this.engine.unlockNodePosition(info.object);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
+
//# sourceMappingURL=interaction-manager.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { NodeState, EdgeState } from
|
|
2
|
-
import type { ArrowGraphData } from
|
|
3
|
-
import type { GraphProps, NodeInterface, EdgeInterface } from
|
|
4
|
-
import { Graph } from
|
|
5
|
-
import { ClassicGraph } from
|
|
1
|
+
import type { NodeState, EdgeState } from "../core/constants.js";
|
|
2
|
+
import type { ArrowGraphData } from "../graph-data/graph-data.js";
|
|
3
|
+
import type { GraphProps, NodeInterface, EdgeInterface } from "./graph.js";
|
|
4
|
+
import { Graph } from "./graph.js";
|
|
5
|
+
import { ClassicGraph } from "./classic-graph.js";
|
|
6
6
|
export type ArrowGraphProps = GraphProps & {
|
|
7
7
|
data: ArrowGraphData;
|
|
8
8
|
};
|
|
@@ -67,3 +67,4 @@ export declare class ArrowGraph extends Graph<ArrowGraphProps> {
|
|
|
67
67
|
private registerNodes;
|
|
68
68
|
private registerEdges;
|
|
69
69
|
}
|
|
70
|
+
//# sourceMappingURL=arrow-graph.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { PlainGraphDataBuilder } from
|
|
5
|
-
import { Graph } from
|
|
6
|
-
import { ClassicGraph } from
|
|
7
|
-
import { cloneRecord, normalizeEdgeState, normalizeNodeState } from
|
|
8
|
-
import { getVectorLength, getVectorValue, getColumnVector, parseDataRecord, coerceIdentifier } from
|
|
4
|
+
import { PlainGraphDataBuilder } from "../graph-data/plain-graph-data-builder.js";
|
|
5
|
+
import { Graph } from "./graph.js";
|
|
6
|
+
import { ClassicGraph } from "./classic-graph.js";
|
|
7
|
+
import { cloneRecord, normalizeEdgeState, normalizeNodeState } from "./graph-normalization.js";
|
|
8
|
+
import { getVectorLength, getVectorValue, getColumnVector, parseDataRecord, coerceIdentifier } from "./functions/arrow-utils.js";
|
|
9
9
|
export class ArrowGraph extends Graph {
|
|
10
10
|
nodeTable;
|
|
11
11
|
edgeTable;
|
|
@@ -511,3 +511,4 @@ function coerceBoolean(value, fallback) {
|
|
|
511
511
|
}
|
|
512
512
|
return fallback;
|
|
513
513
|
}
|
|
514
|
+
//# sourceMappingURL=arrow-graph.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Edge } from
|
|
2
|
-
import { Node } from
|
|
3
|
-
import type { EdgeInterface, NodeInterface, GraphProps } from
|
|
4
|
-
import { Graph } from
|
|
5
|
-
import type { PlainGraphData } from
|
|
1
|
+
import { Edge } from "./edge.js";
|
|
2
|
+
import { Node } from "./node.js";
|
|
3
|
+
import type { EdgeInterface, NodeInterface, GraphProps } from "./graph.js";
|
|
4
|
+
import { Graph } from "./graph.js";
|
|
5
|
+
import type { PlainGraphData } from "../graph-data/graph-data.js";
|
|
6
6
|
export type ClassicGraphProps = GraphProps & {
|
|
7
7
|
data: PlainGraphData;
|
|
8
8
|
};
|
|
@@ -167,3 +167,4 @@ export declare class ClassicGraph extends Graph {
|
|
|
167
167
|
_bumpVersion(): void;
|
|
168
168
|
_updateCache(key: 'nodes' | 'edges', updateValue: unknown): void;
|
|
169
169
|
}
|
|
170
|
+
//# sourceMappingURL=classic-graph.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { warn } from
|
|
5
|
-
import { Cache } from
|
|
6
|
-
import { Edge } from
|
|
7
|
-
import { Node } from
|
|
8
|
-
import { Graph } from
|
|
9
|
-
import { cloneRecord, normalizeEdgeState, normalizeNodeState, normalizeVersion } from
|
|
4
|
+
import { warn } from "../utils/log.js";
|
|
5
|
+
import { Cache } from "../core/cache.js";
|
|
6
|
+
import { Edge } from "./edge.js";
|
|
7
|
+
import { Node } from "./node.js";
|
|
8
|
+
import { Graph } from "./graph.js";
|
|
9
|
+
import { cloneRecord, normalizeEdgeState, normalizeNodeState, normalizeVersion } from "./graph-normalization.js";
|
|
10
10
|
/** Basic graph data structure */
|
|
11
11
|
export class ClassicGraph extends Graph {
|
|
12
12
|
/** List object of nodes. */
|
|
@@ -388,3 +388,4 @@ function createEdgeAttributesFromPlainData(edge) {
|
|
|
388
388
|
}
|
|
389
389
|
return attributes;
|
|
390
390
|
}
|
|
391
|
+
//# sourceMappingURL=classic-graph.js.map
|
package/dist/graph/edge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EdgeState } from
|
|
2
|
-
import type { EdgeInterface, NodeInterface } from
|
|
1
|
+
import type { EdgeState } from "../core/constants.js";
|
|
2
|
+
import type { EdgeInterface, NodeInterface } from "./graph.js";
|
|
3
3
|
export interface EdgeOptions {
|
|
4
4
|
/** the unique ID of the edge */
|
|
5
5
|
id: string | number;
|
|
@@ -86,3 +86,4 @@ export declare class Edge implements EdgeInterface {
|
|
|
86
86
|
removeNode(node: NodeInterface): void;
|
|
87
87
|
getConnectedNodes(): NodeInterface[];
|
|
88
88
|
}
|
|
89
|
+
//# sourceMappingURL=edge.d.ts.map
|
package/dist/graph/edge.js
CHANGED
|
@@ -4,3 +4,4 @@ export declare function getVectorValue(vector: arrow.Vector | null, index: numbe
|
|
|
4
4
|
export declare function getColumnVector(table: arrow.Table, columnName: string): arrow.Vector | null;
|
|
5
5
|
export declare function parseDataRecord(value: unknown): Record<string, unknown>;
|
|
6
6
|
export declare function coerceIdentifier(value: unknown): string | number;
|
|
7
|
+
//# sourceMappingURL=arrow-utils.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { Graph, GraphProps } from
|
|
2
|
-
import { type GraphData } from
|
|
1
|
+
import type { Graph, GraphProps } from "../graph.js";
|
|
2
|
+
import { type GraphData } from "../../graph-data/graph-data.js";
|
|
3
3
|
export declare function createGraphFromData(data: GraphData, props?: GraphProps): Graph;
|
|
4
|
+
//# sourceMappingURL=create-graph-from-data.d.ts.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// deck.gl-community
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { isArrowGraphData } from
|
|
5
|
-
import { ArrowGraph } from
|
|
6
|
-
import { ClassicGraph } from
|
|
4
|
+
import { isArrowGraphData } from "../../graph-data/graph-data.js";
|
|
5
|
+
import { ArrowGraph } from "../arrow-graph.js";
|
|
6
|
+
import { ClassicGraph } from "../classic-graph.js";
|
|
7
7
|
export function createGraphFromData(data, props = {}) {
|
|
8
8
|
if (isArrowGraphData(data)) {
|
|
9
9
|
return new ArrowGraph({ ...props, data });
|
|
10
10
|
}
|
|
11
11
|
return new ClassicGraph({ ...props, data });
|
|
12
12
|
}
|
|
13
|
+
//# sourceMappingURL=create-graph-from-data.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeState, EdgeState } from
|
|
1
|
+
import type { NodeState, EdgeState } from "../core/constants.js";
|
|
2
2
|
export declare function normalizeNodeState(state: NodeState | undefined): NodeState;
|
|
3
3
|
export declare function normalizeEdgeState(state: EdgeState | undefined): EdgeState;
|
|
4
4
|
export declare function normalizeNodeStateColumn(source: NodeState[] | undefined, length: number): NodeState[];
|
|
@@ -8,3 +8,4 @@ export declare function normalizeDataColumn(source: Record<string, unknown>[] |
|
|
|
8
8
|
export declare function normalizeVersion(version: unknown): number;
|
|
9
9
|
export declare function cloneRecord(value: unknown): Record<string, unknown>;
|
|
10
10
|
export declare function cloneDataColumn(source: Record<string, unknown>[], length: number): Record<string, unknown>[];
|
|
11
|
+
//# sourceMappingURL=graph-normalization.d.ts.map
|
package/dist/graph/graph.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeState, EdgeState } from
|
|
1
|
+
import type { NodeState, EdgeState } from "../core/constants.js";
|
|
2
2
|
/** Shared interface for graph nodes used by the rendering runtime. */
|
|
3
3
|
export interface NodeInterface {
|
|
4
4
|
readonly isNode: boolean;
|
|
@@ -63,3 +63,4 @@ export declare abstract class Graph<PropsT extends GraphProps = GraphProps> {
|
|
|
63
63
|
triggerUpdate?(): void;
|
|
64
64
|
abstract destroy?(): void;
|
|
65
65
|
}
|
|
66
|
+
//# sourceMappingURL=graph.d.ts.map
|
package/dist/graph/graph.js
CHANGED
package/dist/graph/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NodeState } from
|
|
2
|
-
import type { EdgeInterface, NodeInterface } from
|
|
1
|
+
import type { NodeState } from "../core/constants.js";
|
|
2
|
+
import type { EdgeInterface, NodeInterface } from "./graph.js";
|
|
3
3
|
/** Properties for creating a new node */
|
|
4
4
|
export interface NodeOptions {
|
|
5
5
|
/** the unique ID of the node */
|
|
@@ -101,3 +101,4 @@ export declare class Node implements NodeInterface {
|
|
|
101
101
|
isSelectable(): boolean;
|
|
102
102
|
shouldHighlightConnectedEdges(): boolean;
|
|
103
103
|
}
|
|
104
|
+
//# sourceMappingURL=node.d.ts.map
|
package/dist/graph/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GraphEdgeData, GraphNodeData, ArrowGraphData } from
|
|
1
|
+
import type { GraphEdgeData, GraphNodeData, ArrowGraphData } from "./graph-data.js";
|
|
2
2
|
export type ArrowGraphDataBuilderOptions = {
|
|
3
3
|
version?: number;
|
|
4
4
|
};
|
|
@@ -19,3 +19,4 @@ export declare class ArrowGraphDataBuilder {
|
|
|
19
19
|
private appendJson;
|
|
20
20
|
private getOrCreateBuilder;
|
|
21
21
|
}
|
|
22
|
+
//# sourceMappingURL=arrow-graph-data-builder.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
// eslint-disable-next-line import/no-unresolved
|
|
5
5
|
import * as arrow from 'apache-arrow';
|
|
6
|
-
import { cloneRecord, normalizeEdgeState, normalizeNodeState, normalizeVersion } from
|
|
6
|
+
import { cloneRecord, normalizeEdgeState, normalizeNodeState, normalizeVersion } from "../graph/graph-normalization.js";
|
|
7
7
|
export class ArrowGraphDataBuilder {
|
|
8
8
|
nodeBuilders = new Map();
|
|
9
9
|
edgeBuilders = new Map();
|
|
@@ -103,3 +103,4 @@ function tableFromBuilders(builders) {
|
|
|
103
103
|
}
|
|
104
104
|
return arrow.tableFromArrays(columns);
|
|
105
105
|
}
|
|
106
|
+
//# sourceMappingURL=arrow-graph-data-builder.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { GraphData } from "./graph-data";
|
|
1
|
+
import type { GraphData } from "./graph-data.js";
|
|
2
2
|
export interface GraphDataBuilder {
|
|
3
3
|
addNode(node: Record<string, unknown>): number;
|
|
4
4
|
addEdge(edge: Record<string, unknown>): number;
|
|
5
5
|
build(): GraphData;
|
|
6
6
|
}
|
|
7
|
+
//# sourceMappingURL=graph-data-builder.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeState, EdgeState } from
|
|
1
|
+
import type { NodeState, EdgeState } from "../core/constants.js";
|
|
2
2
|
import * as arrow from 'apache-arrow';
|
|
3
3
|
/** Graph data types supported by this library */
|
|
4
4
|
export type GraphData = PlainGraphData | ArrowGraphData;
|
|
@@ -38,3 +38,4 @@ export type GraphEdgeData = {
|
|
|
38
38
|
};
|
|
39
39
|
export declare function isArrowGraphData(value: unknown): value is ArrowGraphData;
|
|
40
40
|
export declare function isPlainGraphData(value: unknown): value is PlainGraphData;
|
|
41
|
+
//# sourceMappingURL=graph-data.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlainGraphData, GraphEdgeData, GraphNodeData } from
|
|
2
|
-
import { GraphDataBuilder } from
|
|
1
|
+
import type { PlainGraphData, GraphEdgeData, GraphNodeData } from "./graph-data.js";
|
|
2
|
+
import { GraphDataBuilder } from "./graph-data-builder.js";
|
|
3
3
|
export type PlainGraphDataBuilderOptions = {
|
|
4
4
|
version?: number;
|
|
5
5
|
};
|
|
@@ -18,3 +18,4 @@ export declare class PlainGraphDataBuilder implements GraphDataBuilder {
|
|
|
18
18
|
private _assignEdgeAttributes;
|
|
19
19
|
build(): PlainGraphData;
|
|
20
20
|
}
|
|
21
|
+
//# sourceMappingURL=plain-graph-data-builder.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 { cloneRecord, normalizeVersion } from
|
|
4
|
+
import { cloneRecord, normalizeVersion } from "../graph/graph-normalization.js";
|
|
5
5
|
export class PlainGraphDataBuilder {
|
|
6
6
|
nodes = [];
|
|
7
7
|
edges = [];
|
|
@@ -103,3 +103,4 @@ function cloneEdgeData(edge) {
|
|
|
103
103
|
attributes
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
+
//# sourceMappingURL=plain-graph-data-builder.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const GRAPH_STYLE_SCHEMA_CDN_URL = 'https://cdn.jsdelivr.net/npm/@deck.gl-community/graph-layers@9.2.0-beta.
|
|
1
|
+
export const GRAPH_STYLE_SCHEMA_CDN_URL = 'https://cdn.jsdelivr.net/npm/@deck.gl-community/graph-layers@9.2.0-beta.4/dist/graph-style-schema.json';
|
|
2
2
|
export default GRAPH_STYLE_SCHEMA_CDN_URL;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/@deck.gl-community/graph-layers@9.2.0-beta.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@deck.gl-community/graph-layers@9.2.0-beta.4/dist/graph-style-schema.json",
|
|
4
4
|
"title": "Deck.gl Graph Stylesheet",
|
|
5
5
|
"description": "JSON schema describing the declarative stylesheet format supported by @deck.gl-community/graph-layers.",
|
|
6
6
|
"$ref": "#/definitions/GraphStylesheet",
|
package/dist/index.cjs
CHANGED
|
@@ -6668,7 +6668,7 @@ __publicField(GridLayer, "defaultProps", {
|
|
|
6668
6668
|
});
|
|
6669
6669
|
|
|
6670
6670
|
// dist/loaders/json-graph-loader.js
|
|
6671
|
-
var VERSION = true ? "9.2.0-beta.
|
|
6671
|
+
var VERSION = true ? "9.2.0-beta.4" : "latest";
|
|
6672
6672
|
var JSONGraphLoader = {
|
|
6673
6673
|
dataType: null,
|
|
6674
6674
|
batchType: null,
|
|
@@ -8129,7 +8129,7 @@ function isPlainObject(value) {
|
|
|
8129
8129
|
}
|
|
8130
8130
|
|
|
8131
8131
|
// dist/loaders/dot-graph-loader.js
|
|
8132
|
-
var VERSION2 = true ? "9.2.0-beta.
|
|
8132
|
+
var VERSION2 = true ? "9.2.0-beta.4" : "latest";
|
|
8133
8133
|
var DOTGraphLoader = {
|
|
8134
8134
|
dataType: null,
|
|
8135
8135
|
batchType: null,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
export type { GraphData, PlainGraphData, ArrowGraphData } from
|
|
2
|
-
export type { GraphDataBuilder } from
|
|
3
|
-
export { ArrowGraphDataBuilder, type ArrowGraphDataBuilderOptions } from
|
|
4
|
-
export type { Graph, NodeInterface, EdgeInterface } from
|
|
5
|
-
export { Node } from
|
|
6
|
-
export { Edge } from
|
|
7
|
-
export { ClassicGraph } from
|
|
8
|
-
export { ArrowGraph } from
|
|
9
|
-
export { GraphEngine } from
|
|
10
|
-
export type { GraphLayoutProps, GraphLayoutState, GraphLayoutEventDetail } from
|
|
11
|
-
export { GraphLayout } from
|
|
12
|
-
export { SimpleLayout } from
|
|
13
|
-
export { D3ForceLayout } from
|
|
14
|
-
export { D3DagLayout } from
|
|
15
|
-
export { CollapsableD3DagLayout } from
|
|
16
|
-
export { GPUForceLayout } from
|
|
17
|
-
export { RadialLayout } from
|
|
18
|
-
export { ForceMultiGraphLayout } from
|
|
19
|
-
export { HivePlotLayout } from
|
|
20
|
-
export type { Marker, NodeState, NodeType, EdgeType, EdgeDecoratorType, LayoutState } from
|
|
21
|
-
export { GraphLayer } from
|
|
22
|
-
export type { RankGridConfig } from
|
|
23
|
-
export { EdgeLayer } from
|
|
24
|
-
export { GridLayer, type GridLayerProps, type GridLineDatum } from
|
|
25
|
-
export { StylesheetEngine } from
|
|
26
|
-
export { GraphStylesheetEngine, GraphStyleEngine } from
|
|
27
|
-
export type { GraphStylesheet, GraphStylesheetInput, GraphStylesheetParsed, GraphStyleAttributeReference, GraphStyleScale, GraphStyleScaleType, GraphStyleValue } from
|
|
28
|
-
export { GraphStylesheetSchema } from
|
|
29
|
-
export { DEFAULT_GRAPH_LAYER_STYLESHEET, type GraphLayerStylesheet, type GraphLayerEdgeStyle, type GraphLayerNodeStyle } from
|
|
30
|
-
export { mixedGetPosition } from
|
|
31
|
-
export { log } from
|
|
32
|
-
export { mapRanksToYPositions, selectRankLines, type RankAccessor, type LabelAccessor, type RankPosition, type MapRanksToYPositionsOptions, type SelectRankLinesOptions } from
|
|
33
|
-
export { JSONGraphLoader, type JSONGraphLoaderOptions, } from
|
|
34
|
-
export { DOTGraphLoader, type DOTGraphLoaderOptions, type DOTGraphLoaderMetadata, } from
|
|
35
|
-
export { MARKER_TYPE, NODE_STATE, EDGE_STATE, NODE_TYPE, EDGE_TYPE, EDGE_DECORATOR_TYPE, LAYOUT_STATE } from
|
|
1
|
+
export type { GraphData, PlainGraphData, ArrowGraphData } from "./graph-data/graph-data.js";
|
|
2
|
+
export type { GraphDataBuilder } from "./graph-data/graph-data-builder.js";
|
|
3
|
+
export { ArrowGraphDataBuilder, type ArrowGraphDataBuilderOptions } from "./graph-data/arrow-graph-data-builder.js";
|
|
4
|
+
export type { Graph, NodeInterface, EdgeInterface } from "./graph/graph.js";
|
|
5
|
+
export { Node } from "./graph/node.js";
|
|
6
|
+
export { Edge } from "./graph/edge.js";
|
|
7
|
+
export { ClassicGraph } from "./graph/classic-graph.js";
|
|
8
|
+
export { ArrowGraph } from "./graph/arrow-graph.js";
|
|
9
|
+
export { GraphEngine } from "./core/graph-engine.js";
|
|
10
|
+
export type { GraphLayoutProps, GraphLayoutState, GraphLayoutEventDetail } from "./core/graph-layout.js";
|
|
11
|
+
export { GraphLayout } from "./core/graph-layout.js";
|
|
12
|
+
export { SimpleLayout } from "./layouts/simple-layout.js";
|
|
13
|
+
export { D3ForceLayout } from "./layouts/d3-force/d3-force-layout.js";
|
|
14
|
+
export { D3DagLayout } from "./layouts/d3-dag/d3-dag-layout.js";
|
|
15
|
+
export { CollapsableD3DagLayout } from "./layouts/d3-dag/collapsable-d3-dag-layout.js";
|
|
16
|
+
export { GPUForceLayout } from "./layouts/gpu-force/gpu-force-layout.js";
|
|
17
|
+
export { RadialLayout } from "./layouts/experimental/radial-layout.js";
|
|
18
|
+
export { ForceMultiGraphLayout } from "./layouts/experimental/force-multi-graph-layout.js";
|
|
19
|
+
export { HivePlotLayout } from "./layouts/experimental/hive-plot-layout.js";
|
|
20
|
+
export type { Marker, NodeState, NodeType, EdgeType, EdgeDecoratorType, LayoutState } from "./core/constants.js";
|
|
21
|
+
export { GraphLayer } from "./layers/graph-layer.js";
|
|
22
|
+
export type { RankGridConfig } from "./layers/graph-layer.js";
|
|
23
|
+
export { EdgeLayer } from "./layers/edge-layer.js";
|
|
24
|
+
export { GridLayer, type GridLayerProps, type GridLineDatum } from "./layers/common-layers/grid-layer/grid-layer.js";
|
|
25
|
+
export { StylesheetEngine } from "./style/stylesheet-engine.js";
|
|
26
|
+
export { GraphStylesheetEngine, GraphStyleEngine } from "./style/graph-style-engine.js";
|
|
27
|
+
export type { GraphStylesheet, GraphStylesheetInput, GraphStylesheetParsed, GraphStyleAttributeReference, GraphStyleScale, GraphStyleScaleType, GraphStyleValue } from "./style/graph-style-engine.js";
|
|
28
|
+
export { GraphStylesheetSchema } from "./style/graph-style-engine.js";
|
|
29
|
+
export { DEFAULT_GRAPH_LAYER_STYLESHEET, type GraphLayerStylesheet, type GraphLayerEdgeStyle, type GraphLayerNodeStyle } from "./style/graph-layer-stylesheet.js";
|
|
30
|
+
export { mixedGetPosition } from "./utils/layer-utils.js";
|
|
31
|
+
export { log } from "./utils/log.js";
|
|
32
|
+
export { mapRanksToYPositions, selectRankLines, type RankAccessor, type LabelAccessor, type RankPosition, type MapRanksToYPositionsOptions, type SelectRankLinesOptions } from "./utils/rank-grid.js";
|
|
33
|
+
export { JSONGraphLoader, type JSONGraphLoaderOptions, } from "./loaders/json-graph-loader.js";
|
|
34
|
+
export { DOTGraphLoader, type DOTGraphLoaderOptions, type DOTGraphLoaderMetadata, } from "./loaders/dot-graph-loader.js";
|
|
35
|
+
export { MARKER_TYPE, NODE_STATE, EDGE_STATE, NODE_TYPE, EDGE_TYPE, EDGE_DECORATOR_TYPE, LAYOUT_STATE } from "./_deprecated/old-constants.js";
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|