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

объект отображается поверх селекта

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48394 954022d7-b5bf-4e40-9824-e11837661b57
parent f9aee166
...@@ -3063,17 +3063,19 @@ function DrawingObjects() { ...@@ -3063,17 +3063,19 @@ function DrawingObjects() {
worksheet.autoFilters.drawAutoF(worksheet); worksheet.autoFilters.drawAutoF(worksheet);
} }
_this.raiseLayerDrawingObjects = function(bSelect) { _this.raiseLayerDrawingObjects = function() {
// слой c объектами должен быть выше селекта // слой c объектами должен быть выше селекта
var range = worksheet.getSelectedRange().bbox; var bbox = worksheet.getSelectedRange().bbox;
/*for (var i = 0; i < _this.countDrawingObjects(); i++) { for (var i = 0; i < _this.countDrawingObjects(); i++) {
var obj = aObjects[i]; var obj = aObjects[i];
if ( (range.c1 >= obj.from.col) && (range.c1 <= obj.to.col) && (range.r1 >= obj.from.row) && (range.r1 <= obj.to.row) ) { // Объекты не пересекаются
obj.graphicObject.draw(shapeCtx); if ( (bbox.c2 < obj.from.col) || (bbox.r2 < obj.from.row ) || (bbox.c1 > obj.to.col) || (bbox.r1 > obj.to.row) )
continue;
else
obj.graphicObject.draw(shapeOverlayCtx);
} }
}*/
} }
_this.countDrawingObjects = function() { _this.countDrawingObjects = function() {
...@@ -3177,7 +3179,7 @@ function DrawingObjects() { ...@@ -3177,7 +3179,7 @@ function DrawingObjects() {
if ( _this.getSelectedDrawingObjectIndex() < 0 ) { if ( _this.getSelectedDrawingObjectIndex() < 0 ) {
worksheet.cleanSelection(); worksheet.cleanSelection();
worksheet._drawSelectionRange(); worksheet._drawSelectionRange();
_this.raiseLayerDrawingObjects(true); _this.raiseLayerDrawingObjects();
} }
} }
_this.selectGraphicObject(); _this.selectGraphicObject();
...@@ -4301,7 +4303,7 @@ function DrawingObjects() { ...@@ -4301,7 +4303,7 @@ function DrawingObjects() {
worksheet.overlayCtx.restore(); worksheet.overlayCtx.restore();
// слой c объектами должен быть выше селекта // слой c объектами должен быть выше селекта
_this.raiseLayerDrawingObjects(false); _this.raiseLayerDrawingObjects();
} }
} }
} }
...@@ -4422,15 +4424,6 @@ function DrawingObjects() { ...@@ -4422,15 +4424,6 @@ function DrawingObjects() {
} }
} }
_this.getSelectedDrawingObjectId = function() {
for (var i = 0; i < _this.countDrawingObjects(); i++) {
if ( aObjects[i].graphicObject && aObjects[i].graphicObject.selected )
return aObjects[i].graphicObject.Id;
}
return null;
}
_this.selectLockedDrawingObject = function(id, lockState) { _this.selectLockedDrawingObject = function(id, lockState) {
var result = false; var result = false;
......
...@@ -1251,7 +1251,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1251,7 +1251,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
worksheet.objectRender.showDrawingObjects(true); worksheet.objectRender.showDrawingObjects(true);
worksheet.cellCommentator.unlockComments(); worksheet.cellCommentator.unlockComments();
worksheet._drawSelection(); worksheet._drawSelection();
worksheet.objectRender.raiseLayerDrawingObjects(true); worksheet.objectRender.raiseLayerDrawingObjects();
worksheet.objectRender.selectDrawingObject(worksheet.objectRender.getSelectedDrawingObjectIndex()); worksheet.objectRender.selectDrawingObject(worksheet.objectRender.getSelectedDrawingObjectIndex());
} }
} }
......
...@@ -3021,7 +3021,7 @@ ...@@ -3021,7 +3021,7 @@
ctx.restore(); ctx.restore();
if(!this.isChartAreaEditMode){ if(!this.isChartAreaEditMode){
this.objectRender.showDrawingObjectsLocks(); this.objectRender.showDrawingObjectsLocks();
this.objectRender.raiseLayerDrawingObjects(true); this.objectRender.raiseLayerDrawingObjects();
} }
this.cellCommentator.drawCommentCells(false); this.cellCommentator.drawCommentCells(false);
this.objectRender.selectGraphicObject(); this.objectRender.selectGraphicObject();
...@@ -6745,7 +6745,7 @@ ...@@ -6745,7 +6745,7 @@
this._drawSelection(); this._drawSelection();
// слой c объектами должен быть выше селекта // слой c объектами должен быть выше селекта
this.objectRender.raiseLayerDrawingObjects(false); this.objectRender.raiseLayerDrawingObjects();
return { ar: ret, d:d }; return { ar: ret, d:d };
}, },
......
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