modern-canvas 0.27.9 → 0.27.10

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 (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10009,7 +10009,10 @@ var co = class extends nr {
10009
10009
  }
10010
10010
  }, mo = class extends nr {
10011
10011
  install(e) {
10012
- return this.load = (t) => e.awaitBy(() => new wr(t).load()), e.video = this, this;
10012
+ return this.load = (t) => e.awaitBy(async () => {
10013
+ let n = await new wr(t).load();
10014
+ return e.emit("loaded", t, n), n;
10015
+ }), e.video = this, this;
10013
10016
  }
10014
10017
  }, ho = Object.entries({
10015
10018
  "font/woff": ["woff"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.27.9",
4
+ "version": "0.27.10",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",