Commit 5ba75494 authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

[ios] for mobile app

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65049 954022d7-b5bf-4e40-9824-e11837661b57
parent 9fd882b9
...@@ -1066,6 +1066,9 @@ function DrawingObjects() { ...@@ -1066,6 +1066,9 @@ function DrawingObjects() {
_this.getContextHeight = function () { _this.getContextHeight = function () {
return drawingCtx.getHeight(); return drawingCtx.getHeight();
}; };
_this.getContext = function () {
return drawingCtx;
};
_this.getWorksheetModel = function() { _this.getWorksheetModel = function() {
return worksheet.model; return worksheet.model;
...@@ -2950,10 +2953,11 @@ function DrawingObjects() { ...@@ -2950,10 +2953,11 @@ function DrawingObjects() {
_this.checkCursorDrawingObject = function(x, y) { _this.checkCursorDrawingObject = function(x, y) {
var offsets = _this.drawingArea.getOffsets(x, y); var offsets = _this.drawingArea.getOffsets(x, y);
// console.log('getOffsets: ' + x + ':' + y);
if ( offsets ) { if ( offsets ) {
var objectInfo = { cursor: null, id: null, object: null }; var objectInfo = { cursor: null, id: null, object: null };
var graphicObjectInfo = _this.controller.isPointInDrawingObjects( pxToMm(x - offsets.x), pxToMm(y - offsets.y) ); var graphicObjectInfo = _this.controller.isPointInDrawingObjects( pxToMm(x - offsets.x), pxToMm(y - offsets.y) );
// console.log('isPointInDrawingObjects: ' + pxToMm(x - offsets.x) + ':' + pxToMm(y - offsets.y));
if ( graphicObjectInfo && graphicObjectInfo.objectId ) { if ( graphicObjectInfo && graphicObjectInfo.objectId ) {
objectInfo.id = graphicObjectInfo.objectId; objectInfo.id = graphicObjectInfo.objectId;
objectInfo.object = _this.getDrawingBase(graphicObjectInfo.objectId); objectInfo.object = _this.getDrawingBase(graphicObjectInfo.objectId);
......
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