@foblex/flow-animator
Version:
Animation library for @foblex/flow.
23 lines (22 loc) • 986 B
TypeScript
import { AnimateElementRequest } from './animate-element-request';
import { AnimationBuilder } from '@angular/animations';
import { Observable } from 'rxjs';
/**
* Handler for processing animation requests for individual elements.
*/
export declare class AnimateElementHandler {
private animationBuilder;
/**
* Creates an instance of AnimateElementHandler.
* @param {AnimationBuilder} animationBuilder - The AnimationBuilder service for creating animations.
*/
constructor(animationBuilder: AnimationBuilder);
/**
* Handles the provided animation request and returns an Observable for the animation process.
* @param {AnimateElementRequest} request - The animation request to be handled.
* @return {Observable<HTMLElement | SVGPathElement>} An Observable emitting the animated element.
*/
handle(request: AnimateElementRequest): Observable<HTMLElement | SVGPathElement>;
private animateConnection;
private animateNode;
}