UNPKG

924 BTypeScriptView Raw
1import { RenderingContext2D } from '../types';
2import { Property } from '../Property';
3import { Point } from '../Point';
4import { Document, Element } from '../Document';
5import { ITransform } from './types';
6interface ITransformConstructor {
7 prototype: ITransform;
8 new (document: Document, value: string, transformOrigin: readonly [Property<string>, Property<string>]): ITransform;
9}
10export declare class Transform {
11 private readonly document;
12 static fromElement(document: Document, element: Element): Transform;
13 static transformTypes: Record<string, ITransformConstructor>;
14 private readonly transforms;
15 constructor(document: Document, transform: string, transformOrigin: readonly [Property<string>, Property<string>]);
16 apply(ctx: RenderingContext2D): void;
17 unapply(ctx: RenderingContext2D): void;
18 applyToPoint(point: Point): void;
19}
20export {};
21//# sourceMappingURL=Transform.d.ts.map
\No newline at end of file