@next2d/ui 1.14.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/Easing.d.ts +359 -0
- package/dist/Easing.js +481 -0
- package/dist/Job.d.ts +154 -0
- package/dist/Job.js +332 -0
- package/dist/Tween.d.ts +62 -0
- package/dist/Tween.js +72 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +38 -0
package/dist/Easing.js
ADDED
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { $Math } from "@next2d/share";
|
|
2
|
+
/**
|
|
3
|
+
* Easeクラスは、イージング機能の関数を提供します。
|
|
4
|
+
* The Ease class provides a collection of easing functions
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
* @memberOf next2d.ui
|
|
8
|
+
*/
|
|
9
|
+
export class Easing {
|
|
10
|
+
/**
|
|
11
|
+
* @description 指定されたクラスのストリングを返します。
|
|
12
|
+
* Returns the string representation of the specified class.
|
|
13
|
+
*
|
|
14
|
+
* @return {string}
|
|
15
|
+
* @default [class Easing]
|
|
16
|
+
* @method
|
|
17
|
+
* @static
|
|
18
|
+
*/
|
|
19
|
+
static toString() {
|
|
20
|
+
return "[class Easing]";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @description 指定されたクラスの空間名を返します。
|
|
24
|
+
* Returns the space name of the specified class.
|
|
25
|
+
*
|
|
26
|
+
* @return {string}
|
|
27
|
+
* @default next2d.ui.Easing
|
|
28
|
+
* @const
|
|
29
|
+
* @static
|
|
30
|
+
*/
|
|
31
|
+
static get namespace() {
|
|
32
|
+
return "next2d.ui.Easing";
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @description 指定されたオブジェクトのストリングを返します。
|
|
36
|
+
* Returns the string representation of the specified object.
|
|
37
|
+
*
|
|
38
|
+
* @return {string}
|
|
39
|
+
* @default [object Easing]
|
|
40
|
+
* @method
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
toString() {
|
|
44
|
+
return "[object Easing]";
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
48
|
+
* Returns the space name of the specified object.
|
|
49
|
+
*
|
|
50
|
+
* @return {string}
|
|
51
|
+
* @default next2d.ui.Easing
|
|
52
|
+
* @const
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
get namespace() {
|
|
56
|
+
return "next2d.ui.Easing";
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {number} t
|
|
60
|
+
* @param {number} b
|
|
61
|
+
* @param {number} c
|
|
62
|
+
* @param {number} d
|
|
63
|
+
* @return {number}
|
|
64
|
+
* @method
|
|
65
|
+
* @static
|
|
66
|
+
*/
|
|
67
|
+
static linear(t, b, c, d) {
|
|
68
|
+
return t / d * c + b;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @param {number} t
|
|
72
|
+
* @param {number} b
|
|
73
|
+
* @param {number} c
|
|
74
|
+
* @param {number} d
|
|
75
|
+
* @return {number}
|
|
76
|
+
* @method
|
|
77
|
+
* @static
|
|
78
|
+
*/
|
|
79
|
+
static inQuad(t, b, c, d) {
|
|
80
|
+
return (t /= d) * t * c + b;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @param {number} t
|
|
84
|
+
* @param {number} b
|
|
85
|
+
* @param {number} c
|
|
86
|
+
* @param {number} d
|
|
87
|
+
* @return {number}
|
|
88
|
+
* @method
|
|
89
|
+
* @static
|
|
90
|
+
*/
|
|
91
|
+
static outQuad(t, b, c, d) {
|
|
92
|
+
return -(t /= d) * (t - 2) * c + b;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @param {number} t
|
|
96
|
+
* @param {number} b
|
|
97
|
+
* @param {number} c
|
|
98
|
+
* @param {number} d
|
|
99
|
+
* @return {number}
|
|
100
|
+
* @method
|
|
101
|
+
* @static
|
|
102
|
+
*/
|
|
103
|
+
static inOutQuad(t, b, c, d) {
|
|
104
|
+
return (t /= d / 2) < 1
|
|
105
|
+
? t * t * c / 2 + b
|
|
106
|
+
: -((t -= 1) * (t - 2) - 1) * c / 2 + b;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @param {number} t
|
|
110
|
+
* @param {number} b
|
|
111
|
+
* @param {number} c
|
|
112
|
+
* @param {number} d
|
|
113
|
+
* @return {number}
|
|
114
|
+
* @method
|
|
115
|
+
* @static
|
|
116
|
+
*/
|
|
117
|
+
static inCubic(t, b, c, d) {
|
|
118
|
+
return (t /= d) * t * t * c + b;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @param {number} t
|
|
122
|
+
* @param {number} b
|
|
123
|
+
* @param {number} c
|
|
124
|
+
* @param {number} d
|
|
125
|
+
* @return {number}
|
|
126
|
+
* @method
|
|
127
|
+
* @static
|
|
128
|
+
*/
|
|
129
|
+
static outCubic(t, b, c, d) {
|
|
130
|
+
t /= d;
|
|
131
|
+
return (--t * t * t + 1) * c + b;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @param {number} t
|
|
135
|
+
* @param {number} b
|
|
136
|
+
* @param {number} c
|
|
137
|
+
* @param {number} d
|
|
138
|
+
* @return {number}
|
|
139
|
+
* @method
|
|
140
|
+
* @static
|
|
141
|
+
*/
|
|
142
|
+
static inOutCubic(t, b, c, d) {
|
|
143
|
+
return (t /= d / 2) < 1
|
|
144
|
+
? t * t * t * c / 2 + b
|
|
145
|
+
: ((t -= 2) * t * t + 2) * c / 2 + b;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @param {number} t
|
|
149
|
+
* @param {number} b
|
|
150
|
+
* @param {number} c
|
|
151
|
+
* @param {number} d
|
|
152
|
+
* @return {number}
|
|
153
|
+
* @method
|
|
154
|
+
* @static
|
|
155
|
+
*/
|
|
156
|
+
static inQuart(t, b, c, d) {
|
|
157
|
+
return (t /= d) * t * t * t * c + b;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @param {number} t
|
|
161
|
+
* @param {number} b
|
|
162
|
+
* @param {number} c
|
|
163
|
+
* @param {number} d
|
|
164
|
+
* @return {number}
|
|
165
|
+
* @method
|
|
166
|
+
* @static
|
|
167
|
+
*/
|
|
168
|
+
static outQuart(t, b, c, d) {
|
|
169
|
+
t /= d;
|
|
170
|
+
return (--t * t * t * t - 1) * -c + b;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @param {number} t
|
|
174
|
+
* @param {number} b
|
|
175
|
+
* @param {number} c
|
|
176
|
+
* @param {number} d
|
|
177
|
+
* @return {number}
|
|
178
|
+
* @method
|
|
179
|
+
* @static
|
|
180
|
+
*/
|
|
181
|
+
static inOutQuart(t, b, c, d) {
|
|
182
|
+
return (t /= d / 2) < 1
|
|
183
|
+
? t * t * t * t * c / 2 + b
|
|
184
|
+
: ((t -= 2) * t * t * t - 2) * -c / 2 + b;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @param {number} t
|
|
188
|
+
* @param {number} b
|
|
189
|
+
* @param {number} c
|
|
190
|
+
* @param {number} d
|
|
191
|
+
* @return {number}
|
|
192
|
+
* @method
|
|
193
|
+
* @static
|
|
194
|
+
*/
|
|
195
|
+
static inQuint(t, b, c, d) {
|
|
196
|
+
return (t /= d) * t * t * t * t * c + b;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* @param {number} t
|
|
200
|
+
* @param {number} b
|
|
201
|
+
* @param {number} c
|
|
202
|
+
* @param {number} d
|
|
203
|
+
* @return {number}
|
|
204
|
+
* @method
|
|
205
|
+
* @static
|
|
206
|
+
*/
|
|
207
|
+
static outQuint(t, b, c, d) {
|
|
208
|
+
t /= d;
|
|
209
|
+
return (--t * t * t * t * t + 1) * c + b;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @param {number} t
|
|
213
|
+
* @param {number} b
|
|
214
|
+
* @param {number} c
|
|
215
|
+
* @param {number} d
|
|
216
|
+
* @return {number}
|
|
217
|
+
* @method
|
|
218
|
+
* @static
|
|
219
|
+
*/
|
|
220
|
+
static inOutQuint(t, b, c, d) {
|
|
221
|
+
return (t /= d / 2) < 1
|
|
222
|
+
? t * t * t * t * t * c / 2 + b
|
|
223
|
+
: ((t -= 2) * t * t * t * t + 2) * c / 2 + b;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @param {number} t
|
|
227
|
+
* @param {number} b
|
|
228
|
+
* @param {number} c
|
|
229
|
+
* @param {number} d
|
|
230
|
+
* @return {number}
|
|
231
|
+
* @method
|
|
232
|
+
* @static
|
|
233
|
+
*/
|
|
234
|
+
static inSine(t, b, c, d) {
|
|
235
|
+
return -c * $Math.cos(t / d * ($Math.PI / 2)) + c + b;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @param {number} t
|
|
239
|
+
* @param {number} b
|
|
240
|
+
* @param {number} c
|
|
241
|
+
* @param {number} d
|
|
242
|
+
* @return {number}
|
|
243
|
+
* @method
|
|
244
|
+
* @static
|
|
245
|
+
*/
|
|
246
|
+
static outSine(t, b, c, d) {
|
|
247
|
+
return c * $Math.sin(t / d * ($Math.PI / 2)) + b;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @param {number} t
|
|
251
|
+
* @param {number} b
|
|
252
|
+
* @param {number} c
|
|
253
|
+
* @param {number} d
|
|
254
|
+
* @return {number}
|
|
255
|
+
* @method
|
|
256
|
+
* @static
|
|
257
|
+
*/
|
|
258
|
+
static inOutSine(t, b, c, d) {
|
|
259
|
+
return -c / 2 * ($Math.cos($Math.PI * t / d) - 1) + b;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @param {number} t
|
|
263
|
+
* @param {number} b
|
|
264
|
+
* @param {number} c
|
|
265
|
+
* @param {number} d
|
|
266
|
+
* @return {number}
|
|
267
|
+
* @method
|
|
268
|
+
* @static
|
|
269
|
+
*/
|
|
270
|
+
static inExpo(t, b, c, d) {
|
|
271
|
+
return c * $Math.pow(2, 10 * (t / d - 1)) + b;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* @param {number} t
|
|
275
|
+
* @param {number} b
|
|
276
|
+
* @param {number} c
|
|
277
|
+
* @param {number} d
|
|
278
|
+
* @return {number}
|
|
279
|
+
* @method
|
|
280
|
+
* @static
|
|
281
|
+
*/
|
|
282
|
+
static outExpo(t, b, c, d) {
|
|
283
|
+
return c * (-$Math.pow(2, -10 * t / d) + 1) + b;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @param {number} t
|
|
287
|
+
* @param {number} b
|
|
288
|
+
* @param {number} c
|
|
289
|
+
* @param {number} d
|
|
290
|
+
* @return {number}
|
|
291
|
+
* @method
|
|
292
|
+
* @static
|
|
293
|
+
*/
|
|
294
|
+
static inOutExpo(t, b, c, d) {
|
|
295
|
+
return (t /= d / 2) < 1
|
|
296
|
+
? c / 2 * $Math.pow(2, 10 * (t - 1)) + b
|
|
297
|
+
: c / 2 * (-$Math.pow(2, -10 * (t - 1)) + 2) + b;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @param {number} t
|
|
301
|
+
* @param {number} b
|
|
302
|
+
* @param {number} c
|
|
303
|
+
* @param {number} d
|
|
304
|
+
* @return {number}
|
|
305
|
+
* @method
|
|
306
|
+
* @static
|
|
307
|
+
*/
|
|
308
|
+
static inCirc(t, b, c, d) {
|
|
309
|
+
return (1 - $Math.sqrt(1 - (t /= d) * t)) * c + b;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* @param {number} t
|
|
313
|
+
* @param {number} b
|
|
314
|
+
* @param {number} c
|
|
315
|
+
* @param {number} d
|
|
316
|
+
* @return {number}
|
|
317
|
+
* @method
|
|
318
|
+
* @static
|
|
319
|
+
*/
|
|
320
|
+
static outCirc(t, b, c, d) {
|
|
321
|
+
t /= d;
|
|
322
|
+
return $Math.sqrt(1 - --t * t) * c + b;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* @param {number} t
|
|
326
|
+
* @param {number} b
|
|
327
|
+
* @param {number} c
|
|
328
|
+
* @param {number} d
|
|
329
|
+
* @return {number}
|
|
330
|
+
* @method
|
|
331
|
+
* @static
|
|
332
|
+
*/
|
|
333
|
+
static inOutCirc(t, b, c, d) {
|
|
334
|
+
return (t /= d * 2) < 1
|
|
335
|
+
? ($Math.sqrt(1 - t * t) - 1) / -2 * c + b
|
|
336
|
+
: ($Math.sqrt(1 - (t -= 2) * t) + 1) / 2 * c + b;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @param {number} t
|
|
340
|
+
* @param {number} b
|
|
341
|
+
* @param {number} c
|
|
342
|
+
* @param {number} d
|
|
343
|
+
* @return {number}
|
|
344
|
+
* @method
|
|
345
|
+
* @static
|
|
346
|
+
*/
|
|
347
|
+
static inBack(t, b, c, d) {
|
|
348
|
+
return (2.70158 * (t /= d) * t * t - 1.70158 * t * t) * c + b;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @param {number} t
|
|
352
|
+
* @param {number} b
|
|
353
|
+
* @param {number} c
|
|
354
|
+
* @param {number} d
|
|
355
|
+
* @return {number}
|
|
356
|
+
* @method
|
|
357
|
+
* @static
|
|
358
|
+
*/
|
|
359
|
+
static outBack(t, b, c, d) {
|
|
360
|
+
return (1 + 2.70158
|
|
361
|
+
* $Math.pow((t /= d) - 1, 3) + 1.70158
|
|
362
|
+
* $Math.pow(t - 1, 2)) * c + b;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @param {number} t
|
|
366
|
+
* @param {number} b
|
|
367
|
+
* @param {number} c
|
|
368
|
+
* @param {number} d
|
|
369
|
+
* @return {number}
|
|
370
|
+
* @method
|
|
371
|
+
* @static
|
|
372
|
+
*/
|
|
373
|
+
static inOutBack(t, b, c, d) {
|
|
374
|
+
let s = 1.70158;
|
|
375
|
+
if ((t /= d / 2) < 1) {
|
|
376
|
+
return t * t * (((s *= 1.525) + 1) * t - s) * c / 2 + b;
|
|
377
|
+
}
|
|
378
|
+
return ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) * c / 2 + b;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @param {number} t
|
|
382
|
+
* @param {number} b
|
|
383
|
+
* @param {number} c
|
|
384
|
+
* @param {number} d
|
|
385
|
+
* @return {number}
|
|
386
|
+
* @method
|
|
387
|
+
* @static
|
|
388
|
+
*/
|
|
389
|
+
static inElastic(t, b, c, d) {
|
|
390
|
+
return (t /= d) === 0
|
|
391
|
+
? b
|
|
392
|
+
: t === 1
|
|
393
|
+
? c + b
|
|
394
|
+
: -$Math.pow(2, (t *= 10) - 10)
|
|
395
|
+
* $Math.sin((t - 10.75) * (2 * $Math.PI / 3))
|
|
396
|
+
* c + b;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* @param {number} t
|
|
400
|
+
* @param {number} b
|
|
401
|
+
* @param {number} c
|
|
402
|
+
* @param {number} d
|
|
403
|
+
* @return {number}
|
|
404
|
+
* @method
|
|
405
|
+
* @static
|
|
406
|
+
*/
|
|
407
|
+
static outElastic(t, b, c, d) {
|
|
408
|
+
return (t /= d) === 0
|
|
409
|
+
? b
|
|
410
|
+
: t === 1
|
|
411
|
+
? c + b
|
|
412
|
+
: ($Math.pow(2, -10 * t)
|
|
413
|
+
* $Math.sin((t * 10 - 0.75) * (2 * $Math.PI / 3)) + 1)
|
|
414
|
+
* c + b;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @param {number} t
|
|
418
|
+
* @param {number} b
|
|
419
|
+
* @param {number} c
|
|
420
|
+
* @param {number} d
|
|
421
|
+
* @return {number}
|
|
422
|
+
* @method
|
|
423
|
+
* @static
|
|
424
|
+
*/
|
|
425
|
+
static inOutElastic(t, b, c, d) {
|
|
426
|
+
return (t /= d) === 0
|
|
427
|
+
? b
|
|
428
|
+
: t === 1
|
|
429
|
+
? c + b
|
|
430
|
+
: t < 0.5
|
|
431
|
+
? -($Math.pow(2, 20 * t - 10) * $Math.sin((20 * t - 11.125) * (2 * $Math.PI / 4.5))) / 2 * c + b
|
|
432
|
+
: ($Math.pow(2, -20 * t + 10) * $Math.sin((20 * t - 11.125) * (2 * $Math.PI / 4.5)) / 2 + 1) * c + b;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @param {number} t
|
|
436
|
+
* @param {number} b
|
|
437
|
+
* @param {number} c
|
|
438
|
+
* @param {number} d
|
|
439
|
+
* @return {number}
|
|
440
|
+
* @method
|
|
441
|
+
* @static
|
|
442
|
+
*/
|
|
443
|
+
static outBounce(t, b, c, d) {
|
|
444
|
+
if ((t /= d) < 1 / 2.75) {
|
|
445
|
+
return 7.5625 * t * t * c + b;
|
|
446
|
+
}
|
|
447
|
+
if (t < 2 / 2.75) {
|
|
448
|
+
return (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) * c + b;
|
|
449
|
+
}
|
|
450
|
+
if (t < 2.5 / 2.75) {
|
|
451
|
+
return (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) * c + b;
|
|
452
|
+
}
|
|
453
|
+
return (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) * c + b;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @param {number} t
|
|
457
|
+
* @param {number} b
|
|
458
|
+
* @param {number} c
|
|
459
|
+
* @param {number} d
|
|
460
|
+
* @return {number}
|
|
461
|
+
* @method
|
|
462
|
+
* @static
|
|
463
|
+
*/
|
|
464
|
+
static inBounce(t, b, c, d) {
|
|
465
|
+
return c - Easing.outBounce(d - t, 0, c, d) + b;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* @param {number} t
|
|
469
|
+
* @param {number} b
|
|
470
|
+
* @param {number} c
|
|
471
|
+
* @param {number} d
|
|
472
|
+
* @return {number}
|
|
473
|
+
* @method
|
|
474
|
+
* @static
|
|
475
|
+
*/
|
|
476
|
+
static inOutBounce(t, b, c, d) {
|
|
477
|
+
return t < d / 2
|
|
478
|
+
? Easing.inBounce(t * 2, b, c / 2, d)
|
|
479
|
+
: Easing.outBounce(t * 2 - d, b + c / 2, c / 2, d);
|
|
480
|
+
}
|
|
481
|
+
}
|
package/dist/Job.d.ts
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { EventDispatcher, Event } from "@next2d/events";
|
|
2
|
+
/**
|
|
3
|
+
* @class
|
|
4
|
+
* @memberOf next2d.ui
|
|
5
|
+
* @extends EventDispatcher
|
|
6
|
+
*/
|
|
7
|
+
export declare class Job extends EventDispatcher {
|
|
8
|
+
private readonly _$target;
|
|
9
|
+
private _$delay;
|
|
10
|
+
private _$duration;
|
|
11
|
+
private _$ease;
|
|
12
|
+
private _$from;
|
|
13
|
+
private _$names;
|
|
14
|
+
private _$startTime;
|
|
15
|
+
private _$stopFlag;
|
|
16
|
+
private _$forceStop;
|
|
17
|
+
private _$to;
|
|
18
|
+
private _$currentTime;
|
|
19
|
+
/**
|
|
20
|
+
* @param {object} target
|
|
21
|
+
* @param {object} [from=null]
|
|
22
|
+
* @param {object} [to=null]
|
|
23
|
+
* @param {number} [delay=0]
|
|
24
|
+
* @param {number} [duration=1]
|
|
25
|
+
* @param {function} [ease=null]
|
|
26
|
+
*
|
|
27
|
+
* @constructor
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
constructor(target: any, from?: any, to?: any, delay?: number, duration?: number, ease?: Function | null);
|
|
31
|
+
/**
|
|
32
|
+
* @description 指定されたクラスのストリングを返します。
|
|
33
|
+
* Returns the string representation of the specified class.
|
|
34
|
+
*
|
|
35
|
+
* @return {string}
|
|
36
|
+
* @default [class Job]
|
|
37
|
+
* @method
|
|
38
|
+
* @static
|
|
39
|
+
*/
|
|
40
|
+
static toString(): string;
|
|
41
|
+
/**
|
|
42
|
+
* @description 指定されたクラスの空間名を返します。
|
|
43
|
+
* Returns the space name of the specified class.
|
|
44
|
+
*
|
|
45
|
+
* @return {string}
|
|
46
|
+
* @default next2d.ui.Job
|
|
47
|
+
* @const
|
|
48
|
+
* @static
|
|
49
|
+
*/
|
|
50
|
+
static get namespace(): string;
|
|
51
|
+
/**
|
|
52
|
+
* @description 指定されたオブジェクトのストリングを返します。
|
|
53
|
+
* Returns the string representation of the specified object.
|
|
54
|
+
*
|
|
55
|
+
* @return {string}
|
|
56
|
+
* @default [object Job]
|
|
57
|
+
* @method
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
toString(): string;
|
|
61
|
+
/**
|
|
62
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
63
|
+
* Returns the space name of the specified object.
|
|
64
|
+
*
|
|
65
|
+
* @return {string}
|
|
66
|
+
* @default next2d.ui.Job
|
|
67
|
+
* @const
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
get namespace(): string;
|
|
71
|
+
/**
|
|
72
|
+
* @member {function}
|
|
73
|
+
* @default Easing.linear
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
get ease(): Function;
|
|
77
|
+
set ease(ease: Function);
|
|
78
|
+
/**
|
|
79
|
+
* @member {number}
|
|
80
|
+
* @default 0
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
get delay(): number;
|
|
84
|
+
set delay(delay: number);
|
|
85
|
+
/**
|
|
86
|
+
* @member {number}
|
|
87
|
+
* @default 1
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
get duration(): number;
|
|
91
|
+
set duration(duration: number);
|
|
92
|
+
/**
|
|
93
|
+
* @member {object}
|
|
94
|
+
* @default null
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
get from(): any;
|
|
98
|
+
set from(from: any);
|
|
99
|
+
/**
|
|
100
|
+
* @member {object}
|
|
101
|
+
* @default null
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
get to(): any;
|
|
105
|
+
set to(to: any);
|
|
106
|
+
/**
|
|
107
|
+
* @member {object}
|
|
108
|
+
* @readonly
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
get target(): any;
|
|
112
|
+
/**
|
|
113
|
+
* @return {void}
|
|
114
|
+
* @method
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
initialize(): void;
|
|
118
|
+
/**
|
|
119
|
+
* @param {object} object
|
|
120
|
+
* @return {array}
|
|
121
|
+
* @method
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
entries(object: any): any[];
|
|
125
|
+
/**
|
|
126
|
+
* @return {Promise}
|
|
127
|
+
* @method
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
start(): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* @return {void}
|
|
133
|
+
* @method
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
stop(): void;
|
|
137
|
+
/**
|
|
138
|
+
* @param {Event} event
|
|
139
|
+
* @return {void}
|
|
140
|
+
* @method
|
|
141
|
+
* @private
|
|
142
|
+
*/
|
|
143
|
+
_$update(event: Event): void;
|
|
144
|
+
/**
|
|
145
|
+
* @param {object} target
|
|
146
|
+
* @param {object} from
|
|
147
|
+
* @param {object} to
|
|
148
|
+
* @param {array} names
|
|
149
|
+
* @return {void}
|
|
150
|
+
* @method
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
153
|
+
_$updateProperty(target: any, from: any, to: any, names: any[]): void;
|
|
154
|
+
}
|