@cornerstonejs/core
Version:
Cornerstone3D Core
11 lines (10 loc) • 660 B
TypeScript
import type { Point2 } from '../../../types/index.js';
import type { CameraScaleMode } from '../ViewportCameraTypes.js';
export type PlanarScaleInput = number | Point2;
export type PlanarScale = Point2;
export declare const MIN_PLANAR_SCALE = 0.001;
export declare function normalizePlanarScale(scale?: PlanarScaleInput): PlanarScale;
export declare function clonePlanarScale(scale?: PlanarScaleInput): PlanarScale;
export declare function getPlanarScaleZoom(scale?: PlanarScaleInput): number;
export declare function normalizePlanarScaleMode(scaleMode?: string): CameraScaleMode;
export declare function getPlanarScaleRatio(scale?: PlanarScaleInput): number;