quixotic-gol 0.1.9 → 0.1.11

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 */