@mathzetta/qblur 0.1.0 → 0.1.2
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 +29 -0
- package/LICENSE +1 -1
- package/README.md +13 -4
- package/dist/cpu-worker.js +2 -2
- package/dist/qblur-apply.js +2 -2
- package/dist/qblur-element.js +2 -2
- package/dist/qblur.core.js +2 -2
- package/dist/qblur.external.global.min.js +2 -2
- package/dist/qblur.external.js +2 -2
- package/dist/qblur.global.min.js +2 -2
- package/dist/qblur.js +2 -2
- package/docs/filters.md +1 -1
- package/docs/library.md +3 -6
- package/package.json +8 -2
- package/src/cpu-helpers.js +2 -0
- package/src/cpu-runner.js +26 -12
- package/src/cpu.js +15 -10
- package/src/format.js +22 -13
- package/src/graphics.js +1 -1
- package/src/png.js +3 -0
- package/src/runtime.js +25 -6
- package/src/strokes.js +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
Fixes from a review before this release. Needs MathZetta 1.2 (the peer range is `^1.2.0`).
|
|
6
|
+
|
|
7
|
+
- **The CPU gives the shader's pixels again.** `round` takes a half away from zero (`round(-2.5)` is −3, as
|
|
8
|
+
MathZetta 1.2's shaders round), and `50%` is 0.5 on the CPU too (it was "unknown name").
|
|
9
|
+
- **Names every object has are ordinary names.** A knob, picture or graphic called `constructor`, `toString` or
|
|
10
|
+
`valueOf` works (a knob so named had the value NaN, and a picture was refused); an unknown name or function
|
|
11
|
+
so called is refused as unknown, not by a later error.
|
|
12
|
+
- **Text is not maths.** A quoted string in a filter is refused on the GPU as it was on the CPU (it was
|
|
13
|
+
written into the shader, which then failed to compile).
|
|
14
|
+
- **A filter built to stall the page is stopped.** At most 256 passes and 64 graphics; brush strokes stop
|
|
15
|
+
painting after a few hundred frames' worth of work in one call (a point far outside the frame, or the
|
|
16
|
+
largest brush crossing it thousands of times, froze the page for minutes); a very long `options` list no
|
|
17
|
+
longer overflows the stack.
|
|
18
|
+
- **`drawAsync`:** calls made before the workers are up share one pool (two pools were started, one was never
|
|
19
|
+
closed, and a call could fail); `dispose()` during a draw ends that draw with an error instead of leaving
|
|
20
|
+
it waiting for ever; a picture is copied to shared memory once, not on every draw.
|
|
21
|
+
- **WebGL:** shaders are freed once their program is linked, and when a pass does not compile the passes
|
|
22
|
+
compiled before it are freed too (each filter left two shader objects per pass behind).
|
|
23
|
+
- A font's CSS is fetched without cookies or a referrer. `encodePng` refuses a size that isn't whole pixels
|
|
24
|
+
or data too short for it.
|
|
25
|
+
- More npm keywords (image-processing, canvas, gif, web-component …).
|
|
26
|
+
|
|
27
|
+
## 0.1.1
|
|
28
|
+
|
|
29
|
+
No change to the code. The licence names its holder (`Copyright (c) 2025-2026 Robert Wilcox`; 0.1.0's said
|
|
30
|
+
"MathZetta Contributors"), and every bundle's banner says whose it is and its licence, MathZetta's too.
|
|
31
|
+
The README has a Licence section, and it and docs/library.md no longer say the package isn't on npm yet.
|
|
3
32
|
## 0.1.0 — first release
|
|
4
33
|
|
|
5
34
|
The filter format, its compiler and two runners that give the same pixels.
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -71,10 +71,6 @@ Serve the folder from anywhere (GitHub Pages, S3, a CDN); share links are
|
|
|
71
71
|
|
|
72
72
|
## From a CDN
|
|
73
73
|
|
|
74
|
-
> Not on npm yet: the addresses below are where releases will be (placeholders until the first one).
|
|
75
|
-
> Search for `cdn.jsdelivr.net/npm/@mathzetta/qblur` to find every place they are written: this README,
|
|
76
|
-
> docs/library.md (and the site's library.html built from it).
|
|
77
|
-
|
|
78
74
|
Every npm release's `dist/` is on jsDelivr (and unpkg), MathZetta's GLSL output bundled in —
|
|
79
75
|
[docs/library.md](docs/library.md) has working examples of each way in:
|
|
80
76
|
|
|
@@ -142,3 +138,16 @@ Publishing is `npm publish` (`prepublishOnly` runs the tests and the build).
|
|
|
142
138
|
This was `src/filters/` and `demos/filters.html` in MathZetta until
|
|
143
139
|
2026-10-16; the GLSL expression output (`toGLSL`, `filterShader`) stayed
|
|
144
140
|
there as `mathzetta/glsl`.
|
|
141
|
+
|
|
142
|
+
## Licence
|
|
143
|
+
|
|
144
|
+
MIT — [LICENSE](LICENSE), Copyright (c) 2025-2026 Robert Wilcox: the package, the editor, the apps, the
|
|
145
|
+
built-in filters and the site's own files. In this repository but under their own licences:
|
|
146
|
+
|
|
147
|
+
- `demo/models/` and `site/models/`: the object models, Apache License 2.0 (`LICENSE` and `NOTICE` there);
|
|
148
|
+
none of them is in the npm package.
|
|
149
|
+
- `demo/photos/` and `site/photos/`: the sample photos and videos, from Unsplash and Pexels under their own
|
|
150
|
+
licences (the Unsplash License, the Pexels License), credited in `photos/index.json` and under each on the page.
|
|
151
|
+
- `site/ort/`: ONNX Runtime Web, MIT, Copyright (c) Microsoft Corporation (`site/ort/LICENSE`).
|
|
152
|
+
- The site's bundles include gifenc (MIT, Copyright (c) 2017 Matt DesLauriers). `site/THIRD-PARTY-NOTICES.txt`
|
|
153
|
+
lists all of these for the deployed site.
|