mapPath
import { mapPath } from 'pixi-silk/path';
function mapPath(path: BezierPath, fn: (p: Vec) => Vec): BezierPath;
Maps every anchor and handle through fn, such as a matrix’s apply. Exact for affine maps.
Parameters#
| Parameter | Type |
|---|---|
path | BezierPath |
fn | (p: Vec) => Vec |