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#
readonlyaxes: readonly (readonlyDrawnAxis[])[]
Defined in: layout/src/block/items.ts:35
Its cards’ axes, in the order of its cards and of their lines.
drawn#
readonlydrawn: readonlyMemberDrawn[]
Defined in: layout/src/block/items.ts:33
Its cards’ member drawings, in the order of its cards.
item#
readonlyitem: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#
readonlyaxes: readonlyDrawnAxis[]
Defined in: layout/src/block/items.ts:43
bottoms#
readonlybottoms: readonlynumber[]
Defined in: layout/src/block/items.ts:53
boxes#
readonlyboxes: readonlyDrawnBox[]
Defined in: layout/src/block/items.ts:42
elements#
readonlyelements: readonlyDrawnElement[]
Defined in: layout/src/block/items.ts:41
exposures#
readonlyexposures: readonlyElisionExposure[]
Defined in: layout/src/block/items.ts:50
What its frame or block-held card decides of its elisions, in item coordinates (placedExposure).
item#
readonlyitem:Item
Defined in: layout/src/block/items.ts:40
rights#
readonlyrights: readonlynumber[]
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#
readonlytrailing: readonlyDrawnElement[]
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#
readonlydrawings: readonlyItemDrawing[]
Defined in: layout/src/block/items.ts:59
horizontal#
readonlyhorizontal:Horizontal
Defined in: layout/src/block/items.ts:60
items#
readonlyitems: readonlyItem[]
Defined in: layout/src/block/items.ts:58
laid#
readonlylaid: readonlyLaidItem[]
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#
item#
__namedParameters#
Returns#
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#
items#
readonly Item[]
measure#
Returns#
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#
horizontal#
measure#
Returns#
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#
x#
number
baseline#
number