Commit 110f792c authored by Sergey Luzyanin's avatar Sergey Luzyanin

SetPaddings

parent 98c4eb2b
......@@ -761,6 +761,12 @@ function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY)
deltaAng = 90*(ty - this.startY)/(this.chartSizes.h/2);
this.view3D.rotX = StratRotX + deltaAng;
if(oChartSpace.chart.plotArea && oChartSpace.chart.plotArea.chart && oChartSpace.chart.plotArea.chart.getObjectType() === AscDFH.historyitem_type_PieChart){
if(this.view3D.rotX < 0){
this.view3D.rotX = 0;
}
}
if(this.view3D.rotX < -90){
this.view3D.rotX = -90;
}
......
......@@ -3872,6 +3872,30 @@
};
/**
* Set text paddings
* @param {?EMU} nLeft
* @param {?EMU} nTop
* @param {?EMU} nRight
* @param {?EMU} nBottom
*/
ApiShape.prototype.SetPaddings = function(nLeft, nTop, nRight, nBottom)
{
if(this.Shape)
{
this.Shape.setPaddings({
Left: AscFormat.isRealNumber(nLeft) ? private_EMU2MM(nLeft) : null,
Top: AscFormat.isRealNumber(nTop) ? private_EMU2MM(nTop) : null,
Right: AscFormat.isRealNumber(nRight) ? private_EMU2MM(nRight) : null,
Bottom: AscFormat.isRealNumber(nBottom) ? private_EMU2MM(nBottom) : null
});
}
};
//------------------------------------------------------------------------------------------------------------------
//
// ApiChart
......@@ -4410,6 +4434,7 @@
ApiShape.prototype["GetClassType"] = ApiShape.prototype.GetClassType;
ApiShape.prototype["GetDocContent"] = ApiShape.prototype.GetDocContent;
ApiShape.prototype["SetVerticalTextAlign"] = ApiShape.prototype.SetVerticalTextAlign;
ApiShape.prototype["SetPaddings"] = ApiShape.prototype.SetPaddings;
ApiChart.prototype["GetClassType"] = ApiChart.prototype.GetClassType;
ApiChart.prototype["SetTitle"] = ApiChart.prototype.SetTitle;
......
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