You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
Currently, how you control the size of nodes depends on what node shape you are deploying. (size for image, circularImage, diamond, dot, star, triangle, triangleDown, square and icon; widthConstraint for all label based node shapes.
size:
The size is used to determine the size of node shapes that do not have the label inside of them. These shapes are: image, circularImage, diamond, dot, star, triangle, triangleDown, square and icon http://visjs.org/docs/network/nodes.html
That's the behaviour I am referring to. Size should set the size, no matter what shape, for the sake of consistency. That way widthConstraint would become obsolete (there could still be something like min/max-size if required). Inheriting size from Label should be an option that can be true by default and considers min- / max-size.
The text was updated successfully, but these errors were encountered:
I find this a very reasonable request, worth looking into. Consistency in usage is a beneficial thing.
However, I'm afraid I'm not going to pick it up any time soon, simply due to triage (bugs and priority stuff first). Of course, anyone else is free to have a go at it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Continuing the discussion from #3171
Currently, how you control the size of nodes depends on what node shape you are deploying. (
size
for image, circularImage, diamond, dot, star, triangle, triangleDown, square and icon;widthConstraint
for all label based node shapes.size:
That's the behaviour I am referring to.
Size
should set the size, no matter what shape, for the sake of consistency. That waywidthConstraint
would become obsolete (there could still be something like min/max-size if required). Inheriting size from Label should be an option that can be true by default and considers min- / max-size.The text was updated successfully, but these errors were encountered: