lint cursors types.

This commit is contained in:
Miroslav Šedivý 2021-11-03 22:01:49 +01:00
parent 606c9337bb
commit 54bcbd6333

View File

@ -1,8 +1,20 @@
import { CursorImage } from './webrtc' import { CursorImage } from './webrtc'
export type CursorDrawFunction = (ctx: CanvasRenderingContext2D, x: number, y: number, cursorElement: HTMLImageElement, cursorImage: CursorImage, cursorTag: string) => void
export type InactiveCursorDrawFunction = (ctx: CanvasRenderingContext2D, x: number, y: number, cursorTag: string) => void export type CursorDrawFunction = (
ctx: CanvasRenderingContext2D,
x: number,
y: number,
cursorElement: HTMLImageElement,
cursorImage: CursorImage,
cursorTag: string,
) => void
export type InactiveCursorDrawFunction = (
ctx: CanvasRenderingContext2D,
x: number,
y: number,
cursorTag: string,
) => void
export interface Dimension { export interface Dimension {
width: number width: number