Chart.js/types/helpers/helpers.dom.d.ts
Jukka Kurkela 10f393a58d
Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
2020-09-26 13:18:35 -04:00

17 lines
596 B
TypeScript

export function getMaximumSize(node: HTMLElement, width?: number, height?: number, aspectRatio?: number): { width: number, height: 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;