Selected edges do not become bold #2990
Comments
The example is using the chosen function. I would rephrase the issue as "chosen function doesn't work when set on network.edges but when set on an individual edge". Or at least that's what my first check reveals. @eymiha or @mojoaxel this seems to have been introduced (or refactored end of last year becf18e ) Would any of you have any ideas? |
Found it. Unlike the drawing code for node labels, the code from edges labels was missing a conditional recalculation of font attributes due to selection and hover. In pseudo code, which is perhaps easier to understand:
Note: This was an issue not just for the What will happen now, is that the label will turn bold if:
This is exactly how the rendering of the edge curve works. If any of these does not hold, the label will return to normal font weight. I hope this is according to expectations; please advise if it is not. |
@wimrijnders To clarify, the last scenario could be disabled by specifying |
Good one! Label boldness is not disabled. Will fix it ASAP. Actually, I'll need to go through all options. Thanks for the tip! Update: |
edge.labelHighlightBold would condition this in total I believe |
@rasmusblockzero Aargh! Need to look at those as well. Update:
I think that wraps it up, unless you guys have more curve balls to throw at me 😒. |
Call on issue brought to light by almende#2990. `ctx` should not be passed as a parameter to the call - not needed and not conform to documentation. Also cleaned up the calling code to remove the double `fontOptions.chooser()` call.
Call on issue brought to light by #2990. `ctx` should not be passed as a parameter to the call - not needed and not conform to documentation. Also cleaned up the calling code to remove the double `fontOptions.chooser()` call.
Call on issue brought to light by almende#2990. `ctx` should not be passed as a parameter to the call - not needed and not conform to documentation. Also cleaned up the calling code to remove the double `fontOptions.chooser()` call.
When using the
dot
shape for nodes, selected edges' labels do not become bold. See here for an example: https://jsfiddle.net/vyh3x23n/.The text was updated successfully, but these errors were encountered: