projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.46k stars 1.16k forks source link

How can I change the styles of the Item being dragged (Drag & Drop)? #923

Open jech33 opened 2 years ago

jech33 commented 2 years ago

Hi! I'm currently trying to change the pointer, transform the element and apply CSS to the element being dragged.

image

Is it possible to do so? Maybe on the onDragStart() function?

The current code just pass data through ev.dataTransfer.setData()

If I find a work around I'll post it here.