antvis/G2

[Bug]: 自定义 shape 时,进行 legend 筛选后,autofit 位置错误 #6606

BQXBQX posted onGitHub

Describe the bug / 问题描述

当使用自定义 shape 时,进行 legend 筛选后,进行 autofit 后 ,element 位置会发生错误(element 的位置被固定在初始位置了)

No response

Steps to Reproduce the Bug or Issue / 重现步骤

https://github.com/user-attachments/assets/29f1fd1f-ad44-4fff-812d-cb3aa78c29b7

Version / 版本

Please select / 请选择

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

<img width="1392" alt="Image" src="https://github.com/user-attachments/assets/eb2c0602-72d9-4898-ac90-a6e65eff3bac" /> 问题在这里,当动画结束后,style.d 又进行了重置,这里是有什么额外的设计用途吗?🤔

posted by BQXBQX 2 months ago

应该之前是担心动画执行中断,所以在最后把目标终点的样式在覆盖一下,可以调试修改掉,只要单侧不报错即可,额外可以人工走查一遍 dev 的 demo 案例。

posted by hustcc about 1 month ago

Fund this Issue

$0.00
Funded

Pull requests