antvis / antvis/X6

节点连接桩标签上自定义元素在节点图形变换时发生位移

Open
#3,882 1 comment 0 reactions 0 assignees View on GitHub
oscp type: bug 缺陷
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

![image](https://github.com/antvis/X6/assets/37462687/a3f0d526-909f-45e7-b380-22faddf34439)
![image](https://github.com/antvis/X6/assets/37462687/6ca41556-c72c-456d-ae9a-0169f01abf02)

### 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.