mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47257 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander.Trofimov
parent
fc2cf4128d
commit
2d15b36204
@ -562,6 +562,30 @@ function CDocMeta()
|
||||
{
|
||||
// drawImage
|
||||
var _type = s.GetUChar();
|
||||
|
||||
if (2 == _type)
|
||||
{
|
||||
var _src = this.DocumentUrl + "media/image" + s.GetLong() + ".svg";
|
||||
|
||||
obj.StreamPos = s.pos;
|
||||
|
||||
var img = new Image();
|
||||
img.onload = function(){
|
||||
if (1 != obj.BreakDrawing)
|
||||
{
|
||||
g.drawImage2(img, 0, 0, page.width_mm, page.height_mm);
|
||||
}
|
||||
|
||||
oThisDoc.OnImageLoad(obj);
|
||||
};
|
||||
img.onerror = function(){
|
||||
oThisDoc.OnImageLoad(obj);
|
||||
};
|
||||
img.src = _src;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var _src = (0 == _type) ? (this.DocumentUrl + "media/image" + s.GetLong() + ".jpg") : (this.DocumentUrl + "media/image" + s.GetLong() + ".png");
|
||||
|
||||
var __x = s.GetDouble();
|
||||
|
||||
Reference in New Issue
Block a user