@pbroom/color-kit/planeCompile

SvgPathCompileOptions

Formatting options for toSvgPath and toSvgCompoundPath.

interfaceimport type { SvgPathCompileOptions } from '@pbroom/color-kit/plane';compile.ts:10
interface SvgPathCompileOptions {
  closeLoop?: boolean;
  precision?: number;
  scale?: number;
}

Properties

closeLoop?booleandefault false
Appends Z to close each generated path.
precision?numberdefault 3
Decimal places used when formatting each coordinate.
scale?numberdefault 100
Multiplier applied to normalized plane coordinates before formatting; 100 maps the plane onto an SVG viewBox="0 0 100 100".

Also exported from