Skip to content

Fix rotation of subelements (e.g. horizontal label for an element). #1767

Answered by kumilingus
BigPackie asked this question in Q&A
Discussion options

You must be logged in to vote

There is a legacy concept of rotatable and scalable group in JointJS.

  • The rotatable group will remain supported. It rotates its content based on the angle attribute. Anything outside the group is not rotated.
  • The 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/

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@BigPackie
Comment options

@BigPackie
Comment options

@kumilingus
Comment options

@BigPackie
Comment options

@kumilingus
Comment options

Answer selected by BigPackie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants