1 | // Generated by dts-bundle v0.7.3
|
2 |
|
3 | declare module '@material/animation' {
|
4 | /**
|
5 | * @license
|
6 | * Copyright 2019 Google Inc.
|
7 | *
|
8 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
9 | * of this software and associated documentation files (the "Software"), to deal
|
10 | * in the Software without restriction, including without limitation the rights
|
11 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12 | * copies of the Software, and to permit persons to whom the Software is
|
13 | * furnished to do so, subject to the following conditions:
|
14 | *
|
15 | * The above copyright notice and this permission notice shall be included in
|
16 | * all copies or substantial portions of the Software.
|
17 | *
|
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24 | * THE SOFTWARE.
|
25 | */
|
26 | import * as util from '@material/animation/util';
|
27 | export { util };
|
28 | export * from '@material/animation/animationframe';
|
29 | export * from '@material/animation/types';
|
30 | export * from '@material/animation/util';
|
31 | }
|
32 |
|
33 | declare module '@material/animation/util' {
|
34 | /**
|
35 | * @license
|
36 | * Copyright 2016 Google Inc.
|
37 | *
|
38 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
39 | * of this software and associated documentation files (the "Software"), to deal
|
40 | * in the Software without restriction, including without limitation the rights
|
41 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
42 | * copies of the Software, and to permit persons to whom the Software is
|
43 | * furnished to do so, subject to the following conditions:
|
44 | *
|
45 | * The above copyright notice and this permission notice shall be included in
|
46 | * all copies or substantial portions of the Software.
|
47 | *
|
48 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
49 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
50 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
51 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
52 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
53 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
54 | * THE SOFTWARE.
|
55 | */
|
56 | import { PrefixedCssPropertyName, PrefixedJsEventType, StandardCssPropertyName, StandardJsEventType } from '@material/animation/types';
|
57 | export function getCorrectPropertyName(windowObj: Window, cssProperty: StandardCssPropertyName): StandardCssPropertyName | PrefixedCssPropertyName;
|
58 | export function getCorrectEventName(windowObj: Window, eventType: StandardJsEventType): StandardJsEventType | PrefixedJsEventType;
|
59 | }
|
60 |
|
61 | declare module '@material/animation/animationframe' {
|
62 | /**
|
63 | * AnimationFrame provides a user-friendly abstraction around requesting
|
64 | * and canceling animation frames.
|
65 | */
|
66 | export class AnimationFrame {
|
67 | /**
|
68 | * Requests an animation frame. Cancels any existing frame with the same key.
|
69 | * @param {string} key The key for this callback.
|
70 | * @param {FrameRequestCallback} callback The callback to be executed.
|
71 | */
|
72 | request(key: string, callback: FrameRequestCallback): void;
|
73 | /**
|
74 | * Cancels a queued callback with the given key.
|
75 | * @param {string} key The key for this callback.
|
76 | */
|
77 | cancel(key: string): void;
|
78 | /**
|
79 | * Cancels all queued callback.
|
80 | */
|
81 | cancelAll(): void;
|
82 | /**
|
83 | * Returns the queue of unexecuted callback keys.
|
84 | */
|
85 | getQueue(): string[];
|
86 | }
|
87 | }
|
88 |
|
89 | declare module '@material/animation/types' {
|
90 | /**
|
91 | * @license
|
92 | * Copyright 2019 Google Inc.
|
93 | *
|
94 | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
95 | * of this software and associated documentation files (the "Software"), to deal
|
96 | * in the Software without restriction, including without limitation the rights
|
97 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
98 | * copies of the Software, and to permit persons to whom the Software is
|
99 | * furnished to do so, subject to the following conditions:
|
100 | *
|
101 | * The above copyright notice and this permission notice shall be included in
|
102 | * all copies or substantial portions of the Software.
|
103 | *
|
104 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
105 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
106 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
107 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
108 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
109 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
110 | * THE SOFTWARE.
|
111 | */
|
112 | export type StandardCssPropertyName = 'animation' | 'transform' | 'transition';
|
113 | export type PrefixedCssPropertyName = '-webkit-animation' | '-webkit-transform' | '-webkit-transition';
|
114 | export type StandardJsEventType = 'animationend' | 'animationiteration' | 'animationstart' | 'transitionend';
|
115 | export type PrefixedJsEventType = 'webkitAnimationEnd' | 'webkitAnimationIteration' | 'webkitAnimationStart' | 'webkitTransitionEnd';
|
116 | export interface CssVendorProperty {
|
117 | prefixed: PrefixedCssPropertyName;
|
118 | standard: StandardCssPropertyName;
|
119 | }
|
120 | export interface JsVendorProperty {
|
121 | cssProperty: StandardCssPropertyName;
|
122 | prefixed: PrefixedJsEventType;
|
123 | standard: StandardJsEventType;
|
124 | }
|
125 | export type CssVendorPropertyMap = {
|
126 | [K in StandardCssPropertyName]: CssVendorProperty;
|
127 | };
|
128 | export type JsVendorPropertyMap = {
|
129 | [K in StandardJsEventType]: JsVendorProperty;
|
130 | };
|
131 | }
|
132 |
|