@next2d/player 1.18.11 → 2.0.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.md +27 -24
- package/next2d.js +679 -0
- package/package.json +46 -41
- package/src/index.js +6 -0
- package/index.js +0 -28
- /package/{index.d.ts → src/index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/player",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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@next2d.app> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://next2d.app",
|
|
8
8
|
"bugs": "https://github.com/Next2D/Player/issues",
|
|
9
|
-
"main": "index.js",
|
|
10
|
-
"bundle": "
|
|
11
|
-
"
|
|
9
|
+
"main": "src/index.js",
|
|
10
|
+
"bundle": "next2d.js",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"types": "src/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./src/index.js",
|
|
16
|
+
"require": "./src/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
12
19
|
"keywords": [
|
|
13
20
|
"Next2D",
|
|
14
21
|
"Next2D Player"
|
|
@@ -21,51 +28,49 @@
|
|
|
21
28
|
"packages/*"
|
|
22
29
|
],
|
|
23
30
|
"scripts": {
|
|
24
|
-
"start": "
|
|
25
|
-
"lint": "eslint src/**/*.ts packages/**/*.ts
|
|
26
|
-
"
|
|
31
|
+
"start": "vite --host",
|
|
32
|
+
"lint": "eslint src/**/*.ts packages/**/*.ts",
|
|
33
|
+
"test": "vitest",
|
|
27
34
|
"clean": "node ./scripts/clean.js",
|
|
28
|
-
"build": "
|
|
29
|
-
"
|
|
35
|
+
"build:vite": "node ./scripts/version.js && vite build",
|
|
36
|
+
"publish:dist": "node ./scripts/clean.js && node ./scripts/version.js && tsc && vite build && node ./scripts/publish.js"
|
|
30
37
|
},
|
|
31
38
|
"funding": {
|
|
32
39
|
"type": "github",
|
|
33
40
|
"url": "https://github.com/sponsors/Next2D"
|
|
34
41
|
},
|
|
35
42
|
"dependencies": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"@next2d/
|
|
39
|
-
"@next2d/
|
|
40
|
-
"@next2d/
|
|
41
|
-
"@next2d/
|
|
42
|
-
"@next2d/
|
|
43
|
-
"@next2d/
|
|
44
|
-
"@next2d/
|
|
45
|
-
"@next2d/
|
|
46
|
-
"@next2d/
|
|
47
|
-
"@next2d/
|
|
48
|
-
"@next2d/
|
|
49
|
-
"@next2d/
|
|
43
|
+
"fflate": "^0.8.2",
|
|
44
|
+
"htmlparser2": "^10.0.0",
|
|
45
|
+
"@next2d/cache": "2.0.0",
|
|
46
|
+
"@next2d/core": "2.0.0",
|
|
47
|
+
"@next2d/display": "2.0.0",
|
|
48
|
+
"@next2d/events": "2.0.0",
|
|
49
|
+
"@next2d/filters": "2.0.0",
|
|
50
|
+
"@next2d/geom": "2.0.0",
|
|
51
|
+
"@next2d/media": "2.0.0",
|
|
52
|
+
"@next2d/net": "2.0.0",
|
|
53
|
+
"@next2d/render-queue": "2.0.0",
|
|
54
|
+
"@next2d/renderer": "2.0.0",
|
|
55
|
+
"@next2d/text": "2.0.0",
|
|
56
|
+
"@next2d/texture-packer": "2.0.0",
|
|
57
|
+
"@next2d/ui": "2.0.0",
|
|
58
|
+
"@next2d/webgl": "2.0.0"
|
|
50
59
|
},
|
|
51
60
|
"devDependencies": {
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@typescript-eslint/
|
|
57
|
-
"@
|
|
58
|
-
"eslint": "^
|
|
59
|
-
"eslint-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"typescript": "^5.2.2",
|
|
67
|
-
"webpack": "^5.89.0",
|
|
68
|
-
"webpack-cli": "^5.1.4",
|
|
69
|
-
"webpack-dev-server": "^4.15.1"
|
|
61
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
62
|
+
"@eslint/js": "^9.23.0",
|
|
63
|
+
"@types/node": "^22.13.11",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
65
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
66
|
+
"@vitest/web-worker": "^3.0.9",
|
|
67
|
+
"eslint": "^9.23.0",
|
|
68
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
69
|
+
"globals": "^16.0.0",
|
|
70
|
+
"jsdom": "^26.0.0",
|
|
71
|
+
"typescript": "^5.8.2",
|
|
72
|
+
"vite": "^6.2.2",
|
|
73
|
+
"vitest": "^3.0.9",
|
|
74
|
+
"vitest-webgl-canvas-mock": "^1.1.0"
|
|
70
75
|
}
|
|
71
76
|
}
|
package/src/index.js
ADDED
package/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { $currentPlayer, $initialize } from "@next2d/util";
|
|
3
|
-
import { Next2D } from "@next2d/core";
|
|
4
|
-
if (!("next2d" in window)) {
|
|
5
|
-
console.log("%c Next2D Player %c 1.18.11 %c https://next2d.app", "color: #fff; background: #5f5f5f", "color: #fff; background: #4bc729", "");
|
|
6
|
-
window.next2d = new Next2D([new Promise((resolve) => {
|
|
7
|
-
if (document.readyState === "loading") {
|
|
8
|
-
const initialize = () => {
|
|
9
|
-
window.removeEventListener("DOMContentLoaded", initialize);
|
|
10
|
-
$initialize()
|
|
11
|
-
.then(() => {
|
|
12
|
-
$currentPlayer()
|
|
13
|
-
._$initializeCanvas();
|
|
14
|
-
resolve();
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
window.addEventListener("DOMContentLoaded", initialize);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
$initialize()
|
|
21
|
-
.then(() => {
|
|
22
|
-
$currentPlayer()
|
|
23
|
-
._$initializeCanvas();
|
|
24
|
-
resolve();
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
})]);
|
|
28
|
-
}
|
|
File without changes
|