UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

18 lines (17 loc) 618 B
import { StickyEvent } from './StickyEvent.js'; import type { FocusType } from '../core/FocusType.js'; /** * A sticky event that is fired when a {@link Widget} loses a specific * {@link FocusType | focus}. Not capturable by user listeners or the widget * receiving the event. * * Always check the focus type to avoid weird behaviour. */ export declare class BlurEvent extends StickyEvent { static readonly type = "blur"; readonly type: typeof BlurEvent.type; readonly userCapturable: false; /** The gained focus type */ readonly focusType: FocusType; constructor(focusType: FocusType); }