quixotic-gol 0.1.10 → 0.1.12

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/index.d.ts CHANGED
@@ -117,8 +117,11 @@ export declare interface GraphvizRendererProps {
117
117
  svgFontSize?: number;
118
118
  /** Optional custom loading indicator component */
119
119
  loadingIndicator?: React.ReactNode;
120
- /** Callback when rendering succeeds with JSON result */
121
- onSuccess?: (json: GraphvizJson) => void;
120
+ /** Callback when rendering succeeds */
121
+ onSuccess?: (result: {
122
+ json: GraphvizJson;
123
+ svgElement: SVGSVGElement;
124
+ }) => void;
122
125
  /** Callback when rendering fails */
123
126
  onError?: (error: Error) => void;
124
127
  /** Callback on zoom with font size information */
@@ -216,6 +219,8 @@ export declare interface LayoutConfig {
216
219
  * Content structure for graph nodes
217
220
  */
218
221
  export declare interface NodeContent {
222
+ /** Unique key for the node */
223
+ key?: string;
219
224
  /** Tags associated with the node */
220
225
  tags: string[];
221
226
  /** Display label for the node */