@idle-screens/savers-classic 3.0.0 → 3.1.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.
@@ -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-RMW74SYX.js";
14
+ } from "./chunk-PU6BQ5S3.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*\.?\d+)px/;
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`);
@@ -3023,6 +3024,7 @@ var EXAMPLE_BY_ID = Object.fromEntries(
3023
3024
  // src/idle-worker.ts
3024
3025
  runIdleWorker(
3025
3026
  {
3027
+ [dvd.manifest.id]: dvd,
3026
3028
  [warp.manifest.id]: warp,
3027
3029
  [hardRain.manifest.id]: hardRain,
3028
3030
  [rainstorm.manifest.id]: rainstorm,