antvis / G6VP

G6VP is an online visual analysis tool for graphs and a low-code platform for building graph applications.
https://insight.antv.antgroup.com
Apache License 2.0
818 stars 111 forks source link

fix: fix issue that set wrong graph size when pattern match unmounted #467

Closed Aarebecca closed 1 year ago

Aarebecca commented 1 year ago

之前问题:

抽屉里的模式匹配销毁后(切换到其他组件),会设置画布为 previousSize,但 previousSize 初始值为 500*500,并没有更新为画布实际的尺寸。

https://github.com/antvis/G6VP/blob/4324266bab3c7db13e28fe3aeb788611c8b4e4cd/packages/gi-assets-algorithm/src/PatternMatch/Component.tsx#L531-L541

https://github.com/antvis/G6VP/assets/25787943/d6817c5b-a242-4aea-9dad-13407f8a057c