@next2d/core 1.17.2 → 1.17.4
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/Next2D.js +14 -17
- package/package.json +12 -12
package/dist/Next2D.js
CHANGED
|
@@ -179,23 +179,20 @@ export class Next2D {
|
|
|
179
179
|
*/
|
|
180
180
|
createRootMovieClip(width = 240, height = 240, fps = 24, options = null) {
|
|
181
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
player.play();
|
|
197
|
-
return root;
|
|
198
|
-
});
|
|
182
|
+
yield Promise.all(this._$promises);
|
|
183
|
+
$poolArray(this._$promises);
|
|
184
|
+
const player = this._$player;
|
|
185
|
+
// setup
|
|
186
|
+
player.width = width | 0;
|
|
187
|
+
player.height = height | 0;
|
|
188
|
+
player.mode = "create";
|
|
189
|
+
player.stage._$frameRate = fps | 0;
|
|
190
|
+
player.setOptions(options);
|
|
191
|
+
player._$initialize();
|
|
192
|
+
const root = player.stage.addChild(new Sprite());
|
|
193
|
+
player._$loadStatus = Player.LOAD_END;
|
|
194
|
+
player.play();
|
|
195
|
+
return root;
|
|
199
196
|
});
|
|
200
197
|
}
|
|
201
198
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/core",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.4",
|
|
4
4
|
"description": "Next2D Core Packages",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@tvon.jp> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@next2d/interface": "1.17.
|
|
36
|
-
"@next2d/webgl": "1.17.
|
|
37
|
-
"@next2d/display": "1.17.
|
|
38
|
-
"@next2d/core": "1.17.
|
|
39
|
-
"@next2d/net": "1.17.
|
|
40
|
-
"@next2d/share": "1.17.
|
|
41
|
-
"@next2d/events": "1.17.
|
|
42
|
-
"@next2d/media": "1.17.
|
|
43
|
-
"@next2d/text": "1.17.
|
|
44
|
-
"@next2d/geom": "1.17.
|
|
45
|
-
"@next2d/util": "1.17.
|
|
35
|
+
"@next2d/interface": "1.17.4",
|
|
36
|
+
"@next2d/webgl": "1.17.4",
|
|
37
|
+
"@next2d/display": "1.17.4",
|
|
38
|
+
"@next2d/core": "1.17.4",
|
|
39
|
+
"@next2d/net": "1.17.4",
|
|
40
|
+
"@next2d/share": "1.17.4",
|
|
41
|
+
"@next2d/events": "1.17.4",
|
|
42
|
+
"@next2d/media": "1.17.4",
|
|
43
|
+
"@next2d/text": "1.17.4",
|
|
44
|
+
"@next2d/geom": "1.17.4",
|
|
45
|
+
"@next2d/util": "1.17.4"
|
|
46
46
|
}
|
|
47
47
|
}
|