Skip to content

SectionState beta ​

Interface of @v12-engine/client

ts
export interface SectionState

Where a section is and how it is, now

Members ​

collapsed ​

ts
collapsed: boolean;

Whether it is folded away to a tab

dx ​

ts
dx: number;

Moved this far from the HUD's own place, in CSS pixels

dy ​

ts
dy: number;

Pixels it is moved down, in CSS pixels

locked ​

ts
locked: boolean;

Whether the player cannot move it until it is unlocked

ox ​

ts
ox: number;

The point it is scaled about, in pixels from the page's top left, as it is before being moved

oy ​

ts
oy: number;

The point's y it is scaled about, in pixels from the page's top

scale ​

ts
scale: number;

1 as the HUD draws it

tab ​

ts
tab?: {
        x: number;
        y: number;
    };

Where its tab is while it is folded away, in pixels from the HUD's top left: where it was when folded