@next2d/player 1.18.4 → 1.18.6
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 +23 -17
- package/index.js +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ If Next2D is useful to you, we hope you will support our project.
|
|
|
54
54
|
|
|
55
55
|
### Use Simple Sample
|
|
56
56
|
```javascript
|
|
57
|
-
next2d.load("JSON
|
|
57
|
+
next2d.load("Path to JSON output from NoCode Tool");
|
|
58
58
|
```
|
|
59
59
|
[CodePen](https://codepen.io/next2d/pen/rNGMrZG)
|
|
60
60
|
|
|
@@ -65,24 +65,28 @@ const { URLRequest } = next2d.net;
|
|
|
65
65
|
const { Event } = next2d.events;
|
|
66
66
|
|
|
67
67
|
// create root MovieClip
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
const start = async () =>
|
|
69
|
+
{
|
|
70
|
+
const root = await next2d.createRootMovieClip();
|
|
71
|
+
|
|
72
|
+
const request = new URLRequest("JSON path");
|
|
73
|
+
const loader = new Loader(request);
|
|
74
|
+
|
|
75
|
+
loader
|
|
76
|
+
.contentLoaderInfo
|
|
77
|
+
.addEventListener(Event.COMPLETE, (event) =>
|
|
78
|
+
{
|
|
79
|
+
root.addChild(event.currentTarget.content);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
loader.load(request);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
start();
|
|
84
86
|
```
|
|
85
87
|
|
|
88
|
+
### Use Program Sample
|
|
89
|
+
|
|
86
90
|
[CodePen](https://codepen.io/next2d/pen/VwMKGEv)\
|
|
87
91
|
@see [API Documentation](https://next2d.app/en/docs/player)
|
|
88
92
|
|
|
@@ -115,6 +119,8 @@ next2d
|
|
|
115
119
|
| `tagId` | string | empty | 当一个ID被指定时,在指定ID的元素内进行绘图。 |
|
|
116
120
|
| `bgColor` | string | "transparent" | 你可以指定一个十六进制的背景颜色。默认为无色。 |
|
|
117
121
|
|
|
122
|
+
## Flowchart
|
|
123
|
+

|
|
118
124
|
|
|
119
125
|
## License
|
|
120
126
|
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { $currentPlayer, $initialize } from "@next2d/util";
|
|
3
3
|
import { Next2D } from "@next2d/core";
|
|
4
4
|
if (!("next2d" in window)) {
|
|
5
|
-
console.log("%c Next2D Player %c 1.18.
|
|
5
|
+
console.log("%c Next2D Player %c 1.18.6 %c https://next2d.app", "color: #fff; background: #5f5f5f", "color: #fff; background: #4bc729", "");
|
|
6
6
|
window.next2d = new Next2D([new Promise((resolve) => {
|
|
7
7
|
if (document.readyState === "loading") {
|
|
8
8
|
const initialize = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/player",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.6",
|
|
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> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"htmlparser2": "^9.0.0",
|
|
38
|
-
"@next2d/core": "1.18.
|
|
39
|
-
"@next2d/display": "1.18.
|
|
40
|
-
"@next2d/events": "1.18.
|
|
41
|
-
"@next2d/filters": "1.18.
|
|
42
|
-
"@next2d/geom": "1.18.
|
|
43
|
-
"@next2d/interface": "1.18.
|
|
44
|
-
"@next2d/media": "1.18.
|
|
45
|
-
"@next2d/net": "1.18.
|
|
46
|
-
"@next2d/share": "1.18.
|
|
47
|
-
"@next2d/text": "1.18.
|
|
48
|
-
"@next2d/ui": "1.18.
|
|
49
|
-
"@next2d/util": "1.18.
|
|
50
|
-
"@next2d/webgl": "1.18.
|
|
38
|
+
"@next2d/core": "1.18.6",
|
|
39
|
+
"@next2d/display": "1.18.6",
|
|
40
|
+
"@next2d/events": "1.18.6",
|
|
41
|
+
"@next2d/filters": "1.18.6",
|
|
42
|
+
"@next2d/geom": "1.18.6",
|
|
43
|
+
"@next2d/interface": "1.18.6",
|
|
44
|
+
"@next2d/media": "1.18.6",
|
|
45
|
+
"@next2d/net": "1.18.6",
|
|
46
|
+
"@next2d/share": "1.18.6",
|
|
47
|
+
"@next2d/text": "1.18.6",
|
|
48
|
+
"@next2d/ui": "1.18.6",
|
|
49
|
+
"@next2d/util": "1.18.6",
|
|
50
|
+
"@next2d/webgl": "1.18.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@babel/core": "^7.22.19",
|