Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

transform

import { transform } from "https://raw.githubusercontent.com/ycw/svg-path/main/src/mod.ts";

Transform path segments.

function transform(segs: Seg[], mapFn: MapFn): Seg[];
§
transform(segs: Seg[], mapFn: MapFn): Seg[]
[src]

§Parameters

§
segs: Seg[]
[src]

Old path segments.

§
mapFn: MapFn
[src]

A map fn which is called on each Seg clone.

§Return Type

§

New path segments.