block/items#

Interfaces#

ItemDrawing#

Defined in: layout/src/block/items.ts:30

An item with each card’s member drawing drawn at the shared start s0, in item coordinates.

Properties#

axes#

readonly axes: readonly (readonly DrawnAxis[])[]

Defined in: layout/src/block/items.ts:35

Its cards’ axes, in the order of its cards and of their lines.

drawn#

readonly drawn: readonly MemberDrawn[]

Defined in: layout/src/block/items.ts:33

Its cards’ member drawings, in the order of its cards.

item#

readonly item: Item

Defined in: layout/src/block/items.ts:31


LaidItem#

Defined in: layout/src/block/items.ts:39

What an item draws, in item coordinates; its ranges count from its first element.

Properties#

axes#

readonly axes: readonly DrawnAxis[]

Defined in: layout/src/block/items.ts:43

bottoms#

readonly bottoms: readonly number[]

Defined in: layout/src/block/items.ts:53

boxes#

readonly boxes: readonly DrawnBox[]

Defined in: layout/src/block/items.ts:42

elements#

readonly elements: readonly DrawnElement[]

Defined in: layout/src/block/items.ts:41

exposures#

readonly exposures: readonly ElisionExposure[]

Defined in: layout/src/block/items.ts:50

What its frame or block-held card decides of its elisions, in item coordinates (placedExposure).

item#

readonly item: Item

Defined in: layout/src/block/items.ts:40

rights#

readonly rights: readonly number[]

Defined in: layout/src/block/items.ts:52

The right and bottom edges it draws, its cards’ shadows included, for the block’s size.

trailing#

readonly trailing: readonly DrawnElement[]

Defined in: layout/src/block/items.ts:48

The gaps of a frame’s group elisions, from the left, each with its rows’ continuations and ellipses card by card from the top and its labels, written after every item (section 8.5).


LaidOut#

Defined in: layout/src/block/items.ts:57

Items laid out: their member drawings, the block’s one horizontal layout over them, each laid.

Properties#

drawings#

readonly drawings: readonly ItemDrawing[]

Defined in: layout/src/block/items.ts:59

horizontal#

readonly horizontal: Horizontal

Defined in: layout/src/block/items.ts:60

items#

readonly items: readonly Item[]

Defined in: layout/src/block/items.ts:58

laid#

readonly laid: readonly LaidItem[]

Defined in: layout/src/block/items.ts:61

Functions#

drawItem()#

drawItem(manifest, item, __namedParameters): ItemDrawing

Defined in: layout/src/block/items.ts:100

Draw each card of item at the columns: its member drawing’s start s0, its top its card’s; manifest the manifest drawn, which its axes read. Each card is drawn on the elided axis it was laid out on: a block-held card’s own, a member’s card its frame’s (section 8.9).

Parameters#

manifest#

Manifest

item#

Item

__namedParameters#

Columns

Returns#

ItemDrawing


laidOut()#

laidOut(context, items, measure): LaidOut

Defined in: layout/src/block/items.ts:70

The items items laid out (section 8.2): their cards’ member drawings at the block’s columns, the block’s one horizontal layout over them, a frame with group elisions drawn shorter by its gaps’ shrinks, and each item laid out by it.

Parameters#

context#

Context

items#

readonly Item[]

measure#

TextMeasure

Returns#

LaidOut


layoutItem()#

layoutItem(drawing, horizontal, measure): LaidItem

Defined in: layout/src/block/items.ts:142

Lay out an item drawn as drawing (sections 8.2, 8.4 and 8.5). A frame holds its cards Q in from its edges, below its title; a block-held card is its item. Its right edge before its request is Ri, past its title, at least its requested width less K and its inset (Q for a frame, the block’s inset for a block-held card). Every card ends at Ri + K, a block-held card its inset further, unless its own request widens it; a frame holds them and Q more. A card takes its room whether displayed or not, its shadow only when drawn. The records follow the elements: the frame, then each card and each of its bands, held by that card, each with the identity core lists it with.

Parameters#

drawing#

ItemDrawing

horizontal#

Horizontal

measure#

TextMeasure

Returns#

LaidItem


titleElement()#

titleElement(title, x, baseline): TextElement

Defined in: layout/src/block/items.ts:90

A title’s name element at x with its baseline at baseline.

Parameters#

title#

Title

x#

number

baseline#

number

Returns#

TextElement