Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Not able to change edge label font properties. #3490

Open
dheerajbapat opened this issue Sep 27, 2017 · 8 comments
Open

Not able to change edge label font properties. #3490

dheerajbapat opened this issue Sep 27, 2017 · 8 comments

Comments

@dheerajbapat
Copy link

Changing font face of a particular edge label is not working.
I tried to updated font face and font color.

edge.options.font.face = 'arial';
edge.options.font.color = '#ff0000';

However changing dashes (or some other property) is working.
edge.options.dashes = true;

@wimrijnders
Copy link
Contributor

Duplicate of #3408.
There is a fix on the way for this and similar: #3486. Hold on, almost there!

@dheerajbapat
Copy link
Author

Thanks! waiting for next release 😃
Hope it will fix same issue with changing edge.options.arrows as well. 🤞

@wimrijnders
Copy link
Contributor

Hope it will fix same issue with changing edge.options.arrows as well.

Is there an issue for that? Refresh my memory, please.

@dheerajbapat
Copy link
Author

dheerajbapat commented Oct 4, 2017

Yes, changing font face or color for particular edge label is not taking effect.
For example in global options I say edge label font face courier new and dynamically if I try to change some edge label to webdings or arial, this is not working.

May I know possible date for next release?

@wimrijnders
Copy link
Contributor

The fix for that is #3486. There's no date fixed yet for a next release. But it should be soon, seeing that there are a lot of fixes pending.

@wimrijnders
Copy link
Contributor

@dheerajbapat vis.js v4.21.0 has just been released. Would you mind checking if you still have the problems with changing font face or color for edges?

@dheerajbapat
Copy link
Author

I upgraded to v4.21.0 and checked. Unfortunately issue still exists.
Please let me know if you need any further clarification for the issue.

@wenyuan
Copy link

wenyuan commented Dec 4, 2017

excuse me , here i have a similar issue with edit edges.
for example,in this demo: http://visjs.org/examples/network/other/manipulationEditEdgeNoDrag.html
we can change label in edit_edge mode, now i change the codes and then run , giving one of the edges properties "{arrows:from; label:hello}", the edge will have an arrow and label named 'hello'.
now ,when i again edit the same edge,in the form ,i get the history data with label filled in 'hello',but the arrows was filled in 'undefined'.
it seems only label will work properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants