Hi all (@sdanisch ),
I have an existing scene, rendered to the screen, containing a DAG. As the execution of the Julia script progresses, the DAG changes. nodes are added, labels are moved, and (most importantly), nodes are deleted.
What is the correct way to handle this? I have the list of nodes stored in a dictionary of structs, which I can easily update as I receive events regarding changes to the DAG. However, The Makie functions, particularly, meshscatter!() don’t take dictionaries. I currently scan the dictionary, and build a series of arrays corresponding to the different elements in the rendering.
That works, but I’m unsure how to update it. I’d prefer not to rebuild all of the arrays each time, although, perhaps
map(x->x.loc, collect(values(mydict))) might be tolerable in each call to meshscatter!().
How are others handling this?