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
84955468
Commit
84955468
authored
Feb 09, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparklines changes objects for history was replaced by classes
parent
b63abb8d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
481 deletions
+73
-481
cell/model/History.js
cell/model/History.js
+1
-29
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+42
-433
common/Drawings/DrawingsChanges.js
common/Drawings/DrawingsChanges.js
+30
-19
No files found.
cell/model/History.js
View file @
84955468
...
@@ -146,35 +146,7 @@ function (window, undefined) {
...
@@ -146,35 +146,7 @@ function (window, undefined) {
window
[
'
AscCH
'
].
historyitem_AutoFilter_ChangeColumnName
=
16
;
window
[
'
AscCH
'
].
historyitem_AutoFilter_ChangeColumnName
=
16
;
window
[
'
AscCH
'
].
historyitem_AutoFilter_ChangeTotalRow
=
17
;
window
[
'
AscCH
'
].
historyitem_AutoFilter_ChangeTotalRow
=
17
;
window
[
'
AscCH
'
].
historyitem_Sparkline_Type
=
1
;
window
[
'
AscCH
'
].
historyitem_Sparkline_LineWeight
=
2
;
window
[
'
AscCH
'
].
historyitem_Sparkline_DisplayEmptyCellsAs
=
3
;
window
[
'
AscCH
'
].
historyitem_Sparkline_Markers
=
4
;
window
[
'
AscCH
'
].
historyitem_Sparkline_High
=
5
;
window
[
'
AscCH
'
].
historyitem_Sparkline_Low
=
6
;
window
[
'
AscCH
'
].
historyitem_Sparkline_First
=
7
;
window
[
'
AscCH
'
].
historyitem_Sparkline_Last
=
8
;
window
[
'
AscCH
'
].
historyitem_Sparkline_Negative
=
9
;
window
[
'
AscCH
'
].
historyitem_Sparkline_DisplayXAxis
=
10
;
window
[
'
AscCH
'
].
historyitem_Sparkline_DisplayHidden
=
11
;
window
[
'
AscCH
'
].
historyitem_Sparkline_MinAxisType
=
12
;
window
[
'
AscCH
'
].
historyitem_Sparkline_MaxAxisType
=
13
;
window
[
'
AscCH
'
].
historyitem_Sparkline_RightToLeft
=
14
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ManualMax
=
15
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ManualMin
=
16
;
window
[
'
AscCH
'
].
historyitem_Sparkline_DateAxis
=
17
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorSeries
=
18
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorNegative
=
19
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorAxis
=
20
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorMarkers
=
21
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorFirst
=
22
;
window
[
'
AscCH
'
].
historyitem_Sparkline_colorLast
=
23
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorHigh
=
24
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ColorLow
=
25
;
window
[
'
AscCH
'
].
historyitem_Sparkline_F
=
26
;
window
[
'
AscCH
'
].
historyitem_Sparkline_ChangeData
=
27
;
window
[
'
AscCH
'
].
historyitem_Sparkline_RemoveData
=
28
;
window
[
'
AscCH
'
].
historyitem_Sparkline_RemoveSparkline
=
29
;
function
CHistory
()
function
CHistory
()
{
{
...
...
cell/model/WorkbookElems.js
View file @
84955468
This diff is collapsed.
Click to expand it.
common/Drawings/DrawingsChanges.js
View file @
84955468
...
@@ -591,6 +591,9 @@
...
@@ -591,6 +591,9 @@
};
};
CChangesSparklinesChangeData
.
prototype
.
ReadFromBinary
=
function
(
Reader
){
CChangesSparklinesChangeData
.
prototype
.
ReadFromBinary
=
function
(
Reader
){
Reader
.
Seek2
(
Reader
.
GetCurPos
()
-
4
);
var
nType
=
Reader
.
GetLong
();
this
.
Type
=
nType
;
this
.
OldPr
=
this
.
ReadPr
(
Reader
);
this
.
OldPr
=
this
.
ReadPr
(
Reader
);
this
.
NewPr
=
this
.
ReadPr
(
Reader
);
this
.
NewPr
=
this
.
ReadPr
(
Reader
);
};
};
...
@@ -603,6 +606,7 @@
...
@@ -603,6 +606,7 @@
aSparklines
.
push
(
Pr
[
i
].
clone
())
aSparklines
.
push
(
Pr
[
i
].
clone
())
}
}
}
}
this
.
Class
.
cleanCache
();
};
};
CChangesSparklinesChangeData
.
prototype
.
Undo
=
function
(){
CChangesSparklinesChangeData
.
prototype
.
Undo
=
function
(){
...
@@ -662,7 +666,7 @@
...
@@ -662,7 +666,7 @@
else
{
else
{
this
.
Class
.
arrSparklines
.
push
(
this
.
sparkline
);
this
.
Class
.
arrSparklines
.
push
(
this
.
sparkline
);
}
}
this
.
Class
.
cleanCache
();
};
};
CChangesSparklinesRemoveData
.
prototype
.
Redo
=
function
(){
CChangesSparklinesRemoveData
.
prototype
.
Redo
=
function
(){
if
(
this
.
bReverse
){
if
(
this
.
bReverse
){
...
@@ -671,6 +675,7 @@
...
@@ -671,6 +675,7 @@
else
{
else
{
this
.
Class
.
remove
(
this
.
sparkline
.
sqref
);
this
.
Class
.
remove
(
this
.
sparkline
.
sqref
);
}
}
this
.
Class
.
cleanCache
();
};
};
CChangesSparklinesRemoveData
.
prototype
.
CreateReverseChange
=
function
(){
CChangesSparklinesRemoveData
.
prototype
.
CreateReverseChange
=
function
(){
...
@@ -722,6 +727,9 @@
...
@@ -722,6 +727,9 @@
this
.
WritePr
(
Writer
,
this
.
NewPr
);
this
.
WritePr
(
Writer
,
this
.
NewPr
);
};
};
CChangesDrawingsExcelColor
.
prototype
.
ReadFromBinary
=
function
(
Reader
){
CChangesDrawingsExcelColor
.
prototype
.
ReadFromBinary
=
function
(
Reader
){
Reader
.
Seek2
(
Reader
.
GetCurPos
()
-
4
);
var
nType
=
Reader
.
GetLong
();
this
.
Type
=
nType
;
this
.
OldPr
=
this
.
ReadPr
(
Reader
);
this
.
OldPr
=
this
.
ReadPr
(
Reader
);
this
.
NewPr
=
this
.
ReadPr
(
Reader
);
this
.
NewPr
=
this
.
ReadPr
(
Reader
);
};
};
...
@@ -766,6 +774,7 @@
...
@@ -766,6 +774,7 @@
oClass
.
colorLow
=
Pr
;
oClass
.
colorLow
=
Pr
;
break
;
break
;
}
}
oClass
.
cleanCache
();
};
};
...
@@ -791,6 +800,7 @@
...
@@ -791,6 +800,7 @@
}
}
}
}
this
.
Class
.
cleanCache
();
};
};
CChangesDrawingsSparklinesRemove
.
prototype
.
Redo
=
function
(){
CChangesDrawingsSparklinesRemove
.
prototype
.
Redo
=
function
(){
if
(
this
.
Class
.
worksheet
)
{
if
(
this
.
Class
.
worksheet
)
{
...
@@ -801,6 +811,7 @@
...
@@ -801,6 +811,7 @@
this
.
Class
.
worksheet
.
removeSparklineGroup
(
this
.
Class
.
Get_Id
());
this
.
Class
.
worksheet
.
removeSparklineGroup
(
this
.
Class
.
Get_Id
());
}
}
}
}
this
.
Class
.
cleanCache
();
};
};
CChangesDrawingsSparklinesRemove
.
prototype
.
WriteToBinary
=
function
(
Writer
){
CChangesDrawingsSparklinesRemove
.
prototype
.
WriteToBinary
=
function
(
Writer
){
...
@@ -856,23 +867,23 @@ AscDFH.changesFactory[AscDFH.historyitem_Sparkline_ChangeData] = AscDFH
...
@@ -856,23 +867,23 @@ AscDFH.changesFactory[AscDFH.historyitem_Sparkline_ChangeData] = AscDFH
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_Sparkline_RemoveData
]
=
AscDFH
.
CChangesSparklinesRemoveData
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_Sparkline_RemoveData
]
=
AscDFH
.
CChangesSparklinesRemoveData
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_Sparkline_RemoveSparkline
]
=
AscDFH
.
CChangesDrawingsSparklinesRemove
;
AscDFH
.
changesFactory
[
AscDFH
.
historyitem_Sparkline_RemoveSparkline
]
=
AscDFH
.
CChangesDrawingsSparklinesRemove
;
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Type
]
=
function
(
oClass
,
value
){
oClass
.
type
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Type
]
=
function
(
oClass
,
value
){
oClass
.
type
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_LineWeight
]
=
function
(
oClass
,
value
){
oClass
.
lineWeight
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_LineWeight
]
=
function
(
oClass
,
value
){
oClass
.
lineWeight
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DisplayEmptyCellsAs
]
=
function
(
oClass
,
value
){
oClass
.
displayEmptyCellsAs
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DisplayEmptyCellsAs
]
=
function
(
oClass
,
value
){
oClass
.
displayEmptyCellsAs
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Markers
]
=
function
(
oClass
,
value
){
oClass
.
markers
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Markers
]
=
function
(
oClass
,
value
){
oClass
.
markers
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_High
]
=
function
(
oClass
,
value
){
oClass
.
high
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_High
]
=
function
(
oClass
,
value
){
oClass
.
high
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Low
]
=
function
(
oClass
,
value
){
oClass
.
low
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Low
]
=
function
(
oClass
,
value
){
oClass
.
low
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_First
]
=
function
(
oClass
,
value
){
oClass
.
first
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_First
]
=
function
(
oClass
,
value
){
oClass
.
first
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Last
]
=
function
(
oClass
,
value
){
oClass
.
last
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Last
]
=
function
(
oClass
,
value
){
oClass
.
last
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Negative
]
=
function
(
oClass
,
value
){
oClass
.
negative
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_Negative
]
=
function
(
oClass
,
value
){
oClass
.
negative
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DisplayXAxis
]
=
function
(
oClass
,
value
){
oClass
.
displayXAxis
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DisplayXAxis
]
=
function
(
oClass
,
value
){
oClass
.
displayXAxis
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DisplayHidden
]
=
function
(
oClass
,
value
){
oClass
.
displayHidden
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DisplayHidden
]
=
function
(
oClass
,
value
){
oClass
.
displayHidden
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_MinAxisType
]
=
function
(
oClass
,
value
){
oClass
.
minAxisType
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_MinAxisType
]
=
function
(
oClass
,
value
){
oClass
.
minAxisType
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_MaxAxisType
]
=
function
(
oClass
,
value
){
oClass
.
maxAxisType
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_MaxAxisType
]
=
function
(
oClass
,
value
){
oClass
.
maxAxisType
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_RightToLeft
]
=
function
(
oClass
,
value
){
oClass
.
rightToLeft
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_RightToLeft
]
=
function
(
oClass
,
value
){
oClass
.
rightToLeft
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_ManualMax
]
=
function
(
oClass
,
value
){
oClass
.
manualMax
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_ManualMax
]
=
function
(
oClass
,
value
){
oClass
.
manualMax
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_ManualMin
]
=
function
(
oClass
,
value
){
oClass
.
manualMin
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_ManualMin
]
=
function
(
oClass
,
value
){
oClass
.
manualMin
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DateAxis
]
=
function
(
oClass
,
value
){
oClass
.
dateAxis
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_DateAxis
]
=
function
(
oClass
,
value
){
oClass
.
dateAxis
=
value
;
oClass
.
cleanCache
();
};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_F
]
=
function
(
oClass
,
value
){
oClass
.
f
=
value
;};
AscDFH
.
drawingsChangesMap
[
AscDFH
.
historyitem_Sparkline_F
]
=
function
(
oClass
,
value
){
oClass
.
f
=
value
;
oClass
.
cleanCache
();
};
})(
window
);
})(
window
);
\ No newline at end of file
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