@skydesign/tf 0.3.3 → 0.3.5
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 +18 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +351 -346
- package/dist/{render-BqWiqrE9.mjs → render-SK2uaqmj.mjs} +1047 -1004
- package/dist/render-aoKrPS96.js +106 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -2
- package/dist/server.mjs +2 -1
- package/package.json +2 -1
- package/dist/render-cE_lsgcR.js +0 -94
package/dist/index.d.ts
CHANGED
|
@@ -204,6 +204,12 @@ export declare interface GraphvizRendererProps {
|
|
|
204
204
|
* Dragging or clicking it pans the main canvas (default: false).
|
|
205
205
|
*/
|
|
206
206
|
showMinimap?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Chain icon shown before every node's address line: a complete <svg>
|
|
209
|
+
* markup string (e.g. renderToStaticMarkup(<CoinEthIcon />)), rendered at
|
|
210
|
+
* 16x16. Omit to hide the icon.
|
|
211
|
+
*/
|
|
212
|
+
chainIcon?: string;
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
/**
|
|
@@ -344,6 +350,12 @@ export declare interface RenderOptions {
|
|
|
344
350
|
selectedEdgeId: number | null;
|
|
345
351
|
/** Edge selection callback; undefined disables click-to-select. */
|
|
346
352
|
onEdgeSelect: ((edgeIndex: number | null) => void) | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* Edge label click callback, fired even when the edge is already selected
|
|
355
|
+
* (the consumer typically re-centers the label via its navigation API).
|
|
356
|
+
* undefined = label clicks fall through to the edge's select handler.
|
|
357
|
+
*/
|
|
358
|
+
onEdgeLabelClick: ((edgeIndex: number) => void) | undefined;
|
|
347
359
|
/** Node box width in points; null keeps the graphviz-computed width. */
|
|
348
360
|
nodeWidth: number | null;
|
|
349
361
|
/** Node box height in points; null keeps the graphviz-computed height. */
|
|
@@ -370,6 +382,12 @@ export declare interface RenderOptions {
|
|
|
370
382
|
* getBBox-based fit is used.
|
|
371
383
|
*/
|
|
372
384
|
initialTransform: InitialTransform | undefined;
|
|
385
|
+
/**
|
|
386
|
+
* Chain icon shown before every node's address line: a complete `<svg>`
|
|
387
|
+
* markup string (e.g. from `renderToStaticMarkup(<CoinEthIcon />)`),
|
|
388
|
+
* rendered at 16x16. undefined = no icon, address layout falls back.
|
|
389
|
+
*/
|
|
390
|
+
chainIcon: string | undefined;
|
|
373
391
|
}
|
|
374
392
|
|
|
375
393
|
declare interface RenderResult {
|