UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

70 lines (69 loc) 2.29 kB
import { Path } from "./path"; import { BBox } from "../bbox"; export declare enum ArcType { Open = 0, Chord = 1, Round = 2 } /** * Elliptical arc node. */ export declare class Arc extends Path { static className: string; protected static defaultStyles: { fill: string; stroke: undefined; strokeWidth: number; lineDash: undefined; lineDashOffset: number; lineCap: import("./shape").ShapeLineCap; lineJoin: import("./shape").ShapeLineJoin; opacity: number; fillShadow: undefined; strokeShadow: undefined; } & { lineWidth: number; fillStyle: null; }; constructor(); private _centerX; set centerX(value: number); get centerX(): number; private _centerY; set centerY(value: number); get centerY(): number; private _radiusX; set radiusX(value: number); get radiusX(): number; private _radiusY; set radiusY(value: number); get radiusY(): number; private _startAngle; set startAngle(value: number); get startAngle(): number; private _endAngle; set endAngle(value: number); get endAngle(): number; private get fullPie(); private _counterClockwise; set counterClockwise(value: boolean); get counterClockwise(): boolean; /** * The type of arc to render: * - {@link ArcType.Open} - end points of the arc segment are not connected (default) * - {@link ArcType.Chord} - end points of the arc segment are connected by a line segment * - {@link ArcType.Round} - each of the end points of the arc segment are connected * to the center of the arc * Arcs with {@link ArcType.Open} do not support hit testing, even if they have their * {@link Shape.fillStyle} set, because they are not closed paths. Hit testing support * would require using two paths - one for rendering, another for hit testing - and there * doesn't seem to be a compelling reason to do that, when one can just use {@link ArcType.Chord} * to create a closed path. */ private _type; set type(value: ArcType); get type(): ArcType; updatePath(): void; computeBBox(): BBox; isPointInPath(x: number, y: number): boolean; }