vortx-gl 1.0.37 → 1.0.39

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.
@@ -1,5 +1,5 @@
1
1
  import { mat3 } from 'gl-matrix';
2
- import { NodeMetadata, EdgeMetadata, PhantomEdge } from '../types';
2
+ import { NodeMetadata, EdgeMetadata, PhantomEdge, HighlightConfig } from '../types';
3
3
  import { SharedOverlayState } from './SharedOverlayState';
4
4
  /**
5
5
  * Renders custom edges (when overriding the GPU edge buffer), edge labels,
@@ -22,6 +22,20 @@ export declare class EdgeRenderer {
22
22
  * topology changes — a major win on high-degree nodes.
23
23
  */
24
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
+ * Pulsing highlight on edges (the edge half of `drawHighlight` in effects),
27
+ * along each edge's own (possibly curved) path, in three layers:
28
+ * - a glowing halo: two staggered strokes that widen and fade (the "ping");
29
+ * - a solid core in the highlight color that breathes with the pulse;
30
+ * - a bright dash travelling source → target once per period, so the
31
+ * relation's direction reads at a glance.
32
+ * Light theme gets stronger alphas and an outlined (colored rim, white
33
+ * center) dash: faint strokes wash out on white, and a same-color dash
34
+ * would vanish into the core.
35
+ * Selected edges are skipped, like selected nodes, so their selection halo
36
+ * reads as "the chosen one".
37
+ */
38
+ drawPulse(indices: Uint32Array, edgeIndexToId: string[], theme: "dark" | "light", dpr: number, nodeMetadata: Map<number, NodeMetadata>, edgeMetadata: Map<string, EdgeMetadata>, highlight: HighlightConfig, selectedEdgeIds: Set<string>, pointSize: number): void;
25
39
  /**
26
40
  * Adds one edge's path (straight or quadratic curve) to the current canvas
27
41
  * path, trimmed to each endpoint's node radius. Shared by the custom-edge and
@@ -328,8 +328,8 @@ export interface FlowConfig {
328
328
  selectedOnly?: boolean;
329
329
  }
330
330
  /**
331
- * Pulsing "highlight" overlay for a set of nodes — a growing, fading colored
332
- * halo ring (EA-3.0-style blink). Used to draw attention to candidate nodes
331
+ * Pulsing "highlight" overlay for a set of nodes and edges — a growing, fading
332
+ * colored halo ring around nodes, a widening fading stroke on edges (EA-3.0-style blink). Used to draw attention to candidate nodes
333
333
  * (e.g. the group main-vertex pick) and reusable elsewhere (timeline). Purely
334
334
  * additive overlay drawing; it does not mutate node size/color.
335
335
  */
@@ -337,6 +337,8 @@ export interface HighlightConfig {
337
337
  enabled: boolean;
338
338
  /** Node INDICES to pulse. */
339
339
  ids: Set<number>;
340
+ /** Edge ids to pulse, along each edge's own (possibly curved) path. */
341
+ edgeIds: Set<string>;
340
342
  /** Ring color; defaults to each node's colorOnSelect / data.color. */
341
343
  color?: string;
342
344
  /** Peak ring growth (ring radius = baseRadius * (1 + grow * t)). */
@@ -375,6 +377,12 @@ export interface Combo {
375
377
  * button is also hidden for managed combos.
376
378
  */
377
379
  managed?: boolean;
380
+ /**
381
+ * Plain hull, e.g. to show clusters: no HUD pill and no collapse/edit
382
+ * buttons, and the fill + border come from `color`. Collapse it from code
383
+ * only. Pair with `managed` to keep members from being edited by drag.
384
+ */
385
+ decorative?: boolean;
378
386
  }
379
387
  /**
380
388
  * An item in the radial (circular) context menu.