ViewportProps Interface

Properties for ViewportComponent component.

Extends

Methods

Name Description
getViewOverlay(viewport: ScreenViewport): ReactNode Optional    
onContextMenu(e: MouseEvent<Element, MouseEvent>): boolean Optional    
viewportRef(v: ScreenViewport): void Optional Function to get a reference to the ScreenViewport  

Properties

Name Type Description
imodel IModelConnection IModel to display  
viewDefinitionId undefined | string Id of a default view definition to load as a starting point  
viewState undefined | ViewStateProp ViewState to use as a starting point  

Inherited properties

Name Type Inherited from Description
className undefined | string CommonProps Custom CSS class name
style undefined | CSSProperties CommonProps Custom CSS style properties

Defined in

Last Updated: 29 November, 2022