Add toImageButtonOptions to config (#36144)

* Add toImageButtonOptions to config

This enables the user to customize the download as image button.

* Fix to partial

* Update index.d.ts

* Update index.d.ts
This commit is contained in:
Domino987 2019-06-12 21:51:45 +02:00 committed by Ron Buckton
parent 49e9bf98b3
commit 8eb2a4b791

View File

@ -740,6 +740,15 @@ export interface Edits {
}
export interface Config {
/** override the defaults for the toImageButton */
toImageButtonOptions: Partial<{
filename: string;
scale: number;
format: 'png' | 'svg' | 'jpeg' | 'webp';
height: number;
width: number;
}>;
/** no interactivity, for export or image generation */
staticPlot: boolean;