EventDrops icon indicating copy to clipboard operation
EventDrops copied to clipboard

Graph is right aligned

Open deevus opened this issue 7 years ago • 3 comments

image

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

deevus avatar Sep 09 '16 07:09 deevus

Currently (in version 1.0.0 just released last week), labels widths are handled using label.width and label.paddingconfiguration properties and are not computed automatically. However, this is a nice addition to bring.

jpetitcolas avatar Jan 30 '18 17:01 jpetitcolas

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 avatar Apr 10 '18 13:04 asiby

@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. :)

jpetitcolas avatar Apr 10 '18 14:04 jpetitcolas