@next2d/ui 1.18.12 → 2.0.1
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/package.json +10 -19
- package/src/Easing/service/EasingInBackService.d.ts +12 -0
- package/src/Easing/service/EasingInBackService.js +14 -0
- package/src/Easing/service/EasingInBounceService.d.ts +12 -0
- package/src/Easing/service/EasingInBounceService.js +15 -0
- package/src/Easing/service/EasingInCircService.d.ts +12 -0
- package/src/Easing/service/EasingInCircService.js +14 -0
- package/src/Easing/service/EasingInCubicService.d.ts +12 -0
- package/src/Easing/service/EasingInCubicService.js +14 -0
- package/src/Easing/service/EasingInElasticService.d.ts +12 -0
- package/src/Easing/service/EasingInElasticService.js +20 -0
- package/src/Easing/service/EasingInExpoService.d.ts +12 -0
- package/src/Easing/service/EasingInExpoService.js +14 -0
- package/src/Easing/service/EasingInOutBackService.d.ts +12 -0
- package/src/Easing/service/EasingInOutBackService.js +17 -0
- package/src/Easing/service/EasingInOutBounceService.d.ts +12 -0
- package/src/Easing/service/EasingInOutBounceService.js +17 -0
- package/src/Easing/service/EasingInOutCircService.d.ts +12 -0
- package/src/Easing/service/EasingInOutCircService.js +16 -0
- package/src/Easing/service/EasingInOutCubicService.d.ts +12 -0
- package/src/Easing/service/EasingInOutCubicService.js +16 -0
- package/src/Easing/service/EasingInOutElasticService.d.ts +12 -0
- package/src/Easing/service/EasingInOutElasticService.js +20 -0
- package/src/Easing/service/EasingInOutExpoService.d.ts +12 -0
- package/src/Easing/service/EasingInOutExpoService.js +16 -0
- package/src/Easing/service/EasingInOutQuadService.d.ts +12 -0
- package/src/Easing/service/EasingInOutQuadService.js +16 -0
- package/src/Easing/service/EasingInOutQuartService.d.ts +12 -0
- package/src/Easing/service/EasingInOutQuartService.js +16 -0
- package/src/Easing/service/EasingInOutQuintService.d.ts +12 -0
- package/src/Easing/service/EasingInOutQuintService.js +16 -0
- package/src/Easing/service/EasingInOutSineService.d.ts +12 -0
- package/src/Easing/service/EasingInOutSineService.js +14 -0
- package/src/Easing/service/EasingInQuadService.d.ts +12 -0
- package/src/Easing/service/EasingInQuadService.js +14 -0
- package/src/Easing/service/EasingInQuartService.d.ts +12 -0
- package/src/Easing/service/EasingInQuartService.js +14 -0
- package/src/Easing/service/EasingInQuintService.d.ts +12 -0
- package/src/Easing/service/EasingInQuintService.js +14 -0
- package/src/Easing/service/EasingInSineService.d.ts +12 -0
- package/src/Easing/service/EasingInSineService.js +14 -0
- package/src/Easing/service/EasingLinearService.d.ts +12 -0
- package/src/Easing/service/EasingLinearService.js +14 -0
- package/src/Easing/service/EasingOutBackService.d.ts +12 -0
- package/src/Easing/service/EasingOutBackService.js +16 -0
- package/src/Easing/service/EasingOutBounceService.d.ts +12 -0
- package/src/Easing/service/EasingOutBounceService.js +23 -0
- package/src/Easing/service/EasingOutCircService.d.ts +12 -0
- package/src/Easing/service/EasingOutCircService.js +15 -0
- package/src/Easing/service/EasingOutCubicService.d.ts +12 -0
- package/src/Easing/service/EasingOutCubicService.js +15 -0
- package/src/Easing/service/EasingOutElasticService.d.ts +12 -0
- package/src/Easing/service/EasingOutElasticService.js +20 -0
- package/src/Easing/service/EasingOutExpoService.d.ts +12 -0
- package/src/Easing/service/EasingOutExpoService.js +14 -0
- package/src/Easing/service/EasingOutQuadService.d.ts +12 -0
- package/src/Easing/service/EasingOutQuadService.js +14 -0
- package/src/Easing/service/EasingOutQuartService.d.ts +12 -0
- package/src/Easing/service/EasingOutQuartService.js +15 -0
- package/src/Easing/service/EasingOutQuintService.d.ts +12 -0
- package/src/Easing/service/EasingOutQuintService.js +15 -0
- package/src/Easing/service/EasingOutSineService.d.ts +12 -0
- package/src/Easing/service/EasingOutSineService.js +14 -0
- package/{dist → src}/Easing.d.ts +2 -42
- package/{dist → src}/Easing.js +64 -133
- package/src/Job/service/JobEntriesService.d.ts +12 -0
- package/src/Job/service/JobEntriesService.js +19 -0
- package/src/Job/service/JobStopService.d.ts +11 -0
- package/src/Job/service/JobStopService.js +18 -0
- package/src/Job/service/JobUpdateFrameService.d.ts +12 -0
- package/src/Job/service/JobUpdateFrameService.js +40 -0
- package/src/Job/service/JobUpdatePropertyService.d.ts +17 -0
- package/src/Job/service/JobUpdatePropertyService.js +38 -0
- package/src/Job/usecase/JobBootUseCase.d.ts +11 -0
- package/src/Job/usecase/JobBootUseCase.js +25 -0
- package/src/Job/usecase/JobStartUseCase.d.ts +11 -0
- package/src/Job/usecase/JobStartUseCase.js +25 -0
- package/src/Job.d.ts +157 -0
- package/src/Job.js +240 -0
- package/src/Tween.d.ts +23 -0
- package/src/Tween.js +24 -0
- package/src/interface/IEntriesObject.d.ts +4 -0
- package/src/interface/IEntriesObject.js +1 -0
- package/src/interface/IObject.d.ts +3 -0
- package/src/interface/IObject.js +1 -0
- package/dist/Job.d.ts +0 -164
- package/dist/Job.js +0 -362
- package/dist/Tween.d.ts +0 -62
- package/dist/Tween.js +0 -72
- package/{dist → src}/index.d.ts +1 -1
- package/{dist → src}/index.js +1 -1
package/src/Job.d.ts
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { IObject } from "./interface/IObject";
|
|
2
|
+
import type { IEntriesObject } from "./interface/IEntriesObject";
|
|
3
|
+
import { EventDispatcher } from "@next2d/events";
|
|
4
|
+
/**
|
|
5
|
+
* @class
|
|
6
|
+
* @memberOf next2d.ui
|
|
7
|
+
* @extends EventDispatcher
|
|
8
|
+
*/
|
|
9
|
+
export declare class Job extends EventDispatcher {
|
|
10
|
+
/**
|
|
11
|
+
* @description イージングの対象オブジェクト
|
|
12
|
+
* Target object of easing
|
|
13
|
+
*
|
|
14
|
+
* @type {object}
|
|
15
|
+
* @default null
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
readonly target: any;
|
|
19
|
+
/**
|
|
20
|
+
* @description イージングのエントリーオブジェクト
|
|
21
|
+
* Entry object of easing
|
|
22
|
+
*
|
|
23
|
+
* @type {array}
|
|
24
|
+
* @default null
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
entries: IEntriesObject[] | null;
|
|
28
|
+
/**
|
|
29
|
+
* @description イージングの開始時間
|
|
30
|
+
* Start time of easing
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @default 0
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
startTime: number;
|
|
37
|
+
/**
|
|
38
|
+
* @description イージングの強制停止フラグ
|
|
39
|
+
* Forced stop flag of easing
|
|
40
|
+
*
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @default false
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
stopFlag: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @description イージングの遅延実行のタイマーID
|
|
48
|
+
* Timer ID for delayed execution of easing
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @default -1
|
|
52
|
+
* @protected
|
|
53
|
+
*/
|
|
54
|
+
$timerId: number;
|
|
55
|
+
/**
|
|
56
|
+
* @description イージングの開始までの遅延時間を返します。
|
|
57
|
+
* Returns the delay time until the start of the easing.
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @default 0
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
delay: number;
|
|
64
|
+
/**
|
|
65
|
+
* @description イージング完了時間を返します。
|
|
66
|
+
* Returns the easing completion time.
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @default 1
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
duration: number;
|
|
73
|
+
/**
|
|
74
|
+
* @description イージングの計算関数を返します。
|
|
75
|
+
* Returns the calculation function of the easing.
|
|
76
|
+
*
|
|
77
|
+
* @see Easing
|
|
78
|
+
* @type {function}
|
|
79
|
+
* @default Easing.linear
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
ease: Function;
|
|
83
|
+
/**
|
|
84
|
+
* @description イージングの開始オブジェクトを返します。
|
|
85
|
+
* Returns the start object of the easing.
|
|
86
|
+
*
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
from: IObject;
|
|
91
|
+
/**
|
|
92
|
+
* @description イージングの終了オブジェクトを返します。
|
|
93
|
+
* Returns the end object of the easing.
|
|
94
|
+
*
|
|
95
|
+
* @type {object}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
to: IObject;
|
|
99
|
+
/**
|
|
100
|
+
* @description イージングの現在時間を返します。
|
|
101
|
+
* Returns the current time of the easing.
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @default 0
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
currentTime: number;
|
|
108
|
+
/**
|
|
109
|
+
* @description イージングの次のjobを返します。
|
|
110
|
+
* Returns the next job of the easing.
|
|
111
|
+
*
|
|
112
|
+
* @member {Job | null}
|
|
113
|
+
* @default null
|
|
114
|
+
* @readonly
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
nextJob: Job | null;
|
|
118
|
+
/**
|
|
119
|
+
* @param {object} target
|
|
120
|
+
* @param {object} [from=null]
|
|
121
|
+
* @param {object} [to=null]
|
|
122
|
+
* @param {number} [delay=0]
|
|
123
|
+
* @param {number} [duration=1]
|
|
124
|
+
* @param {function} [ease=null]
|
|
125
|
+
*
|
|
126
|
+
* @constructor
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
constructor(target: any, from: IObject, to: IObject, delay?: number, duration?: number, ease?: Function | null);
|
|
130
|
+
/**
|
|
131
|
+
* @description 指定したjobを次に開始します。nullで解消
|
|
132
|
+
* Starts the next specified job, resolved by null
|
|
133
|
+
*
|
|
134
|
+
* @return {Job | null}
|
|
135
|
+
* @method
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
chain(job: Job | null): Job | null;
|
|
139
|
+
/**
|
|
140
|
+
* @description イージングを開始します。
|
|
141
|
+
* Starts the easing.
|
|
142
|
+
*
|
|
143
|
+
* @return {void}
|
|
144
|
+
* @method
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
start(): void;
|
|
148
|
+
/**
|
|
149
|
+
* @description イージングを停止します。
|
|
150
|
+
* Stops the easing.
|
|
151
|
+
*
|
|
152
|
+
* @return {void}
|
|
153
|
+
* @method
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
stop(): void;
|
|
157
|
+
}
|
package/src/Job.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { Easing } from "./Easing";
|
|
2
|
+
import { execute as jobStopService } from "./Job/service/JobStopService";
|
|
3
|
+
import { execute as jobStartUseCase } from "./Job/usecase/JobStartUseCase";
|
|
4
|
+
import { EventDispatcher } from "@next2d/events";
|
|
5
|
+
/**
|
|
6
|
+
* @class
|
|
7
|
+
* @memberOf next2d.ui
|
|
8
|
+
* @extends EventDispatcher
|
|
9
|
+
*/
|
|
10
|
+
export class Job extends EventDispatcher {
|
|
11
|
+
/**
|
|
12
|
+
* @param {object} target
|
|
13
|
+
* @param {object} [from=null]
|
|
14
|
+
* @param {object} [to=null]
|
|
15
|
+
* @param {number} [delay=0]
|
|
16
|
+
* @param {number} [duration=1]
|
|
17
|
+
* @param {function} [ease=null]
|
|
18
|
+
*
|
|
19
|
+
* @constructor
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
constructor(target, from, to, delay = 0, duration = 1, ease = null) {
|
|
23
|
+
super();
|
|
24
|
+
/**
|
|
25
|
+
* @description イージングの対象オブジェクト
|
|
26
|
+
* Target object of easing
|
|
27
|
+
*
|
|
28
|
+
* @type {object}
|
|
29
|
+
* @default null
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
Object.defineProperty(this, "target", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true,
|
|
35
|
+
writable: true,
|
|
36
|
+
value: void 0
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* @description イージングのエントリーオブジェクト
|
|
40
|
+
* Entry object of easing
|
|
41
|
+
*
|
|
42
|
+
* @type {array}
|
|
43
|
+
* @default null
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
Object.defineProperty(this, "entries", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
value: void 0
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* @description イージングの開始時間
|
|
54
|
+
* Start time of easing
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @default 0
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
Object.defineProperty(this, "startTime", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true,
|
|
63
|
+
writable: true,
|
|
64
|
+
value: void 0
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* @description イージングの強制停止フラグ
|
|
68
|
+
* Forced stop flag of easing
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @default false
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
Object.defineProperty(this, "stopFlag", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
configurable: true,
|
|
77
|
+
writable: true,
|
|
78
|
+
value: void 0
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* @description イージングの遅延実行のタイマーID
|
|
82
|
+
* Timer ID for delayed execution of easing
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @default -1
|
|
86
|
+
* @protected
|
|
87
|
+
*/
|
|
88
|
+
Object.defineProperty(this, "$timerId", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
configurable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
value: void 0
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* @description イージングの開始までの遅延時間を返します。
|
|
96
|
+
* Returns the delay time until the start of the easing.
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @default 0
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
Object.defineProperty(this, "delay", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
configurable: true,
|
|
105
|
+
writable: true,
|
|
106
|
+
value: void 0
|
|
107
|
+
});
|
|
108
|
+
/**
|
|
109
|
+
* @description イージング完了時間を返します。
|
|
110
|
+
* Returns the easing completion time.
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @default 1
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
Object.defineProperty(this, "duration", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
configurable: true,
|
|
119
|
+
writable: true,
|
|
120
|
+
value: void 0
|
|
121
|
+
});
|
|
122
|
+
/**
|
|
123
|
+
* @description イージングの計算関数を返します。
|
|
124
|
+
* Returns the calculation function of the easing.
|
|
125
|
+
*
|
|
126
|
+
* @see Easing
|
|
127
|
+
* @type {function}
|
|
128
|
+
* @default Easing.linear
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
Object.defineProperty(this, "ease", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
configurable: true,
|
|
134
|
+
writable: true,
|
|
135
|
+
value: void 0
|
|
136
|
+
});
|
|
137
|
+
/**
|
|
138
|
+
* @description イージングの開始オブジェクトを返します。
|
|
139
|
+
* Returns the start object of the easing.
|
|
140
|
+
*
|
|
141
|
+
* @type {object}
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
Object.defineProperty(this, "from", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
configurable: true,
|
|
147
|
+
writable: true,
|
|
148
|
+
value: void 0
|
|
149
|
+
});
|
|
150
|
+
/**
|
|
151
|
+
* @description イージングの終了オブジェクトを返します。
|
|
152
|
+
* Returns the end object of the easing.
|
|
153
|
+
*
|
|
154
|
+
* @type {object}
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
Object.defineProperty(this, "to", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
configurable: true,
|
|
160
|
+
writable: true,
|
|
161
|
+
value: void 0
|
|
162
|
+
});
|
|
163
|
+
/**
|
|
164
|
+
* @description イージングの現在時間を返します。
|
|
165
|
+
* Returns the current time of the easing.
|
|
166
|
+
*
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @default 0
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
Object.defineProperty(this, "currentTime", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
configurable: true,
|
|
174
|
+
writable: true,
|
|
175
|
+
value: void 0
|
|
176
|
+
});
|
|
177
|
+
/**
|
|
178
|
+
* @description イージングの次のjobを返します。
|
|
179
|
+
* Returns the next job of the easing.
|
|
180
|
+
*
|
|
181
|
+
* @member {Job | null}
|
|
182
|
+
* @default null
|
|
183
|
+
* @readonly
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
Object.defineProperty(this, "nextJob", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
configurable: true,
|
|
189
|
+
writable: true,
|
|
190
|
+
value: void 0
|
|
191
|
+
});
|
|
192
|
+
this.target = target;
|
|
193
|
+
this.from = from;
|
|
194
|
+
this.to = to;
|
|
195
|
+
this.delay = delay;
|
|
196
|
+
this.duration = duration;
|
|
197
|
+
this.ease = ease || Easing.linear;
|
|
198
|
+
// default value
|
|
199
|
+
this.currentTime = 0;
|
|
200
|
+
this.nextJob = null;
|
|
201
|
+
this.entries = null;
|
|
202
|
+
this.startTime = 0;
|
|
203
|
+
this.stopFlag = false;
|
|
204
|
+
this.$timerId = -1;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @description 指定したjobを次に開始します。nullで解消
|
|
208
|
+
* Starts the next specified job, resolved by null
|
|
209
|
+
*
|
|
210
|
+
* @return {Job | null}
|
|
211
|
+
* @method
|
|
212
|
+
* @public
|
|
213
|
+
*/
|
|
214
|
+
chain(job) {
|
|
215
|
+
this.nextJob = job;
|
|
216
|
+
return job;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @description イージングを開始します。
|
|
220
|
+
* Starts the easing.
|
|
221
|
+
*
|
|
222
|
+
* @return {void}
|
|
223
|
+
* @method
|
|
224
|
+
* @public
|
|
225
|
+
*/
|
|
226
|
+
start() {
|
|
227
|
+
jobStartUseCase(this);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @description イージングを停止します。
|
|
231
|
+
* Stops the easing.
|
|
232
|
+
*
|
|
233
|
+
* @return {void}
|
|
234
|
+
* @method
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
237
|
+
stop() {
|
|
238
|
+
jobStopService(this);
|
|
239
|
+
}
|
|
240
|
+
}
|
package/src/Tween.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IObject } from "./interface/IObject";
|
|
2
|
+
import { Job } from "./Job";
|
|
3
|
+
/**
|
|
4
|
+
* @class
|
|
5
|
+
* @memberOf next2d.ui
|
|
6
|
+
*/
|
|
7
|
+
export declare class Tween {
|
|
8
|
+
/**
|
|
9
|
+
* @description 新しいJobクラスを追加します
|
|
10
|
+
* Add a new Job class
|
|
11
|
+
*
|
|
12
|
+
* @param {object} target
|
|
13
|
+
* @param {object} from
|
|
14
|
+
* @param {object} to
|
|
15
|
+
* @param {number} [delay=0]
|
|
16
|
+
* @param {number} [duration=1]
|
|
17
|
+
* @param {function} [ease=null]
|
|
18
|
+
* @return {Job}
|
|
19
|
+
* @method
|
|
20
|
+
* @static
|
|
21
|
+
*/
|
|
22
|
+
static add(target: any, from: IObject, to: IObject, delay?: number, duration?: number, ease?: Function | null): Job;
|
|
23
|
+
}
|
package/src/Tween.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Job } from "./Job";
|
|
2
|
+
/**
|
|
3
|
+
* @class
|
|
4
|
+
* @memberOf next2d.ui
|
|
5
|
+
*/
|
|
6
|
+
export class Tween {
|
|
7
|
+
/**
|
|
8
|
+
* @description 新しいJobクラスを追加します
|
|
9
|
+
* Add a new Job class
|
|
10
|
+
*
|
|
11
|
+
* @param {object} target
|
|
12
|
+
* @param {object} from
|
|
13
|
+
* @param {object} to
|
|
14
|
+
* @param {number} [delay=0]
|
|
15
|
+
* @param {number} [duration=1]
|
|
16
|
+
* @param {function} [ease=null]
|
|
17
|
+
* @return {Job}
|
|
18
|
+
* @method
|
|
19
|
+
* @static
|
|
20
|
+
*/
|
|
21
|
+
static add(target, from, to, delay = 0, duration = 1, ease = null) {
|
|
22
|
+
return new Job(target, from, to, delay, duration, ease);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Job.d.ts
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { EventDispatcher } 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
|
-
private _$timerId;
|
|
20
|
-
private _$nextJob;
|
|
21
|
-
/**
|
|
22
|
-
* @param {object} target
|
|
23
|
-
* @param {object} [from=null]
|
|
24
|
-
* @param {object} [to=null]
|
|
25
|
-
* @param {number} [delay=0]
|
|
26
|
-
* @param {number} [duration=1]
|
|
27
|
-
* @param {function} [ease=null]
|
|
28
|
-
*
|
|
29
|
-
* @constructor
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
32
|
-
constructor(target: any, from?: any, to?: any, delay?: number, duration?: number, ease?: Function | null);
|
|
33
|
-
/**
|
|
34
|
-
* @description 指定されたクラスのストリングを返します。
|
|
35
|
-
* Returns the string representation of the specified class.
|
|
36
|
-
*
|
|
37
|
-
* @return {string}
|
|
38
|
-
* @default [class Job]
|
|
39
|
-
* @method
|
|
40
|
-
* @static
|
|
41
|
-
*/
|
|
42
|
-
static toString(): string;
|
|
43
|
-
/**
|
|
44
|
-
* @description 指定されたクラスの空間名を返します。
|
|
45
|
-
* Returns the space name of the specified class.
|
|
46
|
-
*
|
|
47
|
-
* @return {string}
|
|
48
|
-
* @default next2d.ui.Job
|
|
49
|
-
* @const
|
|
50
|
-
* @static
|
|
51
|
-
*/
|
|
52
|
-
static get namespace(): string;
|
|
53
|
-
/**
|
|
54
|
-
* @description 指定されたオブジェクトのストリングを返します。
|
|
55
|
-
* Returns the string representation of the specified object.
|
|
56
|
-
*
|
|
57
|
-
* @return {string}
|
|
58
|
-
* @default [object Job]
|
|
59
|
-
* @method
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
toString(): string;
|
|
63
|
-
/**
|
|
64
|
-
* @description 指定されたオブジェクトの空間名を返します。
|
|
65
|
-
* Returns the space name of the specified object.
|
|
66
|
-
*
|
|
67
|
-
* @return {string}
|
|
68
|
-
* @default next2d.ui.Job
|
|
69
|
-
* @const
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
get namespace(): string;
|
|
73
|
-
/**
|
|
74
|
-
* @member {function}
|
|
75
|
-
* @default Easing.linear
|
|
76
|
-
* @public
|
|
77
|
-
*/
|
|
78
|
-
get ease(): Function;
|
|
79
|
-
set ease(ease: Function);
|
|
80
|
-
/**
|
|
81
|
-
* @member {number}
|
|
82
|
-
* @default 0
|
|
83
|
-
* @public
|
|
84
|
-
*/
|
|
85
|
-
get delay(): number;
|
|
86
|
-
set delay(delay: number);
|
|
87
|
-
/**
|
|
88
|
-
* @member {number}
|
|
89
|
-
* @default 1
|
|
90
|
-
* @public
|
|
91
|
-
*/
|
|
92
|
-
get duration(): number;
|
|
93
|
-
set duration(duration: number);
|
|
94
|
-
/**
|
|
95
|
-
* @member {object}
|
|
96
|
-
* @default null
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
get from(): any;
|
|
100
|
-
set from(from: any);
|
|
101
|
-
/**
|
|
102
|
-
* @member {object}
|
|
103
|
-
* @default null
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
|
-
get to(): any;
|
|
107
|
-
set to(to: any);
|
|
108
|
-
/**
|
|
109
|
-
* @member {object}
|
|
110
|
-
* @readonly
|
|
111
|
-
* @public
|
|
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;
|
|
123
|
-
/**
|
|
124
|
-
* @return {void}
|
|
125
|
-
* @method
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
|
-
initialize(): void;
|
|
129
|
-
/**
|
|
130
|
-
* @param {object} object
|
|
131
|
-
* @return {array}
|
|
132
|
-
* @method
|
|
133
|
-
* @private
|
|
134
|
-
*/
|
|
135
|
-
_$entries(object: any): any[];
|
|
136
|
-
/**
|
|
137
|
-
* @return {void}
|
|
138
|
-
* @method
|
|
139
|
-
* @public
|
|
140
|
-
*/
|
|
141
|
-
start(): void;
|
|
142
|
-
/**
|
|
143
|
-
* @return {void}
|
|
144
|
-
* @method
|
|
145
|
-
* @public
|
|
146
|
-
*/
|
|
147
|
-
stop(): void;
|
|
148
|
-
/**
|
|
149
|
-
* @return {void}
|
|
150
|
-
* @method
|
|
151
|
-
* @private
|
|
152
|
-
*/
|
|
153
|
-
_$update(): void;
|
|
154
|
-
/**
|
|
155
|
-
* @param {object} target
|
|
156
|
-
* @param {object} from
|
|
157
|
-
* @param {object} to
|
|
158
|
-
* @param {array} names
|
|
159
|
-
* @return {void}
|
|
160
|
-
* @method
|
|
161
|
-
* @private
|
|
162
|
-
*/
|
|
163
|
-
_$updateProperty(target: any, from: any, to: any, names: any[]): void;
|
|
164
|
-
}
|