Skip to main content

Module transform

Module transform 

Source
Expand description

SVG path geometric transformations.

Functionsยง

reset_path
Resets a path so its top-left bounding box corner is at (0, 0).
reverse_path
Reverses the direction of an SVG path so drawing animation runs backwards.
rotate_path
Rotates an SVG path by angle_rad around center (cx, cy).
scale_path
Scales an SVG path string by factors (sx, sy).
translate_path
Translates (offsets) an SVG path string by (dx, dy).
warp_path
Warps an SVG path by transforming each coordinate with custom mapping f.