@zumer/snapdom 1.9.8 → 1.9.9

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/README.md CHANGED
@@ -151,13 +151,15 @@ All capture methods accept an `options` object:
151
151
  | `compress` | boolean | `true` | Removes redundant styles |
152
152
  | `fast` | boolean | `true` | Skips idle delay for faster results |
153
153
  | `embedFonts` | boolean | `false` | Inlines fonts (icon fonts always embedded) |
154
+ | `localFonts` | array | `[]` | Array of local font descriptors `{ family, src, weight?, style? }` |
155
+ | `iconFonts` | string \| RegExp \| (string \| RegExp)[] | `[]` | Additional icon font families or patterns |
154
156
  | `scale` | number | `1` | Output scale multiplier |
155
157
  | `dpr` | number | `devicePixelRatio` | Device pixel ratio |
156
158
  | `width` | number | - | Output specific width size |
157
159
  | `height` | number | - | Output specific height size |
158
160
  | `backgroundColor` | string | `"#fff"` | Fallback color for JPG/WebP |
159
161
  | `quality` | number | `1` | Quality for JPG/WebP (0 to 1) |
160
- | `useProxy` | string | '' | Specify a proxy for handling CORS images as fallback|
162
+ | `useProxy` | string | '' | Specify a proxy for handling CORS images/fonts as fallback|
161
163
  | `type` | string | `svg` | Select `png`, `jpg`, `webp` Blob type|
162
164
  | `exclude` | string[] | - | CSS selectors for elements to exclude |
163
165
  | `filter` | function | - | Custom filter function ie `(el) => !el.classList.contains('hidden')` |
@@ -243,7 +245,9 @@ import { snapdom, preCache } from './snapdom.mjs';
243
245
  **Options for `preCache()`:**
244
246
 
245
247
  * `embedFonts` *(boolean, default: true)* — Inlines non-icon fonts during preload.
246
- * `useProxy` *(string)* — Proxy for handling CORS images as fallback.
248
+ * `localFonts` *(array)* — Array of `{ family, src, weight?, style? }` for local font sources.
249
+ * `useProxy` *(string)* — Proxy for handling CORS images/fonts as fallback.
250
+
247
251
 
248
252
 
249
253
  ## Features