EventDrops
EventDrops copied to clipboard
Graph is right aligned
It seems regardless of label length, there is a translation of 210 pixels in the positive x direction. It should be dynamic depending on the longest label
Currently (in version 1.0.0 just released last week), labels widths are handled using label.width
and label.padding
configuration properties and are not computed automatically. However, this is a nice addition to bring.
Due to some of our needs, we are probably going to try hiding those labels and make it possible to pass a selector that will let you use the labels' wrapper in the DOM outside the SVG. This will be an optional feature. The reason for that is because our case needs labels that have a pulldown menu to access contextual links.
@asiby: hiding labels should be possible setting either labels
to false, or setting the labels width to 0. This case deserves its own issue.
For the selector, I'm not sure this is the correct solution, as we would need to position it correctly outside the EventDrops scope. Perhaps we should instead think a way to set labels as custom HTML. But it is out of the scope of the current issue. :)