mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Plotly.js tweaks (#40702)
* More support for partial update with Plotly.restyle * marker symbols can be string or numbers Plotly documentation do not match their behavior here * Allow to change axis title in plotly.relayout
This commit is contained in:
Vendored
+11
-3
@@ -261,6 +261,8 @@ export interface Layout {
|
||||
'xaxis.type': AxisType;
|
||||
'xaxis.autorange': boolean;
|
||||
'yaxis.autorange': boolean;
|
||||
'xaxis.title': string;
|
||||
'yaxis.title': string;
|
||||
ternary: {}; // TODO
|
||||
geo: {}; // TODO
|
||||
mapbox: {}; // TODO
|
||||
@@ -518,10 +520,11 @@ export interface PlotData {
|
||||
'line.smoothing': number;
|
||||
'line.simplify': boolean;
|
||||
marker: Partial<PlotMarker>;
|
||||
'marker.symbol': string | string[]; // Drawing.symbolList
|
||||
'marker.symbol': MarkerSymbol | MarkerSymbol[];
|
||||
'marker.color': Color;
|
||||
'marker.colorscale': ColorScale | ColorScale[];
|
||||
'marker.opacity': number | number[];
|
||||
'marker.size': number | number[];
|
||||
'marker.size': number | number[] | number[][];
|
||||
'marker.maxdisplayed': number;
|
||||
'marker.sizeref': number;
|
||||
'marker.sizemax': number;
|
||||
@@ -529,6 +532,8 @@ export interface PlotData {
|
||||
'marker.sizemode': 'diameter' | 'area';
|
||||
'marker.showscale': boolean;
|
||||
'marker.line': Partial<ScatterMarkerLine>;
|
||||
'marker.line.color': Color;
|
||||
'marker.line.colorscale': ColorScale | ColorScale[];
|
||||
'marker.colorbar': {}; // TODO
|
||||
'marker.pad.t': number;
|
||||
'marker.pad.b': number;
|
||||
@@ -715,13 +720,16 @@ export interface ColorBar {
|
||||
tickvalssrc: any;
|
||||
ticktextsrc: any;
|
||||
}
|
||||
|
||||
export type MarkerSymbol = string | number | Array<(string | number)>;
|
||||
|
||||
/**
|
||||
* Any combination of "x", "y", "z", "text", "name" joined with a "+" OR "all" or "none" or "skip".
|
||||
* examples: "x", "y", "x+y", "x+y+z", "all"
|
||||
* default: "all"
|
||||
*/
|
||||
export interface PlotMarker {
|
||||
symbol: string | string[]; // Drawing.symbolList
|
||||
symbol: MarkerSymbol;
|
||||
color: Color | Color[];
|
||||
colors: Color[];
|
||||
colorscale: ColorScale;
|
||||
|
||||
Reference in New Issue
Block a user