svg-path-d
Version:
SVG path data (path[d] attribute content) manipulation library.
14 lines (13 loc) • 459 B
TypeScript
import { DrawTo } from './command';
/**
* Implements simple in-place transformations of a `DrawTo` content.
*/
/**
* Translates all points in the item
* @param item `DrawTo` command
* @param dx x offset
* @param dy y offset
*/
export declare function applyTranslate(item: DrawTo, dx: number, dy: number): void;
export declare function applyVerticalFlip(item: DrawTo): void;
export declare function applyHorizontalFlip(item: DrawTo): void;