-
Notifications
You must be signed in to change notification settings - Fork 573
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
2.0.4版本如何获取到graph对象 #408
Comments
通过ref可以拿到
|
应该是在的refs上能拿到。 |
感谢,先实现功能吧,3.0应该也快了 |
好像不是原生的graph对象,没有toDataUrl属性 |
@WangJM001 你好解决了吗,老哥 |
我项目的需求是搞定了,后来换成g6-editor了,也已经不维护了,你现在是什么问题,我看看能不能帮助到你 |
一样的功能, 就是想要调用 downloadImage()、toDataUrl() 实现下载功能,谢谢老哥 |
这些是g6 3.0的api,2.0.4版本用的是g6 2.0+ |
所以不支持是吗?有其他办法实现吗 |
const image =page.saveExpandImage() // mind |
你试试吧,不确定有没有,因为我后来换g6editor了,感觉这个版本有一些bug、g6editor好用些 |
你可以把editor对象打印出来看看,文档都没写,里面应该有相应的方法,上面的方法就是我在g6editor里找到的 |
好的谢谢老哥我试试 |
忘了贴了 |
太棒了,谢谢老哥,可以了哈哈 |
赞一个 我还以为我那个功能没希望了。对了我在额外引入g6库项目不能运行你们遇到过吗? |
请问2.0.4版本如何获取到graph对象?
需要调用toDataUrl方法
The text was updated successfully, but these errors were encountered: