anvaka / anvaka/VivaGraphJS

Ability to read the current graph center

Open
#145 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.9k
Forks
418
PR merge metrics
No merged PRs in 30d

Description

Hey Andrei,

Been reading through the code but can't figure out a way to retrieve the current transform from graphics.

The use case is to preserve the graph center and zoom-level after the graph container has been resized.

I have a (dirty) work around to preserve the zoom-level, but reading the current center seems impossible. I believe if I had the current center I would then be able to use renderer.moveTo()

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the graphics transform is stored and how renderer.moveTo() consumes positions. Determine whether the current graph center and zoom level are exposed together, then verify the result by resizing the graph container and confirming both values can be restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.