Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Support padding in FitViewOptions #6719

Closed
Rey-Wang opened this issue Jan 10, 2025 · 2 comments
Closed

[Feat]: Support padding in FitViewOptions #6719

Rey-Wang opened this issue Jan 10, 2025 · 2 comments
Labels
status: waiting for author Issue with insufficient information

Comments

@Rey-Wang
Copy link
Contributor

Describe the feature / 功能描述

现在调用 FitView 方法,会从 x 和 y 的 0 开始自动缩放,是否可以提供 padding 的配置项,能够留有一定的空间来做 fitView

Are you willing to contribute? / 是否愿意参与贡献?

Please select / 请选择

@Rey-Wang Rey-Wang added the status: waiting for maintainer These issues have not yet been reviewed by a maintainer label Jan 10, 2025
@antvis antvis deleted a comment from petercat-assistant bot Jan 13, 2025
@yvonneyx
Copy link
Contributor

yvonneyx commented Jan 13, 2025

可以通过在 spec 中指定 padding 来满足你的诉求

https://g6.antv.antgroup.com/api/graph/option#padding

@yvonneyx yvonneyx added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues have not yet been reviewed by a maintainer labels Jan 13, 2025
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. | 由于该 issue 缺少关键信息且已闲置 7 天,现已自动关闭。如需重新打开此问题,请提供所缺失的信息。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants