import type { TreemapConfig, TreemapDataPoint, TreemapOptions, TreemapScriptableContext } from './types'; import { Element } from 'chart.js'; export default class TreemapElement extends Element { static readonly id = "treemap"; static readonly defaults: { borderRadius: number; borderWidth: number; captions: { align: undefined; color: string; display: boolean; font: {}; formatter: (ctx: TreemapScriptableContext) => string; padding: number; }; displayMode: string; dividers: { display: boolean; lineCapStyle: string; lineColor: string; lineDash: never[]; lineDashOffset: number; lineWidth: number; }; label: undefined; labels: { align: string; color: string; display: boolean; font: {}; formatter(ctx: TreemapScriptableContext): string | string[]; overflow: string; padding: number; position: string; }; rtl: boolean; spacing: number; unsorted: boolean; }; static readonly descriptors: { _indexable: boolean; _scriptable: boolean; captions: { _fallback: boolean; _scriptable: (name: string) => boolean; }; labels: { _fallback: boolean; _scriptable: (name: string) => boolean; }; }; static readonly defaultRoutes: { backgroundColor: string; borderColor: string; }; $context?: TreemapScriptableContext; width: number | undefined; height: number | undefined; constructor(cfg?: Partial & { options?: TreemapOptions; }); draw(ctx: CanvasRenderingContext2D, data?: TreemapDataPoint): 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; }; }