quixotic-gol 0.1.2 → 0.1.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.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)).slice(1, -1);
6
+ }
7
+ function za(t) {
8
+ return 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 ka(t) {
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 za = Or(function({
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
- za as GraphvizRenderer,
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
- ka as setupZoomPan,
3703
+ ja as setupZoomPan,
3696
3704
  $a as useGraphvizWorker
3697
3705
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quixotic-gol",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",