Skip to main content

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

ConstructorModifiersDescription
(constructor)(surface)Constructs a new instance of the SurfaceAnimator class

Properties

PropertyModifiersTypeDescription
surfaceSurface

Methods

MethodModifiersDescription
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.