/** @packageDocumentation * @module Viewport */ import * as React from "react"; import type { Id64String } from "@itwin/core-bentley"; import type { IModelConnection, TentativePoint, ViewManager, ViewState } from "@itwin/core-frontend"; import { ScreenViewport } from "@itwin/core-frontend"; import type { CommonProps } from "@itwin/core-react"; /** Type for a ViewState prop * @public */ export type ViewStateProp = ViewState | (() => ViewState); /** * Properties for [[ViewportComponent]] component. * @public */ export interface ViewportProps extends CommonProps { /** IModel to display */ imodel: IModelConnection; /** Id of a default view definition to load as a starting point */ viewDefinitionId?: Id64String; /** ViewState to use as a starting point */ viewState?: ViewStateProp; /** Function to get a reference to the ScreenViewport */ viewportRef?: (v: ScreenViewport) => void; /** controlId for this content component @internal */ controlId?: string; /** @internal */ onContextMenu?: (e: React.MouseEvent) => boolean; /** @internal */ getViewOverlay?: (viewport: ScreenViewport) => React.ReactNode; /** @internal used only for testing */ viewManagerOverride?: ViewManager; /** @internal used only for testing */ screenViewportOverride?: typeof ScreenViewport; /** @internal used only for testing */ tentativePointOverride?: TentativePoint; } /** A viewport React component that creates a ScreenViewport. * @public */ export declare function ViewportComponent(props: ViewportProps): React.JSX.Element; //# sourceMappingURL=ViewportComponent.d.ts.map