Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7425

Rotate group members when group rotates?

$
0
0

@Dave wrote:

Hi.

I'm trying to figure out how to update the position & angle of nodes within a group when the group itself rotates. Like, if i had a group with nodes, A, B and C that looked like the image on the left, then rotated the group 45 degrees, it should end up like the image on the right:

I'm pretty new to GoJS. Is there a built-in way to accomplish this or can somebody point to sample code? Overriding rotatingTool.rotate and getting the nodes in the group and the math to rotate a point around another point was all pretty straight forward but I can't seem to get it all tied together.

TY!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7425

Latest Images

Trending Articles



Latest Images