@next2d/player 1.8.1 → 1.9.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/README.cn.md +8 -6
- package/README.ja.md +12 -12
- package/README.md +9 -12
- package/next2d.js +2 -2
- package/package.json +1 -1
package/README.cn.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
|
+
[English](./README.md) | [日本語](./README.ja.md)
|
|
15
|
+
|
|
14
16
|
## 关于
|
|
15
17
|
|
|
16
18
|
Next2D Player 是一个来源于 JavaScript Flash 播放器 "swf2js" 的衍生项目。
|
|
@@ -53,24 +55,24 @@ loader
|
|
|
53
55
|
loader.load(request);
|
|
54
56
|
```
|
|
55
57
|
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
56
|
-
@see [API 文档](https://next2d.app/docs/player)
|
|
58
|
+
@see [API 文档](https://next2d.app/cn/docs/player)
|
|
57
59
|
|
|
58
60
|
## 设置选项
|
|
59
61
|
|
|
60
62
|
| 名称 | 值类型 | 默认值 | 说明 |
|
|
61
63
|
| --- | --- | --- | --- |
|
|
62
|
-
| `base` | string | 空值 |
|
|
64
|
+
| `base` | string | 空值 | 如果在请求时未设置URL,则要设置。 |
|
|
63
65
|
| `fullScreen` | boolean | false | 全屏绘制 |
|
|
64
66
|
| `tagId` | string | 空值 | 值为你希望在 DOM 中绘制位置的容器 ID。 |
|
|
65
|
-
| `bgColor` | array
|
|
67
|
+
| `bgColor` | array | empty | RGBA 值在 0-255 范围内选择。 |
|
|
66
68
|
|
|
67
69
|
## 相关站点
|
|
68
70
|
|
|
69
71
|
* [官网](https://next2d.app)
|
|
70
|
-
* [Player API 文档](https://next2d.app/docs/player)
|
|
71
|
-
* [Next2D NoCode Tool(
|
|
72
|
+
* [Player API 文档](https://next2d.app/cn/docs/player)
|
|
73
|
+
* [Next2D NoCode Tool(β version)](https://tool.next2d.app)
|
|
72
74
|
* [Next2D Framework](https://next2d.app/#framework)
|
|
73
|
-
* [教程 & 参考](https://next2d.app/
|
|
75
|
+
* [教程 & 参考](https://next2d.app/cn/reference/player)
|
|
74
76
|
* [聊天社区(Discord)](https://discord.gg/6c9rv5Uns5)
|
|
75
77
|
|
|
76
78
|
## 许可证
|
package/README.ja.md
CHANGED
|
@@ -11,25 +11,25 @@ Next2D Player
|
|
|
11
11
|
[](https://discord.gg/6c9rv5Uns5)
|
|
12
12
|
[](https://twitter.com/intent/user?screen_name=Next2D)
|
|
13
13
|
|
|
14
|
+
[English](./README.md) | [简体中文](./README.cn.md)
|
|
15
|
+
|
|
14
16
|
## About
|
|
15
|
-
Next2D Playerは、JavaScript FlashPlayer「swf2js」から派生したプロジェクトで
|
|
16
|
-
あらゆるデバイスで動作する2D最速エンジンを提供することを目的としてます。
|
|
17
|
+
Next2D Playerは、JavaScript FlashPlayer「swf2js」から派生したプロジェクトで 、あらゆるデバイスで動作する2D最速エンジンを提供することを目的としてます。
|
|
17
18
|
|
|
18
|
-
WebGL、WebGL2
|
|
19
|
-
リッチでインタラクティブなグラフィック、クロスプラットフォーム アプリケーション、およびゲームを作成できるライブラリです。
|
|
19
|
+
WebGL、WebGL2を完全にサポートしており、ブラウザやデバイスの互換性に対処したりすることなく、リッチでインタラクティブなWebコンテンツ、およびゲームを作成することができます。
|
|
20
20
|
|
|
21
21
|
Next2D NoCode Toolを利用することで、イメージしたアニメーションを直感的に作成でき、書き出したJSONデータを、Next2D Playerで簡単に再生および公開が可能です。
|
|
22
22
|
Next2D NoCode Toolはインストール不要でアクセスすれば誰でもすぐに使えるWebサービスです。
|
|
23
23
|
|
|
24
24
|
2Dエンターテインメント開発を簡単に!快速に!快適に!
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## シンプルサンプル
|
|
27
27
|
```javascript
|
|
28
28
|
next2d.load("JSON Path...");
|
|
29
29
|
```
|
|
30
30
|
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## プログラムサンプル
|
|
33
33
|
```javascript
|
|
34
34
|
const { Loader } = next2d.display;
|
|
35
35
|
const { URLRequest } = next2d.net;
|
|
@@ -51,23 +51,23 @@ loader
|
|
|
51
51
|
loader.load(request);
|
|
52
52
|
```
|
|
53
53
|
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
54
|
-
@see [API Documentation](https://next2d.app/docs/player)
|
|
54
|
+
@see [API Documentation](https://next2d.app/ja/docs/player)
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## オプション設定
|
|
57
57
|
|
|
58
58
|
| プロパティ名 | 型 | デフォルト値 | 説明 |
|
|
59
59
|
| --- | --- | --- | --- |
|
|
60
60
|
| `base` | string | empty | 相対パスでJSONを取得する場合、ここで設定したURLがrootとして適用されます。絶対パスの場合はここで設定したURLは適用されません。 |
|
|
61
61
|
| `fullScreen` | boolean | false | Stageクラスで設定した幅と高さを超えて画面全体に描画されます。 |
|
|
62
62
|
| `tagId` | string | empty | IDを指定すると、指定したIDのエレメント内で描画を行います。 |
|
|
63
|
-
| `bgColor` | array
|
|
63
|
+
| `bgColor` | array | empty | 背景色の[R,G,B,A]の配列は0~255で指定できます。falseは無色透明です。 |
|
|
64
64
|
|
|
65
65
|
## Related sites
|
|
66
66
|
* [Website](https://next2d.app)
|
|
67
|
-
* [Player API Documentation](https://next2d.app/docs/player)
|
|
68
|
-
* [Next2D NoCode Tool(
|
|
67
|
+
* [Player API Documentation](https://next2d.app/ja/docs/player)
|
|
68
|
+
* [Next2D NoCode Tool(β version)](https://tool.next2d.app)
|
|
69
69
|
* [Next2D Framework](https://next2d.app/#framework)
|
|
70
|
-
* [Tutorial & Reference.](https://next2d.app/
|
|
70
|
+
* [Tutorial & Reference.](https://next2d.app/ja/reference/player)
|
|
71
71
|
* [Chat Community(Discord)](https://discord.gg/6c9rv5Uns5)
|
|
72
72
|
|
|
73
73
|
## License
|
package/README.md
CHANGED
|
@@ -14,16 +14,13 @@ Next2D Player
|
|
|
14
14
|
[日本語](./README.ja.md) | [简体中文](./README.cn.md)
|
|
15
15
|
|
|
16
16
|
## About
|
|
17
|
-
Next2D Player is a project derived from the JavaScript FlashPlayer "swf2js".
|
|
18
|
-
The goal is to provide the fastest 2D engine that works on any device.
|
|
17
|
+
Next2D Player is a project derived from the JavaScript FlashPlayer "swf2js" and aims to provide the fastest 2D engine that works on any device.
|
|
19
18
|
|
|
20
|
-
It fully supports WebGL and WebGL2, and
|
|
19
|
+
It fully supports WebGL and WebGL2, and can be used to create rich and interactive web content, without having to deal with browser or device compatibility. With full support for WebGL and WebGL2, you can create rich, interactive web content and games without having to deal with browser or device compatibility.
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
With the Next2D NoCode Tool, you can intuitively create the animations you envision, and the exported JSON data can be easily played and published with the Next2D Player.
|
|
23
22
|
Next2D NoCode Tool is a web service that does not require installation and can be used immediately by anyone who accesses it.
|
|
24
23
|
|
|
25
|
-
2D entertainment development made easy! Fast! Comfortable!
|
|
26
|
-
|
|
27
24
|
## Use Simple Sample
|
|
28
25
|
```javascript
|
|
29
26
|
next2d.load("JSON Path...");
|
|
@@ -52,23 +49,23 @@ loader
|
|
|
52
49
|
loader.load(request);
|
|
53
50
|
```
|
|
54
51
|
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
55
|
-
@see [API Documentation](https://next2d.app/docs/player)
|
|
52
|
+
@see [API Documentation](https://next2d.app/en/docs/player)
|
|
56
53
|
|
|
57
54
|
## Option settings
|
|
58
55
|
|
|
59
|
-
| name |
|
|
56
|
+
| name | type | default | description |
|
|
60
57
|
| --- | --- | --- | --- |
|
|
61
58
|
| `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
59
|
| `fullScreen` | boolean | false | It will be drawn on the entire screen beyond the width and height set in the Stage class. |
|
|
63
60
|
| `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. |
|
|
61
|
+
| `bgColor` | array | empty | The [R,G,B,A] array of background colors can be specified from 0 to 255. false is colorless and transparent. |
|
|
65
62
|
|
|
66
63
|
## Related sites
|
|
67
64
|
* [Website](https://next2d.app)
|
|
68
|
-
* [Player API Documentation](https://next2d.app/docs/player)
|
|
69
|
-
* [Next2D NoCode Tool(
|
|
65
|
+
* [Player API Documentation](https://next2d.app/en/docs/player)
|
|
66
|
+
* [Next2D NoCode Tool(β version)](https://tool.next2d.app)
|
|
70
67
|
* [Next2D Framework](https://next2d.app/#framework)
|
|
71
|
-
* [Tutorial & Reference.](https://next2d.app/
|
|
68
|
+
* [Tutorial & Reference.](https://next2d.app/en/reference/player)
|
|
72
69
|
* [Chat Community(Discord)](https://discord.gg/6c9rv5Uns5)
|
|
73
70
|
|
|
74
71
|
## License
|