mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
49e9bf98b3
commit
8eb2a4b791
9
types/plotly.js/index.d.ts
vendored
9
types/plotly.js/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user