@mocanvas/editor · type

EventHandlers

type EventHandlers = {
    onPointerDown?(info: PointerEventInfo): void;
    onPointerMove?(info: PointerEventInfo): void;
    onPointerUp?(info: PointerEventInfo): void;
    onRightClick?(info: PointerEventInfo): void;
    onMiddleClick?(info: PointerEventInfo): void;
    onDoubleClick?(info: ClickEventInfo): void;
    onKeyDown?(info: KeyboardEventInfo): void;
    onKeyUp?(info: KeyboardEventInfo): void;
    onKeyRepeat?(info: KeyboardEventInfo): void;
    onWheel?(info: WheelEventInfo): void;
    onCancel?(info: CancelEventInfo): void;
    onComplete?(info: CompleteEventInfo): void;
    onInterrupt?(info: InterruptEventInfo): void;
    onTick?(info: TickEventInfo): void;
}

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.