inspector/matchstamps#
Interfaces#
ClaimDetails#
Defined in: editor/src/inspector/matchstamps.ts:615
What the tab shows of a MatchClaim expanded: its two sides and its certainty.
Properties#
certainty#
readonlycertainty:number|null
Defined in: editor/src/inspector/matchstamps.ts:618
The certainty the table states; null for none.
sides#
Defined in: editor/src/inspector/matchstamps.ts:616
ClaimLine#
Defined in: editor/src/inspector/matchstamps.ts:531
A MatchClaim behind a MatchStamp as the tab lists it.
Properties#
beliefs#
readonlybeliefs: readonlyBeliefLine[]
Defined in: editor/src/inspector/matchstamps.ts:541
Every actor’s belief in it, as the table states them, each actor’s IRI
under the manifest’s context and its words (whoOf: the user’s name,
else a slug of the IRI, iris.ts); date and note
null, which only the provenance entry gives.
held#
readonlyheld:boolean
Defined in: editor/src/inspector/matchstamps.ts:534
Whether the table holds it; false without a table.
id#
readonlyid:string
Defined in: editor/src/inspector/matchstamps.ts:532
mine#
readonlymine:"true"|"false"|"unlikely"|null
Defined in: editor/src/inspector/matchstamps.ts:543
The belief of user; null while they state none.
Difference#
Defined in: editor/src/inspector/matchstamps.ts:657
One kind of difference between a named MatchStamp and the current table, with what differs.
Properties#
items#
readonlyitems: readonlystring[]
Defined in: editor/src/inspector/matchstamps.ts:659
label#
readonlylabel:string
Defined in: editor/src/inspector/matchstamps.ts:658
MatchIndexes#
Defined in: editor/src/inspector/matchstamps.ts:84
The two anchor indexes of a table: compared under the belief filter
alone, which named MatchStamps are compared with (an anchor is stated when
a MatchClaim the belief filter passes gives it); shown under the belief
filter and the timelines filter, which the overlay draws and a potential
MatchStamp is read from. Without a timelines filter both are one index.
Properties#
beliefs#
readonlybeliefs:Uint8Array
Defined in: editor/src/inspector/matchstamps.ts:92
The believer’s belief in every MatchClaim of the table, per row
(core’s believedBy), which the canvas colours the anchors of a shown
MatchStamp by.
compared#
readonlycompared:AnchorIndex
Defined in: editor/src/inspector/matchstamps.ts:85
shown#
readonlyshown:AnchorIndex
Defined in: editor/src/inspector/matchstamps.ts:86
ShownStamp#
Defined in: editor/src/inspector/matchstamps.ts:313
A potential or named MatchStamp as the tab shows it.
Properties#
anchors#
readonlyanchors: readonlyStampAnchor[]
Defined in: editor/src/inspector/matchstamps.ts:320
block#
readonlyblock:string
Defined in: editor/src/inspector/matchstamps.ts:314
claims#
readonlyclaims: readonlystring[]
Defined in: editor/src/inspector/matchstamps.ts:322
The IDs of the MatchClaims behind it: the table’s for a potential one, those recorded for a named one.
coordinates#
readonlycoordinates: readonlyStampCoordinate[]
Defined in: editor/src/inspector/matchstamps.ts:319
Its timestamps, one per coordinate, in screen order.
id#
readonlyid:string|null
Defined in: editor/src/inspector/matchstamps.ts:316
A named MatchStamp’s ID and name; both null for a potential one.
name#
readonlyname:string|null
Defined in: editor/src/inspector/matchstamps.ts:317
StampAnchor#
Defined in: editor/src/inspector/matchstamps.ts:300
An alignment anchor as the tab shows it.
Properties#
coordinates#
readonlycoordinates:Pair
Defined in: editor/src/inspector/matchstamps.ts:305
display#
readonlydisplay: readonly ("name"|"line")[] |null
Defined in: editor/src/inspector/matchstamps.ts:307
A named anchor’s display; null for a potential one.
id#
readonlyid:string|null
Defined in: editor/src/inspector/matchstamps.ts:304
A named MatchStamp’s anchor ID; null for a potential one.
key#
readonlykey:string
Defined in: editor/src/inspector/matchstamps.ts:302
Unique among the anchors of one MatchStamp: its ID, else its two coordinates.
stated#
readonlystated:boolean|null
Defined in: editor/src/inspector/matchstamps.ts:309
Whether the current table states it: null without a table or for a potential one.
StampCoordinate#
Defined in: editor/src/inspector/matchstamps.ts:244
A coordinate of a MatchStamp: a timeline’s ID and a value on its own axis.
Properties#
timeline#
readonlytimeline:string
Defined in: editor/src/inspector/matchstamps.ts:245
value#
readonlyvalue:CoordinateValue
Defined in: editor/src/inspector/matchstamps.ts:246
Type Aliases#
Sentinel#
Sentinel =
"CHUNK"|"NOMATCH"
Defined in: editor/src/inspector/matchstamps.ts:584
The sentinels a side of a MatchClaim may be instead of an event.
SideLine#
SideLine =
object& ({event:string; } | {event:null;sentinel:Sentinel; })
Defined in: editor/src/inspector/matchstamps.ts:608
One side of a MatchClaim as the tab shows it expanded: its timeline, its
ID and its name (else the ID), then its event’s ID, or the sentinel it is
where it names no event, and the side’s name (null for none; a CHUNK
side may name the position it states, a NOMATCH side has none).
Type Declaration#
name#
readonlyname:string|null
timeline#
readonlytimeline:string
timelineName#
readonlytimelineName:string
Variables#
SENTINEL_TITLES#
constSENTINEL_TITLES:Readonly<Record<Sentinel,string>>
Defined in: editor/src/inspector/matchstamps.ts:597
What the tab says a sentinel is, in plain words.
Functions#
addedMatchStamp()#
addedMatchStamp(
before,after): { } |null
Defined in: editor/src/inspector/matchstamps.ts:780
The named MatchStamp of block block that after holds and before does not; null for none.
Parameters#
before#
Manifest | undefined
after#
Manifest | undefined
Returns#
{ } | null
anchorDisplayCommand()#
anchorDisplayCommand(
block,anchor,display,word):Command
Defined in: editor/src/inspector/matchstamps.ts:736
The set of the anchor anchor’s display with word toggled, in the schema’s order.
Parameters#
block#
string
anchor#
string
display#
readonly ("name" | "line")[]
word#
"name" | "line"
Returns#
blockIndexes()#
blockIndexes(
view,block,table,believer):MatchIndexes|null
Defined in: editor/src/inspector/matchstamps.ts:163
The indexes of block block of view holding the table table (null
for none) under the block’s MatchClaim filter, for the believer
believer and under the block’s manifest’s @context (matchIndexes):
what the editor gives the canvas, the drawer and the Matchstamp tab, one
function for all three; null without a table or without the block.
Parameters#
view#
block#
string
table#
MatchClaimTable | null
believer#
string
Returns#
MatchIndexes | null
claimDetails()#
claimDetails(
read,id,manifest):ClaimDetails|null
Defined in: editor/src/inspector/matchstamps.ts:631
The details of the MatchClaim id among the events the server read
(read), its timelines named from manifest; null where read does
not hold it.
Parameters#
read#
readonly ClaimEvents[]
id#
string
manifest#
Returns#
ClaimDetails | null
claimLines()#
claimLines(
table,ids,user,context):ClaimLine[]
Defined in: editor/src/inspector/matchstamps.ts:551
The MatchClaims ids with their beliefs in table (none without one),
user the editor’s user, actors compared as their IRIs under context
(the manifest’s @context, actorIri), as the belief filter compares them.
Parameters#
table#
MatchClaimTable | null
ids#
readonly string[]
user#
context#
unknown
Returns#
differencesOf()#
differencesOf(
manifest,matchstamp,comparison,index):Difference[]
Defined in: editor/src/inspector/matchstamps.ts:679
What differs between the named MatchStamp matchstamp and the current
table (comparison, against index), each kind with what differs, only
the kinds that do, in the order: MatchClaims missing from the table,
MatchClaims the belief filter leaves out (their state for the user is
one the filter does not keep), anchors gone, anchors new,
MatchClaims stating other anchors, MatchClaims new.
Parameters#
manifest#
matchstamp#
{ }
comparison#
index#
Returns#
matchIndexes()#
matchIndexes(
table,filter,believer,context):MatchIndexes
Defined in: editor/src/inspector/matchstamps.ts:135
The indexes of table under filter for the believer believer (the
editor’s one user), the actors compared as their IRIs under context
(the block’s manifest’s @context, undefined for none: actorIri),
each built once per table, filter and context.
Parameters#
table#
filter#
believer#
string
context#
unknown
Returns#
matchInputs()#
matchInputs(
view,blocks,indexesOf): readonlyMatchOverlayInput[]
Defined in: editor/src/inspector/matchstamps.ts:212
The canvas’s matches: for every block of blocks (those holding a
table) that view still holds and whose table indexesOf gives, the
anchor index of its potential MatchStamps (the shown index) and its named
MatchStamps compared with its table (against the compared index, so an
anchor of a named MatchStamp on a timeline the filter leaves out still
counts as stated); in the order of blocks.
Parameters#
view#
blocks#
readonly string[]
indexesOf#
(block) => MatchIndexes | null
Returns#
readonly MatchOverlayInput[]
matchStampsOf()#
matchStampsOf(
manifest,timestamp): readonlyobject[]
Defined in: editor/src/inspector/matchstamps.ts:458
The named MatchStamps of manifest an anchor of which names the match timestamp timestamp.
Parameters#
manifest#
timestamp#
string
Returns#
readonly object[]
nameCommand()#
nameCommand(
stamp,name):Command
Defined in: editor/src/inspector/matchstamps.ts:718
The add naming the potential MatchStamp stamp name: its anchors in
screen order, as stamp holds them, and the MatchClaims behind it. The
tab names stampToName of the MatchStamp it shows, read with nothing
raised, so what is stored does not depend on the open editor.
Parameters#
stamp#
name#
string
Returns#
namedComparisons()#
namedComparisons(
manifest,index): readonlyNamedComparison[]
Defined in: editor/src/inspector/matchstamps.ts:183
Every named MatchStamp of manifest compared with index
(checkMatchStamp), in the manifest’s order; each comparison’s stated
follows its MatchStamp’s alignment_anchors (matchStampSpec lists them
in that order), which is how the canvas finds the anchors to draw red.
Parameters#
manifest#
index#
Returns#
readonly NamedComparison[]
namedStamp()#
namedStamp(
block,manifest,matchstamp,comparison,drawing,raised?):ShownStamp
Defined in: editor/src/inspector/matchstamps.ts:383
The named MatchStamp matchstamp of manifest, in block block drawn
as drawing (in screen order under raised, as potentialStamp), its
anchors in the manifest’s order, each stated or not as comparison (the
current table’s) says; null without a table.
Parameters#
block#
string
manifest#
matchstamp#
{ }
comparison#
MatchStampCheck | null
drawing#
raised?#
string | null = null
Returns#
pinnedMatchStampOf()#
pinnedMatchStampOf(
shown,indexesOf):MatchStampPin|null
Defined in: editor/src/inspector/matchstamps.ts:231
The canvas’s pinnedMatchStamp: the potential MatchStamp the Matchstamp
tab shows (shown), with its block, where it was read from that block’s
shown index as it is now (indexesOf); null for anything else.
Parameters#
shown#
HeldMatch | null
indexesOf#
(block) => MatchIndexes | null
Returns#
MatchStampPin | null
potentialStamp()#
potentialStamp(
block,index,matchStamp,drawing,raised?):ShownStamp
Defined in: editor/src/inspector/matchstamps.ts:350
The potential MatchStamp matchStamp of index, in block block drawn
as drawing, in screen order there, raised naming the root whose
ancestor cards the open editor raises (the arranger’s raisedRoot), else
null.
Parameters#
block#
string
index#
matchStamp#
number
drawing#
raised?#
string | null = null
Returns#
removeCommand()#
removeCommand(
block,id):Command
Defined in: editor/src/inspector/matchstamps.ts:775
The remove deleting the named MatchStamp id of block block, and the match timestamps only it used.
Parameters#
block#
string
id#
string
Returns#
renameCommand()#
renameCommand(
block,id,name):Command
Defined in: editor/src/inspector/matchstamps.ts:731
The set renaming the named MatchStamp id of block block name.
Parameters#
block#
string
id#
string
name#
string
Returns#
stampJson()#
stampJson(
manifest,stamp):Json
Defined in: editor/src/inspector/matchstamps.ts:501
stamp as JSON: its ID and name where it is named, its timestamps (each
{timeline, coordinate}, the coordinate a coordinate dict) in screen
order, its anchors as pairs of timestamp positions, and its MatchClaims.
Parameters#
manifest#
stamp#
Returns#
stampRows()#
stampRows(
manifest,coordinates):TimelineRows[]
Defined in: editor/src/inspector/matchstamps.ts:473
The groups of coordinates of a MatchStamp of manifest, in the order
given, as the Timestamp tab’s Coordinates show a timestamp’s
(coordinateGroup): each its timeline’s name, else its ID, and one row
“coordinate”, the exact value in the timeline’s unit and number type (its
text alone where the timeline is no longer in the manifest).
Parameters#
manifest#
coordinates#
readonly StampCoordinate[]
Returns#
stampText()#
Defined in: editor/src/inspector/matchstamps.ts:524
stamp as text in format (stampJson).
Parameters#
format#
"yaml" | "json" | "toml"
manifest#
stamp#
Returns#
stampToName()#
stampToName(
stamp,indexes,drawing):ShownStamp
Defined in: editor/src/inspector/matchstamps.ts:430
The potential MatchStamp that naming stamp stores: the MatchStamp of
the compared index (the belief filter alone) holding stamp’s first
coordinate, so that a MatchStamp named under a timelines filter is the
whole MatchStamp the table states and is not out of date the moment it
is named (the timelines filter limits what is shown, never what is
stated). stamp itself where both indexes are one, or where the compared
index does not hold its coordinate. What is stored never depends on the
open editor: stamp is read with nothing raised, and so is the
MatchStamp returned (potentialStamp with raised null).
Parameters#
stamp#
indexes#
drawing#
Returns#
timelineMask()#
timelineMask(
table,timelines,mask):Uint8Array
Defined in: editor/src/inspector/matchstamps.ts:96
The rows of mask (every row for null) whose two timelines are among timelines.
Parameters#
table#
timelines#
readonly string[]
mask#
Uint8Array<ArrayBufferLike> | null
Returns#
Uint8Array
updateCommand()#
updateCommand(
block,id,update,index,drawing):Command
Defined in: editor/src/inspector/matchstamps.ts:752
The set updating the named MatchStamp id of block block from the
current potential MatchStamp update of index (core’s comparison): its
anchors in screen order with nothing raised, as naming stores them
(stampToName), whichever editor is open, and the MatchClaims behind
them, in one entry.
Parameters#
block#
string
id#
string