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
992f28b9
Commit
992f28b9
authored
Apr 15, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Поддержка свойств displayHidden и displayEmptyCellsAs
parent
475015a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
16 deletions
+31
-16
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+31
-16
No files found.
common/Drawings/Format/ChartSpace.js
View file @
992f28b9
...
...
@@ -2349,7 +2349,7 @@ CChartSpace.prototype =
removePtsFromLit
(
num_cache
);
}
var
lit_format_code
=
typeof
num_cache
.
formatCode
===
"
string
"
&&
num_cache
.
formatCode
.
length
>
0
?
num_cache
.
formatCode
:
"
General
"
;
var
pt_index
=
0
,
i
,
j
,
cell
,
pt
,
worksheet_id
,
hidden
=
true
,
row_hidden
,
col_hidden
,
nPtCount
;
var
pt_index
=
0
,
i
,
j
,
cell
,
pt
,
worksheet_id
,
hidden
=
true
,
row_hidden
,
col_hidden
,
nPtCount
,
t
;
for
(
i
=
0
;
i
<
arr_f
.
length
;
++
i
)
{
var
parsed_ref
=
parserHelp
.
parse3DRef
(
arr_f
[
i
]);
...
...
@@ -2364,6 +2364,7 @@ CChartSpace.prototype =
{
var
range
=
range1
.
bbox
;
var
nLastNoEmptyIndex
=
null
,
dLastNoEmptyVal
=
null
,
aSpanPoints
=
[];
if
(
range
.
r1
===
range
.
r2
||
bVertical
===
true
)
{
row_hidden
=
source_worksheet
.
getRowHidden
(
range
.
r1
);
...
...
@@ -2383,26 +2384,40 @@ CChartSpace.prototype =
pt
.
setFormatCode
(
cell
.
getNumFormatStr
())
}
num_cache
.
addPt
(
pt
);
if
(
aSpanPoints
.
length
>
0
)
{
if
(
isRealNumber
(
nLastNoEmptyIndex
))
{
var
oStartPoint
=
num_cache
.
getPtByIndex
(
nLastNoEmptyIndex
);
for
(
t
=
0
;
t
<
aSpanPoints
.
length
;
++
i
)
{
}
}
aSpanPoints
.
length
=
0
;
}
nLastNoEmptyIndex
=
pt_index
;
dLastNoEmptyVal
=
pt
.
val
;
}
else
{
if
(
isRealNumber
(
this
.
displayEmptyCellsAs
))
if
(
isRealNumber
(
this
.
displayEmptyCellsAs
)
&&
this
.
displayEmptyCellsAs
!==
1
)
{
switch
(
this
.
displayEmptyCellsAs
)
if
(
this
.
displayEmptyCellsAs
===
2
)
{
case
0
:
{
break
;
}
case
1
:
{
break
;
}
case
2
:
{
break
;
}
pt
=
new
CNumericPoint
();
pt
.
setIdx
(
pt_index
);
pt
.
setVal
(
0
)
;
num_cache
.
addPt
(
pt
);
}
if
(
this
.
displayEmptyCellsAs
===
0
)
{
pt
=
new
CNumericPoint
();
pt
.
setIdx
(
pt_index
);
pt
.
setVal
(
0
);
num_cache
.
addPt
(
pt
)
;
aSpanPoints
.
push
(
pt
);
}
}
}
...
...
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