How to hide the rotate view cube? #87
-
As mentioned, I want to set the default view as top and also hide the tool, user will not change the rotate view |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! In the sample you are viewing, inside of |
Beta Was this translation helpful? Give feedback.
Hello! In the sample you are viewing, inside of
CustomToolbarFrontstage.ts
, there's aCustomToolbarFrontstageProps
defined, which is used to initialize the default frontstage provided in that sample. Within that exportedCustomToolbarFrontstageProps
interface, there's a property calledhideNavigationAid
, which lets you disable that navigation cube. You can switch the flag totrue
, and you'll see the navigational cube disappear. You can read more about customizing a viewer's frontstage at StandardFrontstageProps