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;
}
pointermove: PointerEvent & {
physicalX: number;
physicalY: number;
}
pointerup: PointerEvent & {
physicalX: number;
physicalY: number;
}
resize: {
ctx: CanvasRenderingContext2D;
helper: CanvasHelper;
size: Rect;
}
ctx: CanvasRenderingContext2D
Pointerdown.
Adds logicalX/Y to get logical pixel coordinate