nodify icon indicating copy to clipboard operation
nodify copied to clipboard

[Feature]Is there an easy way to create a graph mini map?

Open Yokosama opened this issue 4 years ago • 2 comments

Like this: image

My solution: https://gist.github.com/Yokosama/723b0465a669c9207b69b77e9cec653d xxx

I have some question: How to get ItemContainer's width and height use binding? the result I got was Nan. The ItemContainer's location are not updated until the drag is completed, how to update minimap's node items location in realtime when drag node item?

So, is there a better solution, thank you very much.

Yokosama avatar Apr 06 '22 10:04 Yokosama

Hi Yokosama,

I cannot think of a simple way to create a minimap but I'm pretty sure you can use the RenderTransform of the ItemContainer to get real-time updates for the location of the nodes.

miroiu avatar Jul 11 '22 17:07 miroiu

I also added a bindable ActualSize dependency property to the ItemContainer if that helps. There's also the PreviewLocationChanged event on ItemContainer that gives you the exact location of the container in real-time.

miroiu avatar Jul 13 '22 17:07 miroiu

Set NodifyEditor.EnableDraggingContainersOptimizations to be false to receive real-time ItemContainer.Location updates.

miroiu avatar Mar 30 '23 20:03 miroiu