ice-entity-designer 0.7.0 → 0.9.0
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 +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/designer/EntityDesigner.d.mts +23 -0
- package/dist/types/designer/EntityDesigner.d.ts +23 -0
- package/dist/types/flow/FlowNode.d.mts +22 -0
- package/dist/types/flow/FlowNode.d.ts +22 -0
- package/dist/types/statechart/StateNode.d.mts +10 -0
- package/dist/types/statechart/StateNode.d.ts +10 -0
- package/package.json +3 -3
|
@@ -24,6 +24,16 @@ export default class StateNode extends ICEGroup {
|
|
|
24
24
|
protected innerRingComponent: any;
|
|
25
25
|
protected labelComponent: ICEText | null;
|
|
26
26
|
hasDerivedChildren(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* StateNode **既是复合组件、又是容器**:形状 / 名字 / 终止态内圈是派生的(不进文档),
|
|
29
|
+
* 但**复合状态里的子状态是真嵌套的子节点**(见 `StatechartDesigner.__nestByGeometry`:拖动复合状态,
|
|
30
|
+
* 子状态跟着走),必须进文档 —— 否则 `serialize() → load()` 之后子状态整套消失。
|
|
31
|
+
*
|
|
32
|
+
* 实测事故:只声明 `hasDerivedChildren()` 时,示例里按下**一次「撤销」**就会把
|
|
33
|
+
* 「库存校验 / 安排发货」两个子状态删掉(撤销走的是快照恢复:`serialize()` 只存了复合状态自己)。
|
|
34
|
+
* 引擎为此留了 `getSerializableChildren()` 钩子(BPMN 的 `FlowNode` 是同一个用法,见其注释)。
|
|
35
|
+
*/
|
|
36
|
+
getSerializableChildren(): any[];
|
|
27
37
|
constructor(props?: any);
|
|
28
38
|
protected static arrangeParam(props?: any): any;
|
|
29
39
|
/** 只有这些键变化才需要重建内部形状(拖动位置、选中态都不该重建) */
|
|
@@ -24,6 +24,16 @@ export default class StateNode extends ICEGroup {
|
|
|
24
24
|
protected innerRingComponent: any;
|
|
25
25
|
protected labelComponent: ICEText | null;
|
|
26
26
|
hasDerivedChildren(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* StateNode **既是复合组件、又是容器**:形状 / 名字 / 终止态内圈是派生的(不进文档),
|
|
29
|
+
* 但**复合状态里的子状态是真嵌套的子节点**(见 `StatechartDesigner.__nestByGeometry`:拖动复合状态,
|
|
30
|
+
* 子状态跟着走),必须进文档 —— 否则 `serialize() → load()` 之后子状态整套消失。
|
|
31
|
+
*
|
|
32
|
+
* 实测事故:只声明 `hasDerivedChildren()` 时,示例里按下**一次「撤销」**就会把
|
|
33
|
+
* 「库存校验 / 安排发货」两个子状态删掉(撤销走的是快照恢复:`serialize()` 只存了复合状态自己)。
|
|
34
|
+
* 引擎为此留了 `getSerializableChildren()` 钩子(BPMN 的 `FlowNode` 是同一个用法,见其注释)。
|
|
35
|
+
*/
|
|
36
|
+
getSerializableChildren(): any[];
|
|
27
37
|
constructor(props?: any);
|
|
28
38
|
protected static arrangeParam(props?: any): any;
|
|
29
39
|
/** 只有这些键变化才需要重建内部形状(拖动位置、选中态都不该重建) */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "大漠穷秋",
|
|
3
3
|
"name": "ice-entity-designer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"description": "An entity designer based on ice-render.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"types:watch": "npm run types:check -- --watch"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"ice-render": "^2.
|
|
62
|
+
"ice-render": "^2.19.0",
|
|
63
63
|
"react": "^18 || ^19",
|
|
64
64
|
"react-dom": "^18 || ^19"
|
|
65
65
|
},
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
102
102
|
"http-server": "14.1.1",
|
|
103
103
|
"husky": "8.0.3",
|
|
104
|
-
"ice-render": "^2.
|
|
104
|
+
"ice-render": "^2.19.0",
|
|
105
105
|
"jest": "29.7.0",
|
|
106
106
|
"jest-environment-jsdom": "29.7.0",
|
|
107
107
|
"lint-staged": "15.5.2",
|