pane#

Classes#

Pane#

Defined in: arranger/src/pane.ts:42

A canvas’s pane (PaneSource), settled from the sizes the canvas measures.

Implements#

Constructors#

Constructor#

new Pane(readingOf?): Pane

Defined in: arranger/src/pane.ts:54

Parameters#
readingOf?#

(block) => FlowReading | null

Returns#

Pane

Properties#

readingOf#

readonly readingOf: (block) => FlowReading | null

Defined in: arranger/src/pane.ts:44

The reading of flow control the host gives each block’s drawing; none without one.

Parameters#
block#

Block

Returns#

FlowReading | null

Implementation of#

PaneSource.readingOf

Accessors#

view#
Get Signature#

get view(): View | undefined

Defined in: arranger/src/pane.ts:63

The size drawings are fitted to now; undefined before one settles. Read in a reaction (a $derived, a template), it is read again when the pane settles; read anywhere else, it is a plain value.

Returns#

View | undefined

The size drawings are fitted to; undefined for layout’s default view.

Implementation of#

PaneSource.view

Methods#

measure()#

measure(width, height): void

Defined in: arranger/src/pane.ts:75

The canvas measures width × height screen pixels: the first size settles at once, a later one PANE_SETTLE milliseconds after the last size measured, a size equal to the settled one only cancels a pending one. A size that is not positive and finite (a canvas not laid out yet, a collapsed one) is skipped.

Parameters#
width#

number

height#

number

Returns#

void

release()#

release(): void

Defined in: arranger/src/pane.ts:92

The canvas is gone: a pending size is dropped and the pane withdrawn.

Returns#

void

Interfaces#

PaneSource#

Defined in: arranger/src/pane.ts:30

Where a drawing reads its pane: read only for a manifest drawing an ancestor card, so a reaction drawing any other manifest never waits on it.

Properties#

view#

readonly view: View | undefined

Defined in: arranger/src/pane.ts:32

The size drawings are fitted to; undefined for layout’s default view.

Methods#

readingOf()?#

optional readingOf(block): FlowReading | null

Defined in: arranger/src/pane.ts:38

The reading in force of flow control for block’s drawing, which fades what it does not read (docs/drawing.md in TimeToShare, section 1); none (null, or no such member) fades what some actor believes false.

Parameters#
block#

Block

Returns#

FlowReading | null

Variables#

PANE_SETTLE#

const PANE_SETTLE: 150 = 150

Defined in: arranger/src/pane.ts:24

How long, in milliseconds, a pane waits after the last size measured before it settles.