satoru-render 0.0.22 → 0.0.24

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
@@ -1,6 +1,6 @@
1
1
  # Satoru Render: High-Performance HTML to Image/PDF Engine
2
2
 
3
- [![Playground](https://img.shields.io/badge/Demo-Playground-blueviolet)](https://sorakumo001.github.io/satoru/)
3
+ [![Playground](https://img.shields.io/badge/Demo-Playground-blueviolet)](https://sorakumo001.github.io/satoru/master)
4
4
  [![npm license](https://img.shields.io/npm/l/satoru-render.svg)](https://www.npmjs.com/package/satoru-render)
5
5
  [![npm version](https://img.shields.io/npm/v/satoru-render.svg)](https://www.npmjs.com/package/satoru-render)
6
6
  [![npm download](https://img.shields.io/npm/dw/satoru-render.svg)](https://www.npmjs.com/package/satoru-render)
@@ -158,7 +158,7 @@ const png = await render({
158
158
  console.warn(`Failed to fetch via proxy: ${resource.url}`, e);
159
159
  }
160
160
  }
161
-
161
+
162
162
  // Fallback to default resolver for other resources
163
163
  return defaultResolver(resource);
164
164
  },
@@ -346,18 +346,18 @@ npx satoru-render input.html -f webp --verbose
346
346
 
347
347
  ### Render Options
348
348
 
349
- | Option | Type | Description |
350
- | :---------------- | :--------------------------------------- | :------------------------------------------------------ |
349
+ | Option | Type | Description |
350
+ | :---------------- | :----------------------------------------- | :------------------------------------------------------ |
351
351
  | `value` | `string \| string[] \| HTMLElement \| ...` | HTML string, array of strings, or DOM element(s). |
352
- | `url` | `string` | URL to fetch HTML from. |
353
- | `width` | `number` | **Required.** Output width in pixels. |
354
- | `height` | `number` | Output height. Default: `0` (auto-calculate). |
355
- | `format` | `"svg" \| "png" \| "webp" \| "pdf"` | Output format. Default: `"svg"`. |
356
- | `resolveResource` | `ResourceResolver` | Async callback to fetch assets (fonts, images, CSS). |
357
- | `fonts` | `Object[]` | Pre-load fonts: `[{ name, data: Uint8Array }]`. |
358
- | `css` | `string` | Extra CSS to inject into the document. |
359
- | `baseUrl` | `string` | Base URL for relative path resolution. |
360
- | `logLevel` | `LogLevel` | Verbosity: `None`, `Error`, `Warning`, `Info`, `Debug`. |
352
+ | `url` | `string` | URL to fetch HTML from. |
353
+ | `width` | `number` | **Required.** Output width in pixels. |
354
+ | `height` | `number` | Output height. Default: `0` (auto-calculate). |
355
+ | `format` | `"svg" \| "png" \| "webp" \| "pdf"` | Output format. Default: `"svg"`. |
356
+ | `resolveResource` | `ResourceResolver` | Async callback to fetch assets (fonts, images, CSS). |
357
+ | `fonts` | `Object[]` | Pre-load fonts: `[{ name, data: Uint8Array }]`. |
358
+ | `css` | `string` | Extra CSS to inject into the document. |
359
+ | `baseUrl` | `string` | Base URL for relative path resolution. |
360
+ | `logLevel` | `LogLevel` | Verbosity: `None`, `Error`, `Warning`, `Info`, `Debug`. |
361
361
 
362
362
  ---
363
363
 
Binary file
package/dist/satoru.wasm CHANGED
Binary file