@zhin.js/plugin-runtime 1.1.8 → 1.1.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.
@@ -1,10 +1,11 @@
1
1
  export interface HtmlRenderOptions {
2
2
  readonly width?: number;
3
+ /** 兼容旧调用方;当前实现传 `svg` 也会降级为 png。 */
3
4
  readonly format?: 'png' | 'svg';
4
5
  readonly backgroundColor?: string;
5
6
  }
6
7
  export interface HtmlRenderResult {
7
- /** PNG 时为 Buffer/Uint8Array,SVG 时为 string。 */
8
+ /** 当前实现恒为 png:Buffer/Uint8Array。 */
8
9
  readonly data: unknown;
9
10
  readonly format: 'png' | 'svg';
10
11
  readonly width: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-runtime",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Zero-dependency Plugin tree, Scope and atomic generation runtime for Zhin",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",