@flowgram.ai/free-layout-core 0.4.2 → 0.4.3
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/esm/index.js +10 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/typings/index.d.mts +1 -1
- package/dist/typings/index.d.ts +1 -1
- package/dist/typings/workflow-drag.d.mts +1 -1
- package/dist/typings/workflow-drag.d.ts +1 -1
- package/dist/typings/workflow-json.d.mts +1 -1
- package/dist/typings/workflow-json.d.ts +1 -1
- package/dist/typings/workflow-line.d.mts +1 -1
- package/dist/typings/workflow-line.d.ts +1 -1
- package/dist/typings/workflow-node.d.mts +1 -1
- package/dist/typings/workflow-node.d.ts +1 -1
- package/dist/typings/workflow-registry.d.mts +1 -1
- package/dist/typings/workflow-registry.d.ts +1 -1
- package/dist/{workflow-line-entity-DSC3qPV1.d.mts → workflow-line-entity-CauIz5GH.d.mts} +14 -1
- package/dist/{workflow-line-entity-I_VrhJ_t.d.ts → workflow-line-entity-DqPb9Odw.d.ts} +14 -1
- package/package.json +9 -9
package/dist/esm/index.js
CHANGED
|
@@ -2425,9 +2425,18 @@ var WorkflowDocument = class extends FlowDocument {
|
|
|
2425
2425
|
this._onReloadEmitter.dispose();
|
|
2426
2426
|
}
|
|
2427
2427
|
/**
|
|
2428
|
-
*
|
|
2428
|
+
* 批量添加节点
|
|
2429
|
+
* @deprecated use 'batchAddFromJSON' instead
|
|
2430
|
+
* @param json
|
|
2431
|
+
* @param options
|
|
2429
2432
|
*/
|
|
2430
2433
|
renderJSON(json, options) {
|
|
2434
|
+
return this.batchAddFromJSON(json, options);
|
|
2435
|
+
}
|
|
2436
|
+
/**
|
|
2437
|
+
* 批量添加节点
|
|
2438
|
+
*/
|
|
2439
|
+
batchAddFromJSON(json, options) {
|
|
2431
2440
|
const { parent = this.root, isClone = false } = options ?? {};
|
|
2432
2441
|
const containerID = this.getNodeSubCanvas(parent)?.canvasNode.id ?? parent.id;
|
|
2433
2442
|
const processedJSON = buildGroupJSON(json);
|