You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kikashine
changed the title
“autoFit:true”和"clip:true"导致brushXFilter、brushXHighlight错误
“autoFit:true”导致brushXFilter错误,同时brushXFilter可能存在内存泄露
Sep 18, 2023
官方示例https://g2.antv.antgroup.com/examples/interaction/multi-view/#focus-context
上面的area是focus,下面是content
为focus在new时增加“autoFit:true” ,在上面focus中鼠标拉选一部分数据
brush:filter机制下应把框选部分放大显示,但此时focus为空白
focus未指定容器的css高度,图像上下颠倒
问题总结:
1、为focus增加“autoFit:true”,会导致brush:filter机制下鼠标拉选的数据绘制为空白。此时在content用鼠标拉选,focus的绘制也出现同样情况。
2、 为focus增加“autoFit:true”,若未指定容器的css高度,将绘制出一个上下颠倒的图像。
3、增加"clip:true"导致鼠标画出的mask不显示。 附:我不太确定“clip:true”是否存在及其作用。又查看了一遍文档似乎不存在?
4、当一切绘制正常时,鼠标拖拽mask使局部数据绘制更新,反复拖拽似乎导致内存占用快速飙升,且内存泄露。
官方示例代码略作调整可呈现问题:
The text was updated successfully, but these errors were encountered: