@itwin/measure-tools-react
Version:
Frontend framework and tools for measurements
25 lines • 1.23 kB
TypeScript
import type { Point3d, Ray3d } from "@itwin/core-geometry";
import type { Viewport, ViewRect } from "@itwin/core-frontend";
/**
* Helper methods for working with views.
*/
export declare class ViewHelper {
/** Checks if the viewport is classified as a XSection view. */
static isCrossSectionView(vp: Viewport): boolean;
/** Checks if the viewport is classified as a Profile view */
static isProfileView(vp: Viewport): boolean;
/** Checks if the viewport is a sheet view. */
static isSheetView(vp: Viewport): boolean;
/** Checks if the viewport is any section view */
static isSection(vp: Viewport): boolean;
/** Checks if the viewport is a 3D view (spatial) */
static is3DView(vp: Viewport): boolean;
/** Checks if the viewport is a 2D view (drawing) */
static is2DView(vp: Viewport): boolean;
/** Given a ray in view coordinates, returns the intersection that is closest to the view rect.
* Each pair of corners of the ViewRect defines an infinite plane in 2D
* * Note: using Ray3d/Point3d for convenience only
*/
static closestIntersectionWithViewPlanes(rect: ViewRect, viewRay: Ray3d): Point3d | undefined;
}
//# sourceMappingURL=ViewHelper.d.ts.map