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
1a8bb5ed
Commit
1a8bb5ed
authored
Jun 10, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add CRangeOffset class
Range3D add multisheets
parent
3a5124b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
cell/utils/utils.js
cell/utils/utils.js
+10
-5
No files found.
cell/utils/utils.js
View file @
1a8bb5ed
...
...
@@ -141,6 +141,10 @@
return
undefined
;
}
function
CRangeOffset
(
offsetCol
,
offsetRow
)
{
this
.
offsetCol
=
offsetCol
;
this
.
offsetRow
=
offsetRow
;
}
/**
* Rectangle region of cells
...
...
@@ -455,7 +459,7 @@
function
Range3D
()
{
this
.
sheet
=
''
;
if
(
2
==
arguments
.
length
)
{
if
(
3
==
arguments
.
length
)
{
var
range
=
arguments
[
0
];
Range3D
.
superclass
.
constructor
.
call
(
this
,
range
.
c1
,
range
.
r1
,
range
.
c2
,
range
.
r2
);
// ToDo стоит пересмотреть конструкторы.
...
...
@@ -465,6 +469,7 @@
this
.
c2Abs
=
range
.
c2Abs
;
this
.
sheet
=
arguments
[
1
];
this
.
sheet2
=
arguments
[
2
];
}
else
if
(
arguments
.
length
>
1
)
{
ActiveRange
.
superclass
.
constructor
.
apply
(
this
,
arguments
);
}
else
{
...
...
@@ -481,8 +486,7 @@
return
oRes
&&
Range3D
.
superclass
.
isIntersect
.
apply
(
this
,
arguments
);
};
Range3D
.
prototype
.
clone
=
function
(){
var
oRes
=
new
Range3D
(
ActiveRange
.
superclass
.
clone
.
apply
(
this
,
arguments
),
this
.
sheet
);
return
oRes
;
return
new
Range3D
(
ActiveRange
.
superclass
.
clone
.
apply
(
this
,
arguments
),
this
.
sheet
,
this
.
sheet2
);
};
/**
...
...
@@ -736,8 +740,8 @@
if
(
!
res
)
{
return
null
;
}
var
range
=
this
.
_getRange
(
res
.
range
,
1
);
return
range
?
new
Range3D
(
range
,
res
.
sheet
)
:
null
;
var
range
=
this
.
_getRange
(
res
.
range
.
toUpperCase
()
,
1
);
return
range
?
new
Range3D
(
range
,
res
.
sheet
,
res
.
sheet2
)
:
null
;
},
getActiveRange
:
function
(
sRange
)
{
...
...
@@ -1619,6 +1623,7 @@
window
[
"
Asc
"
].
truncFracPart
=
truncFracPart
;
window
[
"
Asc
"
].
getEndValueRange
=
getEndValueRange
;
window
[
"
AscCommonExcel
"
].
CRangeOffset
=
CRangeOffset
;
window
[
"
Asc
"
].
Range
=
Range
;
window
[
"
AscCommonExcel
"
].
Range3D
=
Range3D
;
window
[
"
AscCommonExcel
"
].
ActiveRange
=
ActiveRange
;
...
...
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