Bind an event listener. This method can be used with a type parameter by call sites; although it's not necessary it can be helpful to use this to ensure you've thought about what the payload to your event handler is going to be.
Traces an overlay along an edge.
Overlay tracing options
Optionalcomplete?: FunctionEdge, or edge id, to trace the overlay along
Optionaloptions?: OverlayAnimationOptionsDefinition of the overlay to trace along the edge.
Optionalstart?: FunctionTraces an overlay along a path.
Path tracing options
Optionallistener?: PathTransportListenerOptional listener for events.
Optionaloptions?: OverlayAnimationOptionsOptions for the animation.
Definition of the overlay to trace along the path
Optionalpath?: PathThe path to trace. Provide this, or provide source and target
Optionalpaused?: booleanIf true, the animation will start in a paused state.
Optionalsource?: string | VertexSource vertex to trace Path from. Provide this and target, or path.
Target vertex to trace Path to. Provide this and source, or path.
Unbind the given event listener, or all listeners. If you call this method with no arguments then all event listeners are unbound.
OptionaleventOrListener: string | FunctionEither an event name, or an event handler function
Optionallistener: FunctionIf eventOrListener is defined, this is the event handler to unbind.
SurfaceAnimator offers a few methods for animating parts of a Surface widget: