UNPKG

@daign/2d-pipeline

Version:
36 lines (35 loc) 977 B
import { Matrix3, Vector2 } from '@daign/math'; import { Transform } from './transform'; /** * A translation transformation that supports native SVG transform usage. */ export declare class NativeTranslateTransform extends Transform { /** * The translation vector. */ private _translation; /** * Getter for the translation vector. * @returns The translation vector. */ get translation(): 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(); }