@next2d/events 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.
@@ -0,0 +1,94 @@
1
+ /**
2
+ * EventPhase クラスは、Event クラスの eventPhase プロパティの値を提供します。
3
+ *
4
+ * The EventPhase class provides values for the eventPhase property of the Event class.
5
+ *
6
+ * @class
7
+ * @memberOf next2d.events
8
+ */
9
+ export class EventPhase {
10
+ /**
11
+ * 指定されたクラスのストリングを返します。
12
+ * Returns the string representation of the specified class.
13
+ *
14
+ * @return {string}
15
+ * @default [class EventPhase]
16
+ * @method
17
+ * @static
18
+ */
19
+ static toString() {
20
+ return "[class EventPhase]";
21
+ }
22
+ /**
23
+ * @description 指定されたクラスの空間名を返します。
24
+ * Returns the space name of the specified class.
25
+ *
26
+ * @member {string}
27
+ * @default next2d.events.EventPhase
28
+ * @const
29
+ * @static
30
+ */
31
+ static get namespace() {
32
+ return "next2d.events.EventPhase";
33
+ }
34
+ /**
35
+ * @description 指定されたオブジェクトのストリングを返します。
36
+ * Returns the string representation of the specified object.
37
+ *
38
+ * @return {string}
39
+ * @default [object EventPhase]
40
+ * @method
41
+ * @public
42
+ */
43
+ toString() {
44
+ return "[object EventPhase]";
45
+ }
46
+ /**
47
+ * @description 指定されたオブジェクトの空間名を返します。
48
+ * Returns the space name of the specified object.
49
+ *
50
+ * @member {string}
51
+ * @default next2d.events.EventPhase
52
+ * @const
53
+ * @public
54
+ */
55
+ get namespace() {
56
+ return "next2d.events.EventPhase";
57
+ }
58
+ /**
59
+ * @description ターゲット段階(イベントフローの 2 番目の段階)です。
60
+ * The target phase, which is the second phase of the event flow.
61
+ *
62
+ * @return {number}
63
+ * @default 2
64
+ * @const
65
+ * @static
66
+ */
67
+ static get AT_TARGET() {
68
+ return 2;
69
+ }
70
+ /**
71
+ * @description ターゲット段階(イベントフローの 2 番目の段階)です。
72
+ * The target phase, which is the second phase of the event flow.
73
+ *
74
+ * @return {number}
75
+ * @default 3
76
+ * @const
77
+ * @static
78
+ */
79
+ static get BUBBLING_PHASE() {
80
+ return 3;
81
+ }
82
+ /**
83
+ * @description キャプチャ段階(イベントフローの最初の段階)です。
84
+ * The capturing phase, which is the first phase of the event flow.
85
+ *
86
+ * @return {number}
87
+ * @default 1
88
+ * @const
89
+ * @static
90
+ */
91
+ static get CAPTURING_PHASE() {
92
+ return 1;
93
+ }
94
+ }
@@ -0,0 +1,89 @@
1
+ import { Event } from "./Event";
2
+ /**
3
+ * FocusEvent オブジェクトは、ユーザーが表示リストの1つのオブジェクトから
4
+ * 別のオブジェクトにフォーカスを変更したときにオブジェクトによって送出されます。
5
+ * 次の2種類のフォーカスイベントがあります。
6
+ *
7
+ * An object dispatches a FocusEvent object when the user changes
8
+ * the focus from one object in the display list to another.
9
+ * There are two types of focus events:
10
+ *
11
+ * <ul>
12
+ * <li>FocusEvent.FOCUS_IN</li>
13
+ * <li>FocusEvent.FOCUS_OUT</li>
14
+ * </ul>
15
+ *
16
+ * @class
17
+ * @memberOf next2d.events
18
+ * @extends Event
19
+ */
20
+ export declare class FocusEvent extends Event {
21
+ /**
22
+ * @param {string} type
23
+ * @param {boolean} [bubbles=true]
24
+ * @param {boolean} [cancelable=false]
25
+ *
26
+ * @constructor
27
+ * @public
28
+ */
29
+ constructor(type: string, bubbles?: boolean, cancelable?: boolean);
30
+ /**
31
+ * 指定されたクラスのストリングを返します。
32
+ * Returns the string representation of the specified class.
33
+ *
34
+ * @return {string}
35
+ * @default [class FocusEvent]
36
+ * @method
37
+ * @static
38
+ */
39
+ static toString(): string;
40
+ /**
41
+ * @description 指定されたクラスの空間名を返します。
42
+ * Returns the space name of the specified class.
43
+ *
44
+ * @member {string}
45
+ * @default next2d.events.FocusEvent
46
+ * @const
47
+ * @static
48
+ */
49
+ static get namespace(): string;
50
+ /**
51
+ * @description 指定されたオブジェクトのストリングを返します。
52
+ * Returns the string representation of the specified object.
53
+ *
54
+ * @return {string}
55
+ * @method
56
+ * @public
57
+ */
58
+ toString(): string;
59
+ /**
60
+ * @description 指定されたオブジェクトの空間名を返します。
61
+ * Returns the space name of the specified object.
62
+ *
63
+ * @member {string}
64
+ * @default next2d.events.FocusEvent
65
+ * @const
66
+ * @public
67
+ */
68
+ get namespace(): string;
69
+ /**
70
+ * @description focusIn イベントオブジェクトの type プロパティ値を定義します。
71
+ * Defines the value of the type property of a focusIn event object.
72
+ *
73
+ * @return {string}
74
+ * @default focusIn
75
+ * @const
76
+ * @static
77
+ */
78
+ static get FOCUS_IN(): string;
79
+ /**
80
+ * @description focusOut イベントオブジェクトの type プロパティ値を定義します。
81
+ * Defines the value of the type property of a focusOut event object.
82
+ *
83
+ * @return {string}
84
+ * @default focusOut
85
+ * @const
86
+ * @static
87
+ */
88
+ static get FOCUS_OUT(): string;
89
+ }
@@ -0,0 +1,103 @@
1
+ import { Event } from "./Event";
2
+ /**
3
+ * FocusEvent オブジェクトは、ユーザーが表示リストの1つのオブジェクトから
4
+ * 別のオブジェクトにフォーカスを変更したときにオブジェクトによって送出されます。
5
+ * 次の2種類のフォーカスイベントがあります。
6
+ *
7
+ * An object dispatches a FocusEvent object when the user changes
8
+ * the focus from one object in the display list to another.
9
+ * There are two types of focus events:
10
+ *
11
+ * <ul>
12
+ * <li>FocusEvent.FOCUS_IN</li>
13
+ * <li>FocusEvent.FOCUS_OUT</li>
14
+ * </ul>
15
+ *
16
+ * @class
17
+ * @memberOf next2d.events
18
+ * @extends Event
19
+ */
20
+ export class FocusEvent extends Event {
21
+ /**
22
+ * @param {string} type
23
+ * @param {boolean} [bubbles=true]
24
+ * @param {boolean} [cancelable=false]
25
+ *
26
+ * @constructor
27
+ * @public
28
+ */
29
+ constructor(type, bubbles = true, cancelable = false) {
30
+ super(type, bubbles, cancelable);
31
+ }
32
+ /**
33
+ * 指定されたクラスのストリングを返します。
34
+ * Returns the string representation of the specified class.
35
+ *
36
+ * @return {string}
37
+ * @default [class FocusEvent]
38
+ * @method
39
+ * @static
40
+ */
41
+ static toString() {
42
+ return "[class FocusEvent]";
43
+ }
44
+ /**
45
+ * @description 指定されたクラスの空間名を返します。
46
+ * Returns the space name of the specified class.
47
+ *
48
+ * @member {string}
49
+ * @default next2d.events.FocusEvent
50
+ * @const
51
+ * @static
52
+ */
53
+ static get namespace() {
54
+ return "next2d.events.FocusEvent";
55
+ }
56
+ /**
57
+ * @description 指定されたオブジェクトのストリングを返します。
58
+ * Returns the string representation of the specified object.
59
+ *
60
+ * @return {string}
61
+ * @method
62
+ * @public
63
+ */
64
+ toString() {
65
+ return this.formatToString("FocusEvent", "type", "bubbles", "cancelable", "eventPhase");
66
+ }
67
+ /**
68
+ * @description 指定されたオブジェクトの空間名を返します。
69
+ * Returns the space name of the specified object.
70
+ *
71
+ * @member {string}
72
+ * @default next2d.events.FocusEvent
73
+ * @const
74
+ * @public
75
+ */
76
+ get namespace() {
77
+ return "next2d.events.FocusEvent";
78
+ }
79
+ /**
80
+ * @description focusIn イベントオブジェクトの type プロパティ値を定義します。
81
+ * Defines the value of the type property of a focusIn event object.
82
+ *
83
+ * @return {string}
84
+ * @default focusIn
85
+ * @const
86
+ * @static
87
+ */
88
+ static get FOCUS_IN() {
89
+ return "focusIn";
90
+ }
91
+ /**
92
+ * @description focusOut イベントオブジェクトの type プロパティ値を定義します。
93
+ * Defines the value of the type property of a focusOut event object.
94
+ *
95
+ * @return {string}
96
+ * @default focusOut
97
+ * @const
98
+ * @static
99
+ */
100
+ static get FOCUS_OUT() {
101
+ return "focusOut";
102
+ }
103
+ }
@@ -0,0 +1,107 @@
1
+ import { Event } from "./Event";
2
+ import { URLRequestHeader } from "@next2d/net";
3
+ /**
4
+ * ネットワーク要求が HTTP ステータスコードを返すと、アプリケーションによって HTTPStatusEvent オブジェクトが送出されます。
5
+ *
6
+ * The application dispatches HTTPStatusEvent objects when a network request returns an HTTP status code.
7
+ *
8
+ * @class
9
+ * @memberOf next2d.events
10
+ * @extends Event
11
+ */
12
+ export declare class HTTPStatusEvent extends Event {
13
+ private readonly _$status;
14
+ private readonly _$responseHeaders;
15
+ private readonly _$responseURL;
16
+ /**
17
+ * @param {string} type
18
+ * @param {boolean} [bubbles=false]
19
+ * @param {boolean} [cancelable=false]
20
+ * @param {number} [status=0]
21
+ * @param {string} [response_url=""]
22
+ * @param {array} [response_headers=[]]
23
+ *
24
+ * @constructor
25
+ * @public
26
+ */
27
+ constructor(type: string, bubbles?: boolean, cancelable?: boolean, status?: number, response_url?: string, response_headers?: URLRequestHeader[]);
28
+ /**
29
+ * 指定されたクラスのストリングを返します。
30
+ * Returns the string representation of the specified class.
31
+ *
32
+ * @return {string}
33
+ * @default [class HTTPStatusEvent]
34
+ * @method
35
+ * @static
36
+ */
37
+ static toString(): string;
38
+ /**
39
+ * @description 指定されたクラスの空間名を返します。
40
+ * Returns the space name of the specified class.
41
+ *
42
+ * @member {string}
43
+ * @default next2d.events.HTTPStatusEvent
44
+ * @const
45
+ * @static
46
+ */
47
+ static get namespace(): string;
48
+ /**
49
+ * @description 指定されたオブジェクトのストリングを返します。
50
+ * Returns the string representation of the specified object.
51
+ *
52
+ * @return {string}
53
+ * @method
54
+ * @public
55
+ */
56
+ toString(): string;
57
+ /**
58
+ * @description 指定されたオブジェクトの空間名を返します。
59
+ * Returns the space name of the specified object.
60
+ *
61
+ * @member {string}
62
+ * @default next2d.events.HTTPStatusEvent
63
+ * @const
64
+ * @public
65
+ */
66
+ get namespace(): string;
67
+ /**
68
+ * @description HTTPStatusEvent.HTTP_STATUS 定数は、
69
+ * httpStatus イベントオブジェクトの type プロパティの値を定義します。
70
+ * The HTTPStatusEvent.HTTP_STATUS constant defines the value
71
+ * of the type property of a httpStatus event object.
72
+ *
73
+ * @return {string}
74
+ * @default httpStatus
75
+ * @const
76
+ * @static
77
+ */
78
+ static get HTTP_STATUS(): string;
79
+ /**
80
+ * @description 返された応答ヘッダー(URLRequestHeader オブジェクトの配列)です。
81
+ * The response headers that the response returned,
82
+ * as an array of URLRequestHeader objects.
83
+ *
84
+ * @return {array}
85
+ * @readonly
86
+ * @public
87
+ */
88
+ get responseHeaders(): URLRequestHeader[];
89
+ /**
90
+ * @description 応答の返送元の URL です。
91
+ * The URL that the response was returned from.
92
+ *
93
+ * @return {string}
94
+ * @readonly
95
+ * @public
96
+ */
97
+ get responseURL(): string;
98
+ /**
99
+ * @description サーバーから返された HTTP ステータスコードです。
100
+ * The HTTP status code returned by the server.
101
+ *
102
+ * @return {number}
103
+ * @readonly
104
+ * @public
105
+ */
106
+ get status(): number;
107
+ }
@@ -0,0 +1,139 @@
1
+ import { Event } from "./Event";
2
+ /**
3
+ * ネットワーク要求が HTTP ステータスコードを返すと、アプリケーションによって HTTPStatusEvent オブジェクトが送出されます。
4
+ *
5
+ * The application dispatches HTTPStatusEvent objects when a network request returns an HTTP status code.
6
+ *
7
+ * @class
8
+ * @memberOf next2d.events
9
+ * @extends Event
10
+ */
11
+ export class HTTPStatusEvent extends Event {
12
+ /**
13
+ * @param {string} type
14
+ * @param {boolean} [bubbles=false]
15
+ * @param {boolean} [cancelable=false]
16
+ * @param {number} [status=0]
17
+ * @param {string} [response_url=""]
18
+ * @param {array} [response_headers=[]]
19
+ *
20
+ * @constructor
21
+ * @public
22
+ */
23
+ constructor(type, bubbles = false, cancelable = false, status = 0, response_url = "", response_headers = []) {
24
+ super(type, bubbles, cancelable);
25
+ /**
26
+ * @type {number}
27
+ * @default 0
28
+ * @private
29
+ */
30
+ this._$status = status | 0;
31
+ /**
32
+ * @type {array}
33
+ * @default {array}
34
+ * @private
35
+ */
36
+ this._$responseHeaders = response_headers;
37
+ /**
38
+ * @type {string}
39
+ * @default ""
40
+ * @private
41
+ */
42
+ this._$responseURL = response_url;
43
+ }
44
+ /**
45
+ * 指定されたクラスのストリングを返します。
46
+ * Returns the string representation of the specified class.
47
+ *
48
+ * @return {string}
49
+ * @default [class HTTPStatusEvent]
50
+ * @method
51
+ * @static
52
+ */
53
+ static toString() {
54
+ return "[class HTTPStatusEvent]";
55
+ }
56
+ /**
57
+ * @description 指定されたクラスの空間名を返します。
58
+ * Returns the space name of the specified class.
59
+ *
60
+ * @member {string}
61
+ * @default next2d.events.HTTPStatusEvent
62
+ * @const
63
+ * @static
64
+ */
65
+ static get namespace() {
66
+ return "next2d.events.HTTPStatusEvent";
67
+ }
68
+ /**
69
+ * @description 指定されたオブジェクトのストリングを返します。
70
+ * Returns the string representation of the specified object.
71
+ *
72
+ * @return {string}
73
+ * @method
74
+ * @public
75
+ */
76
+ toString() {
77
+ return this.formatToString("HTTPStatusEvent", "type", "bubbles", "cancelable", "eventPhase", "status", "responseURL");
78
+ }
79
+ /**
80
+ * @description 指定されたオブジェクトの空間名を返します。
81
+ * Returns the space name of the specified object.
82
+ *
83
+ * @member {string}
84
+ * @default next2d.events.HTTPStatusEvent
85
+ * @const
86
+ * @public
87
+ */
88
+ get namespace() {
89
+ return "next2d.events.HTTPStatusEvent";
90
+ }
91
+ /**
92
+ * @description HTTPStatusEvent.HTTP_STATUS 定数は、
93
+ * httpStatus イベントオブジェクトの type プロパティの値を定義します。
94
+ * The HTTPStatusEvent.HTTP_STATUS constant defines the value
95
+ * of the type property of a httpStatus event object.
96
+ *
97
+ * @return {string}
98
+ * @default httpStatus
99
+ * @const
100
+ * @static
101
+ */
102
+ static get HTTP_STATUS() {
103
+ return "httpStatus";
104
+ }
105
+ /**
106
+ * @description 返された応答ヘッダー(URLRequestHeader オブジェクトの配列)です。
107
+ * The response headers that the response returned,
108
+ * as an array of URLRequestHeader objects.
109
+ *
110
+ * @return {array}
111
+ * @readonly
112
+ * @public
113
+ */
114
+ get responseHeaders() {
115
+ return this._$responseHeaders;
116
+ }
117
+ /**
118
+ * @description 応答の返送元の URL です。
119
+ * The URL that the response was returned from.
120
+ *
121
+ * @return {string}
122
+ * @readonly
123
+ * @public
124
+ */
125
+ get responseURL() {
126
+ return this._$responseURL;
127
+ }
128
+ /**
129
+ * @description サーバーから返された HTTP ステータスコードです。
130
+ * The HTTP status code returned by the server.
131
+ *
132
+ * @return {number}
133
+ * @readonly
134
+ * @public
135
+ */
136
+ get status() {
137
+ return this._$status;
138
+ }
139
+ }
@@ -0,0 +1,82 @@
1
+ import { Event } from "./Event";
2
+ /**
3
+ * IOErrorEvent オブジェクトは、エラーが発生して入力操作または出力操作が失敗したときに送出されます。
4
+ *
5
+ * An IOErrorEvent object is dispatched when an error causes input or output operations to fail.
6
+ *
7
+ * @class
8
+ * @memberOf next2d.events
9
+ * @extends Event
10
+ */
11
+ export declare class IOErrorEvent extends Event {
12
+ private readonly _$text;
13
+ /**
14
+ * @param {string} type
15
+ * @param {boolean} [bubbles=true]
16
+ * @param {boolean} [cancelable=false]
17
+ * @param {string} [text=""]
18
+ *
19
+ * @constructor
20
+ * @public
21
+ */
22
+ constructor(type: string, bubbles?: boolean, cancelable?: boolean, text?: string);
23
+ /**
24
+ * 指定されたクラスのストリングを返します。
25
+ * Returns the string representation of the specified class.
26
+ *
27
+ * @return {string}
28
+ * @default [class IOErrorEvent]
29
+ * @method
30
+ * @static
31
+ */
32
+ static toString(): string;
33
+ /**
34
+ * @description 指定されたクラスの空間名を返します。
35
+ * Returns the space name of the specified class.
36
+ *
37
+ * @member {string}
38
+ * @default next2d.events.IOErrorEvent
39
+ * @const
40
+ * @static
41
+ */
42
+ static get namespace(): string;
43
+ /**
44
+ * @description 指定されたオブジェクトのストリングを返します。
45
+ * Returns the string representation of the specified object.
46
+ *
47
+ * @return {string}
48
+ * @method
49
+ * @public
50
+ */
51
+ toString(): string;
52
+ /**
53
+ * @description 指定されたオブジェクトの空間名を返します。
54
+ * Returns the space name of the specified object.
55
+ *
56
+ * @member {string}
57
+ * @default next2d.events.IOErrorEvent
58
+ * @const
59
+ * @public
60
+ */
61
+ get namespace(): string;
62
+ /**
63
+ * @description ioError イベントオブジェクトの type プロパティ値を定義します。
64
+ * Defines the value of the type property of an ioError event object.
65
+ *
66
+ * @return {string}
67
+ * @default ioError
68
+ * @const
69
+ * @static
70
+ */
71
+ static get IO_ERROR(): string;
72
+ /**
73
+ * @description エラーテキストです。
74
+ * error text.
75
+ *
76
+ * @return {string}
77
+ * @default ""
78
+ * @readonly
79
+ * @public
80
+ */
81
+ get text(): string;
82
+ }