ice-entity-designer 0.10.0 → 0.11.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 +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -82,6 +82,8 @@ worker 持有一棵镜像树只负责画,位图回传主线程显示。本仓
|
|
|
82
82
|
(要不要上 worker,看场景里有没有大范围重绘,不看图元数量);
|
|
83
83
|
- **派生更新走同一条应用层通路**:worker 收到状态补丁后**重放 `applyPatch`**(重建内部部件、
|
|
84
84
|
重算连线走线),所以改名 / 改类型 / 改位置都**不需要重发整份文档**(实测全量重同步 0 次);
|
|
85
|
+
- **加/删图元也走增量**(协议 v2):新建一个节点从 **474KB** 降到 **1KB**(≈470×),
|
|
86
|
+
worker 那一帧 125ms → 6.3ms,端到端 166ms → 10ms;
|
|
85
87
|
- **上不去就自动回退**:启动前探测(`ICE.MirrorHost.detect()`)、`new Worker` 兜底、`ready` 握手、
|
|
86
88
|
运行期看门狗,任一失败都还原落墨通道并**立刻用主线程重绘一帧** —— 不支持的浏览器上页面与
|
|
87
89
|
"从没接过 worker"完全一致,应用只需接住 `onFallback`。
|
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.11.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": "^4.
|
|
62
|
+
"ice-render": "^4.1.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": "^4.
|
|
104
|
+
"ice-render": "^4.1.0",
|
|
105
105
|
"jest": "29.7.0",
|
|
106
106
|
"jest-environment-jsdom": "29.7.0",
|
|
107
107
|
"lint-staged": "15.5.2",
|