Commit 0d7a7f94 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete _labels_above_angle, _labels_specific_align

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51860 954022d7-b5bf-4e40-9824-e11837661b57
parent 4b4651a0
...@@ -548,10 +548,10 @@ ...@@ -548,10 +548,10 @@
x + hmargin + (barWidth / 2), x + hmargin + (barWidth / 2),
yPos, yPos,
OfficeExcel.number_format(this, OfficeExcel.num_round(this.data[i]),this._otherProps._units_pre,this._otherProps._units_post), OfficeExcel.number_format(this, OfficeExcel.num_round(this.data[i]),this._otherProps._units_pre,this._otherProps._units_post),
this._otherProps._labels_above_angle ? 'bottom' : null,
this._otherProps._labels_above_angle ? (this._otherProps._labels_above_angle > 0 && (this._otherProps._xaxispos != 'top') ? 'right' : 'left') : 'center',
null, null,
this._otherProps._labels_above_angle, 'center',
null,
null,
null, null,
bold, bold,
null, null,
...@@ -1338,9 +1338,9 @@ ...@@ -1338,9 +1338,9 @@
//OfficeExcel.number_format(this, OfficeExcel.num_round(this.data[i][j]),this._otherProps._units_pre,this._otherProps._units_post), //OfficeExcel.number_format(this, OfficeExcel.num_round(this.data[i][j]),this._otherProps._units_pre,this._otherProps._units_post),
value, value,
null, null,
this._otherProps._labels_above_angle ? (this._otherProps._labels_above_angle > 0 ? 'right' : 'left') : 'center', 'center',
null,
null, null,
this._otherProps._labels_above_angle,
null, null,
bold, bold,
null, null,
......
...@@ -85,8 +85,6 @@ OfficeExcel.OtherProps = function() ...@@ -85,8 +85,6 @@ OfficeExcel.OtherProps = function()
this._labels = []; this._labels = [];
this._labels_above = false; this._labels_above = false;
this._labels_above_size = null; this._labels_above_size = null;
this._labels_above_angle = null;
this._labels_specific_align = 'left';
this._background_barcolor1 = 'rgba(0,0,0,0)'; this._background_barcolor1 = 'rgba(0,0,0,0)';
this._background_barcolor2 = 'rgba(0,0,0,0)'; this._background_barcolor2 = 'rgba(0,0,0,0)';
......
...@@ -832,21 +832,7 @@ ...@@ -832,21 +832,7 @@
if (typeof(labels[i]) == 'object') { if (typeof(labels[i]) == 'object') {
if (this._otherProps._labels_specific_align == 'center') { var offset = 0;
var rightEdge = 0;
if (labels[i+1] && labels[i+1][1]) {
rightEdge = labels[i+1][1];
} else {
rightEdge = this._otherProps._xmax;
}
var offset = (rightEdge - labels[i][1]) / 2;
} else {
var offset = 0;
}
OfficeExcel.Text(context, OfficeExcel.Text(context,
font, font,
...@@ -855,7 +841,7 @@ ...@@ -855,7 +841,7 @@
yPos, yPos,
String(labels[i][0]), String(labels[i][0]),
valign, valign,
angle != 0 ? 'right' : (this._otherProps._labels_specific_align == 'center' ? 'center' : 'left'), angle != 0 ? 'right' : 'left',
null, null,
angle, null, bold, null, textOptions angle, null, bold, null, textOptions
); );
......
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