Mohamed Elfiky
10/17/2022, 7:27 PMMohamed Elfiky
10/17/2022, 7:29 PMMohamed Elfiky
10/17/2022, 7:32 PMViewport {
Node {
Handler()
Handler()
Handler()
}
Node {
Handler()
Handler()
Handler()
}
Edge {
}
Edge {
}
}
Greg Steckman
10/19/2022, 4:15 AMSubcomposeLayout
. If you measure the nodes first, you can then size Edge children but you'll still need to pass in the specific coordinate of where the lines should be drawn at the boundaries of those child composables. As an example of this approach, you can have a look at how the connector lines are drawn between pie slices and labels in this pie chart implementation: https://github.com/KoalaPlot/koalaplot-core/blob/main/src/commonMain/kotlin/io/github/koalaplot/core/pie/PieChart.kt