antvis/G6

[Bug]: Gridline plugin does not zoom in at v5 whereas grid plugin zoom in v4 works perfectly fine #6887

Danila-Vologdin posted onGitHub

Describe the bug / 问题描述

The Gridline plugin does not zoom when the 'zoom-canvas' happens. The grid zoom used to work in v4.x but now it does not. We tried to implement the feature ourselves but we could not. Help us please.

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

Please select / 请选择

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

It appears that this issue has already been reported as Issue #6887 in the antvis/G6 repository. Since this is the same issue you mentioned, it seems that there are no other similar reports or solutions available at the moment.

To address this, you might consider checking for any updates or patches that might have been released since the issue was reported. Alternatively, you can keep an eye on the issue for any updates or responses from the maintainers.

If you have any further questions or need additional assistance, feel free to ask!

<details> <summary>🪧 Tips</summary> For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. </details>

posted by petercat-assistant[bot] about 1 month ago

It appears that this issue has already been reported as Issue #6887 in the antvis/G6 repository. Since this is the same issue you mentioned, it seems that there are no other similar reports or solutions available at the moment.

To address this, you might consider checking for any updates or patches that might have been released since the issue was reported. Alternatively, you can keep an eye on the issue for any updates or responses from the maintainers.

If you have any further questions or need additional assistance, feel free to ask!

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

you referenced my issue tho

posted by Danila-Vologdin about 1 month ago

I apologize for the confusion. It seems that the issue you mentioned is indeed the one you reported. Since there are no other similar issues or solutions available at the moment, I recommend keeping an eye on the issue for any updates or responses from the maintainers.

If you have any further questions or need additional assistance, feel free to ask!

<details> <summary>🪧 Tips</summary> For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. </details>

posted by petercat-assistant[bot] about 1 month ago

Can you please help us at least with an advice 🙌 @yvonneyx How to implement the custom zoom for grid-line? We tried different approaches but no results unfortunately.

Best regards

posted by DanilaCODE 30 days ago

Can you please help us at least with an advice 🙌 @yvonneyx How to implement the custom zoom for grid-line? We tried different approaches but no results unfortunately.

Best regards

Hi there! I'd be happy to help with the grid-line custom zoom implementation.

The core approach involves:

  • Listen to canvas AFTER_TRANSFORM events (fetch zoom info)
  • Calculate the scale ratio difference between previous and current zoom
  • Adjust the grid position based on the zoom origin point
  • Update the background-size & position CSS property of grid

We've actually implemented this feature in a recent PR #6925 that handles both zoom and translation following. Feel free to take a look at the code for a detailed implementation. 😊

posted by yvonneyx 30 days ago

Thank you very much My friend! @yvonneyx Ive been struggling with implementation of it for a good couple of weeks and your suggestions is just a life-saver! Love it!

posted by DanilaCODE 30 days ago

:tada: This issue has been resolved and is now available in the 5.0.45 release! :tada:

posted by github-actions[bot] 15 days ago

Fund this Issue

$0.00
Funded

Pull requests