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
503c215e
Commit
503c215e
authored
Jul 06, 2017
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/ios' into hotfix/v4.4.2
* Feature/ios: up chart-settings seralize chart-settings seralize
parents
c9506389
8c4a3c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
204 additions
and
3 deletions
+204
-3
cell/native/native.js
cell/native/native.js
+204
-3
No files found.
cell/native/native.js
View file @
503c215e
...
...
@@ -1102,6 +1102,175 @@ function asc_menu_WriteAscValAxisSettings(_type, _settings, _stream){
_stream
[
"
WriteByte
"
](
255
);
}
function
asc_menu_ReadAscCatAxisSettings
(
_params
,
_cursor
){
var
_settings
=
new
AscCommon
.
asc_CatAxisSettings
();
var
_continue
=
true
;
while
(
_continue
)
{
var
_attr
=
_params
[
_cursor
.
pos
++
];
switch
(
_attr
)
{
case
0
:
{
_settings
.
putInternalBetweenTick
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
1
:
{
_settings
.
putIntervalBetweenLabelsRule
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
2
:
{
_settings
.
putInternalBetweenLabels
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
3
:
{
_settings
.
putInvertCatOrder
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
4
:
{
_settings
.
putLabelsAxisDistance
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
5
:
{
_settings
.
putLabelsPosition
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
6
:
{
_settings
.
putMajorTickMark
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
7
:
{
_settings
.
putMinorTickMark
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
8
:
{
_settings
.
putTickLabelsPos
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
9
:
{
_settings
.
putCrossesRule
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
10
:
{
_settings
.
putCrosses
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
11
:
{
_settings
.
putAxisType
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
12
:
{
_settings
.
putCrossMinVal
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
13
:
{
_settings
.
putCrossMaxVal
(
_params
[
_cursor
.
pos
++
]);
break
;
}
case
255
:
default
:
{
_continue
=
false
;
break
;
}
}
}
return
_settings
;
}
function
asc_menu_WriteAscCatAxisSettings
(
_type
,
_settings
,
_stream
){
if
(
!
_settings
)
return
;
_stream
[
"
WriteByte
"
](
_type
);
if
(
_settings
.
getIntervalBetweenTick
()
!==
undefined
&&
_settings
.
getIntervalBetweenTick
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
0
);
_stream
[
"
WriteDouble2
"
](
_settings
.
getIntervalBetweenTick
());
}
if
(
_settings
.
getIntervalBetweenLabelsRule
()
!==
undefined
&&
_settings
.
getIntervalBetweenLabelsRule
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
1
);
_stream
[
"
WriteLong
"
](
_settings
.
getIntervalBetweenLabelsRule
());
}
if
(
_settings
.
getIntervalBetweenLabels
()
!==
undefined
&&
_settings
.
getIntervalBetweenLabels
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
2
);
_stream
[
"
WriteDouble2
"
](
_settings
.
getIntervalBetweenLabels
());
}
if
(
_settings
.
getInvertCatOrder
()
!==
undefined
&&
_settings
.
getInvertCatOrder
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
3
);
_stream
[
"
WriteBool
"
](
_settings
.
getInvertCatOrder
());
}
if
(
_settings
.
getLabelsAxisDistance
()
!==
undefined
&&
_settings
.
getLabelsAxisDistance
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
4
);
_stream
[
"
WriteDouble2
"
](
_settings
.
getLabelsAxisDistance
());
}
if
(
_settings
.
getTickLabelsPos
()
!==
undefined
&&
_settings
.
getTickLabelsPos
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
5
);
_stream
[
"
WriteLong
"
](
_settings
.
getTickLabelsPos
());
}
if
(
_settings
.
getMajorTickMark
()
!==
undefined
&&
_settings
.
getMajorTickMark
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
6
);
_stream
[
"
WriteLong
"
](
_settings
.
getMajorTickMark
());
}
if
(
_settings
.
getMinorTickMark
()
!==
undefined
&&
_settings
.
getMinorTickMark
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
7
);
_stream
[
"
WriteLong
"
](
_settings
.
getMinorTickMark
());
}
if
(
_settings
.
getTickLabelsPos
()
!==
undefined
&&
_settings
.
getTickLabelsPos
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
8
);
_stream
[
"
WriteLong
"
](
_settings
.
getTickLabelsPos
());
}
if
(
_settings
.
getCrossesRule
()
!==
undefined
&&
_settings
.
getCrossesRule
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
9
);
_stream
[
"
WriteLong
"
](
_settings
.
getCrossesRule
());
}
if
(
_settings
.
getCrosses
()
!==
undefined
&&
_settings
.
getCrosses
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
10
);
_stream
[
"
WriteLong
"
](
_settings
.
getCrosses
());
}
if
(
_settings
.
getAxisType
()
!==
undefined
&&
_settings
.
getAxisType
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
11
);
_stream
[
"
WriteLong
"
](
_settings
.
getAxisType
());
}
if
(
_settings
.
getCrossMinVal
()
!==
undefined
&&
_settings
.
getCrossMinVal
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
12
);
_stream
[
"
WriteLong
"
](
_settings
.
getCrossMinVal
());
}
if
(
_settings
.
getCrossMaxVal
()
!==
undefined
&&
_settings
.
getCrossMaxVal
()
!==
null
)
{
_stream
[
"
WriteByte
"
](
13
);
_stream
[
"
WriteLong
"
](
_settings
.
getCrossMaxVal
());
}
_stream
[
"
WriteByte
"
](
255
);
}
function
asc_menu_ReadChartPr
(
_params
,
_cursor
){
var
_settings
=
new
AscCommon
.
asc_ChartSettings
();
...
...
@@ -1226,6 +1395,17 @@ function asc_menu_ReadChartPr(_params, _cursor){
_settings
.
smooth
=
_params
[
_cursor
.
pos
++
];
break
;
}
case
23
:
{
_settings
.
horAxisProps
=
asc_menu_ReadAscCatAxisSettings
(
_params
,
_cursor
);
break
;
}
case
24
:
{
_settings
.
vertAxisProps
=
asc_menu_ReadAscCatAxisSettings
(
_params
,
_cursor
);
break
;
}
case
255
:
default
:
{
...
...
@@ -1325,9 +1505,18 @@ function asc_menu_WriteChartPr(_type, _chartPr, _stream){
_stream
[
"
WriteByte
"
](
15
);
_stream
[
"
WriteString2
"
](
_chartPr
.
separator
);
}
asc_menu_WriteAscValAxisSettings
(
16
,
_chartPr
.
horAxisProps
,
_stream
);
asc_menu_WriteAscValAxisSettings
(
17
,
_chartPr
.
vertAxisProps
,
_stream
);
if
(
undefined
!=
_chartPr
.
horAxisProps
&&
null
!=
_chartPr
.
horAxisProps
&&
_chartPr
.
horAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
val
)
{
asc_menu_WriteAscValAxisSettings
(
16
,
_chartPr
.
horAxisProps
,
_stream
);
}
if
(
undefined
!=
_chartPr
.
vertAxisProps
&&
null
!=
_chartPr
.
vertAxisProps
&&
_chartPr
.
vertAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
val
)
{
asc_menu_WriteAscValAxisSettings
(
17
,
_chartPr
.
vertAxisProps
,
_stream
);
}
if
(
_chartPr
.
range
!==
undefined
&&
_chartPr
.
range
!==
null
)
{
...
...
@@ -1355,6 +1544,18 @@ function asc_menu_WriteChartPr(_type, _chartPr, _stream){
_stream
[
"
WriteByte
"
](
22
);
_stream
[
"
WriteBool
"
](
_chartPr
.
showVal
);
}
if
(
undefined
!=
_chartPr
.
horAxisProps
&&
null
!=
_chartPr
.
horAxisProps
&&
_chartPr
.
horAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
cat
)
{
asc_menu_WriteAscCatAxisSettings
(
23
,
_chartPr
.
horAxisProps
,
_stream
);
}
if
(
undefined
!=
_chartPr
.
vertAxisProps
&&
null
!=
_chartPr
.
vertAxisProps
&&
_chartPr
.
vertAxisProps
.
getAxisType
()
==
Asc
.
c_oAscAxisType
.
cat
)
{
asc_menu_WriteAscCatAxisSettings
(
24
,
_chartPr
.
vertAxisProps
,
_stream
);
}
_stream
[
"
WriteByte
"
](
255
);
}
...
...
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