Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify existing points/create point on mouse click #224

Open
amarshall8 opened this issue Oct 13, 2024 · 0 comments
Open

Modify existing points/create point on mouse click #224

amarshall8 opened this issue Oct 13, 2024 · 0 comments

Comments

@amarshall8
Copy link

amarshall8 commented Oct 13, 2024

Hi! I'm trying to use pts to create a seemingly relatively simple project. Essentially, I want to create a rectangle where all four corners can be dragged to any position and then left there. Eventually I want to add grid lines that appear at regularly spaced intervals between the outermost lines on the opposite edges, but that's a future problem.

Essentially, how can I modify existing points on the canvas by clicking and dragging them to new spots? All the library demos show is mouse tracking. I'm quite new to JS so I'm a bit lost.

As a an even more future goal I'd also love to add a feature where the corner nodes of the 4-sided polygon will light up when you're near to them.

Best,
Alec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@amarshall8 and others