@salilvnair/dui 1.0.17 → 1.0.18

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.
@@ -47,6 +47,12 @@ export interface NetworkGraphViewProps {
47
47
  * themes — canvas can't resolve CSS variables, so the resolved theme
48
48
  * name is passed in explicitly. Defaults to 'dark'. */
49
49
  theme?: 'dark' | 'light';
50
+ /** Node ids to hide where they sit: no rebuild, no relayout. For filters a
51
+ * user toggles on and off; only a change to which nodes and edges exist
52
+ * at all rebuilds the canvas. Edges touching a hidden node hide with it. */
53
+ hiddenNodeIds?: Iterable<string>;
54
+ /** Edge ids (the edge's `id`, or its index when it has none) to hide in place. */
55
+ hiddenEdgeIds?: Iterable<string | number>;
50
56
  }
51
57
  /**
52
58
  * Force-directed graph (forceAtlas2Based physics, degree-sized nodes,
@@ -1,2 +1,2 @@
1
1
  import { NetworkGraphViewProps } from './NetworkGraphView';
2
- export declare function NetworkGraphViewImpl({ nodes, edges, onNodeClick, selectedId, fitTrigger, onReady, colorBy, sizeBy, className, style, enableClustering, enableHoverDim, enableMinimap, theme, }: NetworkGraphViewProps): import("react").JSX.Element;
2
+ export declare function NetworkGraphViewImpl({ nodes, edges, onNodeClick, selectedId, fitTrigger, onReady, colorBy, sizeBy, className, style, enableClustering, enableHoverDim, enableMinimap, theme, hiddenNodeIds, hiddenEdgeIds, }: NetworkGraphViewProps): import("react").JSX.Element;