From 41f9a034f407e8ac9e197d930dcdfbb1a8f7686f Mon Sep 17 00:00:00 2001 From: Brandon Mitchell Date: Fri, 27 Mar 2020 01:21:08 -0400 Subject: [PATCH] [plotly.js] - Add hovertext, transition; Update Transition; Closes #40488 (#43348) * Add hovertext to PlotData; add ordering to Transition and transition to Layout * Update plotly.js version --- types/plotly.js/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 9bdfc848c7..e8fd4d0d61 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for plotly.js 1.44 +// Type definitions for plotly.js 1.50 // Project: https://plot.ly/javascript/, https://github.com/plotly/plotly.js // Definitions by: Chris Gervang // Martin Duparc @@ -16,6 +16,7 @@ // Michael Adams // Michael Arnett // Piotr Błażejewicz +// Brandon Mitchell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as _d3 from "d3"; @@ -322,6 +323,7 @@ export interface Layout { polar7: Partial; polar8: Partial; polar9: Partial; + transition: Transition; } export interface Legend extends Label { @@ -657,6 +659,7 @@ export interface PlotData { 'z+x+y' | 'z+x+y+text' | 'z+x+y+name'; hoverlabel: Partial; hovertemplate: string | string[]; + hovertext: string | string[]; textinfo: 'label' | 'label+text' | 'label+value' | 'label+percent' | 'label+text+value' | 'label+text+percent' | 'label+value+percent' | 'text' | 'text+value' | 'text+percent' | 'text+value+percent' | 'value' | 'value+percent' | 'percent' | 'none'; @@ -1386,6 +1389,11 @@ export interface Transition { 'linear-out' | 'quad-out' | 'cubic-out' | 'sin-out' | 'exp-out' | 'circle-out' | 'elastic-out' | 'back-out' | 'bounce-out' | 'linear-in-out' | 'quad-in-out' | 'cubic-in-out' | 'sin-in-out' | 'exp-in-out' | 'circle-in-out' | 'elastic-in-out' | 'back-in-out' | 'bounce-in-out'; + /** + * Determines whether the figure's layout or traces smoothly transitions during updates that make both traces + * and layout change. Default is "layout first". + */ + ordering?: 'layout first' | 'traces first'; } export interface SliderStep {