antvis / antvis/Graphin

minimap:在给minimap传递options之后 小地图中的viewport更新不及时

Open
#553 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

在不传递options之前 拖动和缩放画布,小地图的功能正常,但凡传递一个options即使这个options只是个空对象,也会导致拖动和缩放画布之后viewport蓝色框消失(去小地图画布左上角了,如下图),只有再次滑动鼠标到元素上才可以重新渲染出来viewport蓝色框。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the minimap behavior with an empty options object, then compare it with the default configuration while dragging and zooming the canvas. Done means the blue viewport box stays correctly positioned and updates immediately after those interactions without requiring the pointer to move over an element.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.