coordinates#
Classes#
FrameCoalescer#
Defined in: arranger/src/coordinates.ts:1504
Pointer moves coalesced into one call of run per animation frame, with
the last point given; cancel drops a pending one.
Type Parameters#
T#
T
Constructors#
Constructor#
new FrameCoalescer<
T>(run):FrameCoalescer<T>
Defined in: arranger/src/coordinates.ts:1509
Parameters#
run#
(value) => void
Returns#
Methods#
cancel()#
cancel():
void
Defined in: arranger/src/coordinates.ts:1525
Returns#
void
push()#
push(
value):void
Defined in: arranger/src/coordinates.ts:1514
Run with value at the next animation frame, replacing any value still waiting.
Parameters#
value#
T
Returns#
void
MeasureKnotsSource#
Defined in: arranger/src/coordinates.ts:1473
The expanded MeasureMaps of each manifest, asked of fetch with the
manifest’s text once per manifest object (one version of a manifest)
that has MeasureMaps, and kept as the answer arrives; changed is
called then. fetch answers the rows or why there are none
(MeasureMapsAnswer); a request that fails otherwise leaves them
failed. Until the answer arrives they are pending, so nothing waits
for them.
Constructors#
Constructor#
new MeasureKnotsSource(
fetch,changed):MeasureKnotsSource
Defined in: arranger/src/coordinates.ts:1478
Parameters#
fetch#
(manifest) => Promise<MeasureMapsAnswer>
changed#
() => void
Returns#
Methods#
knotsOf()#
readonlyknotsOf(manifest): readonlyMeasureKnots[] |KnotsAbsence|undefined
Defined in: arranger/src/coordinates.ts:1484
The expanded MeasureMaps of manifest, or why they are not at hand; asks for them the first time.
Parameters#
manifest#
Returns#
readonly MeasureKnots[] | KnotsAbsence | undefined
Interfaces#
Affordance#
Defined in: arranger/src/coordinates.ts:1115
A named timestamp whose display is empty (not a match timestamp),
which the drawing therefore draws nothing of, as the canvas alone shows
it so it stays selectable: a
wedge where its own would lie on one line. It is its own canvas source
(drawn): a press on it hits the timestamp’s address.
Extends#
Properties#
address#
readonlyaddress:ElementAddress
Defined in: arranger/src/boxes.ts:52
The named timestamp’s address {id}.
Inherited from#
kind#
readonlykind:"affordance"
Defined in: arranger/src/boxes.ts:50
Inherited from#
line#
readonlyline:string
Defined in: arranger/src/coordinates.ts:1117
The key of the line in lineAxes.
points#
Defined in: arranger/src/coordinates.ts:1119
The wedge’s corners in block-local canvas units (layout’s wedgeAt).
FlagPart#
Defined in: arranger/src/coordinates.ts:1394
One part of a timestamp as the flag shows it: its timeline’s name, then its rows.
Properties#
name#
readonlyname:string
Defined in: arranger/src/coordinates.ts:1396
rows#
readonlyrows: readonlyTimestampRow[]
Defined in: arranger/src/coordinates.ts:1398
Its coordinate’s row and one row per map drawn for it, top to bottom as they are drawn.
timeline#
readonlytimeline:string
Defined in: arranger/src/coordinates.ts:1395
FlagPlace#
Defined in: arranger/src/coordinates.ts:1427
Where the flag and its pole lie, in pixels from the canvas’s top-left corner.
Properties#
left#
readonlyleft:number
Defined in: arranger/src/coordinates.ts:1431
The flag’s left and top edges.
pole#
readonlypole:object
Defined in: arranger/src/coordinates.ts:1429
The pole: its abscissa (its centre), its top and its bottom, the line’s ordinate.
bottom#
readonlybottom:number
top#
readonlytop:number
x#
readonlyx:number
top#
readonlytop:number
Defined in: arranger/src/coordinates.ts:1432
FlowFlagPart#
Defined in: arranger/src/coordinates.ts:1546
A part the flag adds below the timestamp’s for a flow (plan of the canvas’s
virtual cards; TimeToShare’s docs/drawing.md, section 8.10): the written
position of a virtual timeline’s played one, or the played positions of a
root’s written one on its virtual cards.
Properties#
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:1548
Unique within the flag: written <V> or played <R>.
name#
readonlyname:string
Defined in: arranger/src/coordinates.ts:1549
rows#
readonlyrows: readonlyFlowFlagRow[]
Defined in: arranger/src/coordinates.ts:1550
FlowFlagRow#
Defined in: arranger/src/coordinates.ts:1533
One row the flag adds for a flow: what it names and its value as the flag writes it.
Properties#
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:1535
Unique within its part.
name#
readonlyname:string
Defined in: arranger/src/coordinates.ts:1536
value#
readonlyvalue:string
Defined in: arranger/src/coordinates.ts:1537
Holding#
Defined in: arranger/src/coordinates.ts:574
A line a timeline is drawn on (linesOf): its key, its axis, where the
timeline’s zero lies on it, the timeline’s length there when it is a
segment of the line (null on a line of its own), and the key of the
line whose cross-section line a coordinate there is drawn as (layout’s
crossSectionSegment): the line’s own, or on an ancestor line, which
draws none, the line of the member in whose card it is drawn.
Extended by#
Properties#
axis#
readonlyaxis:LineAxis
Defined in: arranger/src/coordinates.ts:576
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:575
length#
readonlylength:Rational|null
Defined in: arranger/src/coordinates.ts:578
offset#
readonlyoffset:Rational
Defined in: arranger/src/coordinates.ts:577
section#
readonlysection:string
Defined in: arranger/src/coordinates.ts:579
LineHit#
Defined in: arranger/src/coordinates.ts:102
A hovered line: its key in lineAxes, the map hovered at it, and the abscissa on it.
Properties#
axis#
readonlyaxis:LineAxis
Defined in: arranger/src/coordinates.ts:105
distance#
readonlydistance:number
Defined in: arranger/src/coordinates.ts:111
The vertical distance from the pointer to what is hovered, the line or its nearest map.
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:104
The key of the line in lineAxes.
map#
readonlymap:AxisMap|null
Defined in: arranger/src/coordinates.ts:107
The map whose drawing is hovered; null when the line itself is.
x#
readonlyx:number
Defined in: arranger/src/coordinates.ts:109
The pointer’s abscissa held to the span of what is hovered, in block-local canvas units.
MarkPlace#
Defined in: arranger/src/coordinates.ts:496
Where a timestamp’s wedge and cross-section line are drawn: on a line, at an abscissa.
Extended by#
Properties#
group?#
readonlyoptionalgroup?:boolean
Defined in: arranger/src/coordinates.ts:506
Whether the timestamp is read across the members of the group whose frame holds the line
(readsGroup of its pin), so that its line extends across that frame as a groupstamp’s
does (layout’s groupCrossSections); not where absent.
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:498
The key of the line in lineAxes.
x#
readonlyx:number
Defined in: arranger/src/coordinates.ts:500
The abscissa of the timestamp’s position on the line, in block-local canvas units.
Place#
Defined in: arranger/src/coordinates.ts:767
A place of a coordinate: a part of a line where its timeline is seen, and its abscissa there.
Extends#
Properties#
axis#
readonlyaxis:LineAxis
Defined in: arranger/src/coordinates.ts:576
Inherited from#
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:575
Inherited from#
length#
readonlylength:Rational|null
Defined in: arranger/src/coordinates.ts:578
Inherited from#
offset#
readonlyoffset:Rational
Defined in: arranger/src/coordinates.ts:577
Inherited from#
section#
readonlysection:string
Defined in: arranger/src/coordinates.ts:579
Inherited from#
x#
readonlyx:number
Defined in: arranger/src/coordinates.ts:769
The abscissa of the coordinate on the line, in block-local canvas units (layout’s abscissaOf).
xFrom#
readonlyxFrom:number
Defined in: arranger/src/coordinates.ts:620
The ends of the part seen, in block-local canvas units, both included.
Inherited from#
xTo#
readonlyxTo:number
Defined in: arranger/src/coordinates.ts:621
Inherited from#
PlacedMarks#
Defined in: arranger/src/coordinates.ts:523
The marks of a timestamp as the canvas draws them: the hovered position’s or the pinned one’s, its block’s drawing, its place there, and the block’s node: its top-left corner on the canvas and its scale.
Extends#
Properties#
drawing#
readonlydrawing:Drawing
Defined in: arranger/src/coordinates.ts:525
group?#
readonlyoptionalgroup?:boolean
Defined in: arranger/src/coordinates.ts:506
Whether the timestamp is read across the members of the group whose frame holds the line
(readsGroup of its pin), so that its line extends across that frame as a groupstamp’s
does (layout’s groupCrossSections); not where absent.
Inherited from#
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:498
The key of the line in lineAxes.
Inherited from#
kind#
readonlykind:"hover"|"pin"
Defined in: arranger/src/coordinates.ts:524
origin#
readonlyorigin:Point
Defined in: arranger/src/coordinates.ts:526
scale#
readonlyscale:number
Defined in: arranger/src/coordinates.ts:527
x#
readonlyx:number
Defined in: arranger/src/coordinates.ts:500
The abscissa of the timestamp’s position on the line, in block-local canvas units.
Inherited from#
Reading#
Defined in: arranger/src/coordinates.ts:115
What the pointer reads on a block: the hovered line and row, the position and the pin a click there makes.
Properties#
at#
readonlyat:Point
Defined in: arranger/src/coordinates.ts:125
Where the position lies on the line, in block-local canvas units.
block#
readonlyblock:string
Defined in: arranger/src/coordinates.ts:116
hit#
readonlyhit:LineHit
Defined in: arranger/src/coordinates.ts:117
pin#
readonlypin:Pin
Defined in: arranger/src/coordinates.ts:123
The pin of the position: its spec, the MeasureMaps read, its timestamp; unnamed.
position#
readonlyposition:Rational
Defined in: arranger/src/coordinates.ts:121
The position picked, exact, on the hovered line’s own axis.
row#
readonlyrow:Row
Defined in: arranger/src/coordinates.ts:119
The row hovered (rowOf): the position is picked on its axis.
top#
readonlytop:number
Defined in: arranger/src/coordinates.ts:131
The topmost ordinate of the line, the maps drawn at it and its cross-section line, in block-local canvas units: the flag’s pole rises above it.
SeenHolding#
Defined in: arranger/src/coordinates.ts:618
The part of a line where a timeline drawn on it is seen (seenOn).
Extends#
Extended by#
Properties#
axis#
readonlyaxis:LineAxis
Defined in: arranger/src/coordinates.ts:576
Inherited from#
key#
readonlykey:string
Defined in: arranger/src/coordinates.ts:575
Inherited from#
length#
readonlylength:Rational|null
Defined in: arranger/src/coordinates.ts:578
Inherited from#
offset#
readonlyoffset:Rational
Defined in: arranger/src/coordinates.ts:577
Inherited from#
section#
readonlysection:string
Defined in: arranger/src/coordinates.ts:579
Inherited from#
xFrom#
readonlyxFrom:number
Defined in: arranger/src/coordinates.ts:620
The ends of the part seen, in block-local canvas units, both included.
xTo#
readonlyxTo:number
Defined in: arranger/src/coordinates.ts:621
VirtualCard#
Defined in: arranger/src/coordinates.ts:1554
A card of a virtual timeline the block draws: its timeline and the group whose frame holds it, null for one of its own.
Properties#
group#
readonlygroup:string|null
Defined in: arranger/src/coordinates.ts:1556
timeline#
readonlytimeline:string
Defined in: arranger/src/coordinates.ts:1555
Type Aliases#
KnotsOf#
KnotsOf = (
manifest) => readonlyMeasureKnots[] |KnotsAbsence|undefined
Defined in: arranger/src/coordinates.ts:1175
The expanded MeasureMaps of a manifest, or why they are not at hand;
undefined for a manifest without MeasureMaps.
Parameters#
manifest#
Returns#
readonly MeasureKnots[] | KnotsAbsence | undefined
MeasureMapsAnswer#
MeasureMapsAnswer = readonly
MeasureKnots[] |"unsupported"|"unreachable"
Defined in: arranger/src/coordinates.ts:1462
What a server answers for a manifest’s text: its expanded MeasureMaps,
unsupported where the server cannot expand MeasureMaps, or
unreachable where no server answered the request.
Variables#
HIT_TOLERANCE#
constHIT_TOLERANCE:8=8
Defined in: arranger/src/coordinates.ts:97
How near, in device pixels, the pointer must come to a line or a map to hover it.
POLE_RISE#
constPOLE_RISE:22=22
Defined in: arranger/src/coordinates.ts:1424
How far, in pixels, the flag’s pole rises above what it marks.
POLE_WIDTH#
constPOLE_WIDTH:1=1
Defined in: arranger/src/coordinates.ts:1422
The width of the flag’s pole in pixels.
Functions#
affordancesOf()#
affordancesOf(
manifest,drawing,raised?): readonlyAffordance[]
Defined in: arranger/src/coordinates.ts:1140
The affordances of the named timestamps of manifest whose display is
empty, drawing being its drawing, but for a match timestamp, which
leaves no placeholder (its MatchStamp is reached through its lines and
connectors): one at every place of its coordinate (placesAt, raised
naming the root whose ancestor cards are raised, else null), whatever
the line’s length, its wedge layout’s wedgeAt there (an ancestor
line’s mark on an ancestor line), in the order the manifest lists them;
none where its coordinate has no place. The one place their geometry is
computed, once per drawing and root: the block node draws them, the
marquee takes their bounds, the projection counts their addresses as
drawn.
Parameters#
manifest#
drawing#
raised?#
string | null = null
Returns#
readonly Affordance[]
axesOf()#
axesOf(
drawing):ReadonlyMap<string,LineAxis>
Defined in: arranger/src/coordinates.ts:203
The lines of drawing a pointer reads a timestamp on, once per drawing,
in lineAxes’ order: the marked lines (markedOf) and the ancestor
lines (ancestorLinesOf) that are measurable, a line of unknown length
over its drawn span, never a zero-length line.
Parameters#
drawing#
Returns#
ReadonlyMap<string, LineAxis>
crossSectionSpec()#
crossSectionSpec(
manifest,block,drawing,lineKey,granularity,anchor?):CrossSectionSpec
Defined in: arranger/src/coordinates.ts:467
The cross-section read on the line keyed lineKey (a key of axesOf)
of drawing, block block’s drawing of manifest, anchored on the
timeline anchor (the line’s own by default, else a segment the line
holds): what a cross-section line in the line’s card crosses (drawing.md
section 2), every timeline the card draws (cardTimelines: the root,
the anchor’s ancestors, siblings, children and every other timeline of
the card, as lines, ancestor lines or segments of a line) at its offset
from the anchor’s zero, exact, each with the maps drawn for it in the
card, at the ordinate of its line there, so its rows are listed top to
bottom, and, of unknown length, with its reach there; plus the anchor’s
ancestors wherever they are drawn or not: an ancestor the card does not
draw (its line hidden) follows at its offset (core’s ancestorMembers),
without maps or ordinate, so it is listed after the drawn rows. Core’s
timestampAt keeps of them those whose span holds the position, ends
included. An anchor the card does not draw is read on its own axis
without maps.
Parameters#
manifest#
block#
string
drawing#
lineKey#
string
granularity#
anchor?#
string
Returns#
flagParts()#
flagParts(
pin):FlagPart[]
Defined in: arranger/src/coordinates.ts:1407
The rows of pin (core’s timestampRows) grouped by part in their order,
top to bottom where the reading crosses each part’s timeline: each part’s
consecutive rows of one timeline, in their order (its maps drawn above its
line before its coordinate), named by its coordinate row’s label.
Parameters#
pin#
Returns#
FlagPart[]
flagPlace()#
flagPlace(
at):FlagPlace
Defined in: arranger/src/coordinates.ts:1444
Where the flag of a reading starts: its pole stands at x from
POLE_RISE above top (the topmost of the line, its maps and its
cross-section line), held below the canvas’s top edge, down to y, the
line; the flag hangs from the pole’s top and opens to the right, its
left edge touching the pole’s right side, so it never covers the pole
nor the abscissa it marks. It never changes sides: near a border it is
shifted by exactly what keeps it on screen (onScreen).
Parameters#
at#
top#
number
x#
number
y#
number
Returns#
flowFlagParts()#
flowFlagParts(
manifest,places,pin,decimals):FlowFlagPart[]
Defined in: arranger/src/coordinates.ts:1625
The parts the flag adds to pin’s for flows, the block’s manifest
manifest drawn at places, its values rounded to decimals places:
where the anchor is a virtual timeline
Vresolved through a FlowMap of its rootR, the partwritten <V>, named byR, with the rowcoordinate, the position written thatVplays at the anchor’s (core’sfoldVirtual), and the rowoccurrence,k of n, the place of the anchor’s position among every played position of that written one (unfoldVirtual); inside a gap the one rowcoordinate,in a gap;for every part of the timestamp whose timeline is a root
Rwith a virtual card drawn (virtualCards), the partplayed <R>, named<R's name> played, with one row per such card in the block’s order, named by its virtual timeline (followed byin <group's name>for a card in a frame), its value every played position of the part’s coordinate in the order played, joined by,, ornot played.
None for a pin of a timeline outside every flow.
Parameters#
manifest#
places#
pin#
decimals#
number
Returns#
groupScoped()#
groupScoped(
editing):boolean
Defined in: arranger/src/coordinates.ts:1356
Whether a position read in the editor editing (the innermost open
editor, null on the arranger) reads a group’s members with its timeline
as a groupstamp would: above a timeline editor, never inside one, where it
stays on its timeline.
Parameters#
editing#
Editing | null
Returns#
boolean
holdsAt()#
holdsAt(
drawing,axis,at):boolean
Defined in: arranger/src/coordinates.ts:752
Whether the run axis of a line of drawing holds the position at of
its timeline’s own axis (docs/drawing.md in TimeToShare, section 3.2,
Seams): where another run of the line starts where axis ends, or ends
where it starts, the two meet at a seam, which leaves nothing out, and a
position at the seam lies on one side of it alone: on the right run at
the seam where an ancestor card’s protected span starts (startsSpan),
so under the frame, and on the left run at every other one (the span’s
end, and between two anchors of a root drawn once, where a line ending
at the seam ends on the left run). Every other position on its span is
held.
Parameters#
drawing#
axis#
at#
Returns#
boolean
lineAt()#
lineAt(
axes,point,tolerance,covered?):LineHit|null
Defined in: arranger/src/coordinates.ts:262
The line point hovers among axes (axesOf), tolerance canvas units
around: of every line whose zone holds the point (zoneHit) and that is
not covered where the reading lands on it (covered at the abscissa
hovered, on the line: the stacking’s, stackingOf; nothing is by
default), the one nearest in ordinate by the line or the map hovered in
it, an earlier line on a tie; null where none does.
Parameters#
axes#
ReadonlyMap<string, LineAxis>
point#
tolerance#
number
covered?#
Covered = ...
Returns#
LineHit | null
linesOf()#
linesOf(
drawing,timeline,stacking):Holding[]
Defined in: arranger/src/coordinates.ts:591
The lines of drawing the timeline timeline is drawn on, covered or
not, without exception: every marked line of its own (markedOf, in any
card, an ancestor card’s included), else every marked line whose segment
it is, at the segment’s offset and with its length; and every ancestor
line of it in a member’s card (ancestorLinesOf). The topmost in
stacking first (a raised card’s line, then a line of a frame or card,
then an ancestor card’s below the frames), else in lineAxes’ order.
Parameters#
drawing#
timeline#
string
stacking#
Returns#
Holding[]
namedPin()#
namedPin(
manifest,block,drawing,id,granularity,knots,raised,preferred):Pin|null
Defined in: arranger/src/coordinates.ts:1078
The pin of the named timestamp id of manifest, block block’s,
drawn as drawing: its timeline the anchor, at its coordinate, read with
the cross-section of its timeline at its place there (timelineSpec,
raised naming the root whose ancestor cards are raised, else null,
preferred the line it was named from, null where it is not known),
so the Timestamp tab of a timestamp named from a reading lists what the
reading’s flag listed. A groupstamp’s adds the other members of its
groups’ frames, read by the group (withGroupMembers): the Timestamp tab
shows the whole GroupStamp. knots as timestampAt takes them; null
where the manifest holds no timestamp id.
Parameters#
manifest#
block#
string
drawing#
id#
string
granularity#
knots#
raised#
string | null
preferred#
string | null
Returns#
Pin | null
pinnedPlace()#
pinnedPlace(
drawing,pin,preferred,raised):MarkPlace|null
Defined in: arranger/src/coordinates.ts:548
Where the pinned timestamp pin is marked in drawing, its block’s,
raised naming the root whose ancestor cards are raised (raisedRoot),
else null, across the group’s frame where the pin reads the group
(readsGroup): at the place of its anchor’s position on the line keyed
preferred (the line it was pinned on), else at its first place
(placeOf); null where the position has no place.
Parameters#
drawing#
pin#
preferred#
string | null
raised#
string | null
Returns#
MarkPlace | null
placeOf()#
placeOf(
drawing,timeline,value,raised,preferred):Place|undefined
Defined in: arranger/src/coordinates.ts:810
The place of the value value of the timeline timeline (placesAt)
a reader takes: the one on the line keyed preferred (the line it was
read on) while that line is one of its places, else the first;
undefined where it has none. Every reader of one place takes it so.
Parameters#
drawing#
timeline#
string
value#
raised#
string | null
preferred#
string | null
Returns#
Place | undefined
placesAt()#
placesAt(
drawing,timeline,value,raised):Place[]
Defined in: arranger/src/coordinates.ts:787
The places of the value value (exact, on the timeline’s own axis) of
the timeline timeline in drawing, raised naming the root whose
ancestor cards are raised (raisedRoot), else null: of the parts of
lines where the timeline is seen (seenOn), in their order, each one
holding the value: from 0, up to a segment’s length, within the line’s
drawn span (start to start + drawnLength on its axis, the segment’s
offset added) on the side of a seam it lies on (holdsAt), and its
abscissa there (layout’s abscissaOf) within the part, both ends
included. None where the user sees no line of the timeline at that
value. The one place rule of a coordinate: screen order
(screenPlace), the affordances (affordancesOf), the pin’s mark
(pinnedPlace) and the cross-section a timestamp is read with
(timelineSpec) read it, as “Show matches” reads seenOn.
Parameters#
drawing#
timeline#
string
value#
raised#
string | null
Returns#
Place[]
placeText()#
placeText(
timestamp):string
Defined in: arranger/src/coordinates.ts:1361
Where a timestamp lies: its anchor’s name and pretty coordinate, as Form at 13 1/2 ♩.
Parameters#
timestamp#
Returns#
string
readingAt()#
readingAt(
nodes,point,options):Reading|null
Defined in: arranger/src/coordinates.ts:1254
The reading of the canvas point point over nodes at zoom, with
ratio device pixels per CSS pixel: of every node whose drawing holds a
line point hovers (lineAt, HIT_TOLERANCE device pixels around,
where it is not covered: stackingOf, the root raised by the node’s
editor, raisedRoot), the nearest, a later node on a tie; null where
no line is hovered. A node in which the point lies inside a gap of an
elision (gapAt) reads nothing: the stretch it elides is not drawn
there, so nothing is placed, not even the end of a run beside it; every
full run of an elided line is a line of its own (axesOf), read alike,
and a position read at a seam lies on the run holding it (seamHit).
An ancestor line is read as its ancestor’s (crossSectionSpec). The
position is core’s snapOnRow on the hovered row (rowOf) of the
line’s cross-section (crossSectionSpec), p the pointer’s coordinate
on the line’s axis and h half a device pixel there: the line’s drawn
length (up to its reach where its length is not known) over its width,
over zoom × the block’s scale × ratio, halved. Above a timeline editor
(groupScoped of the node’s editor) the cross-section also holds every
member of each group whose frame draws the hovered line’s timeline, read
by the group as a groupstamp’s (withGroupMembers).
knotsOf gives the expanded MeasureMaps of a manifest, or why they are
not at hand; without it no server expands them. A point that is not
finite reads nothing.
Parameters#
nodes#
readonly BlockNode[]
point#
options#
granularity#
knotsOf?#
ratio#
number
zoom#
number
Returns#
Reading | null
readsGroup()#
readsGroup(
pin):boolean
Defined in: arranger/src/coordinates.ts:514
Whether the timestamp of pin is read across a group’s members, as a
groupstamp’s is (withGroupMembers): some member is read by the group,
scaled.
Parameters#
pin#
Returns#
boolean
rereadPin()#
rereadPin(
manifest,drawing,pin,groupstamp,raised,preferred):Pin|null
Defined in: arranger/src/coordinates.ts:1042
The unnamed pin pin of block manifest’s drawing drawing read again
at its anchor’s timeline and position (timelinePin), as a fresh reading
there reads it once the open editor changes: under the root raised now
(raised, raisedRoot), reading a group where groupstamp says a fresh
reading does (groupScoped of the open editor), with its knots and its
granularity, on the line keyed preferred (the line it was read on)
while that line is still a place of its position, else at its first
place; null where the manifest no longer holds its anchor’s timeline.
Parameters#
manifest#
drawing#
pin#
groupstamp#
boolean
raised#
string | null
preferred#
string | null
Returns#
Pin | null
rowOf()#
rowOf(
hit):Row
Defined in: arranger/src/coordinates.ts:278
The row a hit hovers: the line’s timeline’s coordinate, or the hovered map of the timeline owning it.
Parameters#
hit#
Pick<LineHit, "axis" | "map">
Returns#
rowValueText()#
rowValueText(
row,decimals):string
Defined in: arranger/src/coordinates.ts:1388
The value of one row of a timestamp as the flag writes it, rounded to
decimals places; a row that gives none says why, in core’s words.
Parameters#
row#
decimals#
number
Returns#
string
seenOn()#
seenOn(
drawing,timeline,raised): readonlySeenHolding[]
Defined in: arranger/src/coordinates.ts:642
Where the timeline timeline is seen on the lines of drawing it is
drawn on (linesOf), raised naming the root whose ancestor cards are
raised (raisedRoot), else null: each line cut at the left and right
borders of every displayed frame and card into parts, and the parts it is
not covered on (stackingOf’s covered, tested at the part’s middle on
the line), neighbours joined, both ends included; once per drawing, root
and timeline. Where the user sees a line of the timeline, and nowhere
else: the one place decision. The pointer reads a line exactly where it
is not covered (lineAt), “Show matches” draws a coordinate and the
pointer hits it on these parts (matchLinesOf), and every other reader
of a coordinate’s place takes it from them (placesAt).
Parameters#
drawing#
timeline#
string
raised#
string | null
Returns#
readonly SeenHolding[]
timelinePin()#
timelinePin(
manifest,block,drawing,timeline,position,granularity,knots,groupstamp,raised,preferred):Pin|null
Defined in: arranger/src/coordinates.ts:1003
The pin of the position position (exact, on the timeline’s own axis)
of the timeline timeline of manifest, block block’s, drawn as
drawing, read with the spec namedPin reads a named timestamp there
with, but unnamed: where groupstamp, the spec of a groupstamp there,
the members of the groups whose frames draw the timeline’s line added
(withGroupMembers, every drawn line of the timeline holding it), else
the timeline’s alone. The Matchstamp tab’s Coordinates show each
coordinate of a potential MatchStamp with it, groupstamp what naming
stores, so they list exactly the rows the Timestamp tab lists for the
timestamp naming stores at that coordinate. knots as timestampAt
takes them, raised and preferred (the line the position was read on,
null for none) as timelineSpec takes them; null where the manifest
holds no timeline timeline. Read at a place of the position with that
place’s line preferred, it lists the rows a reading there lists.
Parameters#
manifest#
block#
string
drawing#
timeline#
string
position#
granularity#
knots#
groupstamp#
boolean
raised#
string | null
preferred#
string | null
Returns#
Pin | null
virtualCards()#
virtualCards(
manifest,places):VirtualCard[]
Defined in: arranger/src/coordinates.ts:1565
The cards of virtual timelines manifest draws at places, in the order
the block draws them (section 8.1): the virtual members of each frame in
its display order, frame by frame in the canonical order of their groups,
then each placed virtual timeline in no group whose ID places holds, by ID.