block/emit#
Interfaces#
BlockContent#
Defined in: layout/src/block/emit.ts:26
What the block holds besides its items: its style, its drawn title and the title’s slot Pt.
Properties#
after#
readonlyafter: (axes,boxes) => readonlyDrawnElement[]
Defined in: layout/src/block/emit.ts:43
The elements drawn after every item (section 8.7), from the drawn lines and boxes in the block’s coordinates: the groupstamps’ lines across their groups’ frames, then the alignment anchors and their labels, none of which take room.
Parameters#
axes#
readonly DrawnAxis[]
boxes#
readonly DrawnBox[]
Returns#
readonly DrawnElement[]
ancestors#
readonlyancestors: readonlyLaidAncestorCard[]
Defined in: layout/src/block/emit.ts:37
The displayed ancestor cards (section 8.8), drawn before every item.
margin#
readonlymargin:number
Defined in: layout/src/block/emit.ts:35
The block’s margin Vb, again below its lowest item.
Pt#
readonlyPt:number
Defined in: layout/src/block/emit.ts:33
No item rises above Pt below the block’s top edge: the title’s slot and F, else P, and
the block’s margin.
style#
readonlystyle:Style
Defined in: layout/src/block/emit.ts:27
title#
readonlytitle:Title|undefined
Defined in: layout/src/block/emit.ts:28
Functions#
emitDrawing()#
emitDrawing(
laid,block,placement,measure):Drawing
Defined in: layout/src/block/emit.ts:63
The drawing of the items laid in a block (section 8.4). The block grows left
and up to hold every item with the padding P and the title’s slot above
them, so the place origin lies at (Ox, Oy) in the block; its content runs
from Xl to Xr and from Yt to Yb in place coordinates, the block’s
margin below its lowest item (a block without items has none), and its size
is at least the requested one. The displayed ancestor cards, each drawn at
its frame’s place and scale after the title and before every item, take no
room but grow the block as an item does, their shadows included. The
elements block.after gives from the lines and boxes in the block follow
every item’s. The block’s own record comes first, then the ancestor
cards’, then the items’; the block’s range is every element. The axes are
the items’ lines’, then the ancestor cards’.
Parameters#
laid#
readonly LaidItem[]