X6画布居中功能中 padding失效
问题描述
在使用X6的时候 布局完成后 需要居中处理,但是画布比较小,内容高度大要求内容不能缩放 居中后内容顶部被裁剪,想要居中后顶部是完整露出的 所以使用了 graph.centerContent({ padding: { top: 100 }}) 但是并没有按照想象的 距离顶部100px 居中
重现链接
https://codesandbox.io/p/sandbox/infallible-rain-2z8s8r?file=%2Findex.ts
重现步骤
进入页面即可看到
预期行为
预期 能水平居中然后顶部padiing露出而不是被截取
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.11.1 ...]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
👋 @X-x-start
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
这是来自QQ邮箱的假期自动回复邮件。 您好,你的邮件我已经收到。