节点连接桩标签上自定义元素在节点图形变换时发生位移
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
节点连接桩标签上自定义了元素用于显示数值,但是在设置节点元素大小的时候会发生位移
### Your Example Website or App
https://codesandbox.io/s/cocky-shadow-khrch4?file=/App.tsx
### Steps to Reproduce the Bug or Issue
进行节点缩放时自定义节点连接桩标签自定义元素发生位移
### Expected behavior
不发生位移
### Screenshots or Videos


### Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 2.11.1]
### Additional context
_No response_
Contributor guide
Research direction
Start with the linked CodeSandbox example in App.tsx and reproduce the displacement by resizing the node. Trace how the custom element on a node port label is positioned during node-graphic transformation. Done means the custom label element keeps its position while the node is resized, with the reported reproduction still working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100