@idle-screens/savers-classic 3.0.0 → 3.2.0
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/dist/{chunk-RMW74SYX.js → chunk-GVD3Q4LE.js} +1335 -433
- package/dist/chunk-GVD3Q4LE.js.map +1 -0
- package/dist/idle-worker.js +7 -2
- package/dist/idle-worker.js.map +1 -1
- package/dist/index.d.ts +28 -5
- package/dist/index.js +240 -297
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-RMW74SYX.js.map +0 -1
package/dist/idle-worker.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
dvd,
|
|
2
3
|
fluid,
|
|
3
4
|
flurry,
|
|
4
5
|
globe,
|
|
@@ -10,7 +11,7 @@ import {
|
|
|
10
11
|
reactionDiffusion,
|
|
11
12
|
spotlight,
|
|
12
13
|
warp
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GVD3Q4LE.js";
|
|
14
15
|
|
|
15
16
|
// src/idle-worker.ts
|
|
16
17
|
import { runIdleWorker } from "@idle-screens/core";
|
|
@@ -1171,7 +1172,7 @@ function hexToRgba(hex, alpha) {
|
|
|
1171
1172
|
return `rgba(${n >> 16 & 255},${n >> 8 & 255},${n & 255},${alpha})`;
|
|
1172
1173
|
}
|
|
1173
1174
|
var FONT_PREFIX_RE = /^((?:(?:italic|oblique|bold|bolder|lighter|normal|\d{3})\s+)+)/;
|
|
1174
|
-
var FONT_PX_RE = /(\d
|
|
1175
|
+
var FONT_PX_RE = /(\d{1,5}(?:\.\d{1,4})?|\.\d{1,4})px/;
|
|
1175
1176
|
function scaleFontPx(font, factor) {
|
|
1176
1177
|
if (factor === 1) return font;
|
|
1177
1178
|
return font.replace(FONT_PX_RE, (_m, n) => `${(Number(n) * factor).toFixed(2)}px`);
|
|
@@ -1187,6 +1188,9 @@ function manifestFor(spec) {
|
|
|
1187
1188
|
return {
|
|
1188
1189
|
id: spec.id,
|
|
1189
1190
|
label: spec.label,
|
|
1191
|
+
// Declarative specs are closed-form by construction: every entity is a
|
|
1192
|
+
// pure function of (seed, t), which is the whole point of the format.
|
|
1193
|
+
timeModel: "closed-form",
|
|
1190
1194
|
passthrough: false,
|
|
1191
1195
|
minBackend: "canvas2d",
|
|
1192
1196
|
costTier,
|
|
@@ -3023,6 +3027,7 @@ var EXAMPLE_BY_ID = Object.fromEntries(
|
|
|
3023
3027
|
// src/idle-worker.ts
|
|
3024
3028
|
runIdleWorker(
|
|
3025
3029
|
{
|
|
3030
|
+
[dvd.manifest.id]: dvd,
|
|
3026
3031
|
[warp.manifest.id]: warp,
|
|
3027
3032
|
[hardRain.manifest.id]: hardRain,
|
|
3028
3033
|
[rainstorm.manifest.id]: rainstorm,
|