markers#

Interfaces#

MarkersBand#

Defined in: layout/src/markers.ts:209

The markers band of the timeline drawn with the line line, with what its segments without a line join to it (section 6.4, Markers and Segments without a line), sources the line and those segments (none when its line is not displayed).

Extends#

Properties#

centred#

readonly centred: readonly Centred[]

Defined in: layout/src/bands.ts:232

Its drawn centred labels (section 6.7): wedge, region and jump labels.

Inherited from#

PreparedBand.centred

elements#

readonly elements: number

Defined in: layout/src/bands.ts:212

The displayed elements it holds directly, those a segment without a line of its own adds to it included (section 6.4, What a band holds and Segments without a line): wedges and the labels of named timestamps, maps, child lines, regions, breaks, section breaks, barlines and the jumps that draw an arc. Any other label is held by its element and not counted; a segment without a line is no element. The band is present when this is positive (section 6.4, Levels), and a band record’s band.elements is this number.

Inherited from#

PreparedBand.elements

extents#

readonly extents: readonly Extent[]

Defined in: layout/src/bands.ts:230

What the band adds to its timeline’s extent (section 6.4, Children), each measured from the root’s start as section 6.3 measures extents: the extent of every item its first fits place (a region or a jump’s arc widened to its drawn label, a wedge, or the label of a break, a section break or a barline), and [L × u, L × u] at every such line it draws. Empty for the children band, whose children’s extents are added by their own layout, and for the conversion maps band: a map adds none.

Inherited from#

PreparedBand.extents

facet#

readonly facet: Facet

Defined in: layout/src/bands.ts:203

The facet it draws; its address is {id: T, facet}, T its timeline (section 2.2).

Inherited from#

PreparedBand.facet

unnamed#

readonly unnamed: object

Defined in: layout/src/markers.ts:230

The styles of a wedge and a cross-section line of the band’s timeline that no named timestamp holds: the cascade’s, the wedge held by the band and the line by the timeline’s line, without the rules naming addresses (Cascade.resolveUnaddressed).

crossSection#

readonly crossSection: Style

wedge#

readonly wedge: Style

width#

readonly width: number

Defined in: layout/src/bands.ts:222

Its width (section 6.4, Where a band lies), the distance its content reaches outwards from its start, summed as its paragraph writes it: the markers band w / 2 + 13, or w / 2 + 13 + 2 + T × h(9) with label tiers (Markers); the regions band R × pr − S (Regions); the flow control band T × h(9) + (4 + S) + (K − 1) × pj + 2 + h(9), or T × h(9) without jumps (Flow control). 0 for an absent band, for the children band, whose width its children’s layout gives, and for the conversion maps band, e = w / 2 + J × (g + d) by its slots (Conversion maps).

Inherited from#

PreparedBand.width

Methods#

crossSections()#

crossSections(at, start, side, span): VerticalLineElement[]

Defined in: layout/src/markers.ts:217

The drawn cross-section lines of the named timestamps it holds, in the order it places their timestamps, the band drawn from start on side of the line placed at at, each across span, the card’s top and bottom, less its gap (section 6.6). Each is held by its timeline’s line, not by the band: drawn whether or not its wedge or its labels are, whether or not the band is displayed or present, since it takes no room.

Parameters#
at#

LinePosition

start#

number

side#

Side

span#

Span

Returns#

VerticalLineElement[]

draw()#

draw(start, side, at): Partial<LineElements>

Defined in: layout/src/bands.ts:238

Its elements (section 6.6), the band starting at start outwards on side of the line placed at at: the third pass. The children band draws nothing, each child drawing its own, nor does the conversion maps band, whose maps take the slots of its row (drawMaps).

Parameters#
start#

number

side#

Side

at#

LinePosition

Returns#

Partial<LineElements>

Inherited from#

PreparedBand.draw

elisionLabels()#

elisionLabels(): Map<Gap, StackLabel[]>

Defined in: layout/src/markers.ts:238

The labels of the label stacks of the gaps it places (section 6.4, Markers), each gap’s in stack order, each with the distance of its baseline below the gap’s ellipsis: from the line its stack starts on among the stacks drawn below the same ellipses (section 6.6), one line after another. A gap’s labels are held by the gap and written with its other descriptors (section 8.5).

Returns#

Map<Gap, StackLabel[]>

timestamps()#

timestamps(at, span): AxisTimestamp[]

Defined in: layout/src/markers.ts:224

Every named timestamp it holds, in the order it places them, with the abscissa of its cross-section line at the line placed at at, whether or not that line is drawn: where the alignment anchors joining its timestamp meet it (section 8.7), the card’s span span; and that line’s style; none at a position in a gap, which has no abscissa.

Parameters#
at#

LinePosition

span#

Span

Returns#

AxisTimestamp[]


StagedMarkers#

Defined in: layout/src/markers.ts:247

A markers band before its stacks are tiered (section 6.4, Markers): the stacks of its named timestamps and gaps in the order its first fit takes them, and the band once they are placed in tiers, by its own first fit alone or by one first fit over the bands of a row of one band order.

Properties#

stacks#

readonly stacks: readonly StackItem[]

Defined in: layout/src/markers.ts:248

Methods#

band()#

band(tiers): MarkersBand

Defined in: layout/src/markers.ts:249

Parameters#
tiers#

Tiers

Returns#

MarkersBand


StampLabel#

Defined in: layout/src/markers.ts:134

A drawn label of a named timestamp’s stack: its element, its text measured, and the coordinate it shows, which only its coordinate label carries.

Extends#

Properties#

address#

readonly address: ElementAddress

Defined in: layout/src/traversal.ts:49

Inherited from#

Styled.address

clean#

readonly clean: string

Defined in: layout/src/traversal.ts:124

The text with every character U+0000–U+001F replaced by a space (cleanText).

Inherited from#

Measured.clean

coordinate#

readonly coordinate: ShownCoordinate | undefined

Defined in: layout/src/markers.ts:135

style#

readonly style: Style

Defined in: layout/src/traversal.ts:50

Inherited from#

Styled.style

width#

readonly width: number

Defined in: layout/src/traversal.ts:126

The width of clean at its owner’s font size.

Inherited from#

Measured.width

Functions#

crossSectionElement()#

crossSectionElement(address, style, x, __namedParameters): VerticalLineElement

Defined in: layout/src/markers.ts:121

The cross-section line at x from (x, y1) to (x, y2), one piece of a line across its card less its gap (section 6.6). Every named timestamp’s line is drawn by it.

Parameters#

address#

ElementAddress

style#

Style

x#

number

__namedParameters#

readonly [number, number]

Returns#

VerticalLineElement


fadedStyle()#

fadedStyle(style): Style

Defined in: layout/src/markers.ts:79

The style of what marks a position that has no coordinate (section 6.6: a groupstamp’s secondary coordinate where a length of the group is not known, and the frame’s line over such a member’s card) and of a rejected flow-control element with its label: its opacity FADED_OPACITY, the defaults’ opacity of ancestor lines, in place of the cascaded one, a rule of the drawing that no style changes.

Parameters#

style#

Style

Returns#

Style


markersBand()#

markersBand(scope, line, sources): StagedMarkers

Defined in: layout/src/markers.ts:284

The markers band of the timeline drawn with the line line (section 6.4, Markers): the named timestamps of each of sources, the line’s own first and then each joined segment’s, segment after segment, each one’s in canonical order, each at its timeline’s start plus its coordinate (section 3.1); then the secondary coordinates on each of sources of every named timestamp the card draws whose position its span holds (core’s cardStamps), source after source, in canonical order of their timestamps, each read on that source’s axis. Of each, the wedge and the labels its display lists are drawn when they are displayed and its timeline’s markers band is displayed; its labels, name, ID and coordinate (sections 5.2 and 5.3), form its stack. The stacks are placed by one first fit, in that order, into tiers counted in lines (tiersOf), each stack one item as wide as its widest label, centred on its timestamp’s X, at its unturned place; a wedge’s rotation, 0 where no rule sets it, carries its stack (carried). After them come the label stacks of the gaps lying on its sources, each centred on L × um at full scale and as many lines high as the last line it is drawn on below its ellipsis (stackLines), so a stack moved to a later level takes that room. The band holds its wedges and its labels directly and is present when it draws either; it is w / 2 + 13 wide without a label, w / 2 + 13 + 2 + T × h(9) with T ≥ 1 lines of labels, w the stroke width of the line and 9 the largest font size of its drawn labels; it adds to its timeline’s extent [L × u + a, L × u + b] for every wedge it draws, a and b the smallest and largest of 0 and its corners’ offsets across ([−3, 3] unturned), and the extent of every stack where its wedge carries it. A cross-section line is held by its timeline’s line, not by the band: it is drawn when its timestamp’s display lists it and its own display is inline, whatever the band’s, and takes no room. A wedge, its labels and its cross-section line at a position in a gap are not drawn (section 6.6, Elisions), and that position takes its room all the same.

Parameters#

scope#

Scope

line#

Entry

sources#

readonly Entry[]

Returns#

StagedMarkers


markLabelOffset()#

markLabelOffset(scope, w, line, size): number

Defined in: layout/src/markers.ts:60

The distance from the axis of a line of width w to the inner edge of its mark label line line.

Parameters#

scope#

Scope

w#

number

line#

number

size#

number

Returns#

number


markReach()#

markReach(scope, w, lines, size): number

Defined in: layout/src/markers.ts:56

The reach of the wedges or marks of a line of width w: w / 2 + 13, and lines label lines beyond.

Parameters#

scope#

Scope

w#

number

lines#

number

size#

number

Returns#

number


rotatedStyle()#

rotatedStyle(style): Style

Defined in: layout/src/markers.ts:67

A wedge’s style with its rotation read (section 2.5): the value a rule set, else the initial value 0.

Parameters#

style#

Style

Returns#

Style


stampLabels()#

stampLabels(timestamp, timeline, own, styledLabel, measured): StampLabel[]

Defined in: layout/src/markers.ts:146

The drawn labels of a stack of timestamp on timeline, in the order of TIMESTAMP_LABELS: each label its display lists that has a text and whose style, from styledLabel, shows it. own is the value the stack marks on timeline’s axis, null for a secondary coordinate without a value, which draws no coordinate label (section 6.6); a timestamp without a name draws no name label (section 2). The coordinate label alone carries own; a markers band and an ancestor line build their stacks alike through this function.

Parameters#

timestamp#

{ }

timeline#

{ }

own#

Real | null

styledLabel#

(word) => Styled

measured#

(owner, text) => Measured

Returns#

StampLabel[]


wedgeElement()#

wedgeElement(address, style, x, at, side, start, w): MarkerElement

Defined in: layout/src/markers.ts:93

A wedge at x of the markers band of the line placed at at, the band starting at start outwards on side and w the line’s stroke width (section 6.6, Wedges): its tip start + w / 2 out, and each corner of its base, turned by the style’s rotation (0 where unset) about the tip, at its offset across and its distance beyond the tip’s, that distance added to the tip’s before it becomes an ordinate; unturned, its base 13 further out and 6 wide. A named timestamp’s wedge is drawn by it, and so is the wedge an editor shows at a position no named timestamp holds (wedgeAt).

Parameters#

address#

ElementAddress

style#

Style

x#

number

at#

LinePosition

side#

Side

start#

number

w#

number

Returns#

MarkerElement