1 | import { ModuleWithProviders, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
2 | export declare type ProgressCircleMode = 'determinate' | 'indeterminate';
|
3 |
|
4 |
|
5 |
|
6 | export declare class MdProgressCircle implements OnDestroy {
|
7 | private _changeDetectorRef;
|
8 |
|
9 | private _lastAnimationId;
|
10 |
|
11 | private _interdeterminateInterval;
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 | readonly _ariaValueMin: number;
|
18 | readonly _ariaValueMax: number;
|
19 |
|
20 |
|
21 | interdeterminateInterval: number;
|
22 |
|
23 | private _currentPath;
|
24 |
|
25 | currentPath: string;
|
26 |
|
27 | ngOnDestroy(): void;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | private _value;
|
35 | value: number;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | mode: ProgressCircleMode;
|
43 | private _mode;
|
44 | constructor(_changeDetectorRef: ChangeDetectorRef);
|
45 | /**
|
46 | * Animates the circle from one percentage value to another.
|
47 | *
|
48 | * @param animateFrom The percentage of the circle filled starting the animation.
|
49 | * @param animateTo The percentage of the circle filled ending the animation.
|
50 | * @param ease The easing function to manage the pace of change in the animation.
|
51 | * @param duration The length of time to show the animation, in milliseconds.
|
52 | * @param rotation The starting angle of the circle fill, with 0° represented at the top center
|
53 | * of the circle.
|
54 | */
|
55 | private _animateCircle(animateFrom, animateTo, ease, duration, rotation);
|
56 | /**
|
57 | * Starts the indeterminate animation interval, if it is not already running.
|
58 | */
|
59 | private _startIndeterminateAnimation();
|
60 | /**
|
61 | * Removes interval, ending the animation.
|
62 | */
|
63 | private _cleanupIndeterminateAnimation();
|
64 | }
|
65 | /**
|
66 | * <md-spinner> component.
|
67 | *
|
68 | * This is a component definition to be used as a convenience reference to create an
|
69 | * indeterminate <md-progress-circle> instance.
|
70 | */
|
71 | export declare class MdSpinner extends MdProgressCircle {
|
72 | constructor(changeDetectorRef: ChangeDetectorRef);
|
73 | }
|
74 | export declare class MdProgressCircleModule {
|
75 | static forRoot(): ModuleWithProviders;
|
76 | }
|