Forge Viewer:同时显示底部工具栏和标记 [英] Forge Viewer: Show bottom toolbar and markups at the same time

查看:44
本文介绍了Forge Viewer:同时显示底部工具栏和标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种工具,允许多个用户向同一个 AutoCAD 绘图添加标记.我还希望用户能够使用伪造查看器的底部工具栏来隐藏/显示图层和属性弹出窗口.

I'm developing a tool that allow's several users to add markups to the same autocad drawings. I also want the users to be able to use the bottom toolbar of the forge viewer to hide/show layers and the properties popup.

标记扩展很好地添加了 svg 标记,但是它在进入编辑模式时隐藏了伪造查看器的底部工具栏.看来,显示伪造查看器底部工具栏的唯一方法是调用扩展对象上的 .hide() 方法,该方法将隐藏标记.

The markup extension is good to add svg markups, however it hides the bottom toolbar of the forge viewer when entering the edit mode. It seams that the only way to show the bottom toolbar of the forge viewer is to call the .hide() method on the extension object which will hide the markups.

有没有办法同时显示底部工具栏和标记?

Is there a way to show the bottom toolbar and the markups at the same time?

推荐答案

尝试:

Autodesk.Viewing.Extensions.Markups.Core.Utils.showLmvToolsAndPanels(viewer)

然而,一些内置功能(平移等)在标记模式下(出于兼容性原因)被禁用,这就是工具栏首先被隐藏的原因.

However some of the built-in functionality (panning etc) disabled in markup mode (for compatibility reasons) which is why the toolbars were hidden away in the first place.

这篇关于Forge Viewer:同时显示底部工具栏和标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆