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

G6 TreeGraph怎么自定义内容起始点位置呢?怎么显示滚动条?怎么支持多个根节点 #5188

Closed
JJ123MM opened this issue Nov 27, 2023 · 3 comments

Comments

@JJ123MM
Copy link

JJ123MM commented Nov 27, 2023

问题描述

1、G6 TreeGraph开启fitView: true内容就会居中,不开启内容就会靠左上且显示不全。不希望内容居中展示,想靠左上位置且显示全,要怎么自定义位置呢,
2、内容超出画布的宽高怎么展示滚动条呢
3、数据格式为数组格式,需要有多个根节点情况下,要怎么支持呢

重现链接

none

重现步骤

见问题描述

预期行为

见问题描述

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Copy link

hi @JJ123MM, welcome!

Copy link

Hi @JJ123MM, Please star this repo if you find it useful! Thanks ⭐!
你好 @JJ123MM。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@Aarebecca
Copy link
Contributor

你好,可以尝试 API 调用 fitView,并传入参数来控制不同方向的边距

https://g6.antv.antgroup.com/api/graph-func/transform#graphfitviewpadding-rules-animate-animatecfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants