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
e0543f5a
Commit
e0543f5a
authored
7 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fractionType
parent
6cfb7e14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
cell/model/Workbook.js
cell/model/Workbook.js
+1
-1
cell/utils/utils.js
cell/utils/utils.js
+3
-0
No files found.
cell/model/Workbook.js
View file @
e0543f5a
...
...
@@ -5129,7 +5129,7 @@ Woorksheet.prototype.isApplyFilterBySheet = function(){
};
Cell
.
prototype
.
getValueData
=
function
(){
this
.
_checkDirty
();
var
formula
=
this
.
formulaParsed
?
this
.
formulaParsed
.
Formula
:
null
;
;
var
formula
=
this
.
formulaParsed
?
this
.
formulaParsed
.
Formula
:
null
;
return
new
UndoRedoData_CellValueData
(
formula
,
this
.
oValue
.
clone
());
};
Cell
.
prototype
.
setValueData
=
function
(
Val
){
...
...
This diff is collapsed.
Click to expand it.
cell/utils/utils.js
View file @
e0543f5a
...
...
@@ -2138,11 +2138,13 @@
this
.
decimalPlaces
=
2
;
this
.
separator
=
false
;
this
.
symbol
=
false
;
this
.
fractionType
=
0
;
}
asc_CFormatCellsInfo
.
prototype
.
asc_setType
=
function
(
val
)
{
this
.
type
=
val
;};
asc_CFormatCellsInfo
.
prototype
.
asc_setDecimalPlaces
=
function
(
val
)
{
this
.
decimalPlaces
=
val
;};
asc_CFormatCellsInfo
.
prototype
.
asc_setSeparator
=
function
(
val
)
{
this
.
separator
=
val
;};
asc_CFormatCellsInfo
.
prototype
.
asc_setSymbol
=
function
(
val
)
{
this
.
symbol
=
val
;};
asc_CFormatCellsInfo
.
prototype
.
asc_setFractionType
=
function
(
val
)
{
this
.
fractionType
=
val
;};
/*
* Export
...
...
@@ -2320,4 +2322,5 @@
prot
[
"
asc_setDecimalPlaces
"
]
=
prot
.
asc_setDecimalPlaces
;
prot
[
"
asc_setSeparator
"
]
=
prot
.
asc_setSeparator
;
prot
[
"
asc_setSymbol
"
]
=
prot
.
asc_setSymbol
;
prot
[
"
asc_setFractionType
"
]
=
prot
.
asc_setFractionType
;
})(
window
);
This diff is collapsed.
Click to expand it.
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