@next2d/player 1.14.8 → 1.14.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.
Files changed (34) hide show
  1. package/README.cn.md +44 -36
  2. package/README.ja.md +43 -30
  3. package/README.md +40 -26
  4. package/dist/player/index.js +5 -3
  5. package/dist/player/next2d/display/Loader.d.ts +1 -1
  6. package/dist/player/player/Next2D.d.ts +1 -2
  7. package/dist/player/player/Next2D.js +1 -8
  8. package/package.json +2 -5
  9. package/@types/next2d.d.ts +0 -4
  10. package/@types/window.d.ts +0 -74
  11. package/dist/interface/ClassNameMap.d.ts +0 -4
  12. package/dist/interface/ClassNameMap.js +0 -1
  13. package/dist/interface/RenderDisplayObjectImpl.d.ts +0 -2
  14. package/dist/interface/RenderDisplayObjectImpl.js +0 -1
  15. package/dist/interface/TextFormatImpl.d.ts +0 -16
  16. package/dist/interface/TextFormatImpl.js +0 -1
  17. package/dist/interface/TextModeImpl.d.ts +0 -1
  18. package/dist/interface/TextModeImpl.js +0 -1
  19. package/dist/renderer/RenderDisplayObject.d.ts +0 -129
  20. package/dist/renderer/RenderDisplayObject.js +0 -567
  21. package/dist/renderer/RenderDisplayObjectContainer.d.ts +0 -70
  22. package/dist/renderer/RenderDisplayObjectContainer.js +0 -670
  23. package/dist/renderer/RenderGlobal.d.ts +0 -76
  24. package/dist/renderer/RenderGlobal.js +0 -88
  25. package/dist/renderer/RenderGraphics.d.ts +0 -90
  26. package/dist/renderer/RenderGraphics.js +0 -597
  27. package/dist/renderer/RenderPlayer.d.ts +0 -164
  28. package/dist/renderer/RenderPlayer.js +0 -421
  29. package/dist/renderer/RenderShape.d.ts +0 -32
  30. package/dist/renderer/RenderShape.js +0 -104
  31. package/dist/renderer/RenderTextField.d.ts +0 -119
  32. package/dist/renderer/RenderTextField.js +0 -709
  33. package/dist/renderer/RenderVideo.d.ts +0 -59
  34. package/dist/renderer/RenderVideo.js +0 -272
package/README.cn.md CHANGED
@@ -4,35 +4,53 @@ Next2D Player
4
4
 
5
5
  [![UnitTest](https://github.com/Next2D/Player/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/integration.yml)
6
6
  [![CodeQL](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
7
- [![Lint](https://github.com/Next2D/Player/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/lint.yml) \
7
+ [![Lint](https://github.com/Next2D/Player/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/lint.yml)
8
+
8
9
  [![release](https://img.shields.io/github/v/release/Next2D/Player)](https://github.com/Next2D/Player/releases)
9
- [![license](https://img.shields.io/github/license/Next2D/Player)](https://github.com/Next2D/Player/blob/main/LICENSE)
10
- [![Docs](https://img.shields.io/badge/docs-online-blue.svg)](https://next2d.app/docs/player/index.html)
11
- [![Discord](https://img.shields.io/discord/812136803506716713?label=Discord&logo=discord)](https://discord.gg/6c9rv5Uns5)
12
- [![Follow us on Twitter](https://img.shields.io/twitter/follow/Next2D?label=Follow&style=social)](https://twitter.com/intent/user?screen_name=Next2D)
10
+ [![Github All Releases](https://img.shields.io/npm/dt/@next2d/player)](https://github.com/Next2D/player/releases)
11
+ [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/6c9rv5Uns5)
12
+ ![Twitter Follow](https://img.shields.io/twitter/follow/Next2D?style=social)
13
13
 
14
14
  [English](./README.md) | [日本語](./README.ja.md)
15
15
 
16
- ## 关于
17
-
18
- Next2D Player 是一个来源于 JavaScript Flash 播放器 "swf2js" 的衍生项目。
19
- 目标是提供一个在任何设备上都工作最快的 2D 引擎。
20
-
21
- 它完整提供了 WebGL 和 WebGL2, 可被用于创建丰富、交互式图形、跨平台应用程序和游戏, 而不需要处理浏览器或者设备兼容性问题。
22
-
23
- 通过使用 Next NoCode Tool, 你可以直观地创建想象中的动画, 导出的 JSON 数据可以通过使用 Next2D Player 很容易被播放和发布。
24
- Next2D NoCode Tool 是一个 web 服务, 不需要下载并且谁都可以立马使用。
25
-
26
- 使 2D 娱乐开发更简单! 快速! 舒服!
27
-
28
- ## 使用之简单示例
29
-
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
+ ### 使用简单的样本
30
48
  ```javascript
31
49
  next2d.load("JSON Path...");
32
50
  ```
33
51
  [CodePen](https://codepen.io/next2d/pen/rNGMrZG)
34
52
 
35
- ## 使用之程序示例
53
+ ### 使用程序样本
36
54
 
37
55
  ```javascript
38
56
  const { Loader } = next2d.display;
@@ -59,22 +77,12 @@ loader.load(request);
59
77
 
60
78
  ## 设置选项
61
79
 
62
- | 名称 | 值类型 | 默认值 | 说明 |
63
- | --- | --- | --- | --- |
64
- | `base` | string | 空值 | 如果在请求时未设置URL,则要设置。 |
65
- | `fullScreen` | boolean | false | 全屏绘制 |
66
- | `tagId` | string | 空值 | 值为你希望在 DOM 中绘制位置的容器 ID|
67
- | `bgColor` | array | empty | RGBA 值在 0-255 范围内选择。 |
68
-
69
- ## 相关站点
70
-
71
- * [官网](https://next2d.app)
72
- * [Player API 文档](https://next2d.app/cn/docs/player)
73
- * [Next2D NoCode Tool(β version)](https://tool.next2d.app)
74
- * [Next2D Framework](https://next2d.app/#framework)
75
- * [教程 & 参考](https://next2d.app/cn/reference/player)
76
- * [聊天社区(Discord)](https://discord.gg/6c9rv5Uns5)
80
+ | 名称 | 值类型 | 默认值 | 说明 |
81
+ |--------------|---------|---------------|---------------------------------------------------|
82
+ | `base` | string | empty | 当JSON是由相对路径获得的,这里设置的URL被应用为根。对于绝对路径,这里设置的URL不被应用。 |
83
+ | `fullScreen` | boolean | false | 整个屏幕的绘制超出了Stage类中设置的宽度和高度。 |
84
+ | `tagId` | string | empty | 当一个ID被指定时,在指定ID的元素内进行绘图。 |
85
+ | `bgColor` | string | "transparent" | 你可以指定一个十六进制的背景颜色。默认为无色。 |
77
86
 
78
87
  ## 许可证
79
-
80
88
  本项目使用 [MIT License](https://opensource.org/licenses/MIT) 许可证 - 参考 [LICENSE](LICENSE) 文件了解许可证内容。
package/README.ja.md CHANGED
@@ -4,33 +4,54 @@ Next2D Player
4
4
 
5
5
  [![UnitTest](https://github.com/Next2D/Player/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/integration.yml)
6
6
  [![CodeQL](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
7
- [![Lint](https://github.com/Next2D/Player/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/lint.yml) \
7
+ [![Lint](https://github.com/Next2D/Player/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/lint.yml)
8
+
8
9
  [![release](https://img.shields.io/github/v/release/Next2D/Player)](https://github.com/Next2D/Player/releases)
9
- [![license](https://img.shields.io/github/license/Next2D/Player)](https://github.com/Next2D/Player/blob/main/LICENSE)
10
- [![Docs](https://img.shields.io/badge/docs-online-blue.svg)](https://next2d.app/docs/player/index.html)
11
- [![Discord](https://img.shields.io/discord/812136803506716713?label=Discord&logo=discord)](https://discord.gg/6c9rv5Uns5)
12
- ![Twitter Follow](https://img.shields.io/twitter/follow/Next2D?style=social)
13
10
  [![Github All Releases](https://img.shields.io/npm/dt/@next2d/player)](https://github.com/Next2D/player/releases)
11
+ [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/6c9rv5Uns5)
12
+ ![Twitter Follow](https://img.shields.io/twitter/follow/Next2D?style=social)
14
13
 
15
- [English](./README.md) | [简体中文](./README.cn.md)
16
-
17
- ## About
18
- Next2D Playerは、JavaScript FlashPlayer「swf2js」から派生したプロジェクトで 、あらゆるデバイスで動作する2D最速エンジンを提供することを目的としてます。
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>
19
36
 
20
- WebGL、WebGL2を完全にサポートしており、ブラウザやデバイスの互換性に対処したりすることなく、リッチでインタラクティブなWebコンテンツ、およびゲームを作成することができます。
37
+ [English](./README.md) | [简体中文](./README.cn.md)
21
38
 
22
- Next2D NoCode Toolを利用することで、イメージしたアニメーションを直感的に作成でき、書き出したJSONデータを、Next2D Playerで簡単に再生および公開が可能です。
23
- Next2D NoCode Toolはインストール不要でアクセスすれば誰でもすぐに使えるWebサービスです。
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)
24
44
 
25
- 2Dエンターテインメント開発を簡単に!快速に!快適に!
45
+ ## Examples
26
46
 
27
- ## シンプルサンプル
47
+ ### シンプルプログラム
28
48
  ```javascript
29
49
  next2d.load("JSON Path...");
30
50
  ```
51
+
31
52
  [CodePen](https://codepen.io/next2d/pen/rNGMrZG)
32
53
 
33
- ## プログラムサンプル
54
+ ### プログラムサンプル
34
55
  ```javascript
35
56
  const { Loader } = next2d.display;
36
57
  const { URLRequest } = next2d.net;
@@ -52,24 +73,16 @@ loader
52
73
  loader.load(request);
53
74
  ```
54
75
  [CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
55
- @see [API Documentation](https://next2d.app/ja/docs/player)
76
+ @see [Player API Documentation](https://next2d.app/ja/docs/player)
56
77
 
57
78
  ## オプション設定
58
79
 
59
- | プロパティ名 | 型 | デフォルト値 | 説明 |
60
- | --- |---------| --- | --- |
61
- | `base` | string | empty | 相対パスでJSONを取得する場合、ここで設定したURLがrootとして適用されます。絶対パスの場合はここで設定したURLは適用されません。 |
62
- | `fullScreen` | boolean | false | Stageクラスで設定した幅と高さを超えて画面全体に描画されます。 |
63
- | `tagId` | string | empty | IDを指定すると、指定したIDのエレメント内で描画を行います。 |
64
- | `bgColor` | string | "" | 背景色の[R,G,B,A]の配列は0~255で指定できます。falseは無色透明です。 |
65
-
66
- ## 関連サイト
67
- * [Website](https://next2d.app)
68
- * [Player API Documentation](https://next2d.app/ja/docs/player)
69
- * [Next2D NoCode Tool(β version)](https://tool.next2d.app)
70
- * [Next2D Framework](https://next2d.app/#framework)
71
- * [Tutorial & Reference.](https://next2d.app/ja/reference/player)
72
- * [Chat Community(Discord)](https://discord.gg/6c9rv5Uns5)
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進数で指定できます。デフォルトは無色透明です。 |
73
86
 
74
87
  ## License
75
88
  This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
package/README.md CHANGED
@@ -4,31 +4,53 @@ Next2D Player
4
4
 
5
5
  [![UnitTest](https://github.com/Next2D/Player/actions/workflows/integration.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/integration.yml)
6
6
  [![CodeQL](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
7
- [![Lint](https://github.com/Next2D/Player/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/lint.yml) \
7
+ [![Lint](https://github.com/Next2D/Player/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Next2D/Player/actions/workflows/lint.yml)
8
+
8
9
  [![release](https://img.shields.io/github/v/release/Next2D/Player)](https://github.com/Next2D/Player/releases)
9
- [![license](https://img.shields.io/github/license/Next2D/Player)](https://github.com/Next2D/Player/blob/main/LICENSE)
10
- [![Docs](https://img.shields.io/badge/docs-online-blue.svg)](https://next2d.app/docs/player/index.html)
11
- [![Discord](https://img.shields.io/discord/812136803506716713?label=Discord&logo=discord)](https://discord.gg/6c9rv5Uns5)
12
- ![Twitter Follow](https://img.shields.io/twitter/follow/Next2D?style=social)
13
10
  [![Github All Releases](https://img.shields.io/npm/dt/@next2d/player)](https://github.com/Next2D/player/releases)
11
+ [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/6c9rv5Uns5)
12
+ ![Twitter Follow](https://img.shields.io/twitter/follow/Next2D?style=social)
14
13
 
15
14
  [日本語](./README.ja.md) | [简体中文](./README.cn.md)
16
15
 
17
- ## About
18
- Next2D Player is a project derived from the JavaScript FlashPlayer "swf2js" and aims to provide the fastest 2D engine that works on any device.
16
+ ## Next2D Project
17
+
18
+ ### Player
19
+ Next2D Player supports WebGL and OffscreenCanvas, enabling advanced graphical expression.
20
+ It can also be used in game production, advertisement production, and other scenes requiring rich expressions without having to deal with browser or device compatibility.
21
+
22
+ ### NoCode Tool
23
+ It is an authoring tool that runs in a Web browser and is mainly based on NoCode development. It allows users to intuitively create animations they have imagined, and the exported data can be easily uploaded to the Web and published with Player.
24
+ [NoCode Tool](https://tool.next2d.app)
25
+
26
+ ### Framework
27
+ This framework enables scene management by URL (SPA), which has been difficult with conventional Canvas/WebGL applications, to fix development patterns and simplify readability and shareability.
19
28
 
20
- 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.
29
+ Please check [@Next2D](https://twitter.com/Next2D) on Twitter and the [official website](https://next2d.app) for the latest news and technical information.
21
30
 
22
- 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
- Next2D NoCode Tool is a web service that does not require installation and can be used immediately by anyone who accesses it.
31
+ If Next2D is useful to you, we hope you will support our project.
24
32
 
25
- ## Use Simple Sample
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
+ ### Use Simple Sample
26
48
  ```javascript
27
49
  next2d.load("JSON Path...");
28
50
  ```
29
51
  [CodePen](https://codepen.io/next2d/pen/rNGMrZG)
30
52
 
31
- ## Use Program Sample
53
+ ### Use Program Sample
32
54
  ```javascript
33
55
  const { Loader } = next2d.display;
34
56
  const { URLRequest } = next2d.net;
@@ -58,20 +80,12 @@ next2d
58
80
 
59
81
  ## Option settings
60
82
 
61
- | name | type | default | description |
62
- | --- | --- | --- | --- |
63
- | `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. |
64
- | `fullScreen` | boolean | false | It will be drawn on the entire screen beyond the width and height set in the Stage class. |
65
- | `tagId` | string | empty | When an ID is specified, drawing will be performed within the element with the specified ID. |
66
- | `bgColor` | array | empty | The [R,G,B,A] array of background colors can be specified from 0 to 255. false is colorless and transparent. |
67
-
68
- ## Related sites
69
- * [Website](https://next2d.app)
70
- * [Player API Documentation](https://next2d.app/en/docs/player)
71
- * [Next2D NoCode Tool(β version)](https://tool.next2d.app)
72
- * [Next2D Framework](https://next2d.app/#framework)
73
- * [Tutorial & Reference.](https://next2d.app/en/reference/player)
74
- * [Chat Community(Discord)](https://discord.gg/6c9rv5Uns5)
83
+ | name | type | default | description |
84
+ |----------------|---------|---------------|-------------------------------------------------------------------------------------------------------------------------------------|
85
+ | `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. |
86
+ | `fullScreen` | boolean | false | The entire screen is drawn beyond the width and height set in the Stage class. |
87
+ | `tagId` | string | empty | When an ID is specified, drawing is performed within the element of the specified ID. |
88
+ | `bgColor` | string | "transparent" | You can specify a background color in hexadecimal. The default is colorless. |
75
89
 
76
90
  ## License
77
91
  This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
@@ -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.8 %c https://next2d.app", "color: #fff; background: #5f5f5f", "color: #fff; background: #4bc729", "");
5
+ console.log("%c Next2D Player %c 1.14.11 %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") {
@@ -16,7 +16,8 @@ if (!("next2d" in window)) {
16
16
  "isSafari": $isSafari
17
17
  });
18
18
  }
19
- $currentPlayer()._$initializeCanvas();
19
+ $currentPlayer()
20
+ ._$initializeCanvas();
20
21
  resolve();
21
22
  });
22
23
  };
@@ -32,7 +33,8 @@ if (!("next2d" in window)) {
32
33
  "isSafari": $isSafari
33
34
  });
34
35
  }
35
- $currentPlayer()._$initializeCanvas();
36
+ $currentPlayer()
37
+ ._$initializeCanvas();
36
38
  resolve();
37
39
  });
38
40
  }
@@ -79,7 +79,7 @@ export declare class Loader extends DisplayObjectContainer {
79
79
  * @readonly
80
80
  * @public
81
81
  */
82
- get contentLoaderInfo(): LoaderInfo | null;
82
+ get contentLoaderInfo(): LoaderInfo;
83
83
  /**
84
84
  * @description JSONファイルを、この Loader オブジェクトの子であるcontentプロパティにロードします。
85
85
  * JPEG、GIF、PNGなどの画像データは loadImage で同様にcontentプロパティにロードします。
@@ -15,6 +15,7 @@ import type { UIImpl } from "../../interface/UIImpl";
15
15
  * @class
16
16
  */
17
17
  export declare class Next2D {
18
+ private readonly _$promises;
18
19
  private readonly _$player;
19
20
  readonly display: DisplayImpl;
20
21
  readonly events: EventsImpl;
@@ -24,8 +25,6 @@ export declare class Next2D {
24
25
  readonly net: NetImpl;
25
26
  readonly text: TextImpl;
26
27
  readonly ui: UIImpl;
27
- fw: any;
28
- private readonly _$promises;
29
28
  /**
30
29
  * @constructor
31
30
  * @public
@@ -19,6 +19,7 @@ import { $clamp, $poolArray } from "../util/RenderUtil";
19
19
  * @class
20
20
  */
21
21
  export class Next2D {
22
+ _$promises;
22
23
  _$player;
23
24
  display;
24
25
  events;
@@ -28,8 +29,6 @@ export class Next2D {
28
29
  net;
29
30
  text;
30
31
  ui;
31
- fw;
32
- _$promises;
33
32
  /**
34
33
  * @constructor
35
34
  * @public
@@ -85,12 +84,6 @@ export class Next2D {
85
84
  * @public
86
85
  */
87
86
  this.ui = ui;
88
- /**
89
- * @type {object}
90
- * @default null
91
- * @public
92
- */
93
- this.fw = null;
94
87
  }
95
88
  /**
96
89
  * @member {Player}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/player",
3
- "version": "1.14.8",
3
+ "version": "1.14.11",
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",
@@ -24,10 +24,7 @@
24
24
  "jsdoc": "tsc && jsdoc -c jsdoc.conf.js -r dist DOCS.md"
25
25
  },
26
26
  "types": "dist",
27
- "files": [
28
- "dist",
29
- "@types"
30
- ],
27
+ "files": ["dist"],
31
28
  "devDependencies": {
32
29
  "@babel/core": "^7.22.5",
33
30
  "@babel/preset-env": "^7.22.5",
@@ -1,4 +0,0 @@
1
- import { Next2D } from "../src/player/player/Next2D";
2
-
3
- // eslint-disable-next-line no-unused-vars
4
- declare const next2d: Next2D;
@@ -1,74 +0,0 @@
1
- import { Next2D } from "./next2d";
2
- import { IndexRangeImpl } from "../src/interface/IndexRangeImpl";
3
-
4
- declare global {
5
-
6
- // eslint-disable-next-line no-unused-vars
7
- interface Location {
8
- search: string;
9
- origin: string;
10
- }
11
-
12
- // eslint-disable-next-line no-unused-vars
13
- interface Window {
14
- performance: Performance;
15
- navigator: Navigator;
16
- setTimeout: setTimeout;
17
- Map: Map;
18
- Number: Number;
19
- Array: Array;
20
- document: Document;
21
- location: Location;
22
- isNaN: isNaN;
23
- Math: Math;
24
- Event: Event;
25
- next2d: Next2D;
26
- }
27
-
28
- // eslint-disable-next-line no-unused-vars
29
- interface WebGLTexture {
30
- width: number;
31
- height: number;
32
- area: number;
33
- dirty: boolean;
34
- smoothing: boolean;
35
- layerWidth: number;
36
- layerHeight: number;
37
- matrix: string | null;
38
- colorTransform: string | null;
39
- filterState: boolean | null;
40
- _$offsetX: number;
41
- _$offsetY: number;
42
- }
43
-
44
- // eslint-disable-next-line no-unused-vars
45
- interface WebGLProgram {
46
- id: number;
47
- }
48
-
49
- // eslint-disable-next-line no-unused-vars
50
- interface WebGLRenderbuffer {
51
- stencil: WebGLRenderbuffer;
52
- samples: number;
53
- width: number;
54
- height: number;
55
- area: number;
56
- dirty: boolean;
57
- }
58
-
59
- // eslint-disable-next-line no-unused-vars
60
- interface WebGLVertexArrayObject {
61
- vertexBuffer: WebGLBuffer;
62
- vertexLength: number;
63
- indexBuffer: WebGLBuffer;
64
- indexLength: number;
65
- indexRanges: IndexRangeImpl[];
66
- indexCount: number;
67
- }
68
-
69
- // eslint-disable-next-line no-unused-vars
70
- interface AudioBufferSourceNode {
71
- _$gainNode: GainNode | null;
72
- _$volume: number;
73
- }
74
- }
@@ -1,4 +0,0 @@
1
- import { DisplayObject } from "../player/next2d/display/DisplayObject";
2
- export interface ClassNameMap {
3
- "DisplayObject": DisplayObject;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { RenderDisplayObject } from "../renderer/RenderDisplayObject";
2
- export type RenderDisplayObjectImpl<T extends RenderDisplayObject> = T;
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- import { TextFormatAlignImpl } from "./TextFormatAlignImpl";
2
- export interface TextFormatImpl {
3
- _$font: string;
4
- _$size: number;
5
- _$color: number;
6
- _$bold: boolean;
7
- _$italic: boolean;
8
- _$underline: boolean;
9
- _$align: TextFormatAlignImpl;
10
- _$leftMargin: number;
11
- _$rightMargin: number;
12
- _$indent: number;
13
- _$leading: number;
14
- _$blockIndent: number;
15
- _$letterSpacing: number;
16
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type TextModeImpl = "text" | "break" | "wrap" | "image";
@@ -1 +0,0 @@
1
- export {};