ice-entity-designer 0.0.32 → 0.0.33
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 +1 -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/flow/FlowDesigner.d.mts +1 -1
- package/dist/types/flow/FlowDesigner.d.ts +1 -1
- package/dist/types/power/PowerDesigner.d.mts +37 -0
- package/dist/types/power/PowerDesigner.d.ts +37 -0
- package/dist/types/power/power_shapes.d.mts +7 -0
- package/dist/types/power/power_shapes.d.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -448,6 +448,7 @@ const svg = power.toSvg({ background: '#ffffff' });
|
|
|
448
448
|
| 电压等级色标 | `setVoltageColors({ '110kV': '#xxxxxx' })` 覆盖;默认值见规格文档 |
|
|
449
449
|
| 运行态 | `setSwitchState(id, 'open' / 'closed')`:刀臂形状 + 分合标签 + 带电范围一起更新 |
|
|
450
450
|
| 拓扑 | `topology()` 返回带电设备与电气连通域;`applyTopology()` 把带电状态写回节点(不带电自动变灰) |
|
|
451
|
+
| 母线 T 接 | `attachToBus(device, bus, { centerX })`:设备记 `attachedBusId` 并把顶部引线贴住母线(隐式等电位,不用画绕行导体);`detachFromBus()` / 拖离几何范围即断开;拖动母线时挂上去的间隔整体跟随 |
|
|
451
452
|
| 语义校验 | 设备编号唯一、直接相连的电压等级一致(变压器两侧例外)、母线要有进线、断路器两侧应有隔离开关,以及**带电合接地刀闸 / 带接地线合闸送电**这两条五防相关规则 |
|
|
452
453
|
|
|
453
454
|
可运行示例:`examples/power-editor.html`(110kV 变电站:双母线 + 母联 + 两回进线 + 两台主变);
|