@next2d/display 3.4.1 → 3.6.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 +9 -9
- package/src/Loader.d.ts +18 -0
- package/src/Loader.js +22 -0
- package/src/Sprite.d.ts +18 -0
- package/src/Sprite.js +22 -0
- package/src/Stage.d.ts +27 -0
- package/src/Stage.js +37 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/display",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Next2D Display Package",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@next2d/ui": "3.
|
|
28
|
-
"@next2d/text": "3.
|
|
29
|
-
"@next2d/geom": "3.
|
|
30
|
-
"@next2d/media": "3.
|
|
31
|
-
"@next2d/net": "3.
|
|
32
|
-
"@next2d/events": "3.
|
|
33
|
-
"@next2d/filters": "3.
|
|
34
|
-
"@next2d/render-queue": "3.
|
|
27
|
+
"@next2d/ui": "3.6.0",
|
|
28
|
+
"@next2d/text": "3.6.0",
|
|
29
|
+
"@next2d/geom": "3.6.0",
|
|
30
|
+
"@next2d/media": "3.6.0",
|
|
31
|
+
"@next2d/net": "3.6.0",
|
|
32
|
+
"@next2d/events": "3.6.0",
|
|
33
|
+
"@next2d/filters": "3.6.0",
|
|
34
|
+
"@next2d/render-queue": "3.6.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/Loader.d.ts
CHANGED
|
@@ -36,6 +36,24 @@ export declare class Loader {
|
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
38
|
constructor();
|
|
39
|
+
/**
|
|
40
|
+
* @description 指定されたクラスの空間名を返します。
|
|
41
|
+
* Returns the space name of the specified class.
|
|
42
|
+
*
|
|
43
|
+
* @return {string}
|
|
44
|
+
* @const
|
|
45
|
+
* @static
|
|
46
|
+
*/
|
|
47
|
+
static get namespace(): string;
|
|
48
|
+
/**
|
|
49
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
50
|
+
* Returns the space name of the specified object.
|
|
51
|
+
*
|
|
52
|
+
* @return {string}
|
|
53
|
+
* @const
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
get namespace(): string;
|
|
39
57
|
/**
|
|
40
58
|
* @description load メソッドを使用して読み込まれた JSON のルート表示オブジェクトが含まれます。
|
|
41
59
|
* It contains a JSON root display object loaded using the load method.
|
package/src/Loader.js
CHANGED
|
@@ -45,6 +45,28 @@ export class Loader {
|
|
|
45
45
|
this.root = null;
|
|
46
46
|
this.contentLoaderInfo = new LoaderInfo();
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* @description 指定されたクラスの空間名を返します。
|
|
50
|
+
* Returns the space name of the specified class.
|
|
51
|
+
*
|
|
52
|
+
* @return {string}
|
|
53
|
+
* @const
|
|
54
|
+
* @static
|
|
55
|
+
*/
|
|
56
|
+
static get namespace() {
|
|
57
|
+
return "next2d.display.Loader";
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
61
|
+
* Returns the space name of the specified object.
|
|
62
|
+
*
|
|
63
|
+
* @return {string}
|
|
64
|
+
* @const
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
get namespace() {
|
|
68
|
+
return "next2d.display.Loader";
|
|
69
|
+
}
|
|
48
70
|
/**
|
|
49
71
|
* @description load メソッドを使用して読み込まれた JSON のルート表示オブジェクトが含まれます。
|
|
50
72
|
* It contains a JSON root display object loaded using the load method.
|
package/src/Sprite.d.ts
CHANGED
|
@@ -91,6 +91,24 @@ export declare class Sprite extends DisplayObjectContainer {
|
|
|
91
91
|
* @public
|
|
92
92
|
*/
|
|
93
93
|
constructor();
|
|
94
|
+
/**
|
|
95
|
+
* @description 指定されたクラスの空間名を返します。
|
|
96
|
+
* Returns the space name of the specified class.
|
|
97
|
+
*
|
|
98
|
+
* @return {string}
|
|
99
|
+
* @const
|
|
100
|
+
* @static
|
|
101
|
+
*/
|
|
102
|
+
static get namespace(): string;
|
|
103
|
+
/**
|
|
104
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
105
|
+
* Returns the space name of the specified object.
|
|
106
|
+
*
|
|
107
|
+
* @return {string}
|
|
108
|
+
* @const
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
get namespace(): string;
|
|
94
112
|
/**
|
|
95
113
|
* @description このスプライト内のサウンドを制御します。
|
|
96
114
|
* Controls sound within this sprite.
|
package/src/Sprite.js
CHANGED
|
@@ -149,6 +149,28 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
149
149
|
// private
|
|
150
150
|
this._$soundTransform = null;
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* @description 指定されたクラスの空間名を返します。
|
|
154
|
+
* Returns the space name of the specified class.
|
|
155
|
+
*
|
|
156
|
+
* @return {string}
|
|
157
|
+
* @const
|
|
158
|
+
* @static
|
|
159
|
+
*/
|
|
160
|
+
static get namespace() {
|
|
161
|
+
return "next2d.display.Sprite";
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
165
|
+
* Returns the space name of the specified object.
|
|
166
|
+
*
|
|
167
|
+
* @return {string}
|
|
168
|
+
* @const
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
get namespace() {
|
|
172
|
+
return "next2d.display.Sprite";
|
|
173
|
+
}
|
|
152
174
|
/**
|
|
153
175
|
* @description このスプライト内のサウンドを制御します。
|
|
154
176
|
* Controls sound within this sprite.
|
package/src/Stage.d.ts
CHANGED
|
@@ -79,11 +79,38 @@ export declare class Stage extends DisplayObjectContainer {
|
|
|
79
79
|
* @public
|
|
80
80
|
*/
|
|
81
81
|
private _$backgroundColor;
|
|
82
|
+
/**
|
|
83
|
+
* @description Stageの機能を所持しているかを返却
|
|
84
|
+
* Returns whether Stage functions are possessed.
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @readonly
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
readonly isStage: boolean;
|
|
82
91
|
/**
|
|
83
92
|
* @constructor
|
|
84
93
|
* @public
|
|
85
94
|
*/
|
|
86
95
|
constructor();
|
|
96
|
+
/**
|
|
97
|
+
* @description 指定されたクラスの空間名を返します。
|
|
98
|
+
* Returns the space name of the specified class.
|
|
99
|
+
*
|
|
100
|
+
* @return {string}
|
|
101
|
+
* @const
|
|
102
|
+
* @static
|
|
103
|
+
*/
|
|
104
|
+
static get namespace(): string;
|
|
105
|
+
/**
|
|
106
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
107
|
+
* Returns the space name of the specified object.
|
|
108
|
+
*
|
|
109
|
+
* @return {string}
|
|
110
|
+
* @const
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
get namespace(): string;
|
|
87
114
|
/**
|
|
88
115
|
* @description 背景色
|
|
89
116
|
* Background color
|
package/src/Stage.js
CHANGED
|
@@ -127,6 +127,20 @@ export class Stage extends DisplayObjectContainer {
|
|
|
127
127
|
writable: true,
|
|
128
128
|
value: void 0
|
|
129
129
|
});
|
|
130
|
+
/**
|
|
131
|
+
* @description Stageの機能を所持しているかを返却
|
|
132
|
+
* Returns whether Stage functions are possessed.
|
|
133
|
+
*
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @readonly
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
Object.defineProperty(this, "isStage", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
configurable: true,
|
|
141
|
+
writable: true,
|
|
142
|
+
value: void 0
|
|
143
|
+
});
|
|
130
144
|
this.stageWidth = 0;
|
|
131
145
|
this.stageHeight = 0;
|
|
132
146
|
this.frameRate = 1;
|
|
@@ -136,6 +150,29 @@ export class Stage extends DisplayObjectContainer {
|
|
|
136
150
|
// private
|
|
137
151
|
this._$ready = false;
|
|
138
152
|
this._$backgroundColor = -1;
|
|
153
|
+
this.isStage = true;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @description 指定されたクラスの空間名を返します。
|
|
157
|
+
* Returns the space name of the specified class.
|
|
158
|
+
*
|
|
159
|
+
* @return {string}
|
|
160
|
+
* @const
|
|
161
|
+
* @static
|
|
162
|
+
*/
|
|
163
|
+
static get namespace() {
|
|
164
|
+
return "next2d.display.Stage";
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
168
|
+
* Returns the space name of the specified object.
|
|
169
|
+
*
|
|
170
|
+
* @return {string}
|
|
171
|
+
* @const
|
|
172
|
+
* @public
|
|
173
|
+
*/
|
|
174
|
+
get namespace() {
|
|
175
|
+
return "next2d.display.Stage";
|
|
139
176
|
}
|
|
140
177
|
/**
|
|
141
178
|
* @description 背景色
|