You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
import Element from '../core/core.element.js'; |
|
import type { CartesianParsedData, ChartArea, Point, PointHoverOptions, PointOptions } from '../types/index.js'; |
|
export type PointProps = Point; |
|
export default class PointElement extends Element<PointProps, PointOptions & PointHoverOptions> { |
|
static id: string; |
|
parsed: CartesianParsedData; |
|
skip?: boolean; |
|
stop?: boolean; |
|
/** |
|
* @type {any} |
|
*/ |
|
static defaults: { |
|
borderWidth: number; |
|
hitRadius: number; |
|
hoverBorderWidth: number; |
|
hoverRadius: number; |
|
pointStyle: string; |
|
radius: number; |
|
rotation: number; |
|
}; |
|
/** |
|
* @type {any} |
|
*/ |
|
static defaultRoutes: { |
|
backgroundColor: string; |
|
borderColor: string; |
|
}; |
|
constructor(cfg: any); |
|
inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean; |
|
inXRange(mouseX: number, useFinalPosition?: boolean): boolean; |
|
inYRange(mouseY: number, useFinalPosition?: boolean): boolean; |
|
getCenterPoint(useFinalPosition?: boolean): { |
|
x: number; |
|
y: number; |
|
}; |
|
size(options?: Partial<PointOptions & PointHoverOptions>): number; |
|
draw(ctx: CanvasRenderingContext2D, area: ChartArea): void; |
|
getRange(): any; |
|
}
|
|
|