Skip to content

Commit

Permalink
fix getRelativePosition type definition (#9610)
Browse files Browse the repository at this point in the history
* fix getRelativePosition type definition

* Update helpers.dom.d.ts

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
  • Loading branch information
aha-oretama and kurkle committed Sep 6, 2021
1 parent f5c9a65 commit 61e3eca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/helpers/helpers.dom.d.ts
@@ -1,6 +1,8 @@
import { ChartEvent } from '../index.esm';

export function getMaximumSize(node: HTMLElement, width?: number, height?: number, aspectRatio?: number): { width: number, height: number };
export function getRelativePosition(
evt: MouseEvent,
evt: MouseEvent | ChartEvent,
chart: { readonly canvas: HTMLCanvasElement }
): { x: number; y: number };
export function getStyle(el: HTMLElement, property: string): string;
Expand Down

0 comments on commit 61e3eca

Please sign in to comment.