@next2d/player 1.4.7 → 1.4.8

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 CHANGED
@@ -18,7 +18,7 @@ Next2D Player 是一个来源于 JavaScript Flash 播放器 "swf2js" 的衍生
18
18
 
19
19
  它完整提供了 WebGL 和 WebGL2, 可被用于创建丰富、交互式图形、跨平台应用程序和游戏, 而不需要处理浏览器或者设备兼容性问题。
20
20
 
21
- 通过使用 Next NoCode Toll, 你可以直观地创建想象中的动画, 导出的 JSON 数据可以通过使用 Next2D Player 很容易被播放和发布。
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
- const loaderInfo = event.currentTarget;
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,13 +45,12 @@ loader
44
45
  .contentLoaderInfo
45
46
  .addEventListener(Event.COMPLETE, (event) =>
46
47
  {
47
- const loaderInfo = event.currentTarget;
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
package/README.md CHANGED
@@ -11,6 +11,8 @@ Next2D Player
11
11
  [![Discord](https://img.shields.io/discord/812136803506716713?label=Discord&logo=discord)](https://discord.gg/6c9rv5Uns5)
12
12
  [![Follow us on Twitter](https://img.shields.io/twitter/follow/Next2D?label=Follow&style=social)](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,13 +46,12 @@ loader
43
46
  .contentLoaderInfo
44
47
  .addEventListener(Event.COMPLETE, (event) =>
45
48
  {
46
- const loaderInfo = event.currentTarget;
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