Commit f6d051f3 authored by Alexander.Trofimov's avatar Alexander.Trofimov

upper case first symbol in function names in apiBuilder

parent 4fbb2cb2
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
* @memberof ApiWorksheet * @memberof ApiWorksheet
* @param {string} name * @param {string} name
*/ */
ApiWorksheet.prototype.setName = function(name) { ApiWorksheet.prototype.SetName = function(name) {
this.worksheet.setName(name); this.worksheet.setName(name);
}; };
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
* @param {string} sRange * @param {string} sRange
* @returns {ApiRange} * @returns {ApiRange}
*/ */
ApiWorksheet.prototype.getRange = function(sRange) { ApiWorksheet.prototype.GetRange = function(sRange) {
return new ApiRange(this.worksheet.getRange2(sRange)); return new ApiRange(this.worksheet.getRange2(sRange));
}; };
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
* @memberof ApiWorksheet * @memberof ApiWorksheet
* @param {string} sRange * @param {string} sRange
*/ */
ApiWorksheet.prototype.formatAsTable = function(sRange) { ApiWorksheet.prototype.FormatAsTable = function(sRange) {
this.worksheet.autoFilters.addAutoFilter('TableStyleLight9', AscCommonExcel.g_oRangeCache.getAscRange(sRange)); this.worksheet.autoFilters.addAutoFilter('TableStyleLight9', AscCommonExcel.g_oRangeCache.getAscRange(sRange));
}; };
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
* @param {number} column * @param {number} column
* @param {number} width * @param {number} width
*/ */
ApiWorksheet.prototype.setColumnWidth = function(column, width) { ApiWorksheet.prototype.SetColumnWidth = function(column, width) {
this.worksheet.setColWidth(width, column, column); this.worksheet.setColWidth(width, column, column);
}; };
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
* @param {number} nToCol * @param {number} nToCol
* @param {number} nToRow * @param {number} nToRow
*/ */
ApiWorksheet.prototype.addChart = function(sDataRange, bInRows, sType, nStyleIndex, nFromCol, nFromRow, nToCol, nToRow) { ApiWorksheet.prototype.AddChart = function(sDataRange, bInRows, sType, nStyleIndex, nFromCol, nFromRow, nToCol, nToRow) {
History.Create_NewPoint(); History.Create_NewPoint();
var settings = new AscCommon.asc_ChartSettings(); var settings = new AscCommon.asc_ChartSettings();
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
* @memberof ApiRange * @memberof ApiRange
* @param {string} val * @param {string} val
*/ */
ApiRange.prototype.setValue = function(val) { ApiRange.prototype.SetValue = function(val) {
this.range.setValue(val); this.range.setValue(val);
}; };
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
* @param {byte} g * @param {byte} g
* @param {byte} b * @param {byte} b
*/ */
ApiRange.prototype.setFontColor = function(r, g, b) { ApiRange.prototype.SetFontColor = function(r, g, b) {
this.range.setFontcolor(new AscCommonExcel.RgbColor((r << 16) + (g << 8) + b)); this.range.setFontcolor(new AscCommonExcel.RgbColor((r << 16) + (g << 8) + b));
}; };
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
* Set font size * Set font size
* @param {number} size * @param {number} size
*/ */
ApiRange.prototype.setFontSize = function(size) { ApiRange.prototype.SetFontSize = function(size) {
this.range.setFontsize(size); this.range.setFontsize(size);
}; };
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
* Set font name * Set font name
* @param {string} name * @param {string} name
*/ */
ApiRange.prototype.setFontName = function(name) { ApiRange.prototype.SetFontName = function(name) {
this.range.setFontname(name); this.range.setFontname(name);
}; };
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
* Set align vertical * Set align vertical
* @param {'center' | 'bottom' | 'top'} value * @param {'center' | 'bottom' | 'top'} value
*/ */
ApiRange.prototype.setAlignVertical = function(value) { ApiRange.prototype.SetAlignVertical = function(value) {
this.range.setAlignVertical(value); this.range.setAlignVertical(value);
}; };
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
* Set align horizontal * Set align horizontal
* @param {'left' | 'right' | 'center' | 'justify'} value * @param {'left' | 'right' | 'center' | 'justify'} value
*/ */
ApiRange.prototype.setAlignHorizontal = function(value) { ApiRange.prototype.SetAlignHorizontal = function(value) {
this.range.setAlignHorizontal(value); this.range.setAlignHorizontal(value);
}; };
...@@ -301,16 +301,16 @@ ...@@ -301,16 +301,16 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Api.prototype["GetActiveSheet"] = Api.prototype.GetActiveSheet; Api.prototype["GetActiveSheet"] = Api.prototype.GetActiveSheet;
ApiWorksheet.prototype["setName"] = ApiWorksheet.prototype.setName; ApiWorksheet.prototype["SetName"] = ApiWorksheet.prototype.SetName;
ApiWorksheet.prototype["getRange"] = ApiWorksheet.prototype.getRange; ApiWorksheet.prototype["GetRange"] = ApiWorksheet.prototype.GetRange;
ApiWorksheet.prototype["formatAsTable"] = ApiWorksheet.prototype.formatAsTable; ApiWorksheet.prototype["FormatAsTable"] = ApiWorksheet.prototype.FormatAsTable;
ApiWorksheet.prototype["setColumnWidth"] = ApiWorksheet.prototype.setColumnWidth; ApiWorksheet.prototype["SetColumnWidth"] = ApiWorksheet.prototype.SetColumnWidth;
ApiWorksheet.prototype["addChart"] = ApiWorksheet.prototype.addChart; ApiWorksheet.prototype["AddChart"] = ApiWorksheet.prototype.AddChart;
ApiRange.prototype["setValue"] = ApiRange.prototype.setValue; ApiRange.prototype["SetValue"] = ApiRange.prototype.SetValue;
ApiRange.prototype["setFontColor"] = ApiRange.prototype.setFontColor; ApiRange.prototype["SetFontColor"] = ApiRange.prototype.SetFontColor;
ApiRange.prototype["setFontSize"] = ApiRange.prototype.setFontSize; ApiRange.prototype["SetFontSize"] = ApiRange.prototype.SetFontSize;
ApiRange.prototype["setFontName"] = ApiRange.prototype.setFontName; ApiRange.prototype["SetFontName"] = ApiRange.prototype.SetFontName;
ApiRange.prototype["setAlignVertical"] = ApiRange.prototype.setAlignVertical; ApiRange.prototype["SetAlignVertical"] = ApiRange.prototype.SetAlignVertical;
ApiRange.prototype["setAlignHorizontal"] = ApiRange.prototype.setAlignHorizontal; ApiRange.prototype["SetAlignHorizontal"] = ApiRange.prototype.SetAlignHorizontal;
}(window, null)); }(window, null));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment