From 7d69a9dfa2bc2416b5cc95fe2031814c87e3aa1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20B=C5=82a=C5=BCejewicz=20=28Peter=20Blazejewicz=29?= Date: Tue, 7 Apr 2020 04:21:47 +0200 Subject: [PATCH] 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! --- types/plotly.js/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index b7b6ca3bc1..81f268f449 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -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 {