litecanvas 0.69.3 → 0.69.4
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/dist/dist.js +3 -1
- package/package.json +2 -2
- package/src/index.js +0 -2
- package/src/web.js +3 -0
package/dist/dist.js
CHANGED
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
];
|
|
42
42
|
|
|
43
43
|
// src/index.js
|
|
44
|
-
globalThis.litecanvas = litecanvas;
|
|
45
44
|
function litecanvas(settings = {}) {
|
|
46
45
|
const root = globalThis, PI = Math.PI, TWO_PI = PI * 2, raf = requestAnimationFrame, _browserEventListeners = [], on = (elem, evt, callback) => {
|
|
47
46
|
elem.addEventListener(evt, callback, false);
|
|
@@ -965,4 +964,7 @@
|
|
|
965
964
|
}
|
|
966
965
|
return instance;
|
|
967
966
|
}
|
|
967
|
+
|
|
968
|
+
// src/web.js
|
|
969
|
+
globalThis.litecanvas = litecanvas;
|
|
968
970
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litecanvas",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.4",
|
|
4
4
|
"description": "Lightweight HTML5 canvas engine suitable for small games and animations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Luiz Bills <luizbills@pm.me>",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"test": "ava",
|
|
27
27
|
"dev:test": "ava --watch",
|
|
28
|
-
"dev": "esbuild src/
|
|
28
|
+
"dev": "esbuild src/web.js --bundle --watch --outfile=dist/dist.js --servedir=.",
|
|
29
29
|
"build": "node script/build.js",
|
|
30
30
|
"gzip-size": "gzip -c dist/dist.min.js | wc -c | xargs printf \" Gzip size: %s bytes\n\"",
|
|
31
31
|
"format": "prettier -w src/* samples/* types/* script/* types/*",
|
package/src/index.js
CHANGED
package/src/web.js
ADDED