| 8 | import { AttributeToAppliedProjector, SimpleSelection } from "../core/interfaces"; |
| 9 | |
| 10 | export interface IAnimator { |
| 11 | /** |
| 12 | * Applies the supplied attributes to a d3.Selection with some animation. |
| 13 | * |
| 14 | * @param {d3.Selection} selection The update selection or transition selection that we wish to animate. |
| 15 | * @param {AttributeToAppliedProjector} attrToAppliedProjector The set of |
| 16 | * AppliedProjectors that we will use to set attributes on the selection. |
| 17 | * @return {any} Animators should return the selection or |
| 18 | * transition object so that plots may chain the transitions between |
| 19 | * animators. |
| 20 | */ |
| 21 | animate(selection: SimpleSelection<any>, attrToAppliedProjector: AttributeToAppliedProjector): SimpleSelection<any> | d3.Transition<any, any, any, any>; |
| 22 | |
| 23 | /** |
| 24 | * Given the number of elements, return the total time the animation requires |
| 25 | * |
| 26 | * @param {number} numberofIterations The number of elements that will be drawn |
| 27 | * @returns {number} |
| 28 | */ |
| 29 | totalTime(numberOfIterations: number): number; |
| 30 | } |
no outgoing calls
no test coverage detected