@zhin.js/plugin-runtime 1.1.11 → 1.1.12

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,13 +1,13 @@
1
1
  export interface HtmlRenderOptions {
2
2
  readonly width?: number;
3
- /** 兼容旧调用方;当前实现传 `svg` 也会降级为 png。 */
4
- readonly format?: 'png' | 'svg';
3
+ /** Static raster output; defaults to PNG. */
4
+ readonly format?: 'png' | 'jpeg' | 'webp';
5
5
  readonly backgroundColor?: string;
6
6
  }
7
7
  export interface HtmlRenderResult {
8
- /** 当前实现恒为 png:Buffer/Uint8Array。 */
8
+ /** Raster bytes from the optional rendering engine. */
9
9
  readonly data: unknown;
10
- readonly format: 'png' | 'svg';
10
+ readonly format: 'png' | 'jpeg' | 'webp';
11
11
  readonly width: number;
12
12
  readonly height: number;
13
13
  readonly mimeType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-runtime",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Zero-dependency Plugin tree, Scope and atomic generation runtime for Zhin",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",