@thi.ng/wasm-api-webgl 1.0.20 → 1.0.21
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 +2 -2
- package/gl.js +2 -2
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 214 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -60,7 +60,7 @@ Browser ESM import:
|
|
|
60
60
|
|
|
61
61
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
62
62
|
|
|
63
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
63
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.29 KB
|
|
64
64
|
|
|
65
65
|
## Dependencies
|
|
66
66
|
|
package/gl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GLType } from "@thi.ng/api/typedarray";
|
|
2
2
|
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
|
|
3
|
-
import {
|
|
3
|
+
import { unsupportedOp } from "@thi.ng/errors/unsupported";
|
|
4
4
|
import { WasmDomModule } from "@thi.ng/wasm-api-dom";
|
|
5
5
|
import { ObjectIndex } from "@thi.ng/wasm-api/object-index";
|
|
6
6
|
import { compileModel } from "@thi.ng/webgl/buffer";
|
|
@@ -68,7 +68,7 @@ class WasmWebGL {
|
|
|
68
68
|
preserveDrawingBuffer: !!opts.preserveDrawingBuffer,
|
|
69
69
|
stencil: !!opts.stencil
|
|
70
70
|
});
|
|
71
|
-
if (!ctx)
|
|
71
|
+
if (!ctx) unsupportedOp("WebGL2 not supported");
|
|
72
72
|
return this.contexts.addUnique(ctx);
|
|
73
73
|
},
|
|
74
74
|
createShader: (ctxID, addr) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/wasm-api-webgl",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "WebGL bridge API for hybrid TypeScript & WASM (Zig) applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/thi-ng/umbrella.git"
|
|
11
|
+
"url": "git+https://github.com/thi-ng/umbrella.git",
|
|
12
|
+
"directory": "packages/wasm-api-webgl"
|
|
12
13
|
},
|
|
13
14
|
"homepage": "https://thi.ng/wasm-api-webgl",
|
|
14
15
|
"funding": [
|
|
@@ -40,14 +41,14 @@
|
|
|
40
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/errors": "^2.6.
|
|
45
|
-
"@thi.ng/wasm-api": "^2.4.
|
|
46
|
-
"@thi.ng/wasm-api-dom": "^2.0.
|
|
47
|
-
"@thi.ng/webgl": "^6.9.
|
|
44
|
+
"@thi.ng/api": "^8.12.14",
|
|
45
|
+
"@thi.ng/errors": "^2.6.3",
|
|
46
|
+
"@thi.ng/wasm-api": "^2.4.16",
|
|
47
|
+
"@thi.ng/wasm-api-dom": "^2.0.18",
|
|
48
|
+
"@thi.ng/webgl": "^6.9.95"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@thi.ng/wasm-api-bindgen": "^1.2.
|
|
51
|
+
"@thi.ng/wasm-api-bindgen": "^1.2.62",
|
|
51
52
|
"esbuild": "^0.27.2",
|
|
52
53
|
"typedoc": "^0.28.16",
|
|
53
54
|
"typescript": "^5.9.3"
|
|
@@ -99,5 +100,5 @@
|
|
|
99
100
|
"tag": "wasm",
|
|
100
101
|
"year": 2024
|
|
101
102
|
},
|
|
102
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "4bd1b9d8ae52ba32b90a1b9a55d329c708ca7865\n"
|
|
103
104
|
}
|