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
6ef43c8b
Commit
6ef43c8b
authored
Oct 26, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sparklineGroup.asc_getId
add api.asc_setSparklineGroup(id, oSparklineGroup)
parent
b3ec201b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
1 deletion
+45
-1
cell/api.js
cell/api.js
+11
-1
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+34
-0
No files found.
cell/api.js
View file @
6ef43c8b
...
...
@@ -2612,10 +2612,17 @@ var editor;
};
// Frozen pane
spreadsheet_api
.
prototype
.
asc_freezePane
=
function
()
{
spreadsheet_api
.
prototype
.
asc_freezePane
=
function
()
{
this
.
wb
.
getWorksheet
().
freezePane
();
};
spreadsheet_api
.
prototype
.
asc_setSparklineGroup
=
function
(
id
,
oSparklineGroup
)
{
var
changedSparkline
=
AscCommon
.
g_oTableId
.
Get_ById
(
id
);
if
(
changedSparkline
)
{
changedSparkline
.
set
(
oSparklineGroup
);
}
};
// Cell interface
spreadsheet_api
.
prototype
.
asc_getCellInfo
=
function
()
{
return
this
.
wb
.
getSelectionInfo
();
...
...
@@ -3532,6 +3539,9 @@ var editor;
// Frozen pane
prot
[
"
asc_freezePane
"
]
=
prot
.
asc_freezePane
;
// Sparklines
prot
[
"
asc_setSparklineGroup
"
]
=
prot
.
asc_setSparklineGroup
;
// Cell interface
prot
[
"
asc_getCellInfo
"
]
=
prot
.
asc_getCellInfo
;
prot
[
"
asc_getActiveCellCoord
"
]
=
prot
.
asc_getActiveCellCoord
;
...
...
cell/model/WorkbookElems.js
View file @
6ef43c8b
...
...
@@ -4657,6 +4657,36 @@ CellArea.prototype = {
this
.
colorHigh
=
new
AscCommonExcel
.
RgbColor
(
defaultOtherColor
);
this
.
colorLow
=
new
AscCommonExcel
.
RgbColor
(
defaultOtherColor
);
};
sparklineGroup
.
prototype
.
set
=
function
(
val
)
{
this
.
manualMax
=
null
!==
val
.
manualMax
?
val
.
manualMax
:
this
.
manualMax
;
this
.
manualMin
=
null
!==
val
.
manualMin
?
val
.
manualMin
:
this
.
manualMin
;
this
.
lineWeight
=
null
!==
val
.
lineWeight
?
val
.
lineWeight
:
this
.
lineWeight
;
this
.
type
=
null
!==
val
.
type
?
val
.
type
:
this
.
type
;
this
.
dateAxis
=
null
!==
val
.
dateAxis
?
val
.
dateAxis
:
this
.
dateAxis
;
this
.
displayEmptyCellsAs
=
null
!==
val
.
displayEmptyCellsAs
?
val
.
displayEmptyCellsAs
:
this
.
displayEmptyCellsAs
;
this
.
markers
=
null
!==
val
.
markers
?
val
.
markers
:
this
.
markers
;
this
.
high
=
null
!==
val
.
high
?
val
.
high
:
this
.
high
;
this
.
low
=
null
!==
val
.
low
?
val
.
low
:
this
.
low
;
this
.
first
=
null
!==
val
.
first
?
val
.
first
:
this
.
first
;
this
.
last
=
null
!==
val
.
last
?
val
.
last
:
this
.
last
;
this
.
negative
=
null
!==
val
.
negative
?
val
.
negative
:
this
.
negative
;
this
.
displayXAxis
=
null
!==
val
.
displayXAxis
?
val
.
displayXAxis
:
this
.
displayXAxis
;
this
.
displayHidden
=
null
!==
val
.
displayHidden
?
val
.
displayHidden
:
this
.
displayHidden
;
this
.
minAxisType
=
null
!==
val
.
minAxisType
?
val
.
minAxisType
:
this
.
minAxisType
;
this
.
maxAxisType
=
null
!==
val
.
maxAxisType
?
val
.
maxAxisType
:
this
.
maxAxisType
;
this
.
rightToLeft
=
null
!==
val
.
rightToLeft
?
val
.
rightToLeft
:
this
.
rightToLeft
;
this
.
colorSeries
=
null
!==
val
.
colorSeries
?
val
.
colorSeries
:
this
.
colorSeries
;
this
.
colorNegative
=
null
!==
val
.
colorNegative
?
val
.
colorNegative
:
this
.
colorNegative
;
this
.
colorAxis
=
null
!==
val
.
colorAxis
?
val
.
colorAxis
:
this
.
colorAxis
;
this
.
colorMarkers
=
null
!==
val
.
colorMarkers
?
val
.
colorMarkers
:
this
.
colorMarkers
;
this
.
colorFirst
=
null
!==
val
.
colorFirst
?
val
.
colorFirst
:
this
.
colorFirst
;
this
.
colorLast
=
null
!==
val
.
colorLast
?
val
.
colorLast
:
this
.
colorLast
;
this
.
colorHigh
=
null
!==
val
.
colorHigh
?
val
.
colorHigh
:
this
.
colorHigh
;
this
.
colorLow
=
null
!==
val
.
colorLow
?
val
.
colorLow
:
this
.
colorLow
;
this
.
cleanCache
();
};
sparklineGroup
.
prototype
.
clone
=
function
(
onlyProps
)
{
var
res
=
new
sparklineGroup
(
!
onlyProps
);
res
.
manualMax
=
this
.
manualMax
;
...
...
@@ -4731,6 +4761,9 @@ CellArea.prototype = {
}
return
-
1
;
};
sparklineGroup
.
prototype
.
asc_getId
=
function
()
{
return
this
.
Id
;
};
sparklineGroup
.
prototype
.
asc_getType
=
function
()
{
return
this
.
type
;
};
...
...
@@ -7208,6 +7241,7 @@ function getCurrencyFormat(opt_cultureInfo, opt_fraction, opt_currency, opt_curr
window
[
'
AscCommonExcel
'
].
CellArea
=
CellArea
;
window
[
"
Asc
"
][
"
sparklineGroup
"
]
=
window
[
'
AscCommonExcel
'
].
sparklineGroup
=
sparklineGroup
;
prot
=
sparklineGroup
.
prototype
;
prot
[
"
asc_getId
"
]
=
prot
.
asc_getId
;
prot
[
"
asc_getType
"
]
=
prot
.
asc_getType
;
prot
[
"
asc_getLineWeight
"
]
=
prot
.
asc_getLineWeight
;
prot
[
"
asc_getDisplayEmpty
"
]
=
prot
.
asc_getDisplayEmpty
;
...
...
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