import { RgbColor, RgbColorData } from "../RgbColor"; import { OutlinedArea, TraceData } from "../ImageTracer"; import { ImageDrawer } from "./ImageDrawer"; import { SvgDrawerOptions } from "./SvgDrawerOptions"; import { SvgLineAttributes } from "../PathTracer"; export declare class SvgDrawer implements ImageDrawer { protected readonly options: SvgDrawerOptions; protected readonly useStroke: boolean; protected readonly useFill: boolean; constructor(options: Partial); protected fixValue(val: number): number | string; draw(traceData: TraceData): string; init(traceData: TraceData): void; /** * Builds a tag for each segment. * * @param traceData * @param colorId * @param segmentIx * @returns */ protected buildSegmentTags(traceData: TraceData, colorId: number, segmentIx: number): string[]; protected isValidLine(color: RgbColor, lineAttributes: SvgLineAttributes[]): boolean; protected getDescriptionAttribute(traceData: TraceData, colorId: number, segmentIx: number): string; protected buildPath(segment: OutlinedArea, colorSegments: OutlinedArea[]): string; protected drawControlOutput(segment: OutlinedArea, colorSegments: OutlinedArea[]): string[]; protected drawControlPoint(segment: OutlinedArea): string[]; protected buildSvgTag(traceData: TraceData, tags: string[]): string; protected buildPathTag(area: OutlinedArea, colorSegments: OutlinedArea[], color: RgbColor, desc?: string): string; protected buildCircleTag(x: number, y: number, r: number, fill: string): string; protected buildLineTag(x1: number, y1: number, x2: number, y2: number, color: string, strokeWidth: number): string; buildColorAttributes(c: RgbColor, area: OutlinedArea): string; protected colorToRgbString(color: RgbColorData): string; } //# sourceMappingURL=SvgDrawer.d.ts.map