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

Click entire custom edge to destroy #484

Open
xpluscal opened this issue Oct 30, 2023 · 1 comment
Open

Click entire custom edge to destroy #484

xpluscal opened this issue Oct 30, 2023 · 1 comment

Comments

@xpluscal
Copy link

Currently there's let:destroy and edgeClick as features of a custom edge.
It would be great and simplify the deletion of an edge massively, if clicking the entire edge could delete it.

Possibly passing an additional arg on the edgeClick function.

@BOJIT
Copy link
Contributor

BOJIT commented Oct 30, 2023

@xpluscal not sure if it's helpful, but here's a means of implementing "delete on click" with the current version of this library.

(https://github.com/BOJIT/ploTTY/blob/main/src/lib/components/svelvet-editor/SvelvetEdge.svelte).

This method uses a double click as the edge delete. Demo here.

Hopefully this helps.

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

2 participants