/** * Helper class for 2D affine matrix operations. * * @private */ export declare class _MatrixHelper { /** * Matrix value m11. * * @private */ _m11: number; /** * Matrix value m12. * * @private */ _m12: number; /** * Matrix value m21. * * @private */ _m21: number; /** * Matrix value m22. * * @private */ _m22: number; /** * X translation offset. * * @private */ _offsetX: number; /** * Y translation offset. * * @private */ _offsetY: number; /** * Cached matrix type classification. * * @private */ _type: any; constructor(m11: number, m12: number, m21: number, m22: number, offsetX: number, offSetY: number); /** * Scales the current matrix by the specified factors around a center point. * * @private * @param {number} scaleX - The scale factor along the X axis. * @param {number} scaleY - The scale factor along the Y axis. * @param {number} centerX - The X coordinate of the scaling center. * @param {number} centerY - The Y coordinate of the scaling center. * @returns {_MatrixHelper} A new matrix representing the scale applied to the current transform. */ _scale(scaleX: number, scaleY: number, centerX: number, centerY: number): _MatrixHelper; /** * Creates a deep copy of the current matrix. * * @private * @returns {_MatrixHelper} A cloned matrix with identical components and type. */ _clone(): _MatrixHelper; /** * Sets the matrix components and updates the matrix type. * * @private * @param {number} m11 - Component m11. * @param {number} m12 - Component m12. * @param {number} m21 - Component m21. * @param {number} m22 - Component m22. * @param {number} offsetX - Translation offset along X. * @param {number} offsetY - Translation offset along Y. * @param {_MatrixTypes} type - The matrix classification/type. * @returns {void} */ _setMatrix(m11: number, m12: number, m21: number, m22: number, offsetX: number, offsetY: number, type: _MatrixTypes): void; /** * Applies a translation to the current matrix. * * @private * @param {number} offsetX - The translation offset along X. * @param {number} offsetY - The translation offset along Y. * @returns {_MatrixHelper} The current matrix after translation (fluent). */ _translate(offsetX: number, offsetY: number): _MatrixHelper; /** * Transforms a point by the current matrix. * * @private * @param {number} x - X coordinate of the point to transform. * @param {number} y - Y coordinate of the point to transform. * @returns {[number, number]} The transformed point as a tuple [x, y]. */ _transform(x: number, y: number): [number, number]; /** * Multiplies this matrix by another matrix. * * @private * @param {_MatrixHelper} matrix - The right-hand matrix to multiply with. * @returns {_MatrixHelper} The resulting product matrix. */ _multiply(matrix: _MatrixHelper): _MatrixHelper; /** * Gets a new identity matrix. * * @private * @returns {_MatrixHelper} A new identity matrix. */ readonly _identity: _MatrixHelper; /** * Re-evaluates and sets the matrix type based on its current components. * * @private * @returns {void} */ _checkMatrixType(): void; /** * Maps a matrix type to a compact index for internal checks/bitwise operations. * * @private * @param {_MatrixTypes} type - The matrix type to map. * @returns {number} The corresponding index (0..4). */ _getTypeIndex(type: _MatrixTypes): number; } /** * Maintains a stack of 2D transform matrices and exposes the composed current transform. * The stack composes transforms in push order and caches the current product for fast access. * * @private */ export declare class _TransformationStack { /** * Cached product of the current stack. * * @private */ _currentTransform: _MatrixHelper; /** * Base transform used when composing with the stack. * * @private */ _initialTransform: _MatrixHelper; /** * Ordered transforms currently on the stack.' * * @private */ _transformStack: _MatrixHelper[]; /** * Gets the composed transform: current stack * initial transform. * Returns the initial transform when the stack is empty. * * @private * @returns {_MatrixHelper} The current composed transform matrix. */ readonly _CurrentTransform: _MatrixHelper; constructor(initialTransform?: _MatrixHelper); /** * Pushes a transform onto the stack and recomputes the composed current transform. * * @private * @param {_MatrixHelper} transformMatrix - The transform to push. * @returns {void} */ _pushTransform(transformMatrix: _MatrixHelper): void; /** * Pops the last transform from the stack and recomputes the composed current transform. * * @private * @returns {void} */ _popTransform(): void; private _clear; private _multiplyMatrices; } /** * Enumerates matrix types used for fast-path logic and classification. * * @private */ declare enum _MatrixTypes { Identity = 0, Scaling = 1, Translation = 2, scalingAndTranslation = 3, Unknown = 4 } export {};