@graphty/graphty-element / index / NoteTarget
Type Alias: NoteTarget ​
NoteTarget = {
graph:true; } | {node:NodeId; } | {edge:EdgeMember; } | {name?:string;set:SetId; } | {result:ResultId; } | {item:ResultItem; }
Defined in: graphty-element/src/session/notes/types.ts:21
What a note is about.
OPEN UNION: kinds may be added in a minor release. Show a kind you do not know by its label from notes.status().
Union Members ​
Type Literal ​
{ graph: true; }
graph ​
readonlygraph:true
The whole graph.
Type Literal ​
{ node: NodeId; }
node ​
readonlynode:NodeId
One node, by its id. 11 and "11" name the same node.
Type Literal ​
{ edge: EdgeMember; }
edge ​
readonlyedge:EdgeMember
One edge: its two ends plus the file's edge id, or its position among the edges joining them.
Type Literal ​
{ name?: string; set: SetId; }
name? ​
readonlyoptionalname?:string
The set's name when the note was written, for display once the set is gone.
set ​
readonlyset:SetId
A kept set.
Type Literal ​
{ result: ResultId; }
result ​
readonlyresult:ResultId
A run's result as a whole, followed across re-runs.
Type Literal ​
{ item: ResultItem; }
item ​
readonlyitem:ResultItem
One group or path a run found, pinned to that run.