react-flow-chart icon indicating copy to clipboard operation
react-flow-chart copied to clipboard

link-state classes and zoom undefined fix

Open sezanzeb opened this issue 5 years ago • 1 comments

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.

sezanzeb avatar Jun 24 '20 18:06 sezanzeb

@MrBlenny any opinion on this?

sezanzeb avatar Aug 22 '20 19:08 sezanzeb