fix: 连线位置偏移修复 - 改用 offsetLeft/offsetTop 替代 getBoundingClientRect
根因: getBoundingClientRect 返回屏幕坐标(受 scale 影响), 初始定位过程中 scale 从 1→0.45 变化时,连线在中间状态计算, 导致坐标与最终布局不匹配。 修复: 使用 offsetLeft/offsetTop 遍历 offsetParent 链获取本地坐标, 完全不受 CSS transform/scale 影响,消除 scale 依赖。
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user