+
+ {hasSiblings && (
+
+ )}
+
+ {Math.round(allocation)}%
+
+ {hasSiblings && (
+
+ )}
+
+
+ >
+ )
+}
diff --git a/lib/types.ts b/lib/types.ts
index c802919..d0e61ef 100644
--- a/lib/types.ts
+++ b/lib/types.ts
@@ -43,6 +43,10 @@ export interface FlowEdgeData {
allocation: number // percentage 0-100
color: string
edgeType: 'overflow' | 'spending' // overflow = sideways, spending = downward
+ sourceId: string
+ targetId: string
+ siblingCount: number // how many allocations in this group
+ onAdjust?: (sourceId: string, targetId: string, edgeType: 'overflow' | 'spending', delta: number) => void
[key: string]: unknown
}