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

delete '3d'

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51838 954022d7-b5bf-4e40-9824-e11837661b57
parent b38b9e95
This diff is collapsed.
......@@ -1777,15 +1777,8 @@
var gutterRight = obj._chartGutter._right;
var gutterTop = obj._chartGutter._top;
var gutterBottom = obj._chartGutter._bottom;
var variant = obj._otherProps._variant;
context.fillStyle = obj._otherProps._text_color;
// If it's a bar and 3D variant, translate
if (variant == '3d') {
context.save();
context.translate(10, -5);
}
obj.context.beginPath();
......@@ -1910,11 +1903,6 @@
context.stroke();
// If it's a bar and 3D variant, translate
if (variant == '3d') {
context.restore();
}
context.stroke();
if(obj._otherProps._background_grid_hlines_interim)
......@@ -2339,46 +2327,6 @@ if (typeof(obj._otherProps._scale_formatter) == 'function') {
}
}
/**
* Draws the3D axes/background
*/
OfficeExcel.Draw3DAxes = function (obj)
{
var gutterLeft = obj._chartGutter._left;
var gutterRight = obj._chartGutter._right;
var gutterTop = obj._chartGutter._top;
var gutterBottom = obj._chartGutter._bottom;
var context = obj.context;
var canvas = obj.canvas;
context.strokeStyle = '#aaa';
context.fillStyle = '#ddd';
// Draw the vertical left side
context.beginPath();
context.moveTo(gutterLeft, gutterTop);
context.lineTo(gutterLeft + 10, gutterTop - 5);
context.lineTo(gutterLeft + 10, canvas.height - gutterBottom - 5);
context.lineTo(gutterLeft, canvas.height - gutterBottom);
context.closePath();
context.stroke();
context.fill();
// Draw the bottom floor
context.beginPath();
context.moveTo(gutterLeft, canvas.height - gutterBottom);
context.lineTo(gutterLeft + 10, canvas.height - gutterBottom - 5);
context.lineTo(canvas.width - gutterRight + 10, canvas.height - gutterBottom - 5);
context.lineTo(canvas.width - gutterRight, canvas.height - gutterBottom);
context.closePath();
context.stroke();
context.fill();
}
// Compatibility canvas browser
OfficeExcel.CanvasBrowserCompat = function (context)
{
......
......@@ -179,10 +179,6 @@
//Draw Area
OfficeExcel.background.DrawArea(this);
// Draw 3D
if (this._otherProps._variant == '3d')
OfficeExcel.Draw3DAxes(this);
// Progressively Draw the chart
OfficeExcel.background.Draw (this);
......
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