forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdojox.css3.d.ts
221 lines (215 loc) · 7.92 KB
/
dojox.css3.d.ts
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
// Type definitions for Dojo v1.9
// Project: http://dojotoolkit.org
// Definitions by: Michael Van Sickle <https://github.com/vansimke>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module dojox {
module css3 {
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/css3/transit.html
*
* Performs a transition to hide a node and show another node.
* This module defines the transit method which is used
* to transit the specific region of an application from
* one view/page to another view/page. This module relies
* on utilities provided by dojox/css3/transition for the
* transition effects.
*
* @param from
* @param to
* @param options OptionalThe argument to specify the transit effect and direction.The effect can be specified in options.transition. Thevalid values are 'slide', 'flip', 'fade', 'none'.The direction can be specified in options.reverse. If itis true, the transit effects will be conducted in thereverse direction to the default direction. Finally the durationof the transition can be overridden by setting the duration property.
*/
interface transit{(from: HTMLElement, to: HTMLElement, options?: Object): void}
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/css3/transition.html
*
* This module defines the transition utilities which can be used
* to perform transition effects based on the CSS Transition standard.
*
* @param args OptionalThe arguments which will be mixed into this transition object.
*/
interface transition{(args?: Object): void}
module transition {
/**
*
*/
var autoClear: boolean
/**
*
*/
var deferred: Object
/**
*
*/
var direction: number
/**
*
*/
var duration: number
/**
*
*/
var endState: Object
/**
*
*/
var in_: boolean
/**
*
*/
var node: Object
/**
*
*/
var playing: Object
/**
*
*/
var startState: Object
/**
* The callback which will be called right after the end
* of the transition effect and before the final state is
* cleared.
*
*/
interface beforeClear{(): void}
/**
* The callback which will be called right before the start
* of the transition effect.
*
*/
interface beforeStart{(): void}
/**
* The method which plays multiple transitions one by one.
*
* @param args The array of transition objects which will be played in a chain.
*/
interface chainedPlay{(args: any[]): void}
/**
* Method to clear the state after a transition.
*
*/
interface clear{(): void}
/**
* Method which is used to create the transition object of fade effect.
*
* @param node The node that the fade transition effect will be applied on.
* @param config The cofig arguments which will be mixed into this transition object.
*/
interface fade{(node: any, config: any): void}
/**
* Method which is used to create the transition object of flip effect.
*
* @param node The node that the flip transition effect will be applied on.
* @param config The cofig arguments which will be mixed into this transition object.
*/
interface flip{(node: any, config: any): void}
/**
*
* @param nodes
*/
interface getWaitingList{(nodes: any[]): any}
/**
* The method which groups multiple transitions and plays
* them together.
*
* @param args The array of transition objects which will be played together.
*/
interface groupedPlay{(args: any[]): any}
/**
* Method to initialize the state for a transition.
*
*/
interface initState{(): void}
/**
* Plays the transition effect defined by this transition object.
*
*/
interface play{(): void}
/**
* Method which is used to create the transition object of a slide effect.
*
* @param node The node that the slide transition effect will be applied on.
* @param config The cofig arguments which will be mixed into this transition object.
*/
interface slide{(node: any, config: any): void}
/**
* Method to start the transition.
*
*/
interface start{(): void}
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/css3/transition.endState.html
*
*
*/
interface endState {
}
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/css3/transition.startState.html
*
*
*/
interface startState {
}
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/css3/transition.playing.html
*
*
*/
interface playing {
}
}
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/css3/fx.html
*
* Utilities for animation effects.
*
*/
interface fx {
/**
* Returns an animation that does a "bounce" effect on args.node.
* Vertical bounce animation. The scaleX, scaleY deformation and the
* jump height (args.jumpHeight) can be specified.
*
* @param args
*/
bounce(args: Object): any;
/**
* Returns an animation that expands args.node.
* Scales an element to args.endScale.
*
* @param args
*/
expand(args: Object): any;
/**
* Returns an animation that flips an element around his y axis.
* Flips an element around his y axis. The default is a 360deg flip
* but it is possible to run a partial flip using args.whichAnims.
*
* @param args
*/
flip(args: Object): any;
/**
* Returns an animation that will do a "puff" effect on the given node.
* Fades out an element and scales it to args.endScale.
*
* @param args
*/
puff(args: Object): any;
/**
* Returns an animation that rotates an element.
* Rotates an element from args.startAngle to args.endAngle.
*
* @param args
*/
rotate(args: Object): any;
/**
* Returns an animation that shrinks args.node.
* Shrinks an element, same as expand({ node: node, endScale: .01 });
*
* @param args
*/
shrink(args: Object): any;
}
}
}