Skip to content

@graphty/graphty-element / index / ElementAtResult

Type Alias: ElementAtResult ​

ElementAtResult = { id: NodeId; kind: "node"; } | { id: EdgeId; kind: "edge"; }

Defined in: graphty-element/src/catalog/types.ts:60

What element.elementAt(point) finds under a point: a node or an edge, by id. A node wins over an edge drawn beneath it; an edge is found within a few pixels of its line.