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
919452a6
Commit
919452a6
authored
Apr 14, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change unicolor mod type: shade->wordShade, tint->wordTint
parent
e82f7027
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
common/Charts/DrawingObjects.js
common/Charts/DrawingObjects.js
+24
-3
No files found.
common/Charts/DrawingObjects.js
View file @
919452a6
...
...
@@ -358,7 +358,27 @@ function CreateUniFillFromExcelColor(oExcelColor)
if
(
oExcelColor
instanceof
ThemeColor
)
{
oUnifill
=
CreateUniFillSchemeColorWidthTint
(
map_themeExcel_to_themePresentation
[
oExcelColor
.
theme
],
oExcelColor
.
tint
!=
null
?
oExcelColor
.
tint
:
0
);
oUnifill
=
CreateUnifillSolidFillSchemeColorByIndex
(
map_themeExcel_to_themePresentation
[
oExcelColor
.
theme
]);
if
(
oExcelColor
.
tint
!=
null
)
{
var
unicolor
=
oUnifill
.
fill
.
color
;
if
(
!
unicolor
.
Mods
)
unicolor
.
setMods
(
new
CColorModifiers
());
var
mod
=
new
CColorMod
();
if
(
oExcelColor
.
tint
>
0
)
{
mod
.
setName
(
"
wordTint
"
);
mod
.
setVal
(
Math
.
round
(
oExcelColor
.
tint
*
255
));
}
else
{
mod
.
setName
(
"
wordShade
"
);
mod
.
setVal
(
Math
.
round
(
255
+
oExcelColor
.
tint
*
255
));
}
unicolor
.
Mods
.
addMod
(
mod
);
}
//oUnifill = CreateUniFillSchemeColorWidthTint(map_themeExcel_to_themePresentation[oExcelColor.theme], oExcelColor.tint != null ? oExcelColor.tint : 0);
}
else
{
...
...
@@ -2273,11 +2293,12 @@ function DrawingObjects() {
};
_this
.
drawSparkLineGroups
=
function
(
oDrawingContext
,
oSparklineGroups
,
range
)
{
oDrawingContext
.
save
();
var
graphics
=
new
CGraphics
();
graphics
.
init
(
oDrawingContext
.
ctx
,
oDrawingContext
.
getWidth
(
0
),
oDrawingContext
.
getHeight
(
0
),
oDrawingContext
.
getWidth
(
3
)
*
nSparklineMultiplier
,
oDrawingContext
.
getHeight
(
3
)
*
nSparklineMultiplier
);
graphics
.
m_oFontManager
=
g_fontManager
;
graphics
.
SaveGrState
();
for
(
var
i
=
0
;
i
<
oSparklineGroups
.
arrSparklineGroup
.
length
;
++
i
)
{
var
oSparklineGroup
=
oSparklineGroups
.
arrSparklineGroup
[
i
];
for
(
var
j
=
0
;
j
<
oSparklineGroup
.
arrSparklines
.
length
;
++
j
)
{
...
...
@@ -2292,7 +2313,7 @@ function DrawingObjects() {
oSparklineGroup
.
arrCachedSparklines
[
j
].
draw
(
graphics
);
}
}
graphics
.
RestoreGrStat
e
();
oDrawingContext
.
restor
e
();
};
_this
.
rebuildChartGraphicObjects
=
function
(
data
)
...
...
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