pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

Click entire custom edge to destroy

Open xpluscal opened this issue 1 year ago • 1 comments

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.

xpluscal avatar Oct 30 '23 05:10 xpluscal

@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.

BOJIT avatar Oct 30 '23 10:10 BOJIT