From 1faf201e8608dfa4d7af3460fd3d1fc7ebec398b Mon Sep 17 00:00:00 2001 From: talasila Date: Tue, 7 Feb 2017 11:47:55 -0500 Subject: Initial OpenECOMP Portal SDK commit Change-Id: I66a3491600a4b9ea241128dc29267eed6a78ed76 Signed-off-by: talasila --- .../static/fusion/raptor/dy3/js/dygraph-externs.js | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 ecomp-sdk/sdk-app/src/main/webapp/static/fusion/raptor/dy3/js/dygraph-externs.js (limited to 'ecomp-sdk/sdk-app/src/main/webapp/static/fusion/raptor/dy3/js/dygraph-externs.js') diff --git a/ecomp-sdk/sdk-app/src/main/webapp/static/fusion/raptor/dy3/js/dygraph-externs.js b/ecomp-sdk/sdk-app/src/main/webapp/static/fusion/raptor/dy3/js/dygraph-externs.js new file mode 100644 index 00000000..ed5de4c1 --- /dev/null +++ b/ecomp-sdk/sdk-app/src/main/webapp/static/fusion/raptor/dy3/js/dygraph-externs.js @@ -0,0 +1,93 @@ +/** + * @param {Object} dict + * @return {!Array.} + */ +function printStackTrace(dict) {} + + +/** + * @constructor + */ +function G_vmlCanvasManager() {} + +/** + * @param {!HTMLCanvasElement} canvas + */ +G_vmlCanvasManager.initElement = function(canvas) {}; + +// For IE +/** + * @param {string} type + * @param {Object} fn + */ +Element.prototype.detachEvent = function(type, fn) {}; + + +/** + * @typedef {function( + * (number|Date), + * number, + * function(string):*, + * (Dygraph|undefined) + * ):string} + */ +var AxisLabelFormatter; + + +/** + * @typedef {function(number,function(string),Dygraph):string} + */ +var ValueFormatter; + + +/** + * @typedef {Array.>>} + */ +var DygraphDataArray; + +/** + * @constructor + */ +function GVizDataTable() {} + +// TODO(danvk): move the Dygraph definitions out of here once I closure-ify dygraphs.js +/** + * @param {!HTMLDivElement|string} div + * @param {DygraphDataArray| + * GVizDataTable| + * string| + * function():(DygraphDataArray|GVizDataTable|string)} file + * @param {Object} attrs + * @constructor + */ +function Dygraph(div, file, attrs) {} + +/** + * @constructor + */ +function DygraphLayout() {} + +/** + * @type {Array} + */ +DygraphLayout.prototype.datasets; + +// TODO: DygraphOptions should not reach inside Dygraph private data like this. +/** @type {Object} */ +Dygraph.prototype.attrs_; +/** @type {Object} */ +Dygraph.prototype.user_attrs_; + +/** + * @type {DygraphLayout} + */ +Dygraph.prototype.layout_; + +/** @type {function(): string} */ +Dygraph.prototype.getHighlightSeries; + +/** @type {Array.<{elem:Element,type:string,fn:function(!Event):(boolean|undefined|null)}>} */ +Dygraph.prototype.registeredEvents_; + +/** @type {{axes: Object}} */ +Dygraph.DEFAULT_ATTRS; -- cgit 1.2.3-korg