react-flow-chart
react-flow-chart copied to clipboard
link-state classes and zoom undefined fix
I had a bug in which this.context.zoomScale was undefined, causing toPosition.x and toPosition.y to be nan, which prevented dragging links. Maybe I can figure out a minimal example to reproduce the issue during the next few days if you want one.
Furthermore, in order to style links that are being dragged different than those that are placed, className attributes are handy.
I noticed there aren't any className attributes yet in the code, so I went with a BEM naming scheme.
@MrBlenny any opinion on this?