egui_dock icon indicating copy to clipboard operation
egui_dock copied to clipboard

Allow for more than 2 splits per node

Open zkldi opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. At the moment, a node can only be split horizontally or vertically once, with a fraction indicating how far apart the two are.

In the scenario where I split horizontally twice, I would love for it to instead split into 3 equally-sized chunks [A | B | C], rather than

[A | [B | C]

Peek 2023-06-30 02-00

Describe alternatives you've considered We could hack around this by twiddling with fraction values based on the tree as a whole, but it's probably easy enough to migrate into a non-binary tree structure. probably.

Additional context I'm planning to work on this over the weekend, but making an issue for it just incase this is something you're interested in.

zkldi avatar Jun 30 '23 01:06 zkldi

~~Closed by #145~~

Adanos020 avatar Jul 23 '23 10:07 Adanos020

@Adanos020 In my understanding this PR issue is not closed by #145?

This issue wants to allow more than 2 nodes in the tree children. The PR adds the possibility do disable split in a certain.

lvaroqui avatar Jul 23 '23 13:07 lvaroqui

@lvaroqui Oh, you're right. Sorry about that!

Adanos020 avatar Jul 23 '23 13:07 Adanos020