ice-entity-designer 0.2.2 → 0.2.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/README.md CHANGED
@@ -213,6 +213,11 @@ designer.undo();
213
213
  #### 5.1 项目快照契约
214
214
 
215
215
  - 快照带 `schemaVersion`(当前 `1`)与每个节点的 `typeId`;载入时**按 `typeId` 分派构造函数**(走 ICE 注册表,下游 `ice.registerType()` 注册的领域图元同样可载入)。旧快照没有 `typeId` 时,按所在数组归位(`entities[]` → `Entity`,`relations[]` → `Relation`)。
216
+ - 快照带 `createTime`(ISO 8601 UTC,如 `2026-09-13T07:15:45.655Z`)= 这份项目**首次创建**的时刻:
217
+ 首次写出即定下并记在 `ice.documentMeta` 上(因此同一会话反复 `serializeProject()` 结果稳定,undo/redo 的快照回放依赖这一点),
218
+ 载入别人的快照时读回来,于是「打开 → 编辑 → 保存」不会被改写;缺失 / 脏值(例如旧的
219
+ `2022/1/1 00:00:00`)会归一化成 ISO 或回退到当前时刻。**没有 `lastModifyTime`**——每次写出都会变,
220
+ 留着会破坏「两次序列化结果相同」的契约。
216
221
  - **`typeId` 一律是 `namespace:Type` 格式**(2026-09-13 起):本包的领域图元统一用 `ice-entity-designer:*`
217
222
  (`ice-entity-designer:Entity`、`ice-entity-designer:FlowNode`、`ice-entity-designer:GanttTask`…),
218
223
  与引擎内置的 `ice-render:*`、图表的 `ice-chart:*` 分属不同命名空间,因此**跨包不会撞名**。