Implements animation for morphing cells. Here is an example of using this class for animating the result of a layout algorithm:
var circleLayout = new mxCircleLayout(graph);
var morph = new mxMorphing(graph);
Constructs an animation.
|graph||Reference to the enclosing mxGraph.|
|steps||Optional number of steps in the morphing animation. Default is 6.|
|ease||Optional easing constant for the animation. Default is 1.5.|
|delay||Optional delay between the animation steps. Passed to mxAnimation.|
Specifies the delay between the animation steps. Defaul is 30ms.
Specifies the maximum number of steps for the morphing.
Contains the current step.
Ease-off for movement towards the given vector. Larger values are slower and smoother. Default is 4.
Optional array of cells to be animated. If this is not specified then all cells are checked and animated if they have been moved in the current transaction.
|mxMorphing.prototype.updateAnimation = function()|
|mxMorphing.prototype.show = function(||move||)|
Shows the changes in the given mxCellStatePreview.
|mxMorphing.prototype.stopRecursion = function(||state,|
Returns true if the animation should not recursively find more deltas for children if the given parent state has been animated.
|mxMorphing.prototype.getDelta = function(||state||)|
Returns the vector between the current rendered state and the future location of the state after the display will be updated.
|mxMorphing.prototype.getOriginForCell = function(||cell||)|
Returns the top, left corner of the given cell. TODO: Improve performance by using caching inside this method as the result per cell never changes during the lifecycle of this object.