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

Pan and zoom in IDEs #75

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Pan and zoom in IDEs #75

wants to merge 8 commits into from

Conversation

tmr232
Copy link
Owner

@tmr232 tmr232 commented Jan 17, 2025

Enable panning and zooming in the IDEs.
Closes #16.

@tmr232
Copy link
Owner Author

tmr232 commented Jan 17, 2025

Currently implements a basic proof-of-concept, to see that it has potential:
pan-in-ide

The code is still a total mess, but now we move the graph to the selected node!
@tmr232
Copy link
Owner Author

tmr232 commented Jan 18, 2025

Now with auto-panning based on code-cursor location. You can download the test build here - https://github.com/tmr232/function-graph-overview/actions/runs/12844138335/artifacts/2450932880

This is still far from ready.
I want to add proper camera control (only move if the node is far enough from center), add caching, clean up the code, remember last-position on functions (or at least zoom levels), add buttons to reset or lock the zoom, and more and more...

auto-pan-ide

@tmr232 tmr232 mentioned this pull request Feb 2, 2025
6 tasks
@tmr232 tmr232 added this to the 1.0.0 milestone Feb 3, 2025
# Conflicts:
#	bun.lockb
#	src/components/WebviewRenderer.svelte
#	src/components/renderer.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Zoom on current node.
1 participant