Commit d02fed58 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete _scale_formatter

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51870 954022d7-b5bf-4e40-9824-e11837661b57
parent 52758f1b
...@@ -45,7 +45,6 @@ OfficeExcel.OtherProps = function() ...@@ -45,7 +45,6 @@ OfficeExcel.OtherProps = function()
this._scale_decimals = 0; this._scale_decimals = 0;
this._scale_point = '.'; this._scale_point = '.';
this._scale_thousand = ','; this._scale_thousand = ',';
this._scale_formatter = null;
this._colors = ['rgb(0,0,255)', '#0f0', '#00f', '#ff0', '#0ff', '#0f0']; this._colors = ['rgb(0,0,255)', '#0f0', '#00f', '#ff0', '#0ff', '#0f0'];
......
...@@ -1701,10 +1701,6 @@ ...@@ -1701,10 +1701,6 @@
RegExp.$1 = ''; RegExp.$1 = '';
var i,j; var i,j;
if (typeof(obj._otherProps._scale_formatter) == 'function') {
return obj._otherProps._scale_formatter(obj, num);
}
// Ignore the preformatted version of "1e-2" // Ignore the preformatted version of "1e-2"
if (String(num).indexOf('e') > 0) { if (String(num).indexOf('e') > 0) {
return String(prepend + String(num) + append); return String(prepend + String(num) + append);
......
...@@ -689,11 +689,7 @@ ...@@ -689,11 +689,7 @@
var num = ( (this._otherProps._xmax - this._otherProps._xmin) * ((i+1) / numXLabels)) + this._otherProps._xmin; var num = ( (this._otherProps._xmax - this._otherProps._xmin) * ((i+1) / numXLabels)) + this._otherProps._xmin;
var x = this._chartGutter._left + ((i) * interval); var x = this._chartGutter._left + ((i) * interval);
if (typeof(this._otherProps._scale_formatter) == 'function') { var text = scale[i];
var text = this._otherProps._scale_formatter(this, num);
} else {
var text = scale[i];
}
if(text == 0) if(text == 0)
OfficeExcel.Text(context, font, text_size, x, this.nullPositionOY + offsetY,OfficeExcel.numToFormatText(text.toString(),isFormatCell), 'center', 'center', false, null, null, bold, null, textOptions); OfficeExcel.Text(context, font, text_size, x, this.nullPositionOY + offsetY,OfficeExcel.numToFormatText(text.toString(),isFormatCell), 'center', 'center', false, null, null, bold, null, textOptions);
else else
......
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