@next2d/ui 1.18.10 → 1.18.12
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/dist/Job.d.ts +10 -0
- package/dist/Job.js +21 -0
- package/package.json +3 -3
package/dist/Job.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class Job extends EventDispatcher {
|
|
|
17
17
|
private _$to;
|
|
18
18
|
private _$currentTime;
|
|
19
19
|
private _$timerId;
|
|
20
|
+
private _$nextJob;
|
|
20
21
|
/**
|
|
21
22
|
* @param {object} target
|
|
22
23
|
* @param {object} [from=null]
|
|
@@ -110,6 +111,15 @@ export declare class Job extends EventDispatcher {
|
|
|
110
111
|
* @public
|
|
111
112
|
*/
|
|
112
113
|
get target(): any;
|
|
114
|
+
/**
|
|
115
|
+
* @description 指定したjobを次に開始します。nullで解消
|
|
116
|
+
* Starts the next specified job, resolved by null
|
|
117
|
+
*
|
|
118
|
+
* @member {Job | null}
|
|
119
|
+
* @default null
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
chain(job: Job | null): Job | null;
|
|
113
123
|
/**
|
|
114
124
|
* @return {void}
|
|
115
125
|
* @method
|
package/dist/Job.js
CHANGED
|
@@ -91,6 +91,12 @@ export class Job extends EventDispatcher {
|
|
|
91
91
|
* @private
|
|
92
92
|
*/
|
|
93
93
|
this._$timerId = 0;
|
|
94
|
+
/**
|
|
95
|
+
* @type {Job}
|
|
96
|
+
* @default null
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
this._$nextJob = null;
|
|
94
100
|
}
|
|
95
101
|
/**
|
|
96
102
|
* @description 指定されたクラスのストリングを返します。
|
|
@@ -205,6 +211,18 @@ export class Job extends EventDispatcher {
|
|
|
205
211
|
get target() {
|
|
206
212
|
return this._$target;
|
|
207
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* @description 指定したjobを次に開始します。nullで解消
|
|
216
|
+
* Starts the next specified job, resolved by null
|
|
217
|
+
*
|
|
218
|
+
* @member {Job | null}
|
|
219
|
+
* @default null
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
chain(job) {
|
|
223
|
+
this._$nextJob = job;
|
|
224
|
+
return job;
|
|
225
|
+
}
|
|
208
226
|
/**
|
|
209
227
|
* @return {void}
|
|
210
228
|
* @method
|
|
@@ -295,6 +313,9 @@ export class Job extends EventDispatcher {
|
|
|
295
313
|
if (this.hasEventListener(Event.COMPLETE)) {
|
|
296
314
|
this.dispatchEvent(new Event(Event.COMPLETE));
|
|
297
315
|
}
|
|
316
|
+
if (this._$nextJob) {
|
|
317
|
+
this._$nextJob.start();
|
|
318
|
+
}
|
|
298
319
|
}
|
|
299
320
|
else {
|
|
300
321
|
this._$timerId = requestAnimationFrame(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/ui",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.12",
|
|
4
4
|
"description": "Next2D UI Packages",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@tvon.jp> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@next2d/events": "1.18.
|
|
36
|
-
"@next2d/share": "1.18.
|
|
35
|
+
"@next2d/events": "1.18.12",
|
|
36
|
+
"@next2d/share": "1.18.12"
|
|
37
37
|
}
|
|
38
38
|
}
|