Commit bd476879 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@47830 954022d7-b5bf-4e40-9824-e11837661b57
parent 4b9922d1
......@@ -2111,6 +2111,7 @@ function DrawingObjects() {
_this.drawingDocument = new CDrawingDocument();
_this.drawingDocument.AutoShapesTrack = autoShapeTrack;
_this.drawingDocument.TargetHtmlElement = document.getElementById('id_target_cursor');
isViewerMode = function() { return worksheet._trigger("getViewerMode"); };
......
......@@ -93,6 +93,7 @@
this.canvas = undefined;
this.canvasOverlay = undefined;
this.cursor = undefined;
this.graphicObjectCursor = undefined;
this.cursorTID = undefined;
this.cursorPos = 0;
this.topLineIndex = 0;
......@@ -182,6 +183,15 @@
.css("display", "none")
.css("z-index", z+3)
.appendTo(t.canvasOuter);
var _head = document.getElementsByTagName('head')[0];
var style0 = document.createElement('style');
style0.type = 'text/css';
style0.innerHTML = ".block_elem { position:absolute;padding:0;margin:0; }";
_head.appendChild(style0);
t.graphicObjectCursor = $('<canvas id=\"id_target_cursor\" class=\"block_elem\" width=\"1\" height=\"1\" style=\"width:2px;height:13px;display:none;z-index:3;\"></canvas>')
.appendTo(t.canvasOuter);
}
// create text render
......
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