@vpmedia/phaser 1.82.0 → 1.84.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/LICENSE +1 -1
- package/README.md +2 -2
- package/eslint.config.js +5 -3
- package/package.json +23 -22
- package/pnpm-workspace.yaml +2 -0
- package/coverage/clover.xml +0 -1092
- package/coverage/coverage-final.json +0 -19
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/core/const.js.html +0 -901
- package/coverage/lcov-report/core/index.html +0 -116
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/geom/circle.js.html +0 -1003
- package/coverage/lcov-report/geom/ellipse.js.html +0 -388
- package/coverage/lcov-report/geom/index.html +0 -221
- package/coverage/lcov-report/geom/line.js.html +0 -1102
- package/coverage/lcov-report/geom/matrix.js.html +0 -751
- package/coverage/lcov-report/geom/point.js.html +0 -1027
- package/coverage/lcov-report/geom/polygon.js.html +0 -604
- package/coverage/lcov-report/geom/rectangle.js.html +0 -1774
- package/coverage/lcov-report/geom/rounded_rectangle.js.html +0 -226
- package/coverage/lcov-report/geom/util/circle.js.html +0 -436
- package/coverage/lcov-report/geom/util/ellipse.js.html +0 -139
- package/coverage/lcov-report/geom/util/index.html +0 -221
- package/coverage/lcov-report/geom/util/line.js.html +0 -475
- package/coverage/lcov-report/geom/util/matrix.js.html +0 -223
- package/coverage/lcov-report/geom/util/point.js.html +0 -961
- package/coverage/lcov-report/geom/util/polygon.js.html +0 -124
- package/coverage/lcov-report/geom/util/rectangle.js.html +0 -784
- package/coverage/lcov-report/geom/util/rounded_rectangle.js.html +0 -136
- package/coverage/lcov-report/index.html +0 -161
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/util/index.html +0 -116
- package/coverage/lcov-report/util/math.js.html +0 -958
- package/coverage/lcov.info +0 -2179
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2018 Richard Davey, Photon Storm Ltd.
|
|
4
|
-
Copyright (c)
|
|
4
|
+
Copyright (c) 2025-present Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
7
7
|
this software and associated documentation files (the "Software"), to deal in
|
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @vpmedia/phaser
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/@vpmedia%2Fphaser)
|
|
4
4
|
[](https://github.com/vpmedia/phaser/actions/workflows/ci.yml)
|
|
5
5
|
|
|
6
6
|
@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2.
|
|
7
7
|
|
|
8
8
|
## Getting started
|
|
9
9
|
|
|
10
|
-
$
|
|
10
|
+
$ pnpm add @vpmedia/phaser
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
package/eslint.config.js
CHANGED
|
@@ -21,7 +21,7 @@ export default [
|
|
|
21
21
|
{
|
|
22
22
|
languageOptions: {
|
|
23
23
|
globals: {
|
|
24
|
-
...globals.
|
|
24
|
+
...globals.vitest,
|
|
25
25
|
...globals.browser,
|
|
26
26
|
...globals.node,
|
|
27
27
|
...globals.es2021,
|
|
@@ -50,7 +50,7 @@ export default [
|
|
|
50
50
|
rules: {
|
|
51
51
|
...js.configs.recommended.rules,
|
|
52
52
|
...jsdocPlugin.configs['flat/recommended'].rules,
|
|
53
|
-
...unicornPlugin.configs
|
|
53
|
+
...unicornPlugin.configs.recommended.rules,
|
|
54
54
|
'no-unused-vars': 'off',
|
|
55
55
|
'prefer-arrow-callback': 'warn',
|
|
56
56
|
'prefer-template': 'warn',
|
|
@@ -58,7 +58,7 @@ export default [
|
|
|
58
58
|
'unicorn/explicit-length-check': 'off',
|
|
59
59
|
'unicorn/filename-case': 'off',
|
|
60
60
|
'unicorn/no-array-for-each': 'off',
|
|
61
|
-
'unicorn/
|
|
61
|
+
'unicorn/no-array-reverse': 'off',
|
|
62
62
|
'unicorn/no-for-loop': 'off',
|
|
63
63
|
'unicorn/no-lonely-if': 'off',
|
|
64
64
|
'unicorn/no-negated-condition': 'off',
|
|
@@ -72,6 +72,7 @@ export default [
|
|
|
72
72
|
'unicorn/numeric-separators-style': 'off',
|
|
73
73
|
'unicorn/prefer-add-event-listener': 'off',
|
|
74
74
|
'unicorn/prefer-at': 'off',
|
|
75
|
+
'unicorn/prefer-class-fields': 'off',
|
|
75
76
|
'unicorn/prefer-code-point': 'off',
|
|
76
77
|
'unicorn/prefer-default-parameters': 'off',
|
|
77
78
|
'unicorn/prefer-dom-node-append': 'off',
|
|
@@ -86,6 +87,7 @@ export default [
|
|
|
86
87
|
'unicorn/prefer-optional-catch-binding': 'off',
|
|
87
88
|
'unicorn/prefer-query-selector': 'off',
|
|
88
89
|
'unicorn/prefer-regexp-test': 'off',
|
|
90
|
+
'unicorn/prefer-single-call': 'off',
|
|
89
91
|
'unicorn/prefer-spread': 'off',
|
|
90
92
|
'unicorn/prefer-string-replace-all': 'off',
|
|
91
93
|
'unicorn/prefer-string-slice': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.84.0",
|
|
4
4
|
"description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,32 +23,33 @@
|
|
|
23
23
|
"types": "./types/index.d.ts",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"
|
|
26
|
+
"@types/node": "^24.7.2",
|
|
27
|
+
"@vpmedia/simplify": "^1.31.0",
|
|
28
|
+
"uuid": "^13.0.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@eslint/js": "^9.
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"eslint": "^
|
|
34
|
-
"eslint-plugin-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"typescript": "^5.8.3"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
|
|
44
|
-
"lint": "eslint \"**/*.{js,jsx}\"",
|
|
45
|
-
"typecheck": "tsc",
|
|
46
|
-
"format": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json,md,css}\""
|
|
31
|
+
"@eslint/js": "^9.37.0",
|
|
32
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
33
|
+
"eslint": "^9.37.0",
|
|
34
|
+
"eslint-plugin-jsdoc": "^61.1.0",
|
|
35
|
+
"eslint-plugin-unicorn": "^61.0.2",
|
|
36
|
+
"globals": "^16.4.0",
|
|
37
|
+
"jsdom": "^27.0.0",
|
|
38
|
+
"prettier": "^3.6.2",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vitest": "^3.2.4"
|
|
47
41
|
},
|
|
48
42
|
"browserslist": [
|
|
49
43
|
"> 0.5%",
|
|
50
44
|
"not dead",
|
|
51
45
|
"not op_mini all",
|
|
52
46
|
"iOS >= 14"
|
|
53
|
-
]
|
|
54
|
-
|
|
47
|
+
],
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "exit 0",
|
|
50
|
+
"test": "vitest --coverage --pass-with-no-tests",
|
|
51
|
+
"lint": "eslint \"**/*.{js,jsx}\"",
|
|
52
|
+
"typecheck": "tsc",
|
|
53
|
+
"format": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json,md,css}\""
|
|
54
|
+
}
|
|
55
|
+
}
|