/** * A shape in the sankey graph area, stored as a stable identity so that * references survive layout recomputation on resize or data updates. * Resolution against the current layout happens at render time * in `getActiveConnectedSet`. * * - `node`: identified by the node id. * - `edge`: identified by the source node id, the target node id, and the * per-layout edge index. All three are needed because parallel edges * (multiple edges between the same node pair) share the same source and * target ids but carry distinct indices assigned by the layout pass. * - `dropOff`: the drop-off ribbon of a node that loses volume, identified by * the node id. */ export type SankeyShape = { type: 'node'; nodeId: string; } | { type: 'edge'; fromId: string; toId: string; edgeIndex: number; } | { type: 'dropOff'; nodeId: string; }; //# sourceMappingURL=sankey-shape.d.ts.map