@thi.ng/shader-ast-js 0.7.25 → 0.7.27
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/CHANGELOG.md +7 -1
- package/README.md +2 -2
- package/package.json +11 -11
- package/runtime.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-10-03T16:07:55Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [0.7.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.26) (2022-09-27)
|
|
13
|
+
|
|
14
|
+
#### ⏱ Performance improvements
|
|
15
|
+
|
|
16
|
+
- pre-cache ImageData in canvasRenderer() ([ff0018f](https://github.com/thi-ng/umbrella/commit/ff0018f))
|
|
17
|
+
|
|
12
18
|
### [0.7.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.20) (2022-08-06)
|
|
13
19
|
|
|
14
20
|
#### ⏱ Performance improvements
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/shader-ast-js)
|
|
6
6
|

|
|
@@ -78,7 +78,7 @@ node --experimental-repl-await
|
|
|
78
78
|
> const shaderAstJs = await import("@thi.ng/shader-ast-js");
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
Package sizes (gzipped, pre-treeshake): ESM: 7.
|
|
81
|
+
Package sizes (gzipped, pre-treeshake): ESM: 7.24 KB
|
|
82
82
|
|
|
83
83
|
## Dependencies
|
|
84
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/shader-ast-js",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.27",
|
|
4
4
|
"description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.4.
|
|
38
|
-
"@thi.ng/checks": "^3.2.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/math": "^5.3.
|
|
41
|
-
"@thi.ng/matrices": "^2.1.
|
|
42
|
-
"@thi.ng/pixel": "^
|
|
43
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
44
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.4.3",
|
|
38
|
+
"@thi.ng/checks": "^3.2.6",
|
|
39
|
+
"@thi.ng/errors": "^2.2.1",
|
|
40
|
+
"@thi.ng/math": "^5.3.10",
|
|
41
|
+
"@thi.ng/matrices": "^2.1.26",
|
|
42
|
+
"@thi.ng/pixel": "^4.0.1",
|
|
43
|
+
"@thi.ng/shader-ast": "^0.12.22",
|
|
44
|
+
"@thi.ng/vectors": "^7.5.17"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.31.1",
|
|
48
|
-
"@thi.ng/testament": "^0.3.
|
|
48
|
+
"@thi.ng/testament": "^0.3.1",
|
|
49
49
|
"rimraf": "^3.0.2",
|
|
50
50
|
"tools": "^0.0.1",
|
|
51
51
|
"typedoc": "^0.22.17",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
],
|
|
148
148
|
"year": 2019
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "8600007d81a7dc92634a1d54e2c32b14ab30ba80\n"
|
|
151
151
|
}
|
package/runtime.js
CHANGED
|
@@ -85,8 +85,9 @@ export const renderBuffer = (fn, buf, x = 0, y = 0, w, h, bufOffsetX = 0, bufOff
|
|
|
85
85
|
*/
|
|
86
86
|
export const canvasRenderer = (canvas) => {
|
|
87
87
|
const buf = intBufferFromCanvas(canvas);
|
|
88
|
+
const data = new ImageData(canvas.width, canvas.height);
|
|
88
89
|
return (fn, x = 0, y = 0, w = canvas.width, h = canvas.height) => {
|
|
89
90
|
renderBuffer(fn, buf, x, y, w, h);
|
|
90
|
-
buf.blitCanvas(canvas);
|
|
91
|
+
buf.blitCanvas(canvas, { data });
|
|
91
92
|
};
|
|
92
93
|
};
|