Interface CanvasOperator

A proxy for the canvas so that client code that needs to access the canvas dimensions and position does not need to access the DOM directly.

interface CanvasOperator {
    height: number;
    position: Point;
    setCursor: (style: "default" | "grab" | "grabbing") => void;
    width: number;
}

Implemented by

Properties

height: number
position: Point
setCursor: (style: "default" | "grab" | "grabbing") => void
width: number