antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11k stars 1.3k forks source link

[V5] Plugin Legend does not remain static. #5838

Closed RackweLLizm closed 2 months ago

RackweLLizm commented 2 months ago

问题描述

Legend plugin moves with the canvas when zooming in and zooming out on the canvas. It does not remain in a fixed area. image

重现链接

notFound

重现步骤

notFound

预期行为

Legend plugin must have a static value. For example, when zooming in and zooming out on the top-right canvas, it should remain in the specified static area.

平台

Windows Chrome 124 "@antv/g6": "^5.0.0-beta.40",

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Aarebecca commented 2 months ago

In current, the legend plugin was painted in the same canvas with G6 elements, so will be affected when the camera is changed. The advantage of the above approach is that the legend can be included in the exported image

we will evaluate the best way to set the legend later.