Skip to content

PortraitStage beta ​

Class of @v12-engine/client/lite-views

ts
export declare class PortraitStage

The stage the live portraits are drawn on: its boxes, each a side view on a canvas of its own (see the top of this file)

Members ​

constructor ​

ts
constructor(
    renderer: Renderer, figures: PortraitFigures);

Constructs a new instance of the PortraitStage class

box ​

ts
box(canvas: HTMLCanvasElement, every?: number, drawn?: (drawn: boolean) => void): StageBox;

A box on a canvas, drawn every so many frames; told when what it shows is first on the canvas, or cannot be

dispose ​

ts
dispose(): void;

Every box and what stands in it taken away

renderer ​

ts
readonly renderer: Renderer;

The renderer the boxes are views of

targetCount ​

ts
get targetCount(): number;

How many views the boxes hold