@expofp/floorplan
Version:
Interactive floor plan library for expos and events
21 lines • 1.07 kB
TypeScript
import type { Rect, RectLike } from '@expofp/geometry';
import type { ImageDef } from '@expofp/renderer';
export declare function isInnerInsideOuter(inner: Rect, outer?: RectLike): boolean;
export declare function flipImageDef(imageDef: ImageDef, angle: number): boolean;
/**
* Declares the camera-roll rule on a def that has to stay readable: it follows the plan in quarter
* turns, the same way the plan's own labels do.
* @param imageDef - The def to keep upright.
* @returns The same def.
*/
export declare function attachCardinalSnap(imageDef: ImageDef): ImageDef;
/**
* Declares the camera-roll rule on a def that has to stay upright on screen: it turns to the plan's
* exact roll, where {@link attachCardinalSnap} follows it in quarter turns. So an unchanged roll is
* the only no-op.
* @param imageDef - The def to keep upright.
* @returns The same def.
*/
export declare function attachExactRoll(imageDef: ImageDef): ImageDef;
export declare function rotateImageDef(imageDef: ImageDef, angle: number): boolean;
//# sourceMappingURL=rotation.d.ts.map