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

使用canvas 和svg的区别 #71

Closed
mybydhn opened this issue Feb 13, 2017 · 4 comments
Closed

使用canvas 和svg的区别 #71

mybydhn opened this issue Feb 13, 2017 · 4 comments

Comments

@mybydhn
Copy link

mybydhn commented Feb 13, 2017

我是想问想 我在网上看的demo好像是用svg的居多 想问下这块使用svg和canvas有什么区别吗?

@hizzgdev
Copy link
Owner

svg在表达图形方面具有更好语义,而canvas的效率会更高。
开发jsMind的时候,节点使用html+css,线条使用canvas,以期效率最高。

关于两者的讨论,可参考知乎上的一个主题:https://www.zhihu.com/question/19690014

@mybydhn
Copy link
Author

mybydhn commented Feb 13, 2017

好的,谢谢你的解答。项目中需要这块的内容。期待在使用的过程中不会出现大问题。哈哈。

@mybydhn
Copy link
Author

mybydhn commented Feb 13, 2017

不好意思 在问你一个问题 begin_edit 这个方法 如果需要与后台交互 进行数据的判断 有回调函数吗?

@hizzgdev
Copy link
Owner

目前没有提供这个回调函数。
不过既然你找到了 begin_edit ,你可以按需要自己添加。
欢迎你提交pull-request

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

No branches or pull requests

2 participants