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

fitView=true not working 图没有自动适配画布大小 #160

Open
hector12free opened this issue Jul 14, 2020 · 4 comments
Open

fitView=true not working 图没有自动适配画布大小 #160

hector12free opened this issue Jul 14, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@hector12free
Copy link

hector12free commented Jul 14, 2020

Describe the bug
添加了options={{fitView: true}},但是画布并没有缩放到显示所有节点。

参考链接:https://www.yuque.com/antv/g6/graph#2VtUQ

To Reproduce
比如这个示例:
https://codesandbox.io/s/layout-selector-le6s4?file=/src/index.js

Expected behavior
添加了options={{fitView: true}}后,画布缩放到显示所有节点。

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser: chrome
  • Version: 83.0.4103.116
@dengl11
Copy link

dengl11 commented Oct 25, 2020

+1

@pomelo-nwu
Copy link
Member

@natakina
Copy link

I have "@antv/graphin": "^2.2.0".
And I have the same issue. <FitView /> component doesn't work.

layout={{
   type: 'dagre',
}}

@YuAoi
Copy link

YuAoi commented Nov 7, 2022

+1

@pomelo-nwu pomelo-nwu added the bug Something isn't working label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

5 participants