import type { Matrix, Transform2D } from '@flighthq/geometry/contract'; import type { Node2D } from '@flighthq/scene2d/contract'; import type { XmlElement } from '@flighthq/xml/contract'; /** * SVG's coordinate systems: the `transform` attribute, the viewport, and the `viewBox` fit. * * ★ MULTIPLICATION ORDER IS THE WHOLE OF IT. SVG composes an element's own transform onto its parent's, and a viewBox * onto the viewport it is fitted into, so every product here is written one way round and it is not the way round the * geometry package's `multiplyMatrix` happens to read. `multiplySvgMatrices` exists to name that order once rather * than leave each caller to get it right. */ export declare function applySvgTransform(target: Node2D, matrix: Readonly | null): void; export declare function assignSvgTransform(target: Node2D, transform: Readonly): void; export declare function createSvgViewBoxMatrix(viewBox: readonly number[], viewport: Readonly<{ height: number; width: number; x: number; y: number; }>, preserveAspectRatioValue: string): Matrix; export declare function createSvgViewportMatrix(element: Readonly, viewport?: Readonly<{ height?: number; width?: number; x?: number; y?: number; }>): Matrix | null; export declare function multiplySvgMatrices(a: Readonly, b: Readonly): Matrix; export declare function parseSvgTransform(value: string | null): Matrix | null; //# sourceMappingURL=svgTransform.d.ts.map