/** * 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. * - `link`: identified by the source node id, the target node id, and the * per-layout link index. All three are needed because parallel links * (multiple links between the same node pair) share the same source and * target ids but carry distinct indices assigned by the layout pass. */ export type SankeyShape = { type: 'node'; nodeId: string; } | { type: 'link'; sourceId: string; targetId: string; linkIndex: number; }; //# sourceMappingURL=sankey-shape.d.ts.map