vortx-gl 1.0.34 → 1.0.35

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.
@@ -13,8 +13,12 @@ export declare const GraphConfig: {
13
13
  readonly hideBadgesBelow: 0.4;
14
14
  /** Below this, GPU edge pass may fall back to gl.LINES on big graphs. */
15
15
  readonly simplifyEdgesBelow: 0.15;
16
- /** Below this the per-edge/per-node text+arrow block is skipped entirely. */
16
+ /** Below this the per-edge/per-node text+arrow block is skipped entirely,
17
+ * and the colored edge overlay yields to the plain GPU edge pass. */
17
18
  readonly fullStyleBelow: 0.05;
19
+ /** Node icons/thumbnails are skipped below this zoom. Consumers whose data
20
+ * spans a wide world (so the fit zoom is low) can lower it. */
21
+ readonly hideIconsBelow: 0.04;
18
22
  readonly sensitivity: 1.2;
19
23
  readonly fitOnLoad: true;
20
24
  };
@@ -89,9 +93,12 @@ export declare const GraphConfig: {
89
93
  };
90
94
  };
91
95
  export type GraphConfigType = typeof GraphConfig;
92
- /** Recursively make every field of an object optional. */
96
+ /** Recursively make every field of an object optional. Numeric and boolean
97
+ * leaves are widened from their `as const` literal (e.g. `0.05`) so an
98
+ * override can actually supply a different value; string leaves keep their
99
+ * literal unions (e.g. `nodeShape`). */
93
100
  export type DeepPartial<T> = {
94
- [K in keyof T]?: T[K] extends ReadonlyArray<infer _U> ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K];
101
+ [K in keyof T]?: T[K] extends ReadonlyArray<infer _U> ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K] extends number ? number : T[K] extends boolean ? boolean : T[K];
95
102
  };
96
103
  export type PartialGraphConfig = DeepPartial<GraphConfigType>;
97
104
  export type ResolvedGraphConfig = {
@@ -9,7 +9,7 @@ import { SharedOverlayState } from './SharedOverlayState';
9
9
  * the full edge list every frame.
10
10
  */
11
11
  export declare class EdgeRenderer {
12
- private hoverNeighborCache;
12
+ private hoverEdgeCache;
13
13
  private hoverCachedNodeId;
14
14
  private hoverCachedEdgeCount;
15
15
  private state;
@@ -21,7 +21,13 @@ export declare class EdgeRenderer {
21
21
  * Adjacency list is cached and only rebuilt when the hovered node or edge
22
22
  * topology changes — a major win on high-degree nodes.
23
23
  */
24
- drawHoverHighlight(hoveredId: number, indices: Uint32Array, count: number, theme: "dark" | "light", dpr: number, nodeMetadata: Map<number, NodeMetadata>, pointSize: number): void;
24
+ drawHoverHighlight(hoveredId: number, indices: Uint32Array, count: number, theme: "dark" | "light", dpr: number, nodeMetadata: Map<number, NodeMetadata>, edgeMetadata: Map<string, EdgeMetadata>, edgeIndexToId: string[], pointSize: number): void;
25
+ /**
26
+ * Adds one edge's path (straight or quadratic curve) to the current canvas
27
+ * path, trimmed to each endpoint's node radius. Shared by the custom-edge and
28
+ * hover passes so a highlight always lies exactly on the edge it marks.
29
+ */
30
+ private traceEdgePath;
25
31
  /**
26
32
  * Draws edges that opt into custom styling (color, width, curvature, dash).
27
33
  * Plain edges keep using the GPU pipeline.
@@ -36,6 +36,7 @@ export declare class SharedOverlayState {
36
36
  viewportCullMargin: number;
37
37
  /** CSS pixels of inset between the icon and the node's outer border. */
38
38
  nodeIconPaddingPx: number;
39
+ hideIconsBelow: number;
39
40
  /** Toggle for the off-canvas-edge dot+arrow that marks a selected node
40
41
  * outside the viewport. Mirrors GraphConfig.style.showOffscreenSelectionIndicator. */
41
42
  showOffscreenSelectionIndicator: boolean;
@@ -169,6 +169,14 @@ export declare class GraphEngine {
169
169
  private applyNodeSelectStyle;
170
170
  private applyNodeDeselectStyle;
171
171
  private applyEdgeSelectStyle;
172
+ private isBlackOnDark;
173
+ /** An edge's resting/selected stroke color, or undefined for the theme default. */
174
+ private themedEdgeColor;
175
+ /**
176
+ * The selection highlight + arrow color. Black on dark falls back to the
177
+ * dark theme's resting edge color, so the edge keeps its look and only widens.
178
+ */
179
+ private themedEdgeSelectColor;
172
180
  private applyEdgeDeselectStyle;
173
181
  setSelectedEdges(ids: ReadonlyArray<string>): void;
174
182
  selectNodes(ids: ReadonlyArray<string | number>): void;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { NodeInput, EdgeInput } from './engine/types';
2
+ export declare const VORTX_BUILD = "GROUP-FIX-4";
2
3
  export { GraphEngine } from './engine/renderer';
3
4
  export * from './engine/types';
4
5
  export { default as GraphCanvas } from './components/GraphCanvas';
5
6
  export * from './engine/api';
6
7
  export { Minimap } from './engine/Minimap';
7
8
  export { GraphConfig, resolveConfig } from './engine/config';
8
- export type { GraphConfigType, PartialGraphConfig, ResolvedGraphConfig, GraphOptions, } from './engine/config';
9
+ export type { GraphConfigType, PartialGraphConfig, ResolvedGraphConfig, GraphOptions } from './engine/config';
9
10
  export { resolveNodeStyle, resolveNodeSelectStyle, resolveEdgeStyle, resolveEdgeSelectStyle, resolveEdgeClass, resolveIconKey, } from './engine/utils/styleResolver';
10
11
  export type { ResolvedNodeStyle, ResolvedNodeSelectStyle, ResolvedEdgeStyle, ResolvedEdgeSelectStyle, EdgeStyleClass, NodeElement, EdgeElement, } from './engine/utils/styleResolver';
11
12
  export type { RunLayoutOptions } from './composables/useGraphLayout';