-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
希望增加只读功能 #4282
Comments
👋 @hooozen Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
设置: interacting: false |
@weijiatan456 |
可以设置为一个函数, 比如下面这样,非编辑return false, 编辑return true interacting: function () { |
成功 |
Describe the feature you'd like to request
增加全局的只读模式
Describe the solution you'd like
影响数据的交互被禁止, 但画布可以拖动和缩放进行查看.
相关插件也要同步生效, 例如编辑类的快捷键被禁止, dnd被禁止.
Describe alternatives you've considered
目前通过控制挂载节点的 pointer-events: none 来解决, 但无法缩放和拖动画布
Your Example Website or App
No response
Screenshots or Videos
No response
The text was updated successfully, but these errors were encountered: