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

Add asc_onEndAddShape

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47872 954022d7-b5bf-4e40-9824-e11837661b57
parent 728b1618
......@@ -4010,9 +4010,22 @@ function DrawingObjects() {
obj.id = generateId();
obj.graphicObject = graphic;
graphic.setDrawingBase(obj);
obj.graphicObject.select(_this.controller);
aObjects.push(obj);
_this.showDrawingObjects(false);
function callbackFunc(result) {
if ( result ) {
//History.Create_NewPoint();
//History.Add(g_oUndoRedoDrawingObject, historyitem_DrawingObject_Add, worksheet.model.getId(), null, obj);
obj.graphicObject.select(_this.controller);
aObjects.push(obj);
_this.showDrawingObjects(false);
worksheet.model.workbook.handlers.trigger("asc_onEndAddShape");
}
}
_this.lockDrawingObject(obj.id, true, true, callbackFunc);
}
_this.groupGraphicObjects = function() {
......
......@@ -335,7 +335,7 @@ function ChartPreviewManager() {
}
bReady = true;
var endTime = new Date();
//var endTime = new Date();
//console.log( "ChartPreviewManager init: " + (endTime.getTime() - startTime.getTime()) );
}
......
......@@ -2073,17 +2073,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
},
// Shapes
asc_startAddShape: function(sPreset, is_apply) {
asc_startAddShape: function(sPreset) {
this.isStartAddShape = true;
this.addShapePreset = sPreset;
var ws = this.wb.getWorksheet();
ws.objectRender.controller.startTrackNewShape(sPreset);
if (is_apply) {
}
else {
}
},
asc_endAddShape: function() {
......
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