ag-grid-enterprise
Version:
AG Grid Enterprise Features
53 lines • 1.73 kB
TypeScript
import { Path } from './path';
import { BBox } from '../bbox';
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: undefined;
lineJoin: undefined;
opacity: number;
fillShadow: undefined;
} & {
lineWidth: number;
fillStyle: null;
};
constructor();
centerX: number;
centerY: number;
radius: number;
startAngle: number;
endAngle: number;
private get fullPie();
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.
*/
type: ArcType;
updatePath(): void;
computeBBox(): BBox;
isPointInPath(x: number, y: number): boolean;
}
export {};
//# sourceMappingURL=arc.d.ts.map