Commit 37ad4387 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

texture/gradient fill in diagrams

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56514 954022d7-b5bf-4e40-9824-e11837661b57
parent a0c34b44
...@@ -815,8 +815,15 @@ CShapeDrawer.prototype = ...@@ -815,8 +815,15 @@ CShapeDrawer.prototype =
if (this.Graphics.IsSlideBoundsCheckerType === true) if (this.Graphics.IsSlideBoundsCheckerType === true)
return; return;
var bIsIntegerGridTRUE = false;
if (this.bIsTexture) if (this.bIsTexture)
{ {
if (this.Graphics.m_bIntegerGrid === true)
{
this.Graphics.SetIntegerGrid(false);
bIsIntegerGridTRUE = true;
}
if (this.Graphics.RENDERER_PDF_FLAG) if (this.Graphics.RENDERER_PDF_FLAG)
{ {
if (null == this.UniFill.fill.tile || this.Graphics.m_oContext === undefined) if (null == this.UniFill.fill.tile || this.Graphics.m_oContext === undefined)
...@@ -827,6 +834,11 @@ CShapeDrawer.prototype = ...@@ -827,6 +834,11 @@ CShapeDrawer.prototype =
{ {
this.Graphics.put_brushTexture(getFullImageSrc(this.UniFill.fill.RasterImageId), 1); this.Graphics.put_brushTexture(getFullImageSrc(this.UniFill.fill.RasterImageId), 1);
} }
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
...@@ -942,6 +954,11 @@ CShapeDrawer.prototype = ...@@ -942,6 +954,11 @@ CShapeDrawer.prototype =
_ctx.restore(); _ctx.restore();
} }
} }
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
...@@ -950,6 +967,12 @@ CShapeDrawer.prototype = ...@@ -950,6 +967,12 @@ CShapeDrawer.prototype =
var _fill = this.UniFill.fill; var _fill = this.UniFill.fill;
if (_fill.type == FILL_TYPE_PATT) if (_fill.type == FILL_TYPE_PATT)
{ {
if (this.Graphics.m_bIntegerGrid === true)
{
this.Graphics.SetIntegerGrid(false);
bIsIntegerGridTRUE = true;
}
var _is_ctx = false; var _is_ctx = false;
if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255)) if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255))
{ {
...@@ -1011,10 +1034,21 @@ CShapeDrawer.prototype = ...@@ -1011,10 +1034,21 @@ CShapeDrawer.prototype =
} }
_ctx.restore(); _ctx.restore();
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
else if (_fill.type == FILL_TYPE_GRAD) else if (_fill.type == FILL_TYPE_GRAD)
{ {
if (this.Graphics.m_bIntegerGrid === true)
{
this.Graphics.SetIntegerGrid(false);
bIsIntegerGridTRUE = true;
}
var _is_ctx = false; var _is_ctx = false;
if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255)) if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255))
{ {
...@@ -1065,6 +1099,11 @@ CShapeDrawer.prototype = ...@@ -1065,6 +1099,11 @@ CShapeDrawer.prototype =
{ {
_ctx.fill(); _ctx.fill();
} }
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
} }
......
...@@ -775,8 +775,15 @@ CShapeDrawer.prototype = ...@@ -775,8 +775,15 @@ CShapeDrawer.prototype =
if (this.Graphics.IsSlideBoundsCheckerType === true) if (this.Graphics.IsSlideBoundsCheckerType === true)
return; return;
var bIsIntegerGridTRUE = false;
if (this.bIsTexture) if (this.bIsTexture)
{ {
if (this.Graphics.m_bIntegerGrid === true)
{
this.Graphics.SetIntegerGrid(false);
bIsIntegerGridTRUE = true;
}
if (this.Graphics.RENDERER_PDF_FLAG) if (this.Graphics.RENDERER_PDF_FLAG)
{ {
if (null == this.UniFill.fill.tile || this.Graphics.m_oContext === undefined) if (null == this.UniFill.fill.tile || this.Graphics.m_oContext === undefined)
...@@ -787,6 +794,11 @@ CShapeDrawer.prototype = ...@@ -787,6 +794,11 @@ CShapeDrawer.prototype =
{ {
this.Graphics.put_brushTexture(_getFullImageSrc(this.UniFill.fill.RasterImageId), 1); this.Graphics.put_brushTexture(_getFullImageSrc(this.UniFill.fill.RasterImageId), 1);
} }
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
...@@ -901,6 +913,11 @@ CShapeDrawer.prototype = ...@@ -901,6 +913,11 @@ CShapeDrawer.prototype =
_ctx.restore(); _ctx.restore();
} }
} }
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
...@@ -909,6 +926,12 @@ CShapeDrawer.prototype = ...@@ -909,6 +926,12 @@ CShapeDrawer.prototype =
var _fill = this.UniFill.fill; var _fill = this.UniFill.fill;
if (_fill.type == FILL_TYPE_PATT) if (_fill.type == FILL_TYPE_PATT)
{ {
if (this.Graphics.m_bIntegerGrid === true)
{
this.Graphics.SetIntegerGrid(false);
bIsIntegerGridTRUE = true;
}
var _is_ctx = false; var _is_ctx = false;
if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255)) if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255))
{ {
...@@ -969,10 +992,21 @@ CShapeDrawer.prototype = ...@@ -969,10 +992,21 @@ CShapeDrawer.prototype =
} }
_ctx.restore(); _ctx.restore();
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
else if (_fill.type == FILL_TYPE_GRAD) else if (_fill.type == FILL_TYPE_GRAD)
{ {
if (this.Graphics.m_bIntegerGrid === true)
{
this.Graphics.SetIntegerGrid(false);
bIsIntegerGridTRUE = true;
}
var _is_ctx = false; var _is_ctx = false;
if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255)) if (this.Graphics.IsNoSupportTextDraw === true || undefined === this.Graphics.m_oContext || (null == this.UniFill.transparent) || (this.UniFill.transparent == 255))
{ {
...@@ -1023,6 +1057,11 @@ CShapeDrawer.prototype = ...@@ -1023,6 +1057,11 @@ CShapeDrawer.prototype =
{ {
_ctx.fill(); _ctx.fill();
} }
if (bIsIntegerGridTRUE)
{
this.Graphics.SetIntegerGrid(true);
}
return; return;
} }
} }
......
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