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
rotatable
andscalable
group in JointJS.rotatable
group will remain supported. It rotates its content based on theangle
attribute. Anything outside the group is not rotated.scalable
group 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/