Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Animation: Transform a node from one shape to another

$
0
0

@jude wrote:

My project involves a palette and a canvas. I drag a node from the palette to canvas (GoJS diagram).

Everything works well. For the same category of node, I have two layout templates - one for the palette, and another for the canvas. Now, the shapes differ slightly. Let's say that in the palette, it's a square, and in the canvas, it's a rectangle.

When I drag my model from the palette to the canvas, I'd like to animate a square transforming into a rectangle. The complete animation must occur within the canvas. So when I drop it from the palette to the canvas, it should behave as if it "expanded" from a square to a rectangle.

How do I go about achieving this? I've not found any examples that do this.

Posts: 11

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles