mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
Typings
This commit is contained in:
33
plotly.js/plotly.js.d.ts
vendored
Normal file
33
plotly.js/plotly.js.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
// Type definitions for plotly.js
|
||||
// Project: https://plot.ly/javascript/
|
||||
// Definitions by: Martin Duparc <https://github.com/martinduparc>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface PlotlyConfig {
|
||||
staticPlot?: boolean,
|
||||
editable?: boolean,
|
||||
autosizable?: boolean,
|
||||
fillFrame?: boolean,
|
||||
frameMargins?: number,
|
||||
scrollZoom?: boolean,
|
||||
doubleClick?: string,
|
||||
showTips?: boolean,
|
||||
showLink?: boolean,
|
||||
sendData?: boolean,
|
||||
linkText?: string,
|
||||
showSources?: boolean,
|
||||
displayModeBar?: string|boolean,
|
||||
modeBarButtonsToRemove?: any[],
|
||||
modeBarButtonsToAdd?: any[],
|
||||
modeBarButtons?: boolean,
|
||||
displaylogo?: boolean,
|
||||
plotGlPixelRatio?: number,
|
||||
setBackground?: any,
|
||||
topojsonURL?: string,
|
||||
mapboxAccessToken?: string,
|
||||
logging?: boolean
|
||||
}
|
||||
|
||||
declare var Plotly: {
|
||||
newPlot(divid:string, data:any[], layout?:any, config?:PlotlyConfig):void
|
||||
};
|
||||
Reference in New Issue
Block a user