import type { MatrixOptions, MatrixProps } from './types.js'; import { Element } from 'chart.js'; export default class MatrixElement extends Element { static readonly id = "matrix"; static readonly defaults: { anchorX: string; anchorY: string; backgroundColor: undefined; borderColor: undefined; borderRadius: number; borderWidth: undefined; height: number; width: number; }; width: number; height: number; constructor(cfg: MatrixProps); draw(ctx: CanvasRenderingContext2D): void; 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; }; tooltipPosition(): { x: number; y: number; }; getRange(axis: 'x' | 'y'): number; }