Loading...
画布内容通过图片形式导出的 Hook
const { exportPNG, exportJPEG, exportSVG } = useExport();
const {exportPNG: (fileName, options) => void,exportJPEG: (fileName, options) => void,exportSVG: (fileName, options) => void} = useExport();
参数 | 描述 | 类型 | 默认值 |
---|---|---|---|
exportPNG | 导出PNG | (fileName:string, options: Export.ToImageOptions = {}) => void | ('chart', {}) => void |
exportJPEG | 导出JPEG | (fileName:string, options: Export.ToImageOptions = {}) => void | ('chart', {}) => void |
exportSVG | 导出SVG | (fileName:string, options: Export.ToSVGOptions = {}) => void | ('chart', {}) => void |
无