fix: 连线位置偏移修复 - 改用 offsetLeft/offsetTop 替代 getBoundingClientRect

根因: getBoundingClientRect 返回屏幕坐标(受 scale 影响),
初始定位过程中 scale 从 1→0.45 变化时,连线在中间状态计算,
导致坐标与最终布局不匹配。

修复: 使用 offsetLeft/offsetTop 遍历 offsetParent 链获取本地坐标,
完全不受 CSS transform/scale 影响,消除 scale 依赖。
This commit is contained in:
selfrelease
2026-07-16 16:03:40 +08:00
parent ce06674cba
commit b4536c52ef
2 changed files with 25 additions and 11 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long