microsoft / microsoft/automatic-graph-layout

Zoom and pan programatically?

Open
#227 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.5k
Forks
319
Avg merge
38m
Merged PRs (30d)
1

Description

I need to be able to store the the state of the graph after a user has panned and zoomed in or out, but I'm not sure how to accomplish this? I thought if I stored the ZoomF value and then applied it when trying to render it again would do the trick at least for the Zoom part, but that didn't appear to work for me.

I'm not sure how to track how the image has been panned either or restore it either.

Any help would be greatly appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the graph viewing code that handles ZoomF and pan state, then determine how the current render state can be saved and restored; done means both zoom and pan survive a later render.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.