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
98fdb987
Commit
98fdb987
authored
Jun 19, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shadow after frozen place's border
parent
4462e68f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
9 deletions
+49
-9
cell/view/WorkbookView.js
cell/view/WorkbookView.js
+0
-3
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+0
-4
common/Charts/DrawingArea.js
common/Charts/DrawingArea.js
+36
-0
common/Charts/DrawingObjects.js
common/Charts/DrawingObjects.js
+13
-2
No files found.
cell/view/WorkbookView.js
View file @
98fdb987
...
@@ -121,9 +121,6 @@
...
@@ -121,9 +121,6 @@
ctx
.
fillRect
(
1
,
1
,
1
,
1
);
ctx
.
fillRect
(
1
,
1
,
1
,
1
);
this
.
ptrnLineDotted1
=
ctx
.
createPattern
(
cnv
,
"
repeat
"
);
this
.
ptrnLineDotted1
=
ctx
.
createPattern
(
cnv
,
"
repeat
"
);
this
.
frozenImageH
=
new
Image
();
this
.
frozenImageH
.
src
=
'
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAKCAYAAAB10jRKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAJElEQVQYV2MAAjUQoQIiFECEDIiQABHCIIIPRHCBCDYgZmACABohANImre1SAAAAAElFTkSuQmCC
'
;
this
.
halfSelection
=
false
;
this
.
halfSelection
=
false
;
return
this
;
return
this
;
...
...
cell/view/WorksheetView.js
View file @
98fdb987
...
@@ -3293,10 +3293,6 @@
...
@@ -3293,10 +3293,6 @@
}
}
ctx
.
stroke
();
ctx
.
stroke
();
if
(
0
<
row
)
{
ctx
.
drawImage
(
this
.
settings
.
frozenImageH
,
0
,
0
,
1
*
this
.
width_1px
,
10
*
this
.
height_1px
,
0
,
this
.
rows
[
row
].
top
,
ctx
.
getWidth
(),
this
.
height_1px
*
10
);
}
}
else
if
(
this
.
model
.
sheetViews
[
0
].
asc_getShowRowColHeaders
())
{
}
else
if
(
this
.
model
.
sheetViews
[
0
].
asc_getShowRowColHeaders
())
{
fHorLine
.
apply
(
ctx
,
[
0
,
this
.
headersHeight
,
this
.
headersWidth
]);
fHorLine
.
apply
(
ctx
,
[
0
,
this
.
headersHeight
,
this
.
headersWidth
]);
fVerLine
.
apply
(
ctx
,
[
this
.
headersWidth
,
0
,
this
.
headersHeight
]);
fVerLine
.
apply
(
ctx
,
[
this
.
headersWidth
,
0
,
this
.
headersHeight
]);
...
...
common/Charts/DrawingArea.js
View file @
98fdb987
...
@@ -729,12 +729,48 @@ DrawingArea.prototype.drawSelection = function(drawingDocument) {
...
@@ -729,12 +729,48 @@ DrawingArea.prototype.drawSelection = function(drawingDocument) {
ctx
.
globalAlpha
=
1.0
;
ctx
.
globalAlpha
=
1.0
;
this
.
worksheet
.
objectRender
.
controller
.
drawSelection
(
drawingDocument
);
this
.
worksheet
.
objectRender
.
controller
.
drawSelection
(
drawingDocument
);
var
bReset
=
true
;
if
(
this
.
frozenPlaces
[
i
].
type
===
FrozenAreaType
.
Bottom
){
//autoShapeTrack.Graphics.put_GlobalAlpha(true, 1);
var
fTop
=
this
.
worksheet
.
getCellTop
(
this
.
frozenPlaces
[
i
].
frozenCell
.
row
,
0
);
var
fLeft
=
this
.
worksheet
.
getCellLeft
(
0
,
0
);
autoShapeTrack
.
drawImage
(
AscFormat
.
sFrozenImageUrl
,
fLeft
,
fTop
,
autoShapeTrack
.
Graphics
.
m_lWidthPix
,
10
);
}
else
if
(
this
.
frozenPlaces
[
i
].
type
===
FrozenAreaType
.
Right
){
var
fTop
=
this
.
worksheet
.
getCellTop
(
0
,
0
);
var
fLeft
=
this
.
worksheet
.
getCellLeft
(
this
.
frozenPlaces
[
i
].
frozenCell
.
col
,
0
);
autoShapeTrack
.
drawImage
(
AscFormat
.
sFrozenImageRotUrl
,
fLeft
,
fTop
,
10
,
autoShapeTrack
.
Graphics
.
m_lHeightPix
);
}
else
if
(
this
.
frozenPlaces
[
i
].
type
===
FrozenAreaType
.
RightBottom
){
//autoShapeTrack.Graphics.put_GlobalAlpha(true, 1);
var
fTop
=
this
.
worksheet
.
getCellTop
(
this
.
frozenPlaces
[
i
].
frozenCell
.
row
,
0
);
var
fLeft
=
this
.
worksheet
.
getCellLeft
(
this
.
frozenPlaces
[
i
].
frozenCell
.
col
,
0
);
autoShapeTrack
.
drawImage
(
AscFormat
.
sFrozenImageUrl
,
fLeft
,
fTop
,
autoShapeTrack
.
Graphics
.
m_lWidthPix
,
10
);
autoShapeTrack
.
drawImage
(
AscFormat
.
sFrozenImageRotUrl
,
fLeft
,
fTop
,
10
,
autoShapeTrack
.
Graphics
.
m_lHeightPix
);
}
else
if
(
this
.
frozenPlaces
[
i
].
type
===
FrozenAreaType
.
LeftBottom
){
var
fTop
=
this
.
worksheet
.
getCellTop
(
this
.
frozenPlaces
[
i
].
frozenCell
.
row
,
0
);
var
fLeft
=
this
.
worksheet
.
getCellLeft
(
0
,
0
);
autoShapeTrack
.
drawImage
(
AscFormat
.
sFrozenImageUrl
,
fLeft
,
fTop
,
autoShapeTrack
.
Graphics
.
m_lWidthPix
,
10
);
}
else
if
(
this
.
frozenPlaces
[
i
].
type
===
FrozenAreaType
.
RightTop
){
var
fTop
=
this
.
worksheet
.
getCellTop
(
0
,
0
);
var
fLeft
=
this
.
worksheet
.
getCellLeft
(
this
.
frozenPlaces
[
i
].
frozenCell
.
col
,
0
);
autoShapeTrack
.
drawImage
(
AscFormat
.
sFrozenImageRotUrl
,
fLeft
,
fTop
,
10
,
autoShapeTrack
.
Graphics
.
m_lHeightPix
);
}
if
(
this
.
worksheet
.
objectRender
.
controller
.
needUpdateOverlay
()
)
{
if
(
this
.
worksheet
.
objectRender
.
controller
.
needUpdateOverlay
()
)
{
trackOverlay
.
Show
();
trackOverlay
.
Show
();
autoShapeTrack
.
Graphics
.
put_GlobalAlpha
(
true
,
0.5
);
autoShapeTrack
.
Graphics
.
put_GlobalAlpha
(
true
,
0.5
);
this
.
worksheet
.
objectRender
.
controller
.
drawTracks
(
autoShapeTrack
);
this
.
worksheet
.
objectRender
.
controller
.
drawTracks
(
autoShapeTrack
);
autoShapeTrack
.
Graphics
.
put_GlobalAlpha
(
true
,
1
);
autoShapeTrack
.
Graphics
.
put_GlobalAlpha
(
true
,
1
);
bReset
=
true
;
this
.
frozenPlaces
[
i
].
restore
(
autoShapeTrack
);
}
}
}
}
// Restore
// Restore
...
...
common/Charts/DrawingObjects.js
View file @
98fdb987
...
@@ -39,6 +39,9 @@
...
@@ -39,6 +39,9 @@
*/
*/
function
(
window
,
undefined
)
{
function
(
window
,
undefined
)
{
var
sFrozenImageUrl
=
'
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAKCAYAAAB10jRKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAJElEQVQYV2MAAjUQoQIiFECEDIiQABHCIIIPRHCBCDYgZmACABohANImre1SAAAAAElFTkSuQmCC
'
;
var
sFrozenImageRotUrl
=
'
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAYAAADn9T9+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAGklEQVQYV2NkYGBQA+J/QPwHCf+GYiif4Q8AnJAJBNqB9DYAAAAASUVORK5CYII=
'
// Import
// Import
var
c_oAscCellAnchorType
=
AscCommon
.
c_oAscCellAnchorType
;
var
c_oAscCellAnchorType
=
AscCommon
.
c_oAscCellAnchorType
;
var
c_oAscLockTypes
=
AscCommon
.
c_oAscLockTypes
;
var
c_oAscLockTypes
=
AscCommon
.
c_oAscLockTypes
;
...
@@ -1905,6 +1908,12 @@ function DrawingObjects() {
...
@@ -1905,6 +1908,12 @@ function DrawingObjects() {
_this
.
showDrawingObjects
(
true
);
_this
.
showDrawingObjects
(
true
);
};
};
if
(
!
Asc
.
editor
.
ImageLoader
.
map_image_index
[
sFrozenImageUrl
]){
aImagesSync
.
push
(
sFrozenImageUrl
);
}
if
(
!
Asc
.
editor
.
ImageLoader
.
map_image_index
[
sFrozenImageRotUrl
]){
aImagesSync
.
push
(
sFrozenImageRotUrl
);
}
if
(
aImagesSync
.
length
>
0
)
if
(
aImagesSync
.
length
>
0
)
{
{
var
old_val
=
api
.
ImageLoader
.
bIsAsyncLoadDocumentImages
;
var
old_val
=
api
.
ImageLoader
.
bIsAsyncLoadDocumentImages
;
...
@@ -2196,8 +2205,8 @@ function DrawingObjects() {
...
@@ -2196,8 +2205,8 @@ function DrawingObjects() {
}
}
if
(
!
printOptions
)
{
if
(
!
printOptions
)
{
if
(
aObjects
.
length
)
{
if
(
aObjects
.
length
||
_this
.
drawingArea
.
frozenPlaces
.
length
>
1
)
{
if
(
_this
.
controller
.
selectedObjects
.
length
)
if
(
_this
.
controller
.
selectedObjects
.
length
||
_this
.
drawingArea
.
frozenPlaces
.
length
>
1
)
{
{
_this
.
OnUpdateOverlay
();
_this
.
OnUpdateOverlay
();
_this
.
controller
.
updateSelectionState
(
true
);
_this
.
controller
.
updateSelectionState
(
true
);
...
@@ -4762,4 +4771,6 @@ function CoordsManager(ws) {
...
@@ -4762,4 +4771,6 @@ function CoordsManager(ws) {
window
[
"
AscFormat
"
].
ClickCounter
=
ClickCounter
;
window
[
"
AscFormat
"
].
ClickCounter
=
ClickCounter
;
window
[
"
AscFormat
"
].
aSparklinesStyles
=
aSparklinesStyles
;
window
[
"
AscFormat
"
].
aSparklinesStyles
=
aSparklinesStyles
;
window
[
"
AscFormat
"
].
CSparklineView
=
CSparklineView
;
window
[
"
AscFormat
"
].
CSparklineView
=
CSparklineView
;
window
[
"
AscFormat
"
].
sFrozenImageUrl
=
sFrozenImageUrl
;
window
[
"
AscFormat
"
].
sFrozenImageRotUrl
=
sFrozenImageRotUrl
;
})(
window
);
})(
window
);
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