@next2d/player 1.14.14 → 1.14.16
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.md +50 -21
- package/dist/player/index.js +1 -1
- package/dist/player/util/Util.js +5 -5
- package/package.json +1 -1
- package/README.cn.md +0 -88
- package/README.ja.md +0 -88
package/README.md
CHANGED
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
Next2D Player
|
|
2
2
|
=============
|
|
3
|
-
<
|
|
3
|
+
<div align="center">
|
|
4
|
+
<img src="https://next2d.app/assets/img/player/logo.svg" width="250" alt="Next2D Player">
|
|
5
|
+
</div>
|
|
4
6
|
|
|
5
7
|
[](https://github.com/Next2D/Player/actions/workflows/integration.yml)
|
|
6
8
|
[](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
|
|
7
9
|
[](https://github.com/Next2D/Player/actions/workflows/lint.yml)
|
|
8
10
|
|
|
9
11
|
[](https://github.com/Next2D/Player/releases)
|
|
10
|
-
[](https://github.com/Next2D/
|
|
12
|
+
[](https://github.com/Next2D/Player/releases)
|
|
11
13
|
[](https://discord.gg/6c9rv5Uns5)
|
|
12
14
|

|
|
13
15
|
|
|
14
|
-
[日本語]
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Next2D Player
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
[日本語]
|
|
17
|
+
Next2D Playerは、WebGLのハードウェアアクセラレーションでグラフィックス処理負荷を軽減し、OffscreenCanvasのマルチスレッド処理で描画パフォーマンスを向上させています。
|
|
18
|
+
ベクター描画、Tweenアニメーション、テキスト、音声、動画など、さまざまな要素をサポートしているので、ゲーム制作、インタラクティブなデータビジュアライゼーション、クリエイティブなウェブアプリケーションなど、豊かな表現が必要とされるプロジェクトで活用が期待できます。
|
|
19
|
+
|
|
20
|
+
[English]
|
|
21
|
+
Next2D Player reduces graphics processing load with WebGL hardware acceleration and improves drawing performance with OffscreenCanvas multi-threaded processing.
|
|
22
|
+
With support for vector rendering, tween animation, text, audio, video, and many other elements, Next2D Player can be used for game production, interactive data visualization, creative web applications, and other projects that require rich expression. The software is expected to be used in game production, interactive data visualization, creative web applications and other projects requiring rich expression.
|
|
23
|
+
|
|
24
|
+
[简体中文]
|
|
25
|
+
Next2D Player通过WebGL硬件加速降低了图形处理负载,通过OffscreenCanvas多线程处理提高了绘图性能。
|
|
26
|
+
由于支持矢量绘图、Tween动画、文本、音频、视频和许多其他元素,它可用于游戏制作、交互式数据可视化、创意网络应用和其他需要丰富表达的项目。 该软件可用于需要丰富表现力的项目中。
|
|
27
|
+
|
|
28
|
+
## Support
|
|
29
|
+
[日本語]
|
|
30
|
+
最新ニュースや技術情報は、Twitterの[@Next2D](https://twitter.com/Next2D)や公式の[Website](https://next2d.app/ja/)で発信していきますので、チェックしてみてください。
|
|
31
|
+
Next2Dがお役に立つようでしたら、プロジェクトをご支援いただければ幸いです。
|
|
32
|
+
|
|
33
|
+
[English]
|
|
34
|
+
Please check [@Next2D](https://twitter.com/Next2D) on Twitter and the [official website](https://next2d.app/en/) for the latest news and technical information.
|
|
31
35
|
If Next2D is useful to you, we hope you will support our project.
|
|
32
|
-
|
|
36
|
+
|
|
37
|
+
[简体中文]
|
|
38
|
+
请在Twitter上查看[@Next2D](https://twitter.com/Next2D)和[官方网站](https://next2d.app/cn/),了解最新的新闻和技术信息。
|
|
39
|
+
如果Next2D对你有用,我们希望你能支持我们的项目。
|
|
40
|
+
|
|
33
41
|
<div align="center">
|
|
34
42
|
<a href="https://github.com/sponsors/Next2D" target="_blank">
|
|
35
43
|
<img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86" width=180 alt="GitHub Sponsor" />
|
|
36
44
|
</a>
|
|
37
45
|
</div>
|
|
38
46
|
|
|
39
|
-
##
|
|
47
|
+
## Related Sites
|
|
40
48
|
* [Website](https://next2d.app)
|
|
41
49
|
* [Player API Documentation](https://next2d.app/ja/docs/player)
|
|
42
50
|
* [NoCode Tool](https://tool.next2d.app)
|
|
@@ -80,6 +88,17 @@ next2d
|
|
|
80
88
|
|
|
81
89
|
## Option settings
|
|
82
90
|
|
|
91
|
+
[日本語]
|
|
92
|
+
|
|
93
|
+
| プロパティ名 | 型 | デフォルト値 | 説明 |
|
|
94
|
+
|--------------|---------|---------------|-----------------------------------------------------------------------|
|
|
95
|
+
| `base` | string | empty | 相対パスでJSONを取得する場合、ここで設定したURLがrootとして適用されます。絶対パスの場合はここで設定したURLは適用されません。 |
|
|
96
|
+
| `fullScreen` | boolean | false | Stageクラスで設定した幅と高さを超えて画面全体に描画されます。 |
|
|
97
|
+
| `tagId` | string | empty | IDを指定すると、指定したIDのエレメント内で描画を行います。 |
|
|
98
|
+
| `bgColor` | string | "transparent" | 背景色を16進数で指定できます。デフォルトは無色透明です。 |
|
|
99
|
+
|
|
100
|
+
[English]
|
|
101
|
+
|
|
83
102
|
| name | type | default | description |
|
|
84
103
|
|----------------|---------|---------------|-------------------------------------------------------------------------------------------------------------------------------------|
|
|
85
104
|
| `base` | string | empty | When JSON is acquired by a relative path, the URL set here is applied as root. For absolute paths, the URL set here is not applied. |
|
|
@@ -87,5 +106,15 @@ next2d
|
|
|
87
106
|
| `tagId` | string | empty | When an ID is specified, drawing is performed within the element of the specified ID. |
|
|
88
107
|
| `bgColor` | string | "transparent" | You can specify a background color in hexadecimal. The default is colorless. |
|
|
89
108
|
|
|
109
|
+
[简体中文]
|
|
110
|
+
|
|
111
|
+
| 名称 | 值类型 | 默认值 | 说明 |
|
|
112
|
+
|--------------|---------|---------------|---------------------------------------------------|
|
|
113
|
+
| `base` | string | empty | 当JSON是由相对路径获得的,这里设置的URL被应用为根。对于绝对路径,这里设置的URL不被应用。 |
|
|
114
|
+
| `fullScreen` | boolean | false | 整个屏幕的绘制超出了Stage类中设置的宽度和高度。 |
|
|
115
|
+
| `tagId` | string | empty | 当一个ID被指定时,在指定ID的元素内进行绘图。 |
|
|
116
|
+
| `bgColor` | string | "transparent" | 你可以指定一个十六进制的背景颜色。默认为无色。 |
|
|
117
|
+
|
|
118
|
+
|
|
90
119
|
## License
|
|
91
120
|
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
|
package/dist/player/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { $currentPlayer, $initialize, $isSafari, $rendererWorker } from "./util/Util";
|
|
3
3
|
import { Next2D } from "./player/Next2D";
|
|
4
4
|
if (!("next2d" in window)) {
|
|
5
|
-
console.log("%c Next2D Player %c 1.14.
|
|
5
|
+
console.log("%c Next2D Player %c 1.14.16 %c https://next2d.app", "color: #fff; background: #5f5f5f", "color: #fff; background: #4bc729", "");
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
window.next2d = new Next2D([new Promise((resolve) => {
|
|
8
8
|
if (document.readyState === "loading") {
|
package/dist/player/util/Util.js
CHANGED
|
@@ -316,15 +316,15 @@ export const $currentMousePoint = () => {
|
|
|
316
316
|
}
|
|
317
317
|
let touchX = 0;
|
|
318
318
|
let touchY = 0;
|
|
319
|
-
if (
|
|
320
|
-
touchX = event.pageX;
|
|
321
|
-
touchY = event.pageY;
|
|
322
|
-
}
|
|
323
|
-
if (event instanceof TouchEvent) {
|
|
319
|
+
if ("changedTouches" in event) {
|
|
324
320
|
const changedTouche = event.changedTouches[0];
|
|
325
321
|
touchX = changedTouche.pageX;
|
|
326
322
|
touchY = changedTouche.pageY;
|
|
327
323
|
}
|
|
324
|
+
else if ("pageX" in event) {
|
|
325
|
+
touchX = event.pageX;
|
|
326
|
+
touchY = event.pageY;
|
|
327
|
+
}
|
|
328
328
|
const pointX = (touchX - x) / player._$scale - player.x / player._$scale / $devicePixelRatio;
|
|
329
329
|
const pointY = (touchY - y) / player._$scale - player.y / player._$scale / $devicePixelRatio;
|
|
330
330
|
return new Point(pointX, pointY);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/player",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.16",
|
|
4
4
|
"description": "Experience the fast and beautiful anti-aliased rendering of WebGL. You can create rich, interactive graphics, cross-platform applications and games without worrying about browser or device compatibility.",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
|
|
6
6
|
"license": "MIT",
|
package/README.cn.md
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
Next2D Player
|
|
2
|
-
=============
|
|
3
|
-
<img src="https://next2d.app/assets/img/player/logo.svg" width="200" height="200" alt="Next2D Player Logo">
|
|
4
|
-
|
|
5
|
-
[](https://github.com/Next2D/Player/actions/workflows/integration.yml)
|
|
6
|
-
[](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
|
|
7
|
-
[](https://github.com/Next2D/Player/actions/workflows/lint.yml)
|
|
8
|
-
|
|
9
|
-
[](https://github.com/Next2D/Player/releases)
|
|
10
|
-
[](https://github.com/Next2D/player/releases)
|
|
11
|
-
[](https://discord.gg/6c9rv5Uns5)
|
|
12
|
-

|
|
13
|
-
|
|
14
|
-
[English](./README.md) | [日本語](./README.ja.md)
|
|
15
|
-
|
|
16
|
-
## 下一个2D项目
|
|
17
|
-
|
|
18
|
-
### Player
|
|
19
|
-
Next2D Player支持WebGL和OffscreenCanvas,实现了先进的图形表达。
|
|
20
|
-
它还可以用于游戏制作、广告制作和其他需要丰富表达的场景,而不必处理浏览器或设备的兼容性问题。
|
|
21
|
-
|
|
22
|
-
### NoCode Tool
|
|
23
|
-
它是一个在网络浏览器中运行的创作工具,主要基于NoCode开发。它允许用户直观地创建他们所想象的动画,导出的数据可以很容易地上传到网络上,并用播放器发布。
|
|
24
|
-
[NoCode Tool](https://tool.next2d.app)
|
|
25
|
-
|
|
26
|
-
### Framework
|
|
27
|
-
这个框架可以通过URL(SPA)实现场景管理,这在传统的Canvas/WebGL应用中是很难做到的,可以固定开发模式,简化可读性和共享性。
|
|
28
|
-
|
|
29
|
-
请在Twitter上查看[@Next2D](https://twitter.com/Next2D)和[官方网站](https://next2d.app),了解最新的新闻和技术信息。
|
|
30
|
-
|
|
31
|
-
如果Next2D对你有用,我们希望你能支持我们的项目。
|
|
32
|
-
|
|
33
|
-
<div align="center">
|
|
34
|
-
<a href="https://github.com/sponsors/Next2D" target="_blank">
|
|
35
|
-
<img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86" width=180 alt="GitHub Sponsor" />
|
|
36
|
-
</a>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
## 関連サイト
|
|
40
|
-
* [Website](https://next2d.app)
|
|
41
|
-
* [Player API Documentation](https://next2d.app/ja/docs/player)
|
|
42
|
-
* [NoCode Tool](https://tool.next2d.app)
|
|
43
|
-
* [Framework](https://github.com/Next2D/framework)
|
|
44
|
-
|
|
45
|
-
## Examples
|
|
46
|
-
|
|
47
|
-
### 使用简单的样本
|
|
48
|
-
```javascript
|
|
49
|
-
next2d.load("JSON Path...");
|
|
50
|
-
```
|
|
51
|
-
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
52
|
-
|
|
53
|
-
### 使用程序样本
|
|
54
|
-
|
|
55
|
-
```javascript
|
|
56
|
-
const { Loader } = next2d.display;
|
|
57
|
-
const { URLRequest } = next2d.net;
|
|
58
|
-
const { Event } = next2d.events;
|
|
59
|
-
|
|
60
|
-
// create root MovieClip
|
|
61
|
-
const root = next2d.createRootMovieClip();
|
|
62
|
-
|
|
63
|
-
const request = new URLRequest("JSON path");
|
|
64
|
-
const loader = new Loader(request);
|
|
65
|
-
|
|
66
|
-
loader
|
|
67
|
-
.contentLoaderInfo
|
|
68
|
-
.addEventListener(Event.COMPLETE, (event) =>
|
|
69
|
-
{
|
|
70
|
-
root.addChild(event.currentTarget.content);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
loader.load(request);
|
|
74
|
-
```
|
|
75
|
-
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
76
|
-
@see [API 文档](https://next2d.app/cn/docs/player)
|
|
77
|
-
|
|
78
|
-
## 设置选项
|
|
79
|
-
|
|
80
|
-
| 名称 | 值类型 | 默认值 | 说明 |
|
|
81
|
-
|--------------|---------|---------------|---------------------------------------------------|
|
|
82
|
-
| `base` | string | empty | 当JSON是由相对路径获得的,这里设置的URL被应用为根。对于绝对路径,这里设置的URL不被应用。 |
|
|
83
|
-
| `fullScreen` | boolean | false | 整个屏幕的绘制超出了Stage类中设置的宽度和高度。 |
|
|
84
|
-
| `tagId` | string | empty | 当一个ID被指定时,在指定ID的元素内进行绘图。 |
|
|
85
|
-
| `bgColor` | string | "transparent" | 你可以指定一个十六进制的背景颜色。默认为无色。 |
|
|
86
|
-
|
|
87
|
-
## 许可证
|
|
88
|
-
本项目使用 [MIT License](https://opensource.org/licenses/MIT) 许可证 - 参考 [LICENSE](LICENSE) 文件了解许可证内容。
|
package/README.ja.md
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
Next2D Player
|
|
2
|
-
=============
|
|
3
|
-
<img src="https://next2d.app/assets/img/player/logo.svg" width="200" height="200" alt="Next2D Player Logo">
|
|
4
|
-
|
|
5
|
-
[](https://github.com/Next2D/Player/actions/workflows/integration.yml)
|
|
6
|
-
[](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
|
|
7
|
-
[](https://github.com/Next2D/Player/actions/workflows/lint.yml)
|
|
8
|
-
|
|
9
|
-
[](https://github.com/Next2D/Player/releases)
|
|
10
|
-
[](https://github.com/Next2D/player/releases)
|
|
11
|
-
[](https://discord.gg/6c9rv5Uns5)
|
|
12
|
-

|
|
13
|
-
|
|
14
|
-
## Next2Dプロジェクト
|
|
15
|
-
|
|
16
|
-
### Player
|
|
17
|
-
Next2D Playerは、WebGL、OffscreenCanvasをサポートしており、高度なグラフィカル表現が可能です。
|
|
18
|
-
また、ブラウザやデバイスの互換性に対処したりすることなく、ゲーム制作・広告制作など豊かな表現が必要とされるシーンで利用できると思います。
|
|
19
|
-
|
|
20
|
-
### NoCode Tool
|
|
21
|
-
Webブラウザ上で動作する、NoCode開発を主体としたオーサリングツールで、イメージしたアニメーションを直感的に作成でき、書き出したデータはWebにアップロードしてPlayerで簡単に公開できます。
|
|
22
|
-
[NoCode Tool](https://tool.next2d.app)
|
|
23
|
-
|
|
24
|
-
### Framework
|
|
25
|
-
従来のCanvas/WebGLアプリケーションでは困難だったURLによるシーン管理(SPA)を可能にし、開発パターンを固定化し、可読性・共有性を簡素化するフレームワークです。
|
|
26
|
-
|
|
27
|
-
最新ニュースや技術情報は、Twitterの[@Next2D](https://twitter.com/Next2D)や公式の[Website](https://next2d.app)で発信していきますので、チェックしてみてください。
|
|
28
|
-
|
|
29
|
-
Next2Dがお役に立つようでしたら、プロジェクトをご支援いただければ幸いです。
|
|
30
|
-
|
|
31
|
-
<div align="center">
|
|
32
|
-
<a href="https://github.com/sponsors/Next2D" target="_blank">
|
|
33
|
-
<img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86" width=180 alt="GitHub Sponsor" />
|
|
34
|
-
</a>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
[English](./README.md) | [简体中文](./README.cn.md)
|
|
38
|
-
|
|
39
|
-
## 関連サイト
|
|
40
|
-
* [Website](https://next2d.app)
|
|
41
|
-
* [Player API Documentation](https://next2d.app/ja/docs/player)
|
|
42
|
-
* [NoCode Tool](https://tool.next2d.app)
|
|
43
|
-
* [Framework](https://github.com/Next2D/framework)
|
|
44
|
-
|
|
45
|
-
## Examples
|
|
46
|
-
|
|
47
|
-
### シンプルプログラム
|
|
48
|
-
```javascript
|
|
49
|
-
next2d.load("JSON Path...");
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
53
|
-
|
|
54
|
-
### プログラムサンプル
|
|
55
|
-
```javascript
|
|
56
|
-
const { Loader } = next2d.display;
|
|
57
|
-
const { URLRequest } = next2d.net;
|
|
58
|
-
const { Event } = next2d.events;
|
|
59
|
-
|
|
60
|
-
// create root MovieClip
|
|
61
|
-
const root = next2d.createRootMovieClip();
|
|
62
|
-
|
|
63
|
-
const request = new URLRequest("JSON path");
|
|
64
|
-
const loader = new Loader(request);
|
|
65
|
-
|
|
66
|
-
loader
|
|
67
|
-
.contentLoaderInfo
|
|
68
|
-
.addEventListener(Event.COMPLETE, (event) =>
|
|
69
|
-
{
|
|
70
|
-
root.addChild(event.currentTarget.content);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
loader.load(request);
|
|
74
|
-
```
|
|
75
|
-
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
76
|
-
@see [Player API Documentation](https://next2d.app/ja/docs/player)
|
|
77
|
-
|
|
78
|
-
## オプション設定
|
|
79
|
-
|
|
80
|
-
| プロパティ名 | 型 | デフォルト値 | 説明 |
|
|
81
|
-
|--------------|---------|---------------|-----------------------------------------------------------------------|
|
|
82
|
-
| `base` | string | empty | 相対パスでJSONを取得する場合、ここで設定したURLがrootとして適用されます。絶対パスの場合はここで設定したURLは適用されません。 |
|
|
83
|
-
| `fullScreen` | boolean | false | Stageクラスで設定した幅と高さを超えて画面全体に描画されます。 |
|
|
84
|
-
| `tagId` | string | empty | IDを指定すると、指定したIDのエレメント内で描画を行います。 |
|
|
85
|
-
| `bgColor` | string | "transparent" | 背景色を16進数で指定できます。デフォルトは無色透明です。 |
|
|
86
|
-
|
|
87
|
-
## License
|
|
88
|
-
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
|