Home > @jsplumbtoolkit/browser-ui-anim > SurfaceAnimator
SurfaceAnimator class
SurfaceAnimator offers a few methods for animating parts of a Surface widget:
- animateToPosition animates some vertex to a new position - tracePath animates an overlay along the path from some vertex to some other vertex - traceEdge animates an overlay along one edge
Signature:
export declare class SurfaceAnimator extends OptimisticEventGenerator
Extends: OptimisticEventGenerator
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(surface) | Constructs a new instance of the SurfaceAnimator class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| surface | Surface |
Methods
| Method | Modifiers | Description |
|---|---|---|
| animateToPosition(el, x, y, animateOptions) | Animate the given vertex to the given [x,y] location. | |
| traceEdge(params) | Traces an overlay along an edge. | |
| tracePath(params) | Traces an overlay along a path. |