MCPcopy
hub / github.com/palantir/plottable / IAnimator

Interface IAnimator

src/animators/animator.ts:10–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import { AttributeToAppliedProjector, SimpleSelection } from "../core/interfaces";
9
10export 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}

Callers 10

_drawStepMethod · 0.65
_additionalPaintMethod · 0.65
_additionalPaintMethod · 0.65
expandSidebarFunction · 0.65
toggleSidebarFunction · 0.65
drawMethod · 0.65
getTotalDrawTimeMethod · 0.65

Implementers 4

Easingsrc/animators/easingAnimator.ts
Nullsrc/animators/nullAnimator.ts
NoOpAnimatortest/mocks.ts
MockAnimatortest/drawers/svgDrawerTests.ts

Calls

no outgoing calls

Tested by

no test coverage detected