@next2d/events 3.15.1 → 3.16.0
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 +1 -1
- package/src/Event.js +0 -106
- package/src/EventDispatcher.js +0 -6
- package/src/GamepadEvent.js +0 -70
- package/src/HTTPStatusEvent.js +0 -43
- package/src/IOErrorEvent.js +0 -15
- package/src/ProgressEvent.js +0 -31
package/package.json
CHANGED
package/src/Event.js
CHANGED
|
@@ -26,112 +26,6 @@ export class Event {
|
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
constructor(type, bubbles = false) {
|
|
29
|
-
/**
|
|
30
|
-
* @description イベントのタイプです。
|
|
31
|
-
* The type of event.
|
|
32
|
-
*
|
|
33
|
-
* @member {string}
|
|
34
|
-
* @readonly
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
Object.defineProperty(this, "type", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true,
|
|
41
|
-
value: void 0
|
|
42
|
-
});
|
|
43
|
-
/**
|
|
44
|
-
* @description イベントがバブリングイベントかどうかを示します。
|
|
45
|
-
* Indicates whether an event is a bubbling event.
|
|
46
|
-
*
|
|
47
|
-
* @member {boolean}
|
|
48
|
-
* @default false
|
|
49
|
-
* @readonly
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
|
-
Object.defineProperty(this, "bubbles", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
configurable: true,
|
|
55
|
-
writable: true,
|
|
56
|
-
value: void 0
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* @description 実行される関数
|
|
60
|
-
* The function to execute.
|
|
61
|
-
*
|
|
62
|
-
* @type {Function | null}
|
|
63
|
-
* @default null
|
|
64
|
-
* @public
|
|
65
|
-
*/
|
|
66
|
-
Object.defineProperty(this, "listener", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true,
|
|
69
|
-
writable: true,
|
|
70
|
-
value: void 0
|
|
71
|
-
});
|
|
72
|
-
/**
|
|
73
|
-
* @description イベント登録を行なったオブジェクト
|
|
74
|
-
* The object that registered the event.
|
|
75
|
-
*
|
|
76
|
-
* @type {EventDispatcher | null}
|
|
77
|
-
* @default null
|
|
78
|
-
* @public
|
|
79
|
-
*/
|
|
80
|
-
Object.defineProperty(this, "target", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
configurable: true,
|
|
83
|
-
writable: true,
|
|
84
|
-
value: void 0
|
|
85
|
-
});
|
|
86
|
-
/**
|
|
87
|
-
* @description イベントを発火したオブジェクト
|
|
88
|
-
* The object that fired the event.
|
|
89
|
-
*
|
|
90
|
-
* @type {EventDispatcher | null}
|
|
91
|
-
* @default null
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
Object.defineProperty(this, "currentTarget", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
configurable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
value: void 0
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* @description イベントフェーズ
|
|
102
|
-
* Event phase.
|
|
103
|
-
*
|
|
104
|
-
* @see {EventPhase}
|
|
105
|
-
* @type {number}
|
|
106
|
-
* @default EventPhase.AT_TARGET
|
|
107
|
-
* @public
|
|
108
|
-
*/
|
|
109
|
-
Object.defineProperty(this, "eventPhase", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
configurable: true,
|
|
112
|
-
writable: true,
|
|
113
|
-
value: void 0
|
|
114
|
-
});
|
|
115
|
-
/**
|
|
116
|
-
* @type {boolean}
|
|
117
|
-
* @private
|
|
118
|
-
*/
|
|
119
|
-
Object.defineProperty(this, "_$stopImmediatePropagation", {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
configurable: true,
|
|
122
|
-
writable: true,
|
|
123
|
-
value: void 0
|
|
124
|
-
});
|
|
125
|
-
/**
|
|
126
|
-
* @type {boolean}
|
|
127
|
-
* @private
|
|
128
|
-
*/
|
|
129
|
-
Object.defineProperty(this, "_$stopPropagation", {
|
|
130
|
-
enumerable: true,
|
|
131
|
-
configurable: true,
|
|
132
|
-
writable: true,
|
|
133
|
-
value: void 0
|
|
134
|
-
});
|
|
135
29
|
/**
|
|
136
30
|
* @type {string}
|
|
137
31
|
* @private
|
package/src/EventDispatcher.js
CHANGED
package/src/GamepadEvent.js
CHANGED
|
@@ -17,76 +17,6 @@ export class GamepadEvent extends Event {
|
|
|
17
17
|
*/
|
|
18
18
|
constructor(type, bubbles = true) {
|
|
19
19
|
super(type, bubbles);
|
|
20
|
-
/**
|
|
21
|
-
* @description ゲームパッドのインデックス番号
|
|
22
|
-
* Index number of the gamepad
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @default 0
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
Object.defineProperty(this, "gamepadIndex", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true,
|
|
31
|
-
writable: true,
|
|
32
|
-
value: void 0
|
|
33
|
-
});
|
|
34
|
-
/**
|
|
35
|
-
* @description ボタンイベント時のボタン番号
|
|
36
|
-
* Button number at the time of button event
|
|
37
|
-
*
|
|
38
|
-
* @type {number | undefined}
|
|
39
|
-
* @default undefined
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
Object.defineProperty(this, "buttonIndex", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
configurable: true,
|
|
45
|
-
writable: true,
|
|
46
|
-
value: void 0
|
|
47
|
-
});
|
|
48
|
-
/**
|
|
49
|
-
* @description ボタンの押し具合 (0.0〜1.0)
|
|
50
|
-
* The degree of button press (0.0 to 1.0)
|
|
51
|
-
*
|
|
52
|
-
* @type {number | undefined}
|
|
53
|
-
* @default undefined
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
Object.defineProperty(this, "buttonValue", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true,
|
|
60
|
-
value: void 0
|
|
61
|
-
});
|
|
62
|
-
/**
|
|
63
|
-
* @description 軸イベント時の軸番号
|
|
64
|
-
* Axis number at the time of axis event
|
|
65
|
-
*
|
|
66
|
-
* @type {number | undefined}
|
|
67
|
-
* @default undefined
|
|
68
|
-
* @public
|
|
69
|
-
*/
|
|
70
|
-
Object.defineProperty(this, "axisIndex", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
configurable: true,
|
|
73
|
-
writable: true,
|
|
74
|
-
value: void 0
|
|
75
|
-
});
|
|
76
|
-
/**
|
|
77
|
-
* @description 軸の値 (-1.0〜1.0)
|
|
78
|
-
* Axis value (-1.0 to 1.0)
|
|
79
|
-
*
|
|
80
|
-
* @type {number | undefined}
|
|
81
|
-
* @default undefined
|
|
82
|
-
* @public
|
|
83
|
-
*/
|
|
84
|
-
Object.defineProperty(this, "axisValue", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
configurable: true,
|
|
87
|
-
writable: true,
|
|
88
|
-
value: void 0
|
|
89
|
-
});
|
|
90
20
|
this.gamepadIndex = 0;
|
|
91
21
|
this.buttonIndex = undefined;
|
|
92
22
|
this.buttonValue = undefined;
|
package/src/HTTPStatusEvent.js
CHANGED
|
@@ -20,49 +20,6 @@ export class HTTPStatusEvent extends Event {
|
|
|
20
20
|
*/
|
|
21
21
|
constructor(type, bubbles = false, status = 0, response_url = "", response_headers = []) {
|
|
22
22
|
super(type, bubbles);
|
|
23
|
-
/**
|
|
24
|
-
* @description サーバーから返された HTTP ステータスコードです。
|
|
25
|
-
* The HTTP status code returned by the server.
|
|
26
|
-
*
|
|
27
|
-
* @return {number}
|
|
28
|
-
* @readonly
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
Object.defineProperty(this, "status", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: void 0
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* @description 返された応答ヘッダー(URLRequestHeader オブジェクトの配列)です。
|
|
39
|
-
* The response headers that the response returned,
|
|
40
|
-
* as an array of URLRequestHeader objects.
|
|
41
|
-
*
|
|
42
|
-
* @return {array}
|
|
43
|
-
* @readonly
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
Object.defineProperty(this, "responseHeaders", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true,
|
|
50
|
-
value: void 0
|
|
51
|
-
});
|
|
52
|
-
/**
|
|
53
|
-
* @description 応答の返送元の URL です。
|
|
54
|
-
* The URL that the response was returned from.
|
|
55
|
-
*
|
|
56
|
-
* @return {string}
|
|
57
|
-
* @readonly
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
60
|
-
Object.defineProperty(this, "responseURL", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
configurable: true,
|
|
63
|
-
writable: true,
|
|
64
|
-
value: void 0
|
|
65
|
-
});
|
|
66
23
|
/**
|
|
67
24
|
* @type {number}
|
|
68
25
|
* @default 0
|
package/src/IOErrorEvent.js
CHANGED
|
@@ -18,21 +18,6 @@ export class IOErrorEvent extends Event {
|
|
|
18
18
|
*/
|
|
19
19
|
constructor(type, bubbles = false, text = "") {
|
|
20
20
|
super(type, bubbles);
|
|
21
|
-
/**
|
|
22
|
-
* @description エラーテキストです。
|
|
23
|
-
* error text.
|
|
24
|
-
*
|
|
25
|
-
* @return {string}
|
|
26
|
-
* @default ""
|
|
27
|
-
* @readonly
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
Object.defineProperty(this, "text", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true,
|
|
34
|
-
value: void 0
|
|
35
|
-
});
|
|
36
21
|
this.text = `${text}`;
|
|
37
22
|
}
|
|
38
23
|
/**
|
package/src/ProgressEvent.js
CHANGED
|
@@ -21,37 +21,6 @@ export class ProgressEvent extends Event {
|
|
|
21
21
|
*/
|
|
22
22
|
constructor(type, bubbles = false, bytes_loaded = 0, bytes_total = 0) {
|
|
23
23
|
super(type, bubbles);
|
|
24
|
-
/**
|
|
25
|
-
* @description リスナーがイベントを処理しているときに読み込まれたアイテム数またはバイト数です。
|
|
26
|
-
* The number of items or bytes loaded when the listener processes the event.
|
|
27
|
-
*
|
|
28
|
-
* @return {number}
|
|
29
|
-
* @default 0
|
|
30
|
-
* @readonly
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
Object.defineProperty(this, "bytesLoaded", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true,
|
|
37
|
-
value: void 0
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* @description 読み込みプロセスが成功した場合に読み込まれるアイテムまたはバイトの総数です。
|
|
41
|
-
* The total number of items or bytes that will be loaded
|
|
42
|
-
* if the loading process succeeds.
|
|
43
|
-
*
|
|
44
|
-
* @return {number}
|
|
45
|
-
* @default 0
|
|
46
|
-
* @readonly
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
Object.defineProperty(this, "bytesTotal", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true,
|
|
52
|
-
writable: true,
|
|
53
|
-
value: void 0
|
|
54
|
-
});
|
|
55
24
|
this.bytesLoaded = bytes_loaded | 0;
|
|
56
25
|
this.bytesTotal = bytes_total | 0;
|
|
57
26
|
}
|