我可以禁用最新查看器版本的本机矩形选择吗?
最新版本的 Autodesk Forge Viewer 通过使用 ctrl 键实现了矩形选择工具。我们已经实现了一个多重选择工具(使用博客文章 https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-simpler-extension),它使用 ctrl 键添加到当前选择。问题是,当按下 ctrl 键时,本机工具会激活,并且由于本机行为是在选择之前取消选择所有内容,因此我们无法使我们的工具按预期工作。
是否可以禁用本机工具的 ctrl 键激活?在查看器源中搜索按键非常困难,而且我找不到任何指向此工具的内容。
Recent versions of the Autodesk Forge Viewer implemented a rectangle selection tool, by using the ctrl key. We've already implemented a multi-selection tool (using the blog post https://forge.autodesk.com/blog/custom-window-selection-forge-viewer-simpler-extension), and it uses the ctrl key to add to the current selection. The issue is that, when the ctrl key is pressed, the native tool activates, and since the native behavior is to deselect all before selecting, we can't make our tool to work as intended.
Is it possible to disable the ctrl key activation of the native tool? Searching the Viewer source for key presses is very hard, and I couldn't find anything pointing to this tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以传递如下所示的
disabledExtensions
选项,以防止 Forge Viewer 自动加载Autodesk.BoxSelection
扩展。You may pass an option
disabledExtensions
like the below to prevent Forge Viewer from loading theAutodesk.BoxSelection
extension automatically.