Replies: 1 comment
-
You need to render the diagram when the font is loaded. For instance, please see: https://stackoverflow.com/a/52763507/2921495 Alternatively update the element views in the paper once the fonts are loaded. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Consider the following label attribute of a custom element.
On page load, we add a cell of this element with the value in the label. But, it wraps and applies ellipsis on the text based on the default font-size, and not the font-size defined.
Then, if I update the label value, the label is rendered correctly.
Also, when I save and load the same JSON later, the updated label value is again shown with incorrect wrapping.
Have tested without the custom font-size and it works fine. Haven't tried it with JointJS, only with JointJS+.
Steps to reproduce
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions