@umbraci/jsmind 0.10.10 → 0.10.11
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/README.md +9 -11
- package/dist/jsmind.history.js.map +1 -1
- package/dist/jsmind.js +1 -1
- package/dist/jsmind.js.map +1 -1
- package/es/jsmind.history.js.map +1 -1
- package/es/jsmind.js +1 -1
- package/es/jsmind.js.map +1 -1
- package/lib/jsmind.history.js.map +1 -1
- package/lib/jsmind.js +1 -1
- package/lib/jsmind.js.map +1 -1
- package/package.json +1 -1
- package/types/generated/jsmind.d.ts +4 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraci/jsmind",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.11",
|
|
4
4
|
"description": "jsMind is a pure javascript library for mindmap, it base on html5 canvas. jsMind was released under BSD license, you can embed it in any project, if only you observe the license.",
|
|
5
5
|
"main": "lib/jsmind.js",
|
|
6
6
|
"module": "es/jsmind.js",
|
|
@@ -305,14 +305,11 @@ declare class jsMind {
|
|
|
305
305
|
*/
|
|
306
306
|
remove_node(node: string | import("./jsmind.node.js").Node): boolean;
|
|
307
307
|
/**
|
|
308
|
-
* Update
|
|
309
|
-
* @param {string} node_id
|
|
310
|
-
* @param {string|
|
|
308
|
+
* Update node topic text or multiple node properties.
|
|
309
|
+
* @param {string} node_id - The ID of the node to update
|
|
310
|
+
* @param {string|Partial<Pick<import('./jsmind.node.js').Node, 'topic' | 'data' | 'id' | 'index' | 'expanded' | 'direction'>>} topic_or_updates - Topic string for backward compatibility, or partial Node object for comprehensive updates
|
|
311
311
|
*/
|
|
312
|
-
update_node(node_id: string,
|
|
313
|
-
topic?: string;
|
|
314
|
-
data?: Record<string, any>;
|
|
315
|
-
}): void;
|
|
312
|
+
update_node(node_id: string, topic_or_updates: string | Partial<Pick<import("./jsmind.node.js").Node, "topic" | "data" | "id" | "index" | "expanded" | "direction">>): void;
|
|
316
313
|
/**
|
|
317
314
|
* Move a node and optionally change direction.
|
|
318
315
|
* @param {string} node_id
|