/** @ignore */ /** */ import type { IPathSink } from "./GraphicsData"; /** * Traces path ops into SVG path data (`d`), with Canvas2D semantics: * arcs of 2pi or more are full circles, an arc starts with a line from the * current point, `arcTo` rounds the corner between two tangents, and * `lineTo` / curves without a current point start a subpath. * * Arc angles are normalized the way Chromium does it, so the result matches * what `CanvasRenderingContext2D` draws. * * @ignore */ export declare class SvgPathSink implements IPathSink { protected _precision: number; protected _parts: Array; protected _x: number; protected _y: number; protected _startX: number; protected _startY: number; protected _hasPoint: boolean; /** * @param precision Decimal places in the output */ constructor(_precision?: number); get d(): string; clear(): void; protected _n(value: number): string; protected _point(x: number, y: number): string; moveTo(x: number, y: number): void; lineTo(x: number, y: number): void; closePath(): void; rect(x: number, y: number, width: number, height: number): void; bezierCurveTo(cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): void; quadraticCurveTo(cpX: number, cpY: number, toX: number, toY: number): void; arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; } //# sourceMappingURL=SvgPathSink.d.ts.map