leeoniya / leeoniya/uPlot

add a method for rapidly panning / scaling the view

Open
#1,105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
463
PR merge metrics
No merged PRs in 30d

Description

path rebuilds can be expensive, so things like mouse-drag with large datasets can become problematic.

it should be possible to re-use the internally-cached Path2D objects and construct a transformation matrix to draw them in a shifted or scaled location while dragging, then do a real redraw & path rebuild when the mouse is released. should help a lot.

something like u.shift(hzPx, vtPx)

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

Start by locating the cached Path2D drawing logic and the mouse-drag and release-redraw paths in the repository. Determine how a shift or scale operation could reuse those objects during interaction, then verify that releasing the mouse performs the normal redraw and path rebuild without changing final chart output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.