Support 2D Mode

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start by reading the existing react-split dragging behavior and its onDragging/onDragEnd callback API. Compare the requested 2D interaction with the linked react-colorful, Leva, and imgui examples. Done means react-split supports a 2D mode and passes x and y percentage values through both callbacks, with the expected accessibility behavior established.

Written by the indexing model from the issue text.

Description

It would be great for react-split to support a 2D mode, with onDragging / onDragEnd callback that would be passed a 2D position array with x and y percentage, a bit similar to react-colorful (aria role=grid discussion) or leva vector2d control.

This feature is greatly illustrated in this feature request of imgui, and is like a combination of landscape and portrait modes. It could be useful for example to have:

  • the x slider position influence the clip/crop of foreground vs background
  • while the y position of the slider could play on transparency, between 0 and 100% opacity.
Dominant language
TypeScript
Stars
83
Forks
5
PR merge metrics
No merged PRs in 30d

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.

More from uiwjs/react-split

All issues in uiwjs/react-split

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.