summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/third_party/polymer2/bower_components/neon-animation/neon-animation-runner-behavior.d.ts
blob: 162b649c7808367d5657d74f6ca6de0816742e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
 * DO NOT EDIT
 *
 * This file was automatically generated by
 *   https://github.com/Polymer/gen-typescript-declarations
 *
 * To modify these typings, edit the source file(s):
 *   neon-animation-runner-behavior.html
 */

/// <reference path="../polymer/types/polymer.d.ts" />
/// <reference path="neon-animatable-behavior.d.ts" />

declare namespace Polymer {

  /**
   * `Polymer.NeonAnimationRunnerBehavior` adds a method to run animations.
   */
  interface NeonAnimationRunnerBehavior extends Polymer.NeonAnimatableBehavior {
    _configureAnimations(configs: any): any;
    _shouldComplete(activeEntries: any): any;
    _complete(activeEntries: any): void;

    /**
     * Plays an animation with an optional `type`.
     */
    playAnimation(type?: string, cookie?: object): void;

    /**
     * Cancels the currently running animations.
     */
    cancelAnimation(): void;
  }

  const NeonAnimationRunnerBehavior: object;
}