ice-entity-designer 0.12.3 → 0.12.4
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/CHANGELOG.md +26 -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/utils/segment-box.d.mts +19 -0
- package/dist/types/utils/segment-box.d.ts +19 -0
- package/dist/types/water/WaterProcessDesigner.d.mts +15 -0
- package/dist/types/water/WaterProcessDesigner.d.ts +15 -0
- package/dist/types/water/water_shapes.d.mts +48 -0
- package/dist/types/water/water_shapes.d.ts +48 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,32 @@
|
|
|
9
9
|
|
|
10
10
|
> 下一个版本发布前,改动在这里累积。
|
|
11
11
|
|
|
12
|
+
## [0.12.4] - 2026-09-26
|
|
13
|
+
|
|
14
|
+
## [0.12.3] - 2026-09-26
|
|
15
|
+
|
|
16
|
+
### 修复
|
|
17
|
+
|
|
18
|
+
- **过路管线压住别人的位号 / 名称**(给排水符号):0.12.3 建立了"符号知道自己被什么挡了 →
|
|
19
|
+
标签让位"这套机制,但那时的判据只有"**自己的**端口被占"。图纸里还有另一类:
|
|
20
|
+
**别人的管线从我的标签上方 / 下方经过** —— 那根线跟我没有连接关系,端口占用判据管不到它
|
|
21
|
+
(下游 `ice-agent-console` 线上残留 4 处,且放大图元间距无效:折线与符号的相对位置尺度无关)。
|
|
22
|
+
|
|
23
|
+
判据扩成"**有折线穿过我的文字带**",纯几何、由设计器算(边是唯一真相,折线也在它手里):
|
|
24
|
+
|
|
25
|
+
- `WaterSymbol.labelBands()` 给出位号 / 名称**文字带的世界矩形**(与 `syncShape()` 的排版同源:
|
|
26
|
+
同一批常量 `TAG_TOP_OFFSET` / `NAME_TOP_PAD`,不再各抄一份);
|
|
27
|
+
- `WaterSymbol.setLabelBlocked({ tag, name })` —— 与端口占用**并列**的第二个让位理由;
|
|
28
|
+
- `src/utils/segment-box.ts` 的 `segmentHitsBox()`(Liang–Barsky 夹逼):折线每一段与两个文字带
|
|
29
|
+
做"线段 × 矩形"判定;
|
|
30
|
+
- `WaterProcessDesigner.refreshLabelPlacement()`(`refreshPortOccupancy()` 保留为弃用别名)
|
|
31
|
+
在增删管线 / 删图元 / 载入快照 / 松手之后各跑一遍。
|
|
32
|
+
|
|
33
|
+
量级:78 符号 × 100 管线 × 几段 ≈ 十万次整数级判定,只在上述路径跑,不进逐帧循环。
|
|
34
|
+
|
|
35
|
+
回归:`tests/water/segment-box.test.ts`(横穿 / 贴边 / 平行在外侧 / 零长度)、
|
|
36
|
+
`tests/water/water-designer.test.ts`(过路折线经过 → 让位;挪走 → 回位;不经过 → 不触发)。
|
|
37
|
+
|
|
12
38
|
## [0.12.3] - 2026-09-26
|
|
13
39
|
|
|
14
40
|
### 修复
|