reppners / ngx-drag-drop

Angular directives using the native HTML Drag And Drop API
https://reppners.github.io/ngx-drag-drop/
BSD 3-Clause "New" or "Revised" License
299 stars 118 forks source link

Support dragging SVG elements #118

Open cybersmily opened 1 year ago

cybersmily commented 1 year ago

Ability to applying the dndDraggable directive to SVG elements (rect, circle, etc.) so that a user can move SVG elements around the page.

Currently it doesn't seem like that dndDraggable works with SVG elements, even though Angular supports SVG components. I attempted add the directive to a rect element and it fails to handle the events for dragging. The dndDropzonen does work for dropping data to SVG elements.