-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelement.point.d.ts
More file actions
39 lines (39 loc) · 1.25 KB
/
element.point.d.ts
File metadata and controls
39 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
}