@ue-too/board
Version:
<h1 align="center"> uē-tôo </h1> <p align="center"> pan, zoom, rotate, and more with your html canvas. </p>
28 lines (27 loc) • 1.1 kB
TypeScript
/**
* Camera utility functions module exports.
*
* @remarks
* This module provides specialized utility functions for camera operations including
* coordinate transformations, matrix math, position calculations, rotation utilities,
* and zoom level helpers.
*
* ## Key Utilities
*
* - **Coordinate Conversion**: Convert between viewport, world, and window coordinate systems
* - **Matrix Operations**: Transformation matrix creation and manipulation
* - **Position Utilities**: Boundary calculations, translation clamping, and position helpers
* - **Rotation Utilities**: Angle normalization, clamping, and rotation boundary enforcement
* - **Zoom Utilities**: Zoom level clamping, boundary calculations, and zoom constraints
*
* @see {@link convertFromViewPort2WorldSpace} for viewport to world conversion
* @see {@link clampRotation} for rotation angle clamping
* @see {@link clampZoomLevel} for zoom level clamping
*
* @module
*/
export * from "./coordinate-conversion";
export * from "./matrix";
export * from "./position";
export * from "./rotation";
export * from "./zoom";