@idle-screens/savers-classic 3.2.4 → 3.2.5
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/LICENSE +26 -0
- package/dist/{chunk-ZF4KJIVM.js → chunk-UR27KEJK.js} +41 -20
- package/dist/chunk-UR27KEJK.js.map +1 -0
- package/dist/idle-worker.d.ts +1 -1
- package/dist/idle-worker.js +5621 -547
- package/dist/idle-worker.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +12 -7
- package/dist/chunk-ZF4KJIVM.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -19,3 +19,29 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Portions of this package are ports of after-dark-css by Bryan Braun
|
|
26
|
+
(https://github.com/bryanbraun/after-dark-css), whose HTML and CSS are
|
|
27
|
+
licensed under the MIT License:
|
|
28
|
+
|
|
29
|
+
Copyright (c) 2014 Bryan Braun
|
|
30
|
+
|
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
32
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
33
|
+
in the Software without restriction, including without limitation the rights
|
|
34
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
36
|
+
furnished to do so, subject to the following conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be included in all
|
|
39
|
+
copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
42
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
44
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
45
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
46
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
|
+
SOFTWARE.
|
|
@@ -695,7 +695,7 @@ function timingPhase(t) {
|
|
|
695
695
|
t25: -0.75,
|
|
696
696
|
t26: -0.6,
|
|
697
697
|
t27: -0.45,
|
|
698
|
-
t28: 0.3,
|
|
698
|
+
t28: -0.3,
|
|
699
699
|
t29: -0.15,
|
|
700
700
|
t30: 0
|
|
701
701
|
};
|
|
@@ -2106,9 +2106,10 @@ var PipesInstance = class {
|
|
|
2106
2106
|
* steps; anything else repaints and replays the prefix.
|
|
2107
2107
|
*/
|
|
2108
2108
|
renderFrame(t, _seed) {
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
const
|
|
2109
|
+
const tt = Math.max(0, t);
|
|
2110
|
+
this.t = tt;
|
|
2111
|
+
const { epoch, start, plan } = this.epochAt(tt);
|
|
2112
|
+
const stepsDone = Math.max(0, Math.min(plan.steps.length, Math.floor((tt - start) / plan.stepMs)));
|
|
2112
2113
|
if (epoch === this.paintedEpoch && stepsDone >= this.paintedSteps) {
|
|
2113
2114
|
this.drawSteps(plan, this.paintedSteps, stepsDone);
|
|
2114
2115
|
} else {
|
|
@@ -2844,20 +2845,30 @@ var FluidGPU = class _FluidGPU {
|
|
|
2844
2845
|
this.canvas.style.cssText = "display:block;width:100%;height:100%";
|
|
2845
2846
|
this.canvas.setAttribute("aria-hidden", "true");
|
|
2846
2847
|
this.canvas.setAttribute("data-fluid-backend", "webgpu");
|
|
2847
|
-
ctx.host.appendChild(this.canvas);
|
|
2848
2848
|
this.canvas.width = Math.max(1, Math.round(this.w * this.dpr));
|
|
2849
2849
|
this.canvas.height = Math.max(1, Math.round(this.h * this.dpr));
|
|
2850
|
-
|
|
2850
|
+
const gpuCtx = this.canvas.getContext("webgpu");
|
|
2851
|
+
if (!gpuCtx) {
|
|
2852
|
+
device.destroy();
|
|
2853
|
+
throw new Error("fluid-gpu: no webgpu context");
|
|
2854
|
+
}
|
|
2855
|
+
this.gpuCtx = gpuCtx;
|
|
2851
2856
|
this.format = navigator.gpu.getPreferredCanvasFormat();
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2857
|
+
try {
|
|
2858
|
+
this.gpuCtx.configure({
|
|
2859
|
+
device,
|
|
2860
|
+
format: this.format,
|
|
2861
|
+
alphaMode: "opaque"
|
|
2862
|
+
});
|
|
2863
|
+
this.f = {};
|
|
2864
|
+
for (const n of FIELDS) this.f[n] = mkStorage(device);
|
|
2865
|
+
this.initPipelines();
|
|
2866
|
+
this.initUniforms();
|
|
2867
|
+
} catch (err) {
|
|
2868
|
+
device.destroy();
|
|
2869
|
+
throw err;
|
|
2870
|
+
}
|
|
2871
|
+
ctx.host.appendChild(this.canvas);
|
|
2861
2872
|
this.emitters = buildEmitters(ctx.rng, GPU_N);
|
|
2862
2873
|
device.lost.then(() => {
|
|
2863
2874
|
this.lost = true;
|
|
@@ -3773,11 +3784,20 @@ var ReactionDiffusionGPU = class {
|
|
|
3773
3784
|
this.canvas.style.cssText = "display:block;width:100%;height:100%";
|
|
3774
3785
|
this.canvas.setAttribute("aria-hidden", "true");
|
|
3775
3786
|
this.canvas.setAttribute("data-rd-backend", "webgpu");
|
|
3776
|
-
ctx.host.appendChild(this.canvas);
|
|
3777
3787
|
this.sizeCanvas();
|
|
3778
|
-
|
|
3788
|
+
const gpuCtx = this.canvas.getContext("webgpu");
|
|
3789
|
+
if (!gpuCtx) {
|
|
3790
|
+
device.destroy();
|
|
3791
|
+
throw new Error("reaction-diffusion-gpu: no webgpu context");
|
|
3792
|
+
}
|
|
3793
|
+
this.gpuCtx = gpuCtx;
|
|
3779
3794
|
this.format = navigator.gpu.getPreferredCanvasFormat();
|
|
3780
|
-
|
|
3795
|
+
try {
|
|
3796
|
+
this.gpuCtx.configure({ device, format: this.format, alphaMode: "opaque" });
|
|
3797
|
+
} catch (err) {
|
|
3798
|
+
device.destroy();
|
|
3799
|
+
throw err;
|
|
3800
|
+
}
|
|
3781
3801
|
const sz = GPU_N2 * GPU_N2 * 8;
|
|
3782
3802
|
const usage = GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST;
|
|
3783
3803
|
this.bufA = device.createBuffer({ size: sz, usage });
|
|
@@ -3832,6 +3852,7 @@ var ReactionDiffusionGPU = class {
|
|
|
3832
3852
|
layout: renderLayout,
|
|
3833
3853
|
entries: [{ binding: 0, resource: { buffer: this.bufB } }]
|
|
3834
3854
|
});
|
|
3855
|
+
ctx.host.appendChild(this.canvas);
|
|
3835
3856
|
device.lost.then(() => {
|
|
3836
3857
|
this.lost = true;
|
|
3837
3858
|
this.stop();
|
|
@@ -4176,7 +4197,7 @@ var PARAM_SPACE7 = {
|
|
|
4176
4197
|
var messagesManifest = {
|
|
4177
4198
|
id: "messages",
|
|
4178
4199
|
label: "Messages",
|
|
4179
|
-
description: 'Typeset phrases cross the screen. Two modes: "
|
|
4200
|
+
description: 'Typeset phrases cross the screen. Two modes: "marquee" (scroll across) and "drift" (travelling text \u2014 the former Messages II). Steerable: phrase, mode, speed, textScale, ink, glow, trail.',
|
|
4180
4201
|
timeModel: "closed-form",
|
|
4181
4202
|
passthrough: false,
|
|
4182
4203
|
minBackend: "canvas2d",
|
|
@@ -4387,4 +4408,4 @@ export {
|
|
|
4387
4408
|
messages,
|
|
4388
4409
|
messagesDemoTrack
|
|
4389
4410
|
};
|
|
4390
|
-
//# sourceMappingURL=chunk-
|
|
4411
|
+
//# sourceMappingURL=chunk-UR27KEJK.js.map
|