Commit f10e7fd5 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Функция<loadImageRedraw> для перерисовки объектов при chartRender.insertChart


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48064 954022d7-b5bf-4e40-9824-e11837661b57
parent f9aa2467
......@@ -4246,6 +4246,28 @@ function DrawingObjects() {
_this.getSelectedObjectsStack = function() {
}
_this.loadImageRedraw = function(imageUrl) {
var _image = api.ImageLoader.LoadImage(imageUrl, 1);
if (null != _image) {
imageLoaded(_image);
}
else {
_this.asyncImageEndLoaded = function(_image) {
imageLoaded(_image);
}
}
function imageLoaded(_image) {
if ( !_image.Image ) {
worksheet.model.workbook.handlers.trigger("asc_onError", c_oAscError.ID.UplImageUrl, c_oAscError.Level.NoCritical);
}
else
_this.showDrawingObjects(true);
}
}
//-----------------------------------------------------------------------------------
// Graphic object mouse events
//-----------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment