interface SceneDimensions {
    width: number;
    height: number;
    size: number;
    rect: Rectangle;
    sceneX: number;
    sceneY: number;
    sceneWidth: number;
    sceneHeight: number;
    sceneRect: Rectangle;
    distance: number;
    distancePixels: number;
    units: string;
    ratio: number;
    maxR: number;
    rows: number;
    columns: number;
}

Properties

width: number

The width of the canvas.

height: number

The height of the canvas.

size: number

The grid size.

rect: Rectangle

The canvas rectangle.

sceneX: number

The X coordinate of the scene rectangle within the larger canvas.

sceneY: number

The Y coordinate of the scene rectangle within the larger canvas.

sceneWidth: number

The width of the scene.

sceneHeight: number

The height of the scene.

sceneRect: Rectangle

The scene rectangle.

distance: number

The number of distance units in a single grid space.

distancePixels: number

The factor to convert distance units to pixels.

units: string

The units of distance.

ratio: number

The aspect ratio of the scene rectangle.

maxR: number

The length of the longest line that can be drawn on the canvas.

rows: number

The number of grid rows on the canvas.

columns: number

The number of grid columns on the canvas.