Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Yokosama opened this issue Apr 6, 2022 · 4 comments · May be fixed by #36
Closed

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

Yokosama opened this issue Apr 6, 2022 · 4 comments · May be fixed by #36
Assignees
Labels
enhancement New feature or enhancement

Comments

@Yokosama
Copy link

Yokosama commented Apr 6, 2022

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 Yokosama added the enhancement New feature or enhancement label Apr 6, 2022
@miroiu
Copy link
Owner

miroiu commented Jul 11, 2022

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
Copy link
Owner

miroiu commented Jul 13, 2022

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 miroiu linked a pull request Jul 15, 2022 that will close this issue
5 tasks
@miroiu miroiu closed this as completed in 6d5c2ba Mar 30, 2023
@miroiu
Copy link
Owner

miroiu commented Mar 30, 2023

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

@miroiu
Copy link
Owner

miroiu commented Jul 20, 2024

This is now implemented by #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants