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
14b8571b
Commit
14b8571b
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export SparklineType (enum c_oAscSparklineType)
parent
e5c42876
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
cell/apiDefines.js
cell/apiDefines.js
+11
-0
cell/model/Serialize.js
cell/model/Serialize.js
+0
-6
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+1
-1
common/Charts/DrawingObjects.js
common/Charts/DrawingObjects.js
+6
-6
No files found.
cell/apiDefines.js
View file @
14b8571b
...
...
@@ -359,6 +359,12 @@ var c_oAscPopUpSelectorType = {
Signature
:
"
XLSY
"
};
var
c_oAscSparklineType
=
{
Line
:
0
,
Column
:
1
,
Stacked
:
2
};
//----------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommonExcel
'
]
=
window
[
'
AscCommonExcel
'
]
||
{};
window
[
'
AscCommonExcel
'
].
c_oAscAlignType
=
c_oAscAlignType
;
...
...
@@ -530,4 +536,9 @@ var c_oAscPopUpSelectorType = {
prot
[
'
Func
'
]
=
prot
.
Func
;
prot
[
'
Range
'
]
=
prot
.
Range
;
prot
[
'
Table
'
]
=
prot
.
Table
;
window
[
'
Asc
'
][
'
c_oAscSparklineType
'
]
=
window
[
'
Asc
'
].
c_oAscSparklineType
=
c_oAscSparklineType
;
prot
=
c_oAscSparklineType
;
prot
[
'
Line
'
]
=
prot
.
Line
;
prot
[
'
Column
'
]
=
prot
.
Column
;
prot
[
'
Stacked
'
]
=
prot
.
Stacked
;
})(
window
);
This diff is collapsed.
Click to expand it.
cell/model/Serialize.js
View file @
14b8571b
...
...
@@ -1017,11 +1017,6 @@
yesterday
:
'
yesterday
'
};
var
ESparklineType
=
{
Line
:
0
,
Column
:
1
,
Stacked
:
2
};
var
EDispBlanksAs
=
{
Span
:
0
,
Gap
:
1
,
...
...
@@ -8140,7 +8135,6 @@
window
[
"
AscCommonExcel
"
].
ECfType
=
ECfType
;
window
[
"
AscCommonExcel
"
].
ECfvoType
=
ECfvoType
;
window
[
"
AscCommonExcel
"
].
ST_TimePeriod
=
ST_TimePeriod
;
window
[
"
Asc
"
].
ESparklineType
=
ESparklineType
;
window
[
"
Asc
"
].
EDispBlanksAs
=
EDispBlanksAs
;
window
[
"
Asc
"
].
SparklineAxisMinMax
=
SparklineAxisMinMax
;
...
...
This diff is collapsed.
Click to expand it.
cell/model/WorkbookElems.js
View file @
14b8571b
...
...
@@ -4558,7 +4558,7 @@ CellArea.prototype = {
this
.
manualMax
=
undefined
;
this
.
manualMin
=
undefined
;
this
.
lineWeight
=
0.75
;
this
.
type
=
Asc
.
E
SparklineType
.
Line
;
this
.
type
=
Asc
.
c_oAsc
SparklineType
.
Line
;
this
.
dateAxis
=
false
;
this
.
displayEmptyCellsAs
=
Asc
.
EDispBlanksAs
.
Zero
;
this
.
markers
=
false
;
...
...
This diff is collapsed.
Click to expand it.
common/Charts/DrawingObjects.js
View file @
14b8571b
...
...
@@ -297,12 +297,12 @@ CSparklineView.prototype.initFromSparkline = function(oSparkline, oSparklineGrou
var
settings
=
new
AscCommon
.
asc_ChartSettings
();
switch
(
oSparklineGroup
.
type
)
{
case
Asc
.
E
SparklineType
.
Column
:
case
Asc
.
c_oAsc
SparklineType
.
Column
:
{
settings
.
type
=
c_oAscChartTypeSettings
.
barNormal
;
break
;
}
case
Asc
.
E
SparklineType
.
Stacked
:
case
Asc
.
c_oAsc
SparklineType
.
Stacked
:
{
settings
.
type
=
c_oAscChartTypeSettings
.
barStackedPer
;
break
;
...
...
@@ -436,7 +436,7 @@ CSparklineView.prototype.initFromSparkline = function(oSparkline, oSparklineGrou
chart_space
.
recalculateReferences
();
chart_space
.
recalcInfo
.
recalculateReferences
=
false
;
var
fCallbackSeries
=
null
;
if
(
oSparklineGroup
.
type
===
Asc
.
E
SparklineType
.
Line
)
if
(
oSparklineGroup
.
type
===
Asc
.
c_oAsc
SparklineType
.
Line
)
{
var
oLn
=
new
AscFormat
.
CLn
();
oLn
.
setW
(
36000
*
nSparklineMultiplier
*
25.4
*
(
oSparklineGroup
.
lineWidth
!=
null
?
oSparklineGroup
.
lineWidth
:
0.75
)
/
72
);
...
...
@@ -613,7 +613,7 @@ CSparklineView.prototype.initFromSparkline = function(oSparkline, oSparklineGrou
{
var
oUnifill
=
CreateUniFillFromExcelColor
(
oSparklineGroup
.
colorSeries
);
var
oSerie
=
chart_space
.
chart
.
plotArea
.
charts
[
0
].
series
[
0
];
if
(
oSparklineGroup
.
type
===
Asc
.
E
SparklineType
.
Line
)
if
(
oSparklineGroup
.
type
===
Asc
.
c_oAsc
SparklineType
.
Line
)
{
var
oLn
=
oSerie
.
spPr
.
ln
;
oLn
.
setFill
(
oUnifill
);
...
...
@@ -2391,7 +2391,7 @@ function DrawingObjects() {
_this
.
checkSparklineGroupMinMaxVal
=
function
(
oSparklineGroup
)
{
var
maxVal
=
null
,
minVal
=
null
,
i
,
j
;
if
(
oSparklineGroup
.
type
!==
Asc
.
E
SparklineType
.
Stacked
&&
if
(
oSparklineGroup
.
type
!==
Asc
.
c_oAsc
SparklineType
.
Stacked
&&
(
Asc
.
SparklineAxisMinMax
.
Group
===
oSparklineGroup
.
minAxisType
||
Asc
.
SparklineAxisMinMax
.
Group
===
oSparklineGroup
.
maxAxisType
))
{
for
(
i
=
0
;
i
<
oSparklineGroup
.
arrSparklines
.
length
;
++
i
)
...
...
@@ -2465,7 +2465,7 @@ function DrawingObjects() {
for
(
i
=
0
;
i
<
aSparklineGroups
.
length
;
++
i
)
{
var
oSparklineGroup
=
aSparklineGroups
[
i
];
if
(
oSparklineGroup
.
type
!==
Asc
.
E
SparklineType
.
Stacked
&&
if
(
oSparklineGroup
.
type
!==
Asc
.
c_oAsc
SparklineType
.
Stacked
&&
(
Asc
.
SparklineAxisMinMax
.
Group
===
oSparklineGroup
.
minAxisType
||
Asc
.
SparklineAxisMinMax
.
Group
===
oSparklineGroup
.
maxAxisType
))
{
_this
.
checkSparklineGroupMinMaxVal
(
oSparklineGroup
);
...
...
This diff is collapsed.
Click to expand it.
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