Nested Draggable Components - Example with 2 dots and a line?

Open
#516 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start by reviewing react-draggable's documented behavior for nested draggable components and SVG elements. Define whether the desired result is an example or a library change, then verify that both the whole line and either endpoint can be dragged independently; no file or test is identified in the issue.

Written by the indexing model from the issue text.

Description

Hi, I am trying to use react-draggable to create a draggable line on my webpage.

I was thinking of having the lines two endpoints (svg circles) be draggable in any direction, but for the svg line connecting the two endpoints to also be draggable (svg line).

Is there a simple way to make the line as a whole be Draggable, but then also its individual points if we want to just move a single point (like to change the rotation of the line)?

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

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 react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.