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
b13152a7
Commit
b13152a7
authored
May 18, 2017
by
Oleg Korshul
Committed by
GitHub
May 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #122 from ONLYOFFICE/hotfix/v4.3.5
Hotfix/v4.3.5
parents
5cbf688f
e1e49f81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
34 deletions
+77
-34
cell/model/Serialize.js
cell/model/Serialize.js
+3
-0
common/GlobalLoaders.js
common/GlobalLoaders.js
+70
-34
common/Shapes/Serialize.js
common/Shapes/Serialize.js
+4
-0
No files found.
cell/model/Serialize.js
View file @
b13152a7
...
...
@@ -4868,10 +4868,13 @@
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
)
{
return
oThis
.
ReadBorders
(
t
,
l
,
oStyleObject
.
aBorders
);
});
oStyleObject
.
aBorders
[
0
]
=
new
AscCommonExcel
.
Border
();
}
else
if
(
c_oSerStylesTypes
.
Fills
===
type
)
{
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
)
{
return
oThis
.
ReadFills
(
t
,
l
,
oStyleObject
.
aFills
);
});
oStyleObject
.
aFills
[
0
]
=
new
AscCommonExcel
.
Fill
();
oStyleObject
.
aFills
[
1
]
=
new
AscCommonExcel
.
Fill
();
}
else
if
(
c_oSerStylesTypes
.
Fonts
===
type
)
{
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
)
{
return
oThis
.
ReadFonts
(
t
,
l
,
oStyleObject
.
aFonts
);
...
...
common/GlobalLoaders.js
View file @
b13152a7
...
...
@@ -435,6 +435,11 @@
this
.
bIsAsyncLoadDocumentImages
=
false
;
this
.
bIsLoadDocumentImagesNoByOrder
=
true
;
this
.
nNoByOrderCounter
=
0
;
var
oThis
=
this
;
this
.
put_Api
=
function
(
_api
)
{
this
.
Api
=
_api
;
...
...
@@ -467,6 +472,7 @@
if
(
!
this
.
bIsAsyncLoadDocumentImages
)
{
this
.
nNoByOrderCounter
=
0
;
this
.
_LoadImages
();
}
else
...
...
@@ -486,11 +492,14 @@
}
};
var
oThis
=
this
;
this
.
_LoadImages
=
function
()
{
if
(
0
==
this
.
images_loading
.
length
)
var
_count_images
=
this
.
images_loading
.
length
;
if
(
0
==
_count_images
)
{
this
.
nNoByOrderCounter
=
0
;
if
(
this
.
ThemeLoader
==
null
)
this
.
Api
.
asyncImagesDocumentEndLoaded
();
else
...
...
@@ -499,38 +508,65 @@
return
;
}
var
_id
=
this
.
images_loading
[
0
];
var
oImage
=
new
CImage
(
_id
);
oImage
.
Status
=
ImageLoadStatus
.
Loading
;
oImage
.
Image
=
new
Image
();
oThis
.
map_image_index
[
oImage
.
src
]
=
oImage
;
oImage
.
Image
.
onload
=
function
(){
oImage
.
Status
=
ImageLoadStatus
.
Complete
;
if
(
oThis
.
bIsLoadDocumentFirst
===
true
)
{
oThis
.
Api
.
OpenDocumentProgress
.
CurrentImage
++
;
oThis
.
Api
.
SendOpenProgress
();
}
oThis
.
images_loading
.
shift
();
oThis
.
_LoadImages
();
};
oImage
.
Image
.
onerror
=
function
(){
oImage
.
Status
=
ImageLoadStatus
.
Complete
;
oImage
.
Image
=
null
;
if
(
oThis
.
bIsLoadDocumentFirst
===
true
)
{
oThis
.
Api
.
OpenDocumentProgress
.
CurrentImage
++
;
oThis
.
Api
.
SendOpenProgress
();
}
oThis
.
images_loading
.
shift
();
oThis
.
_LoadImages
();
};
//oImage.Image.crossOrigin = 'anonymous';
oImage
.
Image
.
src
=
oImage
.
src
;
for
(
var
i
=
0
;
i
<
_count_images
;
i
++
)
{
var
_id
=
this
.
images_loading
[
i
];
var
oImage
=
new
CImage
(
_id
);
oImage
.
Status
=
ImageLoadStatus
.
Loading
;
oImage
.
Image
=
new
Image
();
oThis
.
map_image_index
[
oImage
.
src
]
=
oImage
;
oImage
.
Image
.
parentImage
=
oImage
;
oImage
.
Image
.
onload
=
function
()
{
this
.
parentImage
.
Status
=
ImageLoadStatus
.
Complete
;
oThis
.
nNoByOrderCounter
++
;
if
(
oThis
.
bIsLoadDocumentFirst
===
true
)
{
oThis
.
Api
.
OpenDocumentProgress
.
CurrentImage
++
;
oThis
.
Api
.
SendOpenProgress
();
}
if
(
!
oThis
.
bIsLoadDocumentImagesNoByOrder
)
{
oThis
.
images_loading
.
shift
();
oThis
.
_LoadImages
();
}
else
if
(
oThis
.
nNoByOrderCounter
==
oThis
.
images_loading
.
length
)
{
oThis
.
images_loading
=
[];
oThis
.
_LoadImages
();
}
};
oImage
.
Image
.
onerror
=
function
()
{
this
.
parentImage
.
Status
=
ImageLoadStatus
.
Complete
;
this
.
parentImage
.
Image
=
null
;
oThis
.
nNoByOrderCounter
++
;
if
(
oThis
.
bIsLoadDocumentFirst
===
true
)
{
oThis
.
Api
.
OpenDocumentProgress
.
CurrentImage
++
;
oThis
.
Api
.
SendOpenProgress
();
}
if
(
!
oThis
.
bIsLoadDocumentImagesNoByOrder
)
{
oThis
.
images_loading
.
shift
();
oThis
.
_LoadImages
();
}
else
if
(
oThis
.
nNoByOrderCounter
==
oThis
.
images_loading
.
length
)
{
oThis
.
images_loading
=
[];
oThis
.
_LoadImages
();
}
};
//oImage.Image.crossOrigin = 'anonymous';
oImage
.
Image
.
src
=
oImage
.
src
;
if
(
!
oThis
.
bIsLoadDocumentImagesNoByOrder
)
return
;
}
};
this
.
LoadImage
=
function
(
src
,
Type
)
...
...
common/Shapes/Serialize.js
View file @
b13152a7
...
...
@@ -1672,6 +1672,10 @@ function BinaryPPTYLoader()
}
}
if
(
!
uni_color
.
color
){
return
null
;
}
s
.
Seek2
(
read_end
);
return
uni_color
;
}
...
...
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