Commit c47edc4f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55647 954022d7-b5bf-4e40-9824-e11837661b57
parent d46f669b
...@@ -494,7 +494,7 @@ CDLbl.prototype = ...@@ -494,7 +494,7 @@ CDLbl.prototype =
global_MatrixTransformer.TranslateAppend(_text_transform, 0, _vertical_shift); global_MatrixTransformer.TranslateAppend(_text_transform, 0, _vertical_shift);
if (_body_pr.vert === nVertTTvert) { if (_body_pr.vert === nVertTTvert) {
global_MatrixTransformer.TranslateAppend(_text_transform, -_content_width * 0.5, -content_height2 * 0.5); global_MatrixTransformer.TranslateAppend(_text_transform, -_content_width * 0.5, -content_height2 * 0.5);
global_MatrixTransformer.RotateRadAppend(_text_transform, -Math.PI * 0.5); global_MatrixTransformer.RotateRadAppend(_text_transform, -Math.PI * 1.5);
global_MatrixTransformer.TranslateAppend(_text_transform, _content_width * 0.5, content_height2 * 0.5); global_MatrixTransformer.TranslateAppend(_text_transform, _content_width * 0.5, content_height2 * 0.5);
} }
...@@ -604,7 +604,7 @@ CDLbl.prototype = ...@@ -604,7 +604,7 @@ CDLbl.prototype =
style.TextPr.Merge(this.legend.txPr.content.Content[0].Pr.DefaultRunPr); style.TextPr.Merge(this.legend.txPr.content.Content[0].Pr.DefaultRunPr);
} }
if(this.parent && this.parent.txPr if(!(this instanceof CTitle) && this.parent && this.parent.txPr
&& this.parent.txPr.content && this.parent.txPr.content
&& this.parent.txPr.content.Content[0] && this.parent.txPr.content.Content[0]
&& this.parent.txPr.content.Content[0].Pr) && this.parent.txPr.content.Content[0].Pr)
...@@ -705,7 +705,7 @@ CDLbl.prototype = ...@@ -705,7 +705,7 @@ CDLbl.prototype =
getMaxWidth: function(bodyPr) getMaxWidth: function(bodyPr)
{ {
if(!(this.parent && this.chart && this.chart.plotArea && this.chart.plotArea.valAx === this.parent)) if(!(this.parent && (this.parent.axPos === AX_POS_L || this.parent.axPos === AX_POS_R)))
{ {
switch (bodyPr.vert) switch (bodyPr.vert)
{ {
...@@ -740,6 +740,15 @@ CDLbl.prototype = ...@@ -740,6 +740,15 @@ CDLbl.prototype =
{ {
ret.merge(this.txPr.bodyPr); ret.merge(this.txPr.bodyPr);
} }
if(this.parent && isRealNumber(this.parent.axPos) && (this.parent.axPos === AX_POS_L || this.parent.axPos === AX_POS_R)
&& (!this.txPr || !this.txPr.bodyPr || !isRealNumber(this.txPr.bodyPr.vert)))
{
ret.vert = nVertTTvert270;
}
if( (!this.txPr || !this.txPr.bodyPr || !isRealNumber(this.txPr.bodyPr.anchor)))
{
ret.anchor = 1;
}
switch (ret.vert) switch (ret.vert)
{ {
...@@ -2734,6 +2743,8 @@ CAreaSeries.prototype = ...@@ -2734,6 +2743,8 @@ CAreaSeries.prototype =
} }
}, },
getSeriesName: function() getSeriesName: function()
{ {
if(this.tx) if(this.tx)
...@@ -15675,6 +15686,12 @@ CTitle.prototype = ...@@ -15675,6 +15686,12 @@ CTitle.prototype =
case nVertTTwordArtVertRtl: case nVertTTwordArtVertRtl:
case nVertTTvert270: case nVertTTvert270:
{ {
var vert_axis = this.chart.chart.plotArea.getVerticalAxis();
if( vert_axis && vert_axis.title === this)
{
var hor_axis = this.chart.chart.plotArea.getHorizontalAxis();
return this.chart.extY - (hor_axis && hor_axis.title ? hor_axis.title.extY : 0 )
}
return this.chart.extY/2; return this.chart.extY/2;
} }
case nVertTThorz: case nVertTThorz:
......
...@@ -4917,17 +4917,19 @@ CChartSpace.prototype = ...@@ -4917,17 +4917,19 @@ CChartSpace.prototype =
} }
if(this.chart && this.chart.plotArea) if(this.chart && this.chart.plotArea)
{ {
if(this.chart.plotArea.catAx && this.chart.plotArea.catAx.title) var hor_axis = this.chart.plotArea.getHorizontalAxis();
if(hor_axis && hor_axis.title)
{ {
var title = this.chart.plotArea.catAx.title; var title = hor_axis.title;
title.parent = this.chart.plotArea.catAx; title.parent = hor_axis;
title.chart = this; title.chart = this;
title.recalculate(); title.recalculate();
} }
if(this.chart.plotArea.valAx && this.chart.plotArea.valAx.title) var vert_axis = this.chart.plotArea.getVerticalAxis();
if(vert_axis && vert_axis.title)
{ {
var title = this.chart.plotArea.valAx.title; var title = vert_axis.title;
title.parent = this.chart.plotArea.valAx; title.parent = vert_axis;
title.chart = this; title.chart = this;
title.recalculate(); title.recalculate();
} }
......
This diff is collapsed.
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