Skip to content

ScreenRect beta ​

Interface of @v12-engine/client/common

ts
export interface ScreenRect

Screen space rectangle, in CSS pixels relative to the canvas

Members ​

height ​

ts
height: number;

Height of the rectangle, in CSS pixels

width ​

ts
width: number;

Width of the rectangle, in CSS pixels

x ​

ts
x: number;

Distance from the canvas's left edge, in CSS pixels

y ​

ts
y: number;

Distance from the canvas's top edge, in CSS pixels