@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.
- package/lib/html-renderer.d.ts +4 -4
- package/package.json +1 -1
package/lib/html-renderer.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export interface HtmlRenderOptions {
|
|
2
2
|
readonly width?: number;
|
|
3
|
-
/**
|
|
4
|
-
readonly format?: 'png' | '
|
|
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
|
-
/**
|
|
8
|
+
/** Raster bytes from the optional rendering engine. */
|
|
9
9
|
readonly data: unknown;
|
|
10
|
-
readonly format: 'png' | '
|
|
10
|
+
readonly format: 'png' | 'jpeg' | 'webp';
|
|
11
11
|
readonly width: number;
|
|
12
12
|
readonly height: number;
|
|
13
13
|
readonly mimeType: string;
|