Chart.js/types/helpers/helpers.dom.d.ts
Jukka Kurkela 9fb87a4fc2
Round canvas size to 0.1px resolution (#8437)
* Round canvas size to 0.1px resolution
* Types + docs
* typofix
2021-02-16 08:30:40 -05:00

18 lines
606 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,
forceStyle?: boolean
): void;