ExplorerEdge
Defined in: scene/types.ts:218
A relationship between two items of the same scene, by their ids.
- In a radial scene (one with
focusId), edges decide the layout: the items joined to the centre by an edge, in either direction, are its neighbours, placed evenly round it. They are grouped by thekindof the edge that joins them, then ordered by id, starting at three o’clock and going clockwise. An item joined to the centre by no edge is not drawn in a radial scene. - In a packed scene, edges do not affect the layout.
- Either way, with the view’s
edges={{ visible: true }}, every edge whose two ends are drawn is drawn too, styled by itskind(including edges between two neighbours), and listed in the outline as a link to its far end.
Direction matters only for drawing: an arrowhead (edges.styles[kind].arrow) points from
sourceId to targetId.
Properties
Section titled “Properties”id:
string
Defined in: scene/types.ts:220
Unique within its scene.
kind:
string
Defined in: scene/types.ts:227
What the relationship is ("imports", "reports-to"): groups neighbours in a radial scene,
and selects a style in the view’s edges.styles. Never interpreted.
sourceId
Section titled “sourceId”sourceId:
string
Defined in: scene/types.ts:222
The item the edge starts from.
targetId
Section titled “targetId”targetId:
string
Defined in: scene/types.ts:224
The item the edge ends at.