block/horizontal#

Interfaces#

Columns#

Defined in: layout/src/block/horizontal.ts:15

Where the name column and the member drawings start.

Extended by#

Properties#

n#

readonly n: number

Defined in: layout/src/block/horizontal.ts:17

The name column’s left edge n: K, Q further when the block holds a frame.

s0#

readonly s0: number

Defined in: layout/src/block/horizontal.ts:19

The start s0 of every member drawing.


DrawnAt#

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

One member drawing drawn at s0, with its item’s length L.

Properties#

elements#

readonly elements: readonly DrawnElement[]

Defined in: layout/src/block/horizontal.ts:32

L#

readonly L: number

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


Horizontal#

Defined in: layout/src/block/horizontal.ts:23

The columns, the right margin Mr and how far a block-held card’s end lies past R + K.

Extends#

Properties#

inset#

readonly inset: number

Defined in: layout/src/block/horizontal.ts:27

Q when the block holds a frame: a block-held card then ends where a frame of its length does.

Mr#

readonly Mr: number | undefined

Defined in: layout/src/block/horizontal.ts:25

Mr, or undefined when nothing drawn has a right edge.

n#

readonly n: number

Defined in: layout/src/block/horizontal.ts:17

The name column’s left edge n: K, Q further when the block holds a frame.

Inherited from#

Columns.n

s0#

readonly s0: number

Defined in: layout/src/block/horizontal.ts:19

The start s0 of every member drawing.

Inherited from#

Columns.s0

Functions#

columnsOf()#

columnsOf(items): Columns

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

The columns of the block’s items (section 8.2): s0 lies past the name column, the widest drawn name N and the gap G after it, so that no centred label crosses the column’s left edge and no left chevron of an ancestor line crosses the gap.

Parameters#

items#

readonly Item[]

Returns#

Columns


contentRight()#

contentRight(horizontal, L, title?): number

Defined in: layout/src/block/horizontal.ts:86

The right edge Ri of an item of length L before its request: its content’s, s0 + L + Mr, or s0 when nothing has a right edge; past its frame’s title, whose right edge is title, when it has one.

Parameters#

horizontal#

Horizontal

L#

number

title?#

number

Returns#

number


horizontalOf()#

horizontalOf(columns, items, drawn, measure): Horizontal

Defined in: layout/src/block/horizontal.ts:64

The horizontal layout once every member drawing is drawn at s0: Mr the largest distance of a drawn right edge past its line’s end s0 + L.

Parameters#

columns#

Columns

items#

readonly Item[]

drawn#

readonly DrawnAt[]

measure#

TextMeasure

Returns#

Horizontal