X6 icon indicating copy to clipboard operation
X6 copied to clipboard

画布在无限缩放和滚动轴两种模式下,引入小地图插件,表现不一致。

Open hanyuesoyeon opened this issue 2 years ago • 8 comments

Describe the bug

版本号: "@antv/x6": "^2.3.0" "@antv/x6-plugin-minimap": "^2.0.2"

画布在滚动轴这种模式下,小地图展示正常。 画布在无限缩放模式下,小地图展示异常,基本用不了。

Your Example Website or App

暂无

Steps to Reproduce the Bug or Issue

1.2.3.4.5.

Expected behavior

期待效果: 在画布无限缩放的模式下,小地图可以正常缩放拖动显示。

Screenshots or Videos

Platform

windows

Additional context

No response

hanyuesoyeon avatar Mar 17 '23 12:03 hanyuesoyeon

👋 @hanyuesoyeon

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Mar 17 '23 12:03 x6-bot[bot]

这个已经加入到我们的工作计划中,感谢你指出问题。

NewByVector avatar Mar 22 '23 09:03 NewByVector

遇到同样的问题,请问解决了吗

dongongfeiyu avatar May 18 '23 08:05 dongongfeiyu

有使用小地图的demo吗,1.x版本好使,2.x版本不好使啊

gitLPS avatar Jul 14 '23 09:07 gitLPS

我这的表现就是引用了scroll,就会导致minimap的viewport失效,不会随着画布滚动实时移动

yuuuuuyu avatar Aug 10 '23 07:08 yuuuuuyu

我这的表现就是引用了scroll,就会导致minimap的viewport失效,不会随着画布滚动实时移动

我也遇到这个问题了,然后查了下,没有相关的issue和discussion,刚打算提issue,发现把minimap放在scroller插件后面引入,就没问题了。。。 @NewByVector 这个有点隐晦,麻烦修复下哈

TZZack avatar Sep 04 '23 11:09 TZZack

我这的表现就是引用了scroll,就会导致minimap的viewport失效,不会随着画布滚动实时移动

使用画布自带的panning功能,不引入scroll插件,也会出现这个问题

vCloudSail avatar Nov 01 '23 07:11 vCloudSail

#4300 刚提了一个

cuidong626 avatar May 14 '24 00:05 cuidong626

image 我这个是没引入scroll的有办法解决吗

zhangfei1111 avatar Dec 10 '24 08:12 zhangfei1111