@pbroom/color-kit/planeCompile
SvgPathCompileOptions
Formatting options for toSvgPath and toSvgCompoundPath.
import type { SvgPathCompileOptions } from '@pbroom/color-kit/plane';compile.ts:10interface SvgPathCompileOptions {
closeLoop?: boolean;
precision?: number;
scale?: number;
}Properties
- closeLoop?
booleandefaultfalse - Appends
Zto close each generated path. - precision?
numberdefault3 - Decimal places used when formatting each coordinate.
- scale?
numberdefault100 - Multiplier applied to normalized plane coordinates before formatting;
100maps the plane onto an SVGviewBox="0 0 100 100".
Also exported from
@pbroom/color-kitthe same declaration, re-exported