pycodestyle
pycodestyle copied to clipboard
Click entire custom edge to destroy
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 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.