quixotic-gol 0.1.2 → 0.1.4
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 +16 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +12 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { useRef as lt, useState as He, useCallback as be, useEffect as Re, forwardRef as Or, useImperativeHandle as Vr } from "react";
|
|
2
2
|
import { jsx as Mt, jsxs as ue } from "react/jsx-runtime";
|
|
3
3
|
const Sa = 500;
|
|
4
|
+
function ka(t) {
|
|
5
|
+
return JSON.stringify(JSON.stringify(t));
|
|
6
|
+
}
|
|
7
|
+
function za(t) {
|
|
8
|
+
return JSON.parse(JSON.parse(t));
|
|
9
|
+
}
|
|
4
10
|
var Tr = { value: () => {
|
|
5
11
|
} };
|
|
6
12
|
function Se() {
|
|
@@ -2299,7 +2305,7 @@ function jr(t) {
|
|
|
2299
2305
|
}
|
|
2300
2306
|
return e;
|
|
2301
2307
|
}
|
|
2302
|
-
function
|
|
2308
|
+
function ja(t) {
|
|
2303
2309
|
const e = it(t).select("svg"), r = e.select("g#graph0");
|
|
2304
2310
|
if (e.empty() || r.empty()) {
|
|
2305
2311
|
console.warn("SVG or graph group not found");
|
|
@@ -3445,7 +3451,7 @@ function Xa({ onCancel: t }) {
|
|
|
3445
3451
|
)
|
|
3446
3452
|
] }) });
|
|
3447
3453
|
}
|
|
3448
|
-
const
|
|
3454
|
+
const Ga = Or(function({
|
|
3449
3455
|
dotString: e,
|
|
3450
3456
|
nodeMapping: r = {},
|
|
3451
3457
|
svgFontSize: n = 14,
|
|
@@ -3687,11 +3693,13 @@ const za = Or(function({
|
|
|
3687
3693
|
});
|
|
3688
3694
|
export {
|
|
3689
3695
|
xe as DEFAULT_LAYOUT_CONFIG,
|
|
3690
|
-
|
|
3696
|
+
Ga as GraphvizRenderer,
|
|
3691
3697
|
Sa as LARGE_GRAPH_THRESHOLD,
|
|
3692
3698
|
Xa as WorkerLoadingIndicator,
|
|
3693
3699
|
xa as createLayoutConfig,
|
|
3700
|
+
za as decodeDotString,
|
|
3701
|
+
ka as encodeDotString,
|
|
3694
3702
|
Ba as renderCustomGraph,
|
|
3695
|
-
|
|
3703
|
+
ja as setupZoomPan,
|
|
3696
3704
|
$a as useGraphvizWorker
|
|
3697
3705
|
};
|