node支持多个label,且label支持拖拽(像edge的labels一样)
Open
oscp
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 功能描述
**针对工业或能源组态场景,node作为物理设备的抽象,可能会具有多个text或label属性来表征设备运行状态,比如设备的名称,电力设备的电量数据(电压、电流、功率...);**
1. 可以通过给自定义node,添加text属性实现;但node 的text 不能拖拽调整位置;
2. hack方式,给设备node添加text类型child node实现,但是会导致节点数量成倍增加,严重影响渲染性能和批量拖拽性能;
3. 这个在组态场景真的很刚需,建议考虑。
### 期望解决方案
**node支持多个label,且label支持拖拽(像edge的labels一样)**
Contributor guide
Research direction
Start by reviewing how custom node text is represented and how edge labels support multiple entries and dragging. Done means nodes can expose multiple draggable labels without requiring child nodes, while preserving the stated rendering and batch-dragging performance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100