使用ref的属性值未按照相对元素进行处理,如refWidth、refCx、refD等等
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
官方文档上面描述,坐标原点会参考ref的坐标原点,但是我实际使用的时候发现并没有达到预期目标。

查看源码(没看懂)后,增加如下代码达到预期,是我理解的有问题还是我使用的有问题?

### 重现链接
[重现链接](https://codesandbox.io/p/sandbox/long-butterfly-3yy3dl?file=%2Findex.ts%3A58%2C5)
### 重现步骤
无
### 预期行为
按照ref的坐标原点偏移
### 平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.16.1,3.1.7]
### 屏幕截图或视频(可选)
_No response_
### 补充说明(可选)
_No response_
Contributor guide
Research direction
Start with the CodeSandbox reproduction at index.ts around line 58 and compare the documented ref behavior with the handling of refWidth, refCx, and refD. Confirm whether the referenced element's coordinate origin is applied, and consider the issue resolved when these attributes offset positions according to ref as expected.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100