UNPKG

svg-path-d

Version:

SVG path data (path[d] attribute content) manipulation library.

11 lines (10 loc) 755 B
import { ReadonlyMatrix } from './utils/matrix'; import { EllipseShape } from './command'; import { PathNode } from './path-node'; import { Point } from './utils/math2d'; export declare function transformedX(m: ReadonlyMatrix, x: number, y: number): number; export declare function transformedY(m: ReadonlyMatrix, x: number, y: number): number; export declare function transformedPoint(m: ReadonlyMatrix, point: Readonly<Point>): Point; export declare function transformedEllipse(m: ReadonlyMatrix, ellipse: Readonly<EllipseShape>): EllipseShape; export declare function transformedNode(matrix: ReadonlyMatrix, node: Readonly<PathNode>): PathNode; export declare function createTransformed(path: PathNode[], matrix: ReadonlyMatrix): PathNode[];