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
224ebadc
Commit
224ebadc
authored
Jul 05, 2017
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chart-settings seralize
parent
e2939e9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
cell/native/native.js
cell/native/native.js
+16
-8
No files found.
cell/native/native.js
View file @
224ebadc
...
...
@@ -1198,20 +1198,20 @@ function asc_menu_WriteAscCatAxisSettings(_type, _settings, _stream){
_stream
[
"
WriteByte
"
](
_type
);
if
(
_settings
.
getInter
nalBetweenTick
()
!==
undefined
&&
_settings
.
getIntern
alBetweenTick
()
!==
null
)
if
(
_settings
.
getInter
valBetweenTick
()
!==
undefined
&&
_settings
.
getInterv
alBetweenTick
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
0
);
_stream
[
"
WriteDouble2
"
](
_settings
.
getInter
n
alBetweenTick
());
_stream
[
"
WriteDouble2
"
](
_settings
.
getInter
v
alBetweenTick
());
}
if
(
_settings
.
getIntervalBetweenLabelsRule
()
!==
undefined
&&
_settings
.
getIntervalBetweenLabelsRule
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
1
);
_stream
[
"
WriteLong
"
](
_settings
.
getIntervalBetweenLabelsRule
());
}
if
(
_settings
.
getInter
nalBetweenLabels
()
!==
undefined
&&
_settings
.
getIntern
alBetweenLabels
()
!==
null
)
if
(
_settings
.
getInter
valBetweenLabels
()
!==
undefined
&&
_settings
.
getInterv
alBetweenLabels
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
2
);
_stream
[
"
WriteDouble2
"
](
_settings
.
getInter
n
alBetweenLabels
());
_stream
[
"
WriteDouble2
"
](
_settings
.
getInter
v
alBetweenLabels
());
}
if
(
_settings
.
getInvertCatOrder
()
!==
undefined
&&
_settings
.
getInvertCatOrder
()
!==
null
)
{
...
...
@@ -1506,11 +1506,15 @@ function asc_menu_WriteChartPr(_type, _chartPr, _stream){
_stream
[
"
WriteString2
"
](
_chartPr
.
separator
);
}
if
(
_chartPr
.
horAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
val
)
{
if
(
undefined
!=
_chartPr
.
horAxisProps
&&
null
!=
_chartPr
.
horAxisProps
&&
_chartPr
.
horAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
val
)
{
asc_menu_WriteAscValAxisSettings
(
16
,
_chartPr
.
horAxisProps
,
_stream
);
}
if
(
typeof
_chartPr
.
vertAxisProps
==
Asc
.
c_oAscAxisType
.
val
)
{
if
(
undefined
!=
_chartPr
.
vertAxisProps
&&
null
!=
_chartPr
.
vertAxisProps
&&
typeof
_chartPr
.
vertAxisProps
==
Asc
.
c_oAscAxisType
.
val
)
{
asc_menu_WriteAscValAxisSettings
(
17
,
_chartPr
.
vertAxisProps
,
_stream
);
}
...
...
@@ -1541,11 +1545,15 @@ function asc_menu_WriteChartPr(_type, _chartPr, _stream){
_stream
[
"
WriteBool
"
](
_chartPr
.
showVal
);
}
if
(
_chartPr
.
horAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
cat
)
{
if
(
undefined
!=
_chartPr
.
horAxisProps
&&
null
!=
_chartPr
.
horAxisProps
&&
_chartPr
.
horAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
cat
)
{
asc_menu_WriteAscCatAxisSettings
(
23
,
_chartPr
.
horAxisProps
,
_stream
);
}
if
(
typeof
_chartPr
.
vertAxisProps
==
Asc
.
c_oAscAxisType
.
cat
)
{
if
(
undefined
!=
_chartPr
.
vertAxisProps
&&
null
!=
_chartPr
.
vertAxisProps
&&
typeof
_chartPr
.
vertAxisProps
==
Asc
.
c_oAscAxisType
.
cat
)
{
asc_menu_WriteAscCatAxisSettings
(
24
,
_chartPr
.
vertAxisProps
,
_stream
);
}
...
...
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