Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Generate a visualization of the editor's hierarchical message system tree

Open MohdMohsin97 opened this issue 9 months ago • 1 comments

This PR add a HierarchicalTree trait that allows enums to be visualized in a tree-like structure. The generate_hierarchical_tree give Vec<String>.

Example: BroadcastMessage::generate_hierarchical_tree give Vec<String> when printed gives: BroadcastMessage ├──TriggerEvent │ ├──AnimationFrame │ ├──CanvasTransformed │ ├──ToolAbort │ ├──SelectionChanged │ └──WorkingColorChanged ├──SubscribeEvent └──UnsubscribeEvent

MohdMohsin97 avatar Mar 29 '25 10:03 MohdMohsin97

Marking as draft while awaiting the requested change (https://discord.com/channels/731730685944922173/1357223036469903420/1364799634286841976). Please mark as Ready for Review once you've completed that, thank you!

Keavon avatar May 01 '25 11:05 Keavon