Type Alias CanvasEvents

CanvasEvents: {
    pointerdown: PointerEvent & {
        physicalX: number;
        physicalY: number;
    };
    pointermove: PointerEvent & {
        physicalX: number;
        physicalY: number;
    };
    pointerup: PointerEvent & {
        physicalX: number;
        physicalY: number;
    };
    resize: {
        ctx: CanvasRenderingContext2D;
        helper: CanvasHelper;
        size: Rect;
    };
}

Type declaration

  • pointerdown: PointerEvent & {
        physicalX: number;
        physicalY: number;
    }

    Pointerdown.

    Adds logicalX/Y to get logical pixel coordinate

  • pointermove: PointerEvent & {
        physicalX: number;
        physicalY: number;
    }

    Pointermove

    Adds logicalX/Y to get logical pixel coordinate

  • pointerup: PointerEvent & {
        physicalX: number;
        physicalY: number;
    }

    Pointerup.

    Adds logicalX/Y to get logical pixel coordinate

  • resize: {
        ctx: CanvasRenderingContext2D;
        helper: CanvasHelper;
        size: Rect;
    }

    Fired when canvas is resized