Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
33817b70
Commit
33817b70
authored
Nov 01, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ previous revision
parent
f4b65d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
65 deletions
+28
-65
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+28
-65
No files found.
common/Charts/ChartsDrawer.js
View file @
33817b70
...
...
@@ -7223,9 +7223,24 @@ drawHBarChart.prototype =
var
shade
=
"
shade
"
;
var
shadeValue1
=
35000
;
var
shadeValue2
=
45000
;
var
t
=
this
;
if
(
brushFill
.
fill
.
lin
&&
null
!==
brushFill
.
fill
.
lin
.
angle
)
{
var
getCSolidColor
=
function
(
color
,
colorMod
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
color
);
if
(
colorMod
)
{
tempColor
=
t
.
_applyColorModeByBrush
(
tempColor
,
colorMod
);
}
return
tempColor
;
};
var
angle
=
brushFill
.
fill
.
lin
.
angle
/
angleKf
;
var
colors
=
brushFill
.
fill
.
colors
;
...
...
@@ -7241,30 +7256,18 @@ drawHBarChart.prototype =
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
left
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
tempColor
;
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
colors
.
length
-
1
].
color
);
gradientBrush
=
tempColor
;
gradientBrush
=
getCSolidColor
(
colors
[
colors
.
length
-
1
].
color
);
}
}
else
if
(
angle
>=
45
&&
angle
<
90
)
{
if
(
faceIndex
===
c_oChartBar3dFaces
.
up
||
faceIndex
===
c_oChartBar3dFaces
.
left
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
this
.
_applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
...
...
@@ -7276,22 +7279,14 @@ drawHBarChart.prototype =
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
down
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
colors
.
length
-
1
].
color
);
gradientBrush
=
tempColor
;
gradientBrush
=
getCSolidColor
(
colors
[
colors
.
length
-
1
].
color
);
}
}
else
if
(
angle
>=
90
&&
angle
<
135
)
{
if
(
faceIndex
===
c_oChartBar3dFaces
.
up
||
faceIndex
===
c_oChartBar3dFaces
.
left
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
this
.
_applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
...
...
@@ -7303,22 +7298,14 @@ drawHBarChart.prototype =
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
down
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
colors
.
length
-
1
].
color
);
gradientBrush
=
tempColor
;
gradientBrush
=
getCSolidColor
(
colors
[
colors
.
length
-
1
].
color
);
}
}
else
if
(
angle
>=
135
&&
angle
<
180
)
{
if
(
faceIndex
===
c_oChartBar3dFaces
.
up
||
faceIndex
===
c_oChartBar3dFaces
.
left
||
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
this
.
_applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
down
)
{
...
...
@@ -7341,19 +7328,11 @@ drawHBarChart.prototype =
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
this
.
_applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
left
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
colors
.
length
-
1
].
color
);
gradientBrush
=
tempColor
;
gradientBrush
=
getCSolidColor
(
colors
[
colors
.
length
-
1
].
color
,
shadeValue1
);
}
}
else
if
(
angle
>=
225
&&
angle
<
270
)
...
...
@@ -7368,30 +7347,18 @@ drawHBarChart.prototype =
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
left
||
faceIndex
===
c_oChartBar3dFaces
.
down
||
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
this
.
_applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
}
else
if
(
angle
>=
270
&&
angle
<
315
)
{
if
(
faceIndex
===
c_oChartBar3dFaces
.
up
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
colors
.
length
-
1
].
color
);
gradientBrush
=
tempColor
;
gradientBrush
=
getCSolidColor
(
colors
[
colors
.
length
-
1
].
color
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
left
||
faceIndex
===
c_oChartBar3dFaces
.
down
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
this
.
_applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
right
)
{
...
...
@@ -7414,11 +7381,7 @@ drawHBarChart.prototype =
}
else
if
(
faceIndex
===
c_oChartBar3dFaces
.
left
||
faceIndex
===
c_oChartBar3dFaces
.
down
)
{
var
duplicateBrush
=
brushFill
.
createDuplicate
();
var
tempColor
=
new
AscFormat
.
CUniFill
();
tempColor
.
setFill
(
new
AscFormat
.
CSolidFill
());
tempColor
.
fill
.
setColor
(
colors
[
0
].
color
);
gradientBrush
=
applyColorModeByBrush
(
tempColor
,
shadeValue1
);
gradientBrush
=
getCSolidColor
(
colors
[
0
].
color
,
shadeValue1
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment