Fix rotation of subelements (e.g. horizontal label for an element). #1767
-
|
Is there a way to freeze the rotation of elements such as label to keep them horizontal regardless of the parent element's angle? I see that the label for links are by default horizontal: https://resources.jointjs.com/tutorial/link-labels. |
Beta Was this translation helpful? Give feedback.
Answered by
kumilingus
Aug 8, 2022
Replies: 1 comment 5 replies
-
|
There is a legacy concept of
Here's a demo: https://jsfiddle.net/kumilingus/8d1ne5q3/ |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
BigPackie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

There is a legacy concept of
rotatableandscalablegroup in JointJS.rotatablegroup will remain supported. It rotates its content based on theangleattribute. Anything outside the group is not rotated.scalablegroup might be deprecated at some point. It scales the content to fit into the model's bounding box.Here's a demo: https://jsfiddle.net/kumilingus/8d1ne5q3/