@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.
Files changed (154) hide show
  1. package/dist/_deprecated/old-constants.d.ts +1 -0
  2. package/dist/_deprecated/old-constants.js +1 -0
  3. package/dist/core/cache.d.ts +1 -0
  4. package/dist/core/cache.js +1 -0
  5. package/dist/core/constants.d.ts +2 -1
  6. package/dist/core/constants.js +1 -0
  7. package/dist/core/graph-engine.d.ts +5 -4
  8. package/dist/core/graph-engine.js +6 -5
  9. package/dist/core/graph-layout.d.ts +2 -1
  10. package/dist/core/graph-layout.js +2 -1
  11. package/dist/core/interaction-manager.d.ts +4 -3
  12. package/dist/core/interaction-manager.js +3 -2
  13. package/dist/graph/arrow-graph.d.ts +6 -5
  14. package/dist/graph/arrow-graph.js +6 -5
  15. package/dist/graph/classic-graph.d.ts +6 -5
  16. package/dist/graph/classic-graph.js +7 -6
  17. package/dist/graph/edge.d.ts +3 -2
  18. package/dist/graph/edge.js +1 -0
  19. package/dist/graph/functions/arrow-utils.d.ts +1 -0
  20. package/dist/graph/functions/arrow-utils.js +1 -0
  21. package/dist/graph/functions/create-graph-from-data.d.ts +3 -2
  22. package/dist/graph/functions/create-graph-from-data.js +4 -3
  23. package/dist/graph/graph-normalization.d.ts +2 -1
  24. package/dist/graph/graph-normalization.js +1 -0
  25. package/dist/graph/graph.d.ts +2 -1
  26. package/dist/graph/graph.js +1 -0
  27. package/dist/graph/node.d.ts +3 -2
  28. package/dist/graph/node.js +1 -0
  29. package/dist/graph-data/arrow-graph-data-builder.d.ts +2 -1
  30. package/dist/graph-data/arrow-graph-data-builder.js +2 -1
  31. package/dist/graph-data/graph-data-builder.d.ts +2 -1
  32. package/dist/graph-data/graph-data-builder.js +1 -0
  33. package/dist/graph-data/graph-data.d.ts +2 -1
  34. package/dist/graph-data/graph-data.js +1 -0
  35. package/dist/graph-data/plain-graph-data-builder.d.ts +3 -2
  36. package/dist/graph-data/plain-graph-data-builder.js +2 -1
  37. package/dist/graph-style-schema.cdn.js +1 -1
  38. package/dist/graph-style-schema.json +1 -1
  39. package/dist/index.cjs +2 -2
  40. package/dist/index.d.ts +36 -35
  41. package/dist/index.js +29 -28
  42. package/dist/layers/common-layers/flow-path-layer/flow-path-layer-fragment.glsl.d.ts +1 -0
  43. package/dist/layers/common-layers/flow-path-layer/flow-path-layer-fragment.glsl.js +1 -0
  44. package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex-tf.glsl.d.ts +1 -0
  45. package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex-tf.glsl.js +1 -0
  46. package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex.glsl.d.ts +1 -0
  47. package/dist/layers/common-layers/flow-path-layer/flow-path-layer-vertex.glsl.js +1 -0
  48. package/dist/layers/common-layers/flow-path-layer/flow-path-layer.d.ts +1 -0
  49. package/dist/layers/common-layers/flow-path-layer/flow-path-layer.js +1 -0
  50. package/dist/layers/common-layers/grid-layer/grid-layer.d.ts +1 -0
  51. package/dist/layers/common-layers/grid-layer/grid-layer.js +1 -0
  52. package/dist/layers/common-layers/marker-layer/atlas-data-url.d.ts +1 -0
  53. package/dist/layers/common-layers/marker-layer/atlas-data-url.js +1 -0
  54. package/dist/layers/common-layers/marker-layer/marker-layer.d.ts +1 -0
  55. package/dist/layers/common-layers/marker-layer/marker-layer.js +3 -2
  56. package/dist/layers/common-layers/marker-layer/marker-list.d.ts +1 -0
  57. package/dist/layers/common-layers/marker-layer/marker-list.js +1 -0
  58. package/dist/layers/common-layers/marker-layer/marker-mapping.d.ts +1 -0
  59. package/dist/layers/common-layers/marker-layer/marker-mapping.js +1 -0
  60. package/dist/layers/common-layers/spline-layer/spline-layer.d.ts +1 -0
  61. package/dist/layers/common-layers/spline-layer/spline-layer.js +1 -0
  62. package/dist/layers/common-layers/zoomable-text-layer/zoomable-text-layer.d.ts +1 -0
  63. package/dist/layers/common-layers/zoomable-text-layer/zoomable-text-layer.js +1 -0
  64. package/dist/layers/edge-attachment-helper.d.ts +4 -3
  65. package/dist/layers/edge-attachment-helper.js +3 -2
  66. package/dist/layers/edge-layer.d.ts +1 -0
  67. package/dist/layers/edge-layer.js +4 -3
  68. package/dist/layers/edge-layers/arrow-2d-geometry.d.ts +1 -0
  69. package/dist/layers/edge-layers/arrow-2d-geometry.js +1 -0
  70. package/dist/layers/edge-layers/curved-edge-layer.d.ts +2 -1
  71. package/dist/layers/edge-layers/curved-edge-layer.js +2 -1
  72. package/dist/layers/edge-layers/edge-arrow-layer.d.ts +1 -0
  73. package/dist/layers/edge-layers/edge-arrow-layer.js +2 -1
  74. package/dist/layers/edge-layers/edge-label-layer.d.ts +2 -1
  75. package/dist/layers/edge-layers/edge-label-layer.js +2 -1
  76. package/dist/layers/edge-layers/flow-layer.d.ts +2 -1
  77. package/dist/layers/edge-layers/flow-layer.js +2 -1
  78. package/dist/layers/edge-layers/path-edge-layer.d.ts +1 -0
  79. package/dist/layers/edge-layers/path-edge-layer.js +1 -0
  80. package/dist/layers/edge-layers/straight-line-edge-layer.d.ts +1 -0
  81. package/dist/layers/edge-layers/straight-line-edge-layer.js +1 -0
  82. package/dist/layers/graph-layer.d.ts +12 -11
  83. package/dist/layers/graph-layer.js +25 -24
  84. package/dist/layers/node-layers/circle-layer.d.ts +1 -0
  85. package/dist/layers/node-layers/circle-layer.js +1 -0
  86. package/dist/layers/node-layers/image-layer.d.ts +1 -0
  87. package/dist/layers/node-layers/image-layer.js +1 -0
  88. package/dist/layers/node-layers/label-layer.d.ts +2 -1
  89. package/dist/layers/node-layers/label-layer.js +2 -1
  90. package/dist/layers/node-layers/path-rounded-rectangle-layer.d.ts +1 -0
  91. package/dist/layers/node-layers/path-rounded-rectangle-layer.js +2 -1
  92. package/dist/layers/node-layers/rectangle-layer.d.ts +1 -0
  93. package/dist/layers/node-layers/rectangle-layer.js +1 -0
  94. package/dist/layers/node-layers/rounded-rectangle-layer-fragment.d.ts +1 -0
  95. package/dist/layers/node-layers/rounded-rectangle-layer-fragment.js +1 -0
  96. package/dist/layers/node-layers/rounded-rectangle-layer.d.ts +2 -1
  97. package/dist/layers/node-layers/rounded-rectangle-layer.js +3 -2
  98. package/dist/layers/node-layers/zoomable-marker-layer.d.ts +2 -1
  99. package/dist/layers/node-layers/zoomable-marker-layer.js +2 -1
  100. package/dist/layouts/d3-dag/collapsable-d3-dag-layout.d.ts +3 -2
  101. package/dist/layouts/d3-dag/collapsable-d3-dag-layout.js +3 -2
  102. package/dist/layouts/d3-dag/d3-dag-layout.d.ts +3 -2
  103. package/dist/layouts/d3-dag/d3-dag-layout.js +4 -3
  104. package/dist/layouts/d3-force/d3-force-layout.d.ts +3 -2
  105. package/dist/layouts/d3-force/d3-force-layout.js +3 -2
  106. package/dist/layouts/d3-force/worker.d.ts +1 -0
  107. package/dist/layouts/d3-force/worker.js +1 -0
  108. package/dist/layouts/experimental/force-multi-graph-layout.d.ts +3 -2
  109. package/dist/layouts/experimental/force-multi-graph-layout.js +2 -1
  110. package/dist/layouts/experimental/hive-plot-layout.d.ts +3 -2
  111. package/dist/layouts/experimental/hive-plot-layout.js +2 -1
  112. package/dist/layouts/experimental/radial-layout.d.ts +3 -2
  113. package/dist/layouts/experimental/radial-layout.js +2 -1
  114. package/dist/layouts/gpu-force/gpu-force-layout.d.ts +3 -2
  115. package/dist/layouts/gpu-force/gpu-force-layout.js +2 -1
  116. package/dist/layouts/gpu-force/worker.d.ts +1 -0
  117. package/dist/layouts/gpu-force/worker.js +1 -0
  118. package/dist/layouts/simple-layout.d.ts +3 -2
  119. package/dist/layouts/simple-layout.js +2 -1
  120. package/dist/loaders/dot-graph-loader.d.ts +2 -1
  121. package/dist/loaders/dot-graph-loader.js +3 -2
  122. package/dist/loaders/json-graph-loader.d.ts +1 -0
  123. package/dist/loaders/json-graph-loader.js +2 -1
  124. package/dist/loaders/parsers/edge-parsers.d.ts +2 -1
  125. package/dist/loaders/parsers/edge-parsers.js +2 -1
  126. package/dist/loaders/parsers/node-parsers.d.ts +2 -1
  127. package/dist/loaders/parsers/node-parsers.js +2 -1
  128. package/dist/loaders/parsers/parse-json-graph.d.ts +3 -2
  129. package/dist/loaders/parsers/parse-json-graph.js +5 -4
  130. package/dist/style/graph-layer-stylesheet.d.ts +3 -2
  131. package/dist/style/graph-layer-stylesheet.js +1 -0
  132. package/dist/style/graph-style-accessor-map.d.ts +1 -0
  133. package/dist/style/graph-style-accessor-map.js +1 -0
  134. package/dist/style/graph-style-engine.d.ts +3 -2
  135. package/dist/style/graph-style-engine.js +5 -4
  136. package/dist/style/graph-stylesheet.schema.d.ts +1 -0
  137. package/dist/style/graph-stylesheet.schema.js +1 -0
  138. package/dist/style/style-property.d.ts +1 -0
  139. package/dist/style/style-property.js +2 -1
  140. package/dist/style/stylesheet-engine.d.ts +2 -1
  141. package/dist/style/stylesheet-engine.js +3 -2
  142. package/dist/utils/collapsed-chains.d.ts +3 -2
  143. package/dist/utils/collapsed-chains.js +1 -0
  144. package/dist/utils/layer-utils.d.ts +1 -0
  145. package/dist/utils/layer-utils.js +1 -0
  146. package/dist/utils/log.d.ts +1 -0
  147. package/dist/utils/log.js +1 -0
  148. package/dist/utils/node-boundary.d.ts +1 -0
  149. package/dist/utils/node-boundary.js +1 -0
  150. package/dist/utils/polygon-calculations.d.ts +1 -0
  151. package/dist/utils/polygon-calculations.js +1 -0
  152. package/dist/utils/rank-grid.d.ts +2 -1
  153. package/dist/utils/rank-grid.js +1 -0
  154. package/package.json +5 -5
@@ -105,3 +105,4 @@ export declare const LAYOUT_STATE: {
105
105
  readonly DONE: "done";
106
106
  readonly ERROR: "error";
107
107
  };
108
+ //# sourceMappingURL=old-constants.d.ts.map
@@ -109,3 +109,4 @@ export const LAYOUT_STATE = {
109
109
  DONE: 'done',
110
110
  ERROR: 'error'
111
111
  };
112
+ //# sourceMappingURL=old-constants.js.map
@@ -12,3 +12,4 @@ export declare class Cache<K, V> {
12
12
  */
13
13
  set(key: K, createValue: (...args: unknown[]) => V, version: number): void;
14
14
  }
15
+ //# sourceMappingURL=cache.d.ts.map
@@ -24,3 +24,4 @@ export class Cache {
24
24
  this._keys.set(key, { version, value: createValue() });
25
25
  }
26
26
  }
27
+ //# sourceMappingURL=cache.js.map
@@ -1,4 +1,4 @@
1
- export { Marker } from '../layers/common-layers/marker-layer/marker-list';
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
@@ -6,3 +6,4 @@ export const EDGE_TYPE = {
6
6
  LINE: 'line',
7
7
  PATH: 'path'
8
8
  };
9
+ //# sourceMappingURL=constants.js.map
@@ -1,8 +1,8 @@
1
1
  import type { Bounds2D } from '@math.gl/types';
2
- import type { Graph, EdgeInterface, NodeInterface } from '../graph/graph';
3
- import { ClassicGraph } from '../graph/classic-graph';
4
- import { GraphLayout, type GraphLayoutEventDetail } from './graph-layout';
5
- import { GraphStylesheetEngine, type GraphStylesheet } from '../style/graph-style-engine';
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 '../graph/classic-graph';
5
- import { GraphLayout } from './graph-layout';
6
- import { Cache } from './cache';
7
- import { log } from '../utils/log';
8
- import { GraphStylesheetEngine } from '../style/graph-style-engine';
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 '../graph/graph';
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 '../utils/log';
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 './graph-engine';
2
- import type { NodeInterface } from '../graph/graph';
3
- import { resolveChainInteractionSource, type ChainInteractionSource } from '../utils/collapsed-chains';
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 '../utils/log';
5
- import { resolveChainInteractionSource } from '../utils/collapsed-chains';
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 '../core/constants';
2
- import type { ArrowGraphData } from '../graph-data/graph-data';
3
- import type { GraphProps, NodeInterface, EdgeInterface } from './graph';
4
- import { Graph } from './graph';
5
- import { ClassicGraph } from './classic-graph';
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 '../graph-data/plain-graph-data-builder';
5
- import { Graph } from './graph';
6
- import { ClassicGraph } from './classic-graph';
7
- import { cloneRecord, normalizeEdgeState, normalizeNodeState } from './graph-normalization';
8
- import { getVectorLength, getVectorValue, getColumnVector, parseDataRecord, coerceIdentifier } from './functions/arrow-utils';
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 './edge';
2
- import { Node } from './node';
3
- import type { EdgeInterface, NodeInterface, GraphProps } from './graph';
4
- import { Graph } from './graph';
5
- import type { PlainGraphData } from '../graph-data/graph-data';
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 '../utils/log';
5
- import { Cache } from '../core/cache';
6
- import { Edge } from './edge';
7
- import { Node } from './node';
8
- import { Graph } from './graph';
9
- import { cloneRecord, normalizeEdgeState, normalizeNodeState, normalizeVersion } from './graph-normalization';
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
@@ -1,5 +1,5 @@
1
- import type { EdgeState } from '../core/constants';
2
- import type { EdgeInterface, NodeInterface } from './graph';
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
@@ -114,3 +114,4 @@ export class Edge {
114
114
  return Object.values(this._connectedNodes);
115
115
  }
116
116
  }
117
+ //# sourceMappingURL=edge.js.map
@@ -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
@@ -65,3 +65,4 @@ export function coerceIdentifier(value) {
65
65
  }
66
66
  return String(value);
67
67
  }
68
+ //# sourceMappingURL=arrow-utils.js.map
@@ -1,3 +1,4 @@
1
- import type { Graph, GraphProps } from '../graph';
2
- import { type GraphData } from '../../graph-data/graph-data';
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 '../../graph-data/graph-data';
5
- import { ArrowGraph } from '../arrow-graph';
6
- import { ClassicGraph } from '../classic-graph';
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 '../core/constants';
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
@@ -63,3 +63,4 @@ export function cloneDataColumn(source, length) {
63
63
  }
64
64
  return result;
65
65
  }
66
+ //# sourceMappingURL=graph-normalization.js.map
@@ -1,4 +1,4 @@
1
- import type { NodeState, EdgeState } from '../core/constants';
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
@@ -17,3 +17,4 @@ export class Graph {
17
17
  this._props = { ...this._props, ...props };
18
18
  }
19
19
  }
20
+ //# sourceMappingURL=graph.js.map
@@ -1,5 +1,5 @@
1
- import type { NodeState } from '../core/constants';
2
- import type { EdgeInterface, NodeInterface } from './graph';
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
@@ -172,3 +172,4 @@ export class Node {
172
172
  return this._highlightConnectedEdges;
173
173
  }
174
174
  }
175
+ //# sourceMappingURL=node.js.map
@@ -1,4 +1,4 @@
1
- import type { GraphEdgeData, GraphNodeData, ArrowGraphData } from './graph-data';
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 '../graph/graph-normalization';
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 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=graph-data-builder.js.map
@@ -1,4 +1,4 @@
1
- import type { NodeState, EdgeState } from '../core/constants';
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
@@ -9,3 +9,4 @@ export function isPlainGraphData(value) {
9
9
  const candidate = value;
10
10
  return typeof value === 'object' && candidate?.shape === 'plain-graph-data';
11
11
  }
12
+ //# sourceMappingURL=graph-data.js.map
@@ -1,5 +1,5 @@
1
- import type { PlainGraphData, GraphEdgeData, GraphNodeData } from './graph-data';
2
- import { GraphDataBuilder } from './graph-data-builder';
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 '../graph/graph-normalization';
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.3/dist/graph-style-schema.json';
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/dist/graph-style-schema.json",
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.3" : "latest";
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.3" : "latest";
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 './graph-data/graph-data';
2
- export type { GraphDataBuilder } from './graph-data/graph-data-builder';
3
- export { ArrowGraphDataBuilder, type ArrowGraphDataBuilderOptions } from './graph-data/arrow-graph-data-builder';
4
- export type { Graph, NodeInterface, EdgeInterface } from './graph/graph';
5
- export { Node } from './graph/node';
6
- export { Edge } from './graph/edge';
7
- export { ClassicGraph } from './graph/classic-graph';
8
- export { ArrowGraph } from './graph/arrow-graph';
9
- export { GraphEngine } from './core/graph-engine';
10
- export type { GraphLayoutProps, GraphLayoutState, GraphLayoutEventDetail } from './core/graph-layout';
11
- export { GraphLayout } from './core/graph-layout';
12
- export { SimpleLayout } from './layouts/simple-layout';
13
- export { D3ForceLayout } from './layouts/d3-force/d3-force-layout';
14
- export { D3DagLayout } from './layouts/d3-dag/d3-dag-layout';
15
- export { CollapsableD3DagLayout } from './layouts/d3-dag/collapsable-d3-dag-layout';
16
- export { GPUForceLayout } from './layouts/gpu-force/gpu-force-layout';
17
- export { RadialLayout } from './layouts/experimental/radial-layout';
18
- export { ForceMultiGraphLayout } from './layouts/experimental/force-multi-graph-layout';
19
- export { HivePlotLayout } from './layouts/experimental/hive-plot-layout';
20
- export type { Marker, NodeState, NodeType, EdgeType, EdgeDecoratorType, LayoutState } from './core/constants';
21
- export { GraphLayer } from './layers/graph-layer';
22
- export type { RankGridConfig } from './layers/graph-layer';
23
- export { EdgeLayer } from './layers/edge-layer';
24
- export { GridLayer, type GridLayerProps, type GridLineDatum } from './layers/common-layers/grid-layer/grid-layer';
25
- export { StylesheetEngine } from './style/stylesheet-engine';
26
- export { GraphStylesheetEngine, GraphStyleEngine } from './style/graph-style-engine';
27
- export type { GraphStylesheet, GraphStylesheetInput, GraphStylesheetParsed, GraphStyleAttributeReference, GraphStyleScale, GraphStyleScaleType, GraphStyleValue } from './style/graph-style-engine';
28
- export { GraphStylesheetSchema } from './style/graph-style-engine';
29
- export { DEFAULT_GRAPH_LAYER_STYLESHEET, type GraphLayerStylesheet, type GraphLayerEdgeStyle, type GraphLayerNodeStyle } from './style/graph-layer-stylesheet';
30
- export { mixedGetPosition } from './utils/layer-utils';
31
- export { log } from './utils/log';
32
- export { mapRanksToYPositions, selectRankLines, type RankAccessor, type LabelAccessor, type RankPosition, type MapRanksToYPositionsOptions, type SelectRankLinesOptions } from './utils/rank-grid';
33
- export { JSONGraphLoader, type JSONGraphLoaderOptions, } from './loaders/json-graph-loader';
34
- export { DOTGraphLoader, type DOTGraphLoaderOptions, type DOTGraphLoaderMetadata, } from './loaders/dot-graph-loader';
35
- export { MARKER_TYPE, NODE_STATE, EDGE_STATE, NODE_TYPE, EDGE_TYPE, EDGE_DECORATOR_TYPE, LAYOUT_STATE } from './_deprecated/old-constants';
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