fix(plotly.js): missing Icon optional fields (#43655)

- `height`
- `name`i
- `svg`
- `transform`
- properties are optionali

https://git.io/JvNOS

Closes comments: https://git.io/JvNO9

/cc @mmakrzem

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz)
2020-04-06 19:21:47 -07:00
committed by GitHub
parent e45ffb802d
commit 7d69a9dfa2
+6 -2
View File
@@ -473,10 +473,14 @@ export type ModeBarDefaultButtons = 'lasso2d' | 'select2d' | 'sendDataToCloud' |
export type ButtonClickEvent = (gd: PlotlyHTMLElement, ev: MouseEvent) => void;
export interface Icon {
width: number;
path: string;
height?: number;
width?: number;
ascent?: number;
descent?: number;
name?: string;
path?: string;
svg?: string;
transform?: string;
}
export interface ModeBarButton {