UNPKG

@daign/2d-pipeline

Version:
45 lines (44 loc) 1.14 kB
import { Angle, Matrix3, Vector2 } from '@daign/math'; import { Transform } from './transform'; /** * A rotation transformation that supports native SVG transform usage. */ export declare class NativeRotateTransform extends Transform { /** * The angle of the rotation. */ private _angle; /** * The rotation center of the rotation. */ private _center; /** * Getter for the angle. * @returns The angle. */ get angle(): Angle; /** * Getter for the rotation center. * @returns The rotation center. */ get center(): Vector2; /** * Getter for the transformation matrix. * @returns The transformation matrix. */ get matrix(): Matrix3; /** * Getter for the transformation matrix, not including native transforms. * @returns The transformation matrix. */ get matrixNonNative(): Matrix3; /** * Getter for the native SVG transform attribute string. * @returns The transform command string or null. */ get nativeSvgTransform(): string | null; /** * Constructor. */ constructor(); }