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 CHANGED
@@ -9,6 +9,14 @@ import { RefAttributes } from 'react';
9
9
  */
10
10
  export declare function createLayoutConfig(overrides?: Partial<LayoutConfig>): LayoutConfig;
11
11
 
12
+ /**
13
+ * Decode a double-stringified JSON string back to an object.
14
+ * Reverses the encodeDotString operation.
15
+ * @param str - The double-stringified JSON string
16
+ * @returns The original object
17
+ */
18
+ export declare function decodeDotString<T>(str: string): T;
19
+
12
20
  /**
13
21
  * Default layout configuration with sensible values.
14
22
  */
@@ -41,6 +49,14 @@ export declare interface EdgeContent {
41
49
  text: string;
42
50
  }
43
51
 
52
+ /**
53
+ * Encode an object by double JSON.stringify for use in DOT string labels.
54
+ * This escapes special characters that would break DOT syntax.
55
+ * @param obj - The object to encode
56
+ * @returns Double-stringified JSON string
57
+ */
58
+ export declare function encodeDotString<T>(obj: T): string;
59
+
44
60
  export declare interface GraphvizJson {
45
61
  name: string;
46
62
  directed: boolean;