| 1 |
import Element from '../core/core.element.js'; |
| 2 |
import type { CartesianParsedData, ChartArea, Point, PointHoverOptions, PointOptions } from '../types/index.js'; |
| 3 |
export type PointProps = Point; |
| 4 |
export default class PointElement extends Element<PointProps, PointOptions & PointHoverOptions> { |
| 5 |
static id: string; |
| 6 |
parsed: CartesianParsedData; |
| 7 |
skip?: boolean; |
| 8 |
stop?: boolean; |
| 9 |
/** |
| 10 |
* @type {any} |
| 11 |
*/ |
| 12 |
static defaults: { |
| 13 |
borderWidth: number; |
| 14 |
hitRadius: number; |
| 15 |
hoverBorderWidth: number; |
| 16 |
hoverRadius: number; |
| 17 |
pointStyle: string; |
| 18 |
radius: number; |
| 19 |
rotation: number; |
| 20 |
}; |
| 21 |
/** |
| 22 |
* @type {any} |
| 23 |
*/ |
| 24 |
static defaultRoutes: { |
| 25 |
backgroundColor: string; |
| 26 |
borderColor: string; |
| 27 |
}; |
| 28 |
constructor(cfg: any); |
| 29 |
inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean; |
| 30 |
inXRange(mouseX: number, useFinalPosition?: boolean): boolean; |
| 31 |
inYRange(mouseY: number, useFinalPosition?: boolean): boolean; |
| 32 |
getCenterPoint(useFinalPosition?: boolean): { |
| 33 |
x: number; |
| 34 |
y: number; |
| 35 |
}; |
| 36 |
size(options?: Partial<PointOptions & PointHoverOptions>): number; |
| 37 |
draw(ctx: CanvasRenderingContext2D, area: ChartArea): void; |
| 38 |
getRange(): any; |
| 39 |
} |