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 +7 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +482 -481
- package/package.json +1 -1
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
|
|
121
|
-
onSuccess?: (
|
|
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 */
|