Skip to content

PanelViewport beta ​

Interface of @v12-engine/editor

ts
export interface PanelViewport

A panel's view, as made (panel.viewport): its canvas, whether it draws now, and what takes it away sooner than the panel's closing

Members ​

canvas ​

ts
readonly canvas: HTMLCanvasElement;

The canvas the view is drawn on

dispose ​

ts
dispose(): void;

Takes the view away before the panel closes

drawing ​

ts
drawing(): boolean;

Whether it is drawn now: the panel shows, and the graphics preset allows (or the view says always)

ready ​

ts
readonly ready: Promise<void>;

Once it is made