editor-render-v2
Version:
编辑器渲染器
15 lines (14 loc) • 521 B
TypeScript
import { IJsonData } from '../interface';
interface IExport {
json: IJsonData;
width: number;
height: number;
options: any;
}
/**
* 渲染图片
* @param param0 { format: 图片类型默认为png, quality: 图片质量默认为1,multiplier: 图片放大系数, json: 渲染的数据, width: 渲染图片的宽度, height: 渲染图片的高度 }
* @returns 渲染图片的base64
*/
declare function toSVGAsync({ json, width, height, options }: IExport): Promise<string>;
export default toSVGAsync;