diff --git a/packages/graphic-walker/src/visualSettings/index.tsx b/packages/graphic-walker/src/visualSettings/index.tsx index a890c42d..345ecdb1 100644 --- a/packages/graphic-walker/src/visualSettings/index.tsx +++ b/packages/graphic-walker/src/visualSettings/index.tsx @@ -111,6 +111,14 @@ const VisualSettings: React.FC = ({ [rendererHandler] ); + const downloadBase64 = useCallback( + throttle(() => { + rendererHandler?.current?.getCanvasData().then(x => navigator.clipboard.writeText(x.join(','))); + }, 200), + [rendererHandler] + ); + + const downloadCSV = useCallback( throttle(() => { csvHandler?.current?.download(); @@ -530,6 +538,17 @@ const VisualSettings: React.FC = ({ > {t('button.export_chart_as', { type: 'svg' })} + ), }]:[],