Chart.js/types/helpers/helpers.dom.d.ts
Samuel Gratzl 4eeed6e876
WIP: TypeScript types (#7668)
First version of types
2020-08-04 16:52:57 -04:00

18 lines
576 B
TypeScript

export function getMaximumHeight(node: HTMLElement): number;
export function getMaximumWidth(node: HTMLElement): number;
export function getRelativePosition(
evt: MouseEvent,
chart: { readonly canvas: HTMLCanvasElement }
): { x: number; y: number };
export function getStyle(el: HTMLElement, property: string): string;
export function retinaScale(
chart: {
currentDevicePixelRatio: number;
readonly canvas: HTMLCanvasElement;
readonly width: number;
readonly height: number;
readonly ctx: CanvasRenderingContext2D;
},
forceRatio: number
): void;