@flowgram.ai/free-layout-core 0.4.17 → 0.4.19
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 +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -2230,6 +2230,7 @@ var WorkflowDocument = class extends import_document8.FlowDocument {
|
|
|
2230
2230
|
originParent,
|
|
2231
2231
|
meta
|
|
2232
2232
|
});
|
|
2233
|
+
this.options.preNodeCreate?.(node);
|
|
2233
2234
|
const datas = dataRegistries ? this.nodeDataRegistries.concat(...dataRegistries) : this.nodeDataRegistries;
|
|
2234
2235
|
node.addInitializeData(datas);
|
|
2235
2236
|
node.ports = node.getData(WorkflowNodePortsData);
|
|
@@ -3057,7 +3058,7 @@ var WorkflowDragService = class {
|
|
|
3057
3058
|
return;
|
|
3058
3059
|
}
|
|
3059
3060
|
const sourceContainer = nodes[0]?.parent;
|
|
3060
|
-
if (!sourceContainer) {
|
|
3061
|
+
if (!sourceContainer || sourceContainer.flowNodeType === import_document10.FlowNodeBaseType.ROOT) {
|
|
3061
3062
|
return;
|
|
3062
3063
|
}
|
|
3063
3064
|
const valid = nodes.every((node) => node?.parent === sourceContainer);
|