diff --git a/src/component/types/cursors.ts b/src/component/types/cursors.ts index 3e04471c..9f1a87ef 100644 --- a/src/component/types/cursors.ts +++ b/src/component/types/cursors.ts @@ -1,8 +1,20 @@ 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 { width: number