leeoniya / leeoniya/uPlot

try css transforms for selection sizing

Open
#781 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

should be better perf than manipulating left/width and top/height.

also, can set width: 1px; translateX(250px) at initial start and then only use neg or pos scaleX to set width instead of inverting them when selection goes the other way.

.u-select {
  position: absolute;
  background: pink;
  height: 600px;
  transform-origin: 0 0;

  width: 1px;
  transform: translateX(250px) scaleX(-100);
}

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

The issue names no source files, tests, or entry points. Locate the selection-sizing implementation, compare its current positioning and sizing updates with the proposed CSS transform approach, and verify that selection behavior is preserved while performance improves.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.