@next2d/player 1.4.7 → 1.4.11
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/README.cn.md +4 -4
- package/README.ja.md +8 -8
- package/README.md +9 -7
- package/next2d.js +2 -2
- package/package.json +1 -1
package/README.cn.md
CHANGED
|
@@ -18,7 +18,7 @@ Next2D Player 是一个来源于 JavaScript Flash 播放器 "swf2js" 的衍生
|
|
|
18
18
|
|
|
19
19
|
它完整提供了 WebGL 和 WebGL2, 可被用于创建丰富、交互式图形、跨平台应用程序和游戏, 而不需要处理浏览器或者设备兼容性问题。
|
|
20
20
|
|
|
21
|
-
通过使用 Next NoCode
|
|
21
|
+
通过使用 Next NoCode Tool, 你可以直观地创建想象中的动画, 导出的 JSON 数据可以通过使用 Next2D Player 很容易被播放和发布。
|
|
22
22
|
Next2D NoCode Tool 是一个 web 服务, 不需要下载并且谁都可以立马使用。
|
|
23
23
|
|
|
24
24
|
使 2D 娱乐开发更简单! 快速! 舒服!
|
|
@@ -28,6 +28,7 @@ Next2D NoCode Tool 是一个 web 服务, 不需要下载并且谁都可以立马
|
|
|
28
28
|
```javascript
|
|
29
29
|
next2d.load("JSON Path...");
|
|
30
30
|
```
|
|
31
|
+
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
31
32
|
|
|
32
33
|
## 使用之程序示例
|
|
33
34
|
|
|
@@ -46,13 +47,12 @@ loader
|
|
|
46
47
|
.contentLoaderInfo
|
|
47
48
|
.addEventListener(Event.COMPLETE, (event) =>
|
|
48
49
|
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
root.addChild(loaderInfo.content);
|
|
50
|
+
root.addChild(event.currentTarget.content);
|
|
52
51
|
});
|
|
53
52
|
|
|
54
53
|
loader.load(request);
|
|
55
54
|
```
|
|
55
|
+
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
56
56
|
@see [API 文档](https://next2d.app/docs/player)
|
|
57
57
|
|
|
58
58
|
## 设置选项
|
package/README.ja.md
CHANGED
|
@@ -27,6 +27,7 @@ Next2D NoCode Toolはインストール不要でアクセスすれば誰でも
|
|
|
27
27
|
```javascript
|
|
28
28
|
next2d.load("JSON Path...");
|
|
29
29
|
```
|
|
30
|
+
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
30
31
|
|
|
31
32
|
## Use Program Sample
|
|
32
33
|
```javascript
|
|
@@ -44,23 +45,22 @@ loader
|
|
|
44
45
|
.contentLoaderInfo
|
|
45
46
|
.addEventListener(Event.COMPLETE, (event) =>
|
|
46
47
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
root.addChild(loaderInfo.content);
|
|
48
|
+
root.addChild(event.currentTarget.content);
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
loader.load(request);
|
|
53
52
|
```
|
|
53
|
+
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
54
54
|
@see [API Documentation](https://next2d.app/docs/player)
|
|
55
55
|
|
|
56
56
|
## Option settings
|
|
57
57
|
|
|
58
|
-
|
|
|
58
|
+
| プロパティ名 | 型 | デフォルト値 | 説明 |
|
|
59
59
|
| --- | --- | --- | --- |
|
|
60
|
-
| `base` | string | empty |
|
|
61
|
-
| `fullScreen` | boolean | false |
|
|
62
|
-
| `tagId` | string | empty |
|
|
63
|
-
| `bgColor` | array [R,G,B,A] or false | false |
|
|
60
|
+
| `base` | string | empty | 相対パスでJSONを取得する場合、ここで設定したURLがrootとして適用されます。絶対パスの場合はここで設定したURLは適用されません。 |
|
|
61
|
+
| `fullScreen` | boolean | false | Stageクラスで設定した幅と高さを超えて画面全体に描画されます。 |
|
|
62
|
+
| `tagId` | string | empty | IDを指定すると、指定したIDのエレメント内で描画を行います。 |
|
|
63
|
+
| `bgColor` | array [R,G,B,A] or false | false | 背景色の[R,G,B,A]の配列は0~255で指定できます。falseは無色透明です。 |
|
|
64
64
|
|
|
65
65
|
## Related sites
|
|
66
66
|
* [Website](https://next2d.app)
|
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@ Next2D Player
|
|
|
11
11
|
[](https://discord.gg/6c9rv5Uns5)
|
|
12
12
|
[](https://twitter.com/intent/user?screen_name=Next2D)
|
|
13
13
|
|
|
14
|
+
[日本語](./README.ja.md) | [简体中文](./README.cn.md)
|
|
15
|
+
|
|
14
16
|
## About
|
|
15
17
|
Next2D Player is a project derived from the JavaScript FlashPlayer "swf2js".
|
|
16
18
|
The goal is to provide the fastest 2D engine that works on any device.
|
|
@@ -26,6 +28,7 @@ Next2D NoCode Tool is a web service that does not require installation and can b
|
|
|
26
28
|
```javascript
|
|
27
29
|
next2d.load("JSON Path...");
|
|
28
30
|
```
|
|
31
|
+
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
29
32
|
|
|
30
33
|
## Use Program Sample
|
|
31
34
|
```javascript
|
|
@@ -43,23 +46,22 @@ loader
|
|
|
43
46
|
.contentLoaderInfo
|
|
44
47
|
.addEventListener(Event.COMPLETE, (event) =>
|
|
45
48
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
root.addChild(loaderInfo.content);
|
|
49
|
+
root.addChild(event.currentTarget.content);
|
|
49
50
|
});
|
|
50
51
|
|
|
51
52
|
loader.load(request);
|
|
52
53
|
```
|
|
54
|
+
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
53
55
|
@see [API Documentation](https://next2d.app/docs/player)
|
|
54
56
|
|
|
55
57
|
## Option settings
|
|
56
58
|
|
|
57
59
|
| name | value | default | description |
|
|
58
60
|
| --- | --- | --- | --- |
|
|
59
|
-
| `base` | string | empty |
|
|
60
|
-
| `fullScreen` | boolean | false |
|
|
61
|
-
| `tagId` | string | empty |
|
|
62
|
-
| `bgColor` |
|
|
61
|
+
| `base` | string | empty | When acquiring JSON by relative path, the URL set here will be applied as the root. For absolute paths, the URL set here will not be applied. |
|
|
62
|
+
| `fullScreen` | boolean | false | It will be drawn on the entire screen beyond the width and height set in the Stage class. |
|
|
63
|
+
| `tagId` | string | empty | When an ID is specified, drawing will be performed within the element with the specified ID. |
|
|
64
|
+
| `bgColor` | The [R,G,B,A] array of background colors can be specified from 0 to 255. false is colorless and transparent. |
|
|
63
65
|
|
|
64
66
|
## Related sites
|
|
65
67
|
* [Website](https://next2d.app)
|