伪造查看器中的无头查看器中的上下文菜单

人气:793 发布:2022-10-16 标签: autodesk-forge autodesk-viewer headless react-native-ios

问题描述

我正在尝试将Autodesk for iPad应用程序的headless查看器与反应本机Web视图一起使用,以隐藏底部的工具栏.但是使用它,我无法右键单击上下文菜单.有什么方法可以在无头锻造查看器中生成上下文菜单.

I am trying to use headless viewer of autodesk for ipad app with react native web view for hiding the bottom toolbar. But using that I could not get the context menu on right click. Is there any way the context menu can be generated in headless forge viewer.

推荐答案

我想上下文菜单也不是无头查看器的一部分.要使普通查看器变为无头,您所需要做的就是添加自定义css规则:

I guess context menus are also not part of the headless viewer. All you would need to do to turn the normal viewer into headless would be to add a custom css rule:

.adsk-viewing-viewer .adsk-toolbar {
    display: none !important;
} 

535