maps#

Interfaces#

MapMember#

Defined in: layout/src/maps.ts:15

One displayed map of a conversion maps band, before any slot or distance is known.

Properties#

entry#

readonly entry: Entry

Defined in: layout/src/maps.ts:18

The timeline it spans: the band’s own, or a segment without a line that joins it.

extent#

readonly extent: Extent

Defined in: layout/src/maps.ts:20

The extent of that timeline, from L × u of its start to its end (sections 3.4 and 6.3).

map#

readonly map: Styled & Holder

Defined in: layout/src/maps.ts:16

name#

readonly name: string | null

Defined in: layout/src/maps.ts:22

Its name, part of its key when not null.

type#

readonly type: string

Defined in: layout/src/maps.ts:24

Its type, the rest of its key.


Slots#

Defined in: layout/src/maps.ts:32

The slots shared by the present conversion maps bands of the lines of one row that lie on one side of those lines at one level (section 6.4, Conversion maps): what every band of the set needs besides its start.

Properties#

J#

readonly J: number

Defined in: layout/src/maps.ts:42

The number J of slots.

level#

readonly level: number

Defined in: layout/src/maps.ts:36

Their level: signed, 1, 2, … above, −1, −2, … below.

lines#

readonly lines: readonly Entry[]

Defined in: layout/src/maps.ts:38

The lines whose bands share the slots, in traversal order.

side#

readonly side: Side

Defined in: layout/src/maps.ts:34

The side of their lines the bands lie on.

slot#

readonly slot: ReadonlyMap<MapMember, number>

Defined in: layout/src/maps.ts:40

The slot of each of their maps, from 1.

w#

readonly w: number

Defined in: layout/src/maps.ts:44

w, the largest stroke width of their lines.

width#

readonly width: number

Defined in: layout/src/maps.ts:46

The width e = w / 2 + J × (g + d) of each of the bands.

Functions#

conversionMapsBand()#

conversionMapsBand(members): PreparedBand

Defined in: layout/src/maps.ts:120

The conversion maps band of a line holding members (section 6.4): its width and start come from its slots, so prepared it has none, and its maps are drawn by drawMaps.

Parameters#

members#

readonly MapMember[]

Returns#

PreparedBand


drawMaps()#

drawMaps(members, slots, start, side, at): Pick<LineElements, "maps">

Defined in: layout/src/maps.ts:141

The maps of a conversion maps band starting at start outwards on side of the line placed at at, in the order they are taken (section 6.4, Conversion maps): the map in slot j centred c + w / 2 + j × (g + d) − d / 2 out from the line, summed in that order, w the slots’ largest stroke width, spanning its own timeline from Xs to Xe. A map whose start lies in a gap starts at the gap’s right edge, one whose end does ends at its left edge, and one whose start and end so meet or cross is not drawn (section 6.6, Elisions).

Parameters#

members#

readonly MapMember[]

slots#

Slots

start#

number

side#

Side

at#

LinePosition

Returns#

Pick<LineElements, "maps">


mapMembers()#

mapMembers(scope, sources): MapMember[]

Defined in: layout/src/maps.ts:59

The maps of the conversion maps band of a line whose bands draw sources (section 6.4, Conversion maps and Segments without a line), in the order they are taken: the displayed maps of each of sources, the line first and then each joined segment, each one’s in canonical order, each with the extent of the timeline it spans. A map adds nothing to its line’s extent. On an unfolded card (section 8.10) a source is its timeline’s drawing in one stretch piece, so each map is drawn once in every piece its timeline reaches into, clipped to it, each drawing a member of its own.

Parameters#

scope#

Scope

sources#

readonly Entry[]

Returns#

MapMember[]


mapSlots()#

mapSlots(members): object

Defined in: layout/src/maps.ts:94

The slots of members, the maps of the bands laid out together in the order they are taken (section 6.4, Conversion maps): the maps of each key, in that order, placed by first fit (section 6.3) with their extents into that key’s sub-slots; the sub-slots of the keys, in key order, are the slots 1 to J.

Parameters#

members#

readonly MapMember[]

Returns#

object

J#

readonly J: number

slot#

readonly slot: ReadonlyMap<MapMember, number>