mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 01:30:17 +00:00
Merge pull request #806 from jraymakers/master
Fix syntax errors in all definition files
This commit is contained in:
@@ -655,8 +655,8 @@ var DefinitelyTyped;
|
||||
this.out(' \33[36m\33[1mTypeScript files :\33[0m ' + this.tsFiles + '\n');
|
||||
};
|
||||
|
||||
Print.prototype.printSyntaxCheking = function () {
|
||||
this.out('============================ \33[34m\33[1mSyntax cheking\33[0m =================================\n');
|
||||
Print.prototype.printSyntaxChecking = function () {
|
||||
this.out('============================ \33[34m\33[1mSyntax checking\33[0m ================================\n');
|
||||
};
|
||||
|
||||
Print.prototype.printTypingTests = function () {
|
||||
@@ -745,14 +745,14 @@ var DefinitelyTyped;
|
||||
return File;
|
||||
})();
|
||||
|
||||
var SyntaxCheking = (function () {
|
||||
function SyntaxCheking(fielHandler, out) {
|
||||
this.fielHandler = fielHandler;
|
||||
var SyntaxChecking = (function () {
|
||||
function SyntaxChecking(fileHandler, out) {
|
||||
this.fileHandler = fileHandler;
|
||||
this.out = out;
|
||||
this.files = [];
|
||||
this.timer = new Timer();
|
||||
}
|
||||
SyntaxCheking.prototype.getFailedFiles = function () {
|
||||
SyntaxChecking.prototype.getFailedFiles = function () {
|
||||
var list = [];
|
||||
|
||||
for (var i = 0; i < this.files.length; i++) {
|
||||
@@ -764,7 +764,7 @@ var DefinitelyTyped;
|
||||
return list;
|
||||
};
|
||||
|
||||
SyntaxCheking.prototype.getSuccessFiles = function () {
|
||||
SyntaxChecking.prototype.getSuccessFiles = function () {
|
||||
var list = [];
|
||||
|
||||
for (var i = 0; i < this.files.length; i++) {
|
||||
@@ -776,14 +776,14 @@ var DefinitelyTyped;
|
||||
return list;
|
||||
};
|
||||
|
||||
SyntaxCheking.prototype.printStats = function () {
|
||||
SyntaxChecking.prototype.printStats = function () {
|
||||
this.out.printDiv();
|
||||
this.out.printElapsedTime(this.timer.asString, this.timer.time);
|
||||
this.out.printSuccessCount(this.getSuccessFiles().length, this.files.length);
|
||||
this.out.printFailedCount(this.getFailedFiles().length, this.files.length);
|
||||
};
|
||||
|
||||
SyntaxCheking.prototype.printFailedFiles = function () {
|
||||
SyntaxChecking.prototype.printFailedFiles = function () {
|
||||
if (this.getFailedFiles().length > 0) {
|
||||
this.out.printDiv();
|
||||
|
||||
@@ -793,12 +793,12 @@ var DefinitelyTyped;
|
||||
|
||||
for (var i = 0; i < this.getFailedFiles().length; i++) {
|
||||
var errorFile = this.getFailedFiles()[i];
|
||||
this.out.printErrorFile(errorFile.formatName(this.fielHandler.path));
|
||||
this.out.printErrorFile(errorFile.formatName(this.fileHandler.path));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
SyntaxCheking.prototype.run = function (it, file, len, maxLen, callback) {
|
||||
SyntaxChecking.prototype.run = function (it, file, len, maxLen, callback) {
|
||||
var _this = this;
|
||||
if (!endsWith(file.toUpperCase(), '-TESTS.TS') && file.indexOf('../_infrastructure') < 0) {
|
||||
new Test(file).run(function (o) {
|
||||
@@ -843,10 +843,10 @@ var DefinitelyTyped;
|
||||
}
|
||||
};
|
||||
|
||||
SyntaxCheking.prototype.start = function (callback) {
|
||||
SyntaxChecking.prototype.start = function (callback) {
|
||||
this.timer.start();
|
||||
|
||||
var tsFiles = this.fielHandler.allTS();
|
||||
var tsFiles = this.fileHandler.allTS();
|
||||
|
||||
var it = new Iterator(tsFiles);
|
||||
|
||||
@@ -857,12 +857,12 @@ var DefinitelyTyped;
|
||||
this.run(it, it.next(), len, maxLen, callback);
|
||||
}
|
||||
};
|
||||
return SyntaxCheking;
|
||||
return SyntaxChecking;
|
||||
})();
|
||||
|
||||
var TestEval = (function () {
|
||||
function TestEval(fielHandler, out) {
|
||||
this.fielHandler = fielHandler;
|
||||
function TestEval(fileHandler, out) {
|
||||
this.fileHandler = fileHandler;
|
||||
this.out = out;
|
||||
this.files = [];
|
||||
this.timer = new Timer();
|
||||
@@ -908,7 +908,7 @@ var DefinitelyTyped;
|
||||
|
||||
for (var i = 0; i < this.getFailedFiles().length; i++) {
|
||||
var errorFile = this.getFailedFiles()[i];
|
||||
this.out.printErrorFile(errorFile.formatName(this.fielHandler.path));
|
||||
this.out.printErrorFile(errorFile.formatName(this.fileHandler.path));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -961,7 +961,7 @@ var DefinitelyTyped;
|
||||
TestEval.prototype.start = function (callback) {
|
||||
this.timer.start();
|
||||
|
||||
var tsFiles = this.fielHandler.allTS();
|
||||
var tsFiles = this.fileHandler.allTS();
|
||||
|
||||
var it = new Iterator(tsFiles);
|
||||
|
||||
@@ -981,7 +981,7 @@ var DefinitelyTyped;
|
||||
this.typings = [];
|
||||
this.fh = new FileHandler(dtPath, /.\.ts/g);
|
||||
this.out = new Print('0.9.0.0', this.fh.allTypings().length, this.fh.allTS().length);
|
||||
this.sc = new SyntaxCheking(this.fh, this.out);
|
||||
this.sc = new SyntaxChecking(this.fh, this.out);
|
||||
this.te = new TestEval(this.fh, this.out);
|
||||
|
||||
var tpgs = this.fh.allTypings();
|
||||
@@ -1019,7 +1019,7 @@ var DefinitelyTyped;
|
||||
timer.start();
|
||||
|
||||
this.out.printHeader();
|
||||
this.out.printSyntaxCheking();
|
||||
this.out.printSyntaxChecking();
|
||||
|
||||
this.sc.start(function (syntaxFailedCount, syntaxTotal) {
|
||||
_this.out.printTypingTests();
|
||||
|
||||
@@ -148,8 +148,8 @@ module DefinitelyTyped {
|
||||
this.out(' \33[36m\33[1mTypeScript files :\33[0m ' + this.tsFiles + '\n');
|
||||
}
|
||||
|
||||
public printSyntaxCheking() {
|
||||
this.out('============================ \33[34m\33[1mSyntax cheking\33[0m =================================\n');
|
||||
public printSyntaxChecking() {
|
||||
this.out('============================ \33[34m\33[1mSyntax checking\33[0m ================================\n');
|
||||
}
|
||||
|
||||
public printTypingTests() {
|
||||
@@ -235,7 +235,7 @@ module DefinitelyTyped {
|
||||
}
|
||||
}
|
||||
|
||||
class SyntaxCheking {
|
||||
class SyntaxChecking {
|
||||
|
||||
private timer: Timer;
|
||||
|
||||
@@ -265,7 +265,7 @@ module DefinitelyTyped {
|
||||
return list;
|
||||
}
|
||||
|
||||
constructor(public fielHandler: FileHandler, public out: Print) {
|
||||
constructor(public fileHandler: FileHandler, public out: Print) {
|
||||
this.timer = new Timer();
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ module DefinitelyTyped {
|
||||
|
||||
for(var i = 0; i < this.getFailedFiles().length; i++) {
|
||||
var errorFile = this.getFailedFiles()[i];
|
||||
this.out.printErrorFile(errorFile.formatName(this.fielHandler.path));
|
||||
this.out.printErrorFile(errorFile.formatName(this.fileHandler.path));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -338,7 +338,7 @@ module DefinitelyTyped {
|
||||
public start(callback: Function) {
|
||||
this.timer.start();
|
||||
|
||||
var tsFiles = this.fielHandler.allTS();
|
||||
var tsFiles = this.fileHandler.allTS();
|
||||
|
||||
var it = new Iterator(tsFiles);
|
||||
|
||||
@@ -381,7 +381,7 @@ module DefinitelyTyped {
|
||||
return list;
|
||||
}
|
||||
|
||||
constructor(public fielHandler: FileHandler, public out: Print) {
|
||||
constructor(public fileHandler: FileHandler, public out: Print) {
|
||||
this.timer = new Timer();
|
||||
}
|
||||
|
||||
@@ -402,7 +402,7 @@ module DefinitelyTyped {
|
||||
|
||||
for(var i = 0; i < this.getFailedFiles().length; i++) {
|
||||
var errorFile = this.getFailedFiles()[i];
|
||||
this.out.printErrorFile(errorFile.formatName(this.fielHandler.path));
|
||||
this.out.printErrorFile(errorFile.formatName(this.fileHandler.path));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -454,7 +454,7 @@ module DefinitelyTyped {
|
||||
public start(callback: Function) {
|
||||
this.timer.start();
|
||||
|
||||
var tsFiles = this.fielHandler.allTS();
|
||||
var tsFiles = this.fileHandler.allTS();
|
||||
|
||||
var it = new Iterator(tsFiles);
|
||||
|
||||
@@ -470,7 +470,7 @@ module DefinitelyTyped {
|
||||
export class TestRunner {
|
||||
private fh: FileHandler;
|
||||
private out: Print;
|
||||
private sc: SyntaxCheking;
|
||||
private sc: SyntaxChecking;
|
||||
private te: TestEval;
|
||||
private typings: Typing[] = [];
|
||||
|
||||
@@ -505,7 +505,7 @@ module DefinitelyTyped {
|
||||
constructor(public dtPath: string) {
|
||||
this.fh = new FileHandler(dtPath, /.\.ts/g);
|
||||
this.out = new Print('0.9.0.0', this.fh.allTypings().length, this.fh.allTS().length);
|
||||
this.sc = new SyntaxCheking(this.fh, this.out);
|
||||
this.sc = new SyntaxChecking(this.fh, this.out);
|
||||
this.te = new TestEval(this.fh, this.out);
|
||||
|
||||
var tpgs = this.fh.allTypings();
|
||||
@@ -519,7 +519,7 @@ module DefinitelyTyped {
|
||||
timer.start();
|
||||
|
||||
this.out.printHeader();
|
||||
this.out.printSyntaxCheking();
|
||||
this.out.printSyntaxChecking();
|
||||
|
||||
this.sc.start((syntaxFailedCount, syntaxTotal) => {
|
||||
this.out.printTypingTests();
|
||||
|
||||
79
amcharts/AmCharts.d.ts
vendored
79
amcharts/AmCharts.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
/// AmCharts object (it's not a class) is create automatically when amcharts.js or amstock.js file is included in a web page.
|
||||
declare module AmChartsStatic {
|
||||
declare module AmCharts {
|
||||
|
||||
/** Set it to true if you have base href set for your page. This will fix rendering problems in Firefox caused by base href. */
|
||||
var baseHref: bool;
|
||||
@@ -31,7 +31,7 @@ declare module AmChartsStatic {
|
||||
chart.dataProvider = chartData;
|
||||
chart.write("chartdiv");
|
||||
*/
|
||||
declare class AmPieChart {
|
||||
class AmPieChart {
|
||||
/** Name of the field in chart's dataProvider which holds slice's alpha. */
|
||||
alphaField: string;
|
||||
/** Pie lean angle (for 3D effect). Valid range is 0 - 90. */
|
||||
@@ -232,7 +232,7 @@ declare module AmChartsStatic {
|
||||
chart.write("chartdiv");
|
||||
}
|
||||
*/
|
||||
declare class AmRadarChart extends AmCoordinateChart {
|
||||
class AmRadarChart extends AmCoordinateChart {
|
||||
/** Bottom margin of the chart. */
|
||||
marginBottom: number;
|
||||
/** Left margin of the chart. */
|
||||
@@ -290,7 +290,7 @@ declare module AmChartsStatic {
|
||||
|
||||
chart.write("chartdiv);
|
||||
*/
|
||||
declare class AmXYChart extends AmRectangularChart {
|
||||
class AmXYChart extends AmRectangularChart {
|
||||
/** Specifies if Scrollbar of X axis (horizontal) should be hidden. */
|
||||
hideXScrollbar: bool;
|
||||
/** Specifies if Scrollbar of Y axis (vertical) should be hidden. */
|
||||
@@ -305,7 +305,7 @@ declare module AmChartsStatic {
|
||||
/** Guides are straight vertical or horizontal lines or areas supported by AmSerialChart, AmXYChart and AmRadarChart. You can have guides both on value and category axes. To add/remove a guide to an axis, use axis.addGuide(guide)/axis.removeGuide(guide) methods.
|
||||
|
||||
If you do not set properties such as dashLength, lineAlpha, lineColor, etc - values of the axis are used.*/
|
||||
declare class Guide {
|
||||
class Guide {
|
||||
/** Radar chart only. Specifies angle at which guide should start. Affects only fills, not lines. */
|
||||
angle: number;
|
||||
/** Baloon fill color. */
|
||||
@@ -348,7 +348,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
value: number;
|
||||
}
|
||||
/** ImagesSettings is a class which holds common settings of all MapImage objects. */
|
||||
declare class ImagesSettings {
|
||||
class ImagesSettings {
|
||||
/** Opacity of the image.
|
||||
@default 1
|
||||
*/
|
||||
@@ -402,7 +402,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** AreasSettings is a class which holds common settings of all MapArea objects. */
|
||||
declare class AreasSettings {
|
||||
class AreasSettings {
|
||||
/** Opacity of areas.
|
||||
@default 1
|
||||
*/
|
||||
@@ -454,7 +454,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** Slice is an item of AmPieChart's chartData Array and holds all the information about the slice. When working with a pie chart, you do not create slices or change it's properties directly, instead you set array of data using dataProvider property. Consider properties of a Slice read-only - change values in chart's data provider if you need to. */
|
||||
declare class Slice {
|
||||
class Slice {
|
||||
/** Opacity of a slice. */
|
||||
alpha: number;
|
||||
/** Color of a slice. */
|
||||
@@ -481,7 +481,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
|
||||
/** AmStockChart is a main class Stock chart. */
|
||||
declare class AmStockChart {
|
||||
class AmStockChart {
|
||||
/** Specifies if animation was already played. Animation is only played once, when chart is rendered for the first time. If you want the animation to be repeated, set this property to false. */
|
||||
animationPlayed: bool;
|
||||
/** Balloon object. */
|
||||
@@ -613,7 +613,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** ValueAxesSettings settings set 's settings for all ValueAxes. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of ValueAxis class will be used. */
|
||||
declare class ValueAxesSettings {
|
||||
class ValueAxesSettings {
|
||||
/** Specifies whether number for gridCount is specified automatically, according to the axis size.
|
||||
@default true
|
||||
*/
|
||||
@@ -684,7 +684,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
var legend = new AmCharts.AmLegend();
|
||||
chart.addLegend(legend);
|
||||
*/
|
||||
declare class AmLegend {
|
||||
class AmLegend {
|
||||
|
||||
/** Alignment of legend entries. Possible values are: "left", "center", "right". left */
|
||||
align: string;
|
||||
@@ -822,7 +822,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
/** StockLegend is a legend of StockPanel. */
|
||||
|
||||
declare class StockLegend extends AmLegend {
|
||||
class StockLegend extends AmLegend {
|
||||
/** The text which will be displayed in the value portion of the legend when graph is comparable and at least one dataSet is selected for comparing. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents.value/open/close/low/high]], [[description]]. [[percents.value]]% */
|
||||
|
||||
valueTextComparing: string;
|
||||
@@ -833,7 +833,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
/** StockPanel class creates stock panels (charts). AmStockChart can have multiple Stock panels. */
|
||||
|
||||
declare class StockPanel extends AmSerialChart {
|
||||
class StockPanel extends AmSerialChart {
|
||||
/** Specifies whether x button will be displayed near the panel. This button allows turning panel off. */
|
||||
allowTurningOff: bool;
|
||||
/** If true, drawing icons will be displayed in top-right corner. */
|
||||
@@ -879,7 +879,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** AmChart is a base class of all charts. It can not be instantiated explicitly. AmCoordinateChart, AmPieChart and AmMap extend AmChart class. */
|
||||
declare class AmChart {
|
||||
class AmChart {
|
||||
/** Background color. You should set backgroundAlpha to >0 value in order background to be visible. We recommend setting background color directly on a chart's DIV instead of using this property. #FFFFFF */
|
||||
backgroundColor: string;
|
||||
/** The chart creates AmBalloon class itself. If you want to customize balloon, get balloon instance using this property, and then change balloon's properties. AmBalloon */
|
||||
@@ -988,7 +988,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
/** AmCoordinateChart is a base class of AmRectangularChart. It can not be instantiated explicitly. */
|
||||
|
||||
declare class AmCoordinateChart extends AmChart {
|
||||
class AmCoordinateChart extends AmChart {
|
||||
/** Specifies the colors of the graphs if the lineColor of a graph is not set.
|
||||
It there are more graphs then colors in this array, the chart picks random color.
|
||||
@default ['#FF6600', '#FCD202', '#B0DE09', '#0D8ECF', '#2A0CD0', '#CD0D74', '#CC0000', '#00CC00', '#0000CC', '#DDDDDD', '#999999', '#333333', '#990000'] */
|
||||
@@ -1098,7 +1098,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** GraphDataItem holds all the information about the graph's data item. When working with a chart, you do not create GraphDataItem objects or change it's properties directly. GraphDataItem is passed to you by events when user interacts with data item on the chart. The list of properties below will help you to extract data item's value/coordinate/etc. */
|
||||
declare class GraphDataItem {
|
||||
class GraphDataItem {
|
||||
/** Opacity of the data item. */
|
||||
alpha: number;
|
||||
/** Bullet type. */
|
||||
@@ -1132,7 +1132,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** SerialDataItem holds all the information about each series. When working with a chart, you do not create SerialDataItem objects or change it's properties directly. Consider properties of a SerialDataItem read-only - change values in chart's data provider if you need to. When serial chart parses dataProvider, it generates "chartData" array. Objects of this array are SerialDataItem objects. */
|
||||
declare class SerialDataItem {
|
||||
class SerialDataItem {
|
||||
|
||||
/** You can access each GraphDataItem using this object. The data structure is: graphDataItem = serialDataItem.axes[axisId].graphs[graphId]. */
|
||||
axes: Object;
|
||||
@@ -1147,7 +1147,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
x: number;
|
||||
}
|
||||
|
||||
declare class CategoryAxis extends AxisBase {
|
||||
class CategoryAxis extends AxisBase {
|
||||
|
||||
/** When parse dates is on for the category axis, the chart will try to highlight the beginning of the periods, like month, in bold. Set this to false to disable the functionality.
|
||||
@default true
|
||||
@@ -1197,7 +1197,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
var chartScrollbar = new AmCharts.ChartScrollbar();
|
||||
chart.addChartScrollbar(chartScrollbar);
|
||||
*/
|
||||
declare class ChartScrollbar {
|
||||
class ChartScrollbar {
|
||||
/** Specifies whether number of gridCount is specified automatically, acoarding to the axis size. */
|
||||
autoGridCount: bool;
|
||||
/** Background opacity.
|
||||
@@ -1261,7 +1261,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** AmRectangularChart is a base class of AmSerialChart and AmXYChart. It can not be instantiated explicitly.*/
|
||||
declare class AmRectangularChart extends AmCoordinateChart {
|
||||
class AmRectangularChart extends AmCoordinateChart {
|
||||
/** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). */
|
||||
angle: number;
|
||||
/** Space left from axis labels/title to the chart's outside border, if autoMargins set to true.
|
||||
@@ -1324,7 +1324,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
trendLine.lineColor = "#CC0000";
|
||||
chart.addTrendLine(trendLine);
|
||||
*/
|
||||
declare class TrendLine {
|
||||
class TrendLine {
|
||||
|
||||
}
|
||||
|
||||
@@ -1334,7 +1334,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
var chartCursor = new AmCharts.ChartCursor();
|
||||
chart.addChartCursor(chartCursor);
|
||||
*/
|
||||
declare class ChartCursor {
|
||||
class ChartCursor {
|
||||
/** Specifies if bullet for each graph will follow the cursor. */
|
||||
bulletsEnabled: bool;
|
||||
/** Size of bullets, following the cursor.
|
||||
@@ -1431,7 +1431,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
chart.write("chartdiv");
|
||||
*/
|
||||
declare class AmSerialChart extends AmRectangularChart {
|
||||
class AmSerialChart extends AmRectangularChart {
|
||||
/** Read-only. Chart creates category axis itself. If you want to change some properties, you should get this axis from the chart and set properties to this object. */
|
||||
categoryAxis: CategoryAxis;
|
||||
/** Category field name tells the chart the name of the field in your dataProvider object which will be used for category axis values. */
|
||||
@@ -1479,7 +1479,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
zoomToIndexes(start, end);
|
||||
}
|
||||
|
||||
declare class PeriodSelector {
|
||||
class PeriodSelector {
|
||||
/** Date format of date input fields. Check [[http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html DD-MM-YYYY */
|
||||
dateFormat: string;
|
||||
/** Text displayed next to "from" date input field. From: */
|
||||
@@ -1531,7 +1531,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
/** PanelsSettings settings set's settings for all StockPanels. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of StockPanel class will be used. */
|
||||
|
||||
declare class PanelsSettings {
|
||||
class PanelsSettings {
|
||||
/** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). */
|
||||
angle: number;
|
||||
/** Opacity of panel background. Possible values are 1 and 0. Values like 0.5 will not make it half-transparent. */
|
||||
@@ -1590,7 +1590,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
|
||||
/** DataSet is objects which holds all information about data. */
|
||||
|
||||
declare class DataSet {
|
||||
class DataSet {
|
||||
/** Category field name in your dataProvider. */
|
||||
categoryField: string;
|
||||
/** Color of the data set. One of colors from AmStockChart.colors array will be used if not set. */
|
||||
@@ -1615,7 +1615,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
title: string;
|
||||
}
|
||||
|
||||
declare class StockGraph extends AmGraph {
|
||||
class StockGraph extends AmGraph {
|
||||
/** Specifies whether this graph will be compared if some data set is selected for comparing. */
|
||||
comparable: bool;
|
||||
/** Specifies a field to be used to generate comparing graph. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object. */
|
||||
@@ -1655,7 +1655,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** StockEvent is object which holds information about event(bullet).Values from StockEventsSettings will be used if not set.Stock event bullet's size depends on it's graphs fontSize.When user rolls - over, clicks or rolls - out of the event bullet, AmStockChart dispatches events.*/
|
||||
declare class StockEvent {
|
||||
class StockEvent {
|
||||
/** Opacity of bullet background.
|
||||
@default 1
|
||||
*/
|
||||
@@ -1689,7 +1689,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** Common settings of legends. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of StockLegend class will be used. */
|
||||
declare class LegendSettings {
|
||||
class LegendSettings {
|
||||
/** Alignment of legend entries. Possible values are: "left", "right" and "center". */
|
||||
align: string;
|
||||
/** Specifies if each legend entry should take the same space as the longest legend entry. */
|
||||
@@ -1744,7 +1744,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** DataSetSelector is a tool for selecting data set's as main and for comparing with main data set. */
|
||||
declare class DataSetSelector {
|
||||
class DataSetSelector {
|
||||
/** Text displayed in the "compare to" combobox (when position is "top" or "bottom"). Select... */
|
||||
comboBoxSelectText: string;
|
||||
/** Text displayed near "compare to" list. Compare to: */
|
||||
@@ -1774,7 +1774,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
balloon.cornerRadius = 5;
|
||||
balloon.fillColor = "#FFFFFF";
|
||||
*/
|
||||
declare class AmBalloon {
|
||||
class AmBalloon {
|
||||
/** If this is set to true, border color instead of background color will be changed when user rolls-over the slice, graph, etc. */
|
||||
adjustBorderColor: bool;
|
||||
/** Balloon border opacity. Value range is 0 - 1.
|
||||
@@ -1830,7 +1830,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** CategoryAxesSettings settings set's settings common for all CategoryAxes of StockPanels. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of CategoryAxis class will be used. */
|
||||
declare class CategoryAxesSettings {
|
||||
class CategoryAxesSettings {
|
||||
/** Specifies whether number of gridCount is specified automatically, according to the axis size.
|
||||
@default true
|
||||
*/
|
||||
@@ -1890,7 +1890,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** ChartCursorSettings settings set's settings for chart cursor. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of ChartCursor class will be used. */
|
||||
declare class ChartCursorSettings {
|
||||
class ChartCursorSettings {
|
||||
/** Specifies if bullet for each graph will follow the cursor. */
|
||||
bulletsEnabled: bool;
|
||||
/** Size of bullets, following the cursor. */
|
||||
@@ -1922,7 +1922,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/* ChartScrollbarSettings settings set's settings for chart scrollbar. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of ChartScrollbar class will be used.*/
|
||||
declare class ChartScrollbarSettings {
|
||||
class ChartScrollbarSettings {
|
||||
/** Specifies whether number of gridCount is specified automatically, according to the axis size.
|
||||
@default true
|
||||
*/
|
||||
@@ -1992,7 +1992,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
graph.fillAlphas = 1;
|
||||
chart.addGraph(graph);
|
||||
*/
|
||||
declare class AmGraph {
|
||||
class AmGraph {
|
||||
/** Name of the alpha field in your dataProvider. */
|
||||
alphaField: string;
|
||||
/** Value balloon color. Will use graph or data item color if not set. */
|
||||
@@ -2162,7 +2162,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** AxisBase is the base class for ValueAxis and CategoryAxis. It can not be instantiated explicitly. */
|
||||
declare class AxisBase {
|
||||
class AxisBase {
|
||||
/** Specifies whether number of gridCount is specified automatically, acoarding to the axis size.
|
||||
@default true
|
||||
*/
|
||||
@@ -2249,7 +2249,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
}
|
||||
|
||||
/** ValueAxis is the class which displays value axis for the chart. The chart can have any number of value axes. For Serial chart one value axis is created automatically. For XY Chart two value axes (horizontal and vertical) are created automatically. */
|
||||
declare class ValueAxis extends AxisBase {
|
||||
class ValueAxis extends AxisBase {
|
||||
/** Radar chart only. Specifies distance from axis to the axis title (category) 10 */
|
||||
axisTitleOffset: number;
|
||||
/** Read-only. Coordinate of the base value. */
|
||||
@@ -2340,7 +2340,4 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
/** Removes event listener from chart object. */
|
||||
removeListener(chart: AmChart, type: string, handler: any);
|
||||
}
|
||||
}
|
||||
|
||||
/** AmCharts object (it's not a class) is create automatically when amcharts.js or amstock.js file is included in a web page. */
|
||||
var AmCharts: AmChartsStatic;
|
||||
}
|
||||
3
ember/ember.d.ts
vendored
3
ember/ember.d.ts
vendored
@@ -292,5 +292,4 @@ interface EmberStatic {
|
||||
wrap(func: Function, superFunc: Function);
|
||||
}
|
||||
|
||||
declare var Em: Ember;
|
||||
//declare var Ember: EmberStatic;
|
||||
declare var Em: EmberStatic;
|
||||
18
jquery.elang/jquery.elang.d.ts
vendored
18
jquery.elang/jquery.elang.d.ts
vendored
@@ -70,10 +70,10 @@ interface IELangDBDelegates {
|
||||
}
|
||||
|
||||
interface IELangDBEvents {
|
||||
select: JQueryDeferred;
|
||||
insert: JQueryDeferred;
|
||||
modify: JQueryDeferred;
|
||||
remove: JQueryDeferred;
|
||||
select: JQueryDeferred<any>;
|
||||
insert: JQueryDeferred<any>;
|
||||
modify: JQueryDeferred<any>;
|
||||
remove: JQueryDeferred<any>;
|
||||
}
|
||||
|
||||
interface IELangDB {
|
||||
@@ -176,7 +176,7 @@ interface IELangSearchDelegates {
|
||||
}
|
||||
|
||||
interface IELangSearchEvents {
|
||||
select: JQueryDeferred;
|
||||
select: JQueryDeferred<any>;
|
||||
}
|
||||
|
||||
interface IELangSearch extends IELangBase {
|
||||
@@ -212,10 +212,10 @@ interface IELangEditDelegates {
|
||||
}
|
||||
|
||||
interface IELangEditEvents {
|
||||
insert: JQueryDeferred;
|
||||
modify: JQueryDeferred;
|
||||
remove: JQueryDeferred;
|
||||
select: JQueryDeferred;
|
||||
insert: JQueryDeferred<any>;
|
||||
modify: JQueryDeferred<any>;
|
||||
remove: JQueryDeferred<any>;
|
||||
select: JQueryDeferred<any>;
|
||||
}
|
||||
|
||||
interface IELangEditDefaults extends IELangBaseDefaults {
|
||||
|
||||
4
jquery.ui.layout/jquery.ui.layout.d.ts
vendored
4
jquery.ui.layout/jquery.ui.layout.d.ts
vendored
@@ -3,8 +3,8 @@
|
||||
// Definitions by: Steve Fenton <https://github.com/Steve-Fenton>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="./jquery/jquery.d.ts"/>
|
||||
/// <reference path="./jquery/jquery.ui.d.ts"/>
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
/// <reference path="../jqueryui/jqueryui.d.ts"/>
|
||||
|
||||
interface JQueryLayoutOptions {
|
||||
north: any;
|
||||
|
||||
3
linq/linq.jquery.d.ts
vendored
3
linq/linq.jquery.d.ts
vendored
@@ -3,6 +3,7 @@
|
||||
// Definitions by: neuecc (http://www.codeplex.com/site/users/view/neuecc)
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
/// <reference path="linq.d.ts"/>
|
||||
|
||||
declare module linqjs {
|
||||
interface Enumerable {
|
||||
@@ -16,5 +17,5 @@ interface JQuery {
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
Enumerable: linqjs.EnumerableStatic;
|
||||
Enumerable: linq.EnumerableStatic;
|
||||
}
|
||||
|
||||
2
node_redis/node_redis.d.ts
vendored
2
node_redis/node_redis.d.ts
vendored
@@ -20,7 +20,7 @@ declare module 'redis' {
|
||||
}
|
||||
|
||||
interface Command {
|
||||
(...args: any[]): Commands;
|
||||
(...args: any[]): any;
|
||||
}
|
||||
|
||||
interface Commands {
|
||||
|
||||
10
teechart/teechart.d.ts
vendored
10
teechart/teechart.d.ts
vendored
@@ -177,7 +177,7 @@ declare module Tee {
|
||||
cursor: string;
|
||||
}
|
||||
|
||||
interface ISeries {
|
||||
interface ISeriesNoBounds {
|
||||
data: ISeriesData;
|
||||
marks: IMarks;
|
||||
|
||||
@@ -210,8 +210,6 @@ declare module Tee {
|
||||
|
||||
associatedToAxis(axis: IAxis): bool;
|
||||
|
||||
bounds(rectangle: IRectangle): void;
|
||||
|
||||
calc(index: number, position: IPoint): void;
|
||||
|
||||
clicked(position: IPoint): number;
|
||||
@@ -225,8 +223,10 @@ declare module Tee {
|
||||
count(): number;
|
||||
|
||||
addRandom(count: number, range?: number, x?: bool): ISeries;
|
||||
}
|
||||
|
||||
|
||||
interface ISeries extends ISeriesNoBounds {
|
||||
bounds(rectangle: IRectangle): void;
|
||||
}
|
||||
|
||||
interface IAxisLabels {
|
||||
@@ -504,7 +504,7 @@ declare module Tee {
|
||||
end: number[];
|
||||
}
|
||||
|
||||
interface IGantt extends ISeries {
|
||||
interface IGantt extends ISeriesNoBounds {
|
||||
data: IGanttData;
|
||||
dateFormat: string;
|
||||
colorEach: string;
|
||||
|
||||
24
underscore-ko/underscore-ko.d.ts
vendored
24
underscore-ko/underscore-ko.d.ts
vendored
@@ -8,18 +8,18 @@
|
||||
|
||||
interface KnockoutObservableArrayFunctions {
|
||||
|
||||
/****
|
||||
Collections
|
||||
*****/
|
||||
each(iterator: ListIterator, context?: any): any[];
|
||||
each(iterator: ObjectIterator, context?: any): any[];
|
||||
forEach(iterator: ObjectIterator, context?: any): any[];
|
||||
forEach(iterator: ListIterator, context?: any): any[];
|
||||
/****
|
||||
Collections
|
||||
*****/
|
||||
each(iterator: _.ListIterator<any, any>, context?: any): any[];
|
||||
each(iterator: _.ObjectIterator<any, any>, context?: any): any[];
|
||||
forEach(iterator: _.ObjectIterator<any, any>, context?: any): any[];
|
||||
forEach(iterator: _.ListIterator<any, any>, context?: any): any[];
|
||||
|
||||
map(iterator: ListIterator, context?: any): any[];
|
||||
map(iterator: ObjectIterator, context?: any): any[];
|
||||
collect(iterator: ListIterator, context?: any): any[];
|
||||
collect(iterator: ObjectIterator, context?: any): any[];
|
||||
map(iterator: _.ListIterator<any, any>, context?: any): any[];
|
||||
map(iterator: _.ObjectIterator<any, any>, context?: any): any[];
|
||||
collect(iterator: _.ListIterator<any, any>, context?: any): any[];
|
||||
collect(iterator: _.ObjectIterator<any, any>, context?: any): any[];
|
||||
|
||||
reduce(iterator: any, memo: any, context?: any): any;
|
||||
inject(iterator: any, memo: any, context?: any): any;
|
||||
@@ -97,5 +97,5 @@ interface KnockoutObservableArrayFunctions {
|
||||
/****
|
||||
Chaining
|
||||
*****/
|
||||
chain(object: any): UnderscoreWrappedObject;
|
||||
chain(object: any): any;
|
||||
}
|
||||
|
||||
4
underscore/underscore.d.ts
vendored
4
underscore/underscore.d.ts
vendored
@@ -14,11 +14,11 @@ declare module _ {
|
||||
escape?: RegExp;
|
||||
}
|
||||
|
||||
interface ListIterator<T, TResult> {
|
||||
export interface ListIterator<T, TResult> {
|
||||
(value: T, index: number, list?: List<T>): TResult;
|
||||
}
|
||||
|
||||
interface ObjectIterator<T, TResult> {
|
||||
export interface ObjectIterator<T, TResult> {
|
||||
(element: T, key: string, list?: any): TResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user