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

[mobile] убрал cell/native/ShapeDrawer.js

parent 6f99a48b
...@@ -2674,33 +2674,13 @@ function CDrawingDocument(drawingObjects) ...@@ -2674,33 +2674,13 @@ function CDrawingDocument(drawingObjects)
this.UpdateTarget = function(x, y, pageIndex) this.UpdateTarget = function(x, y, pageIndex)
{ {
/*
if (this.UpdateTargetFromPaint === false)
{
this.UpdateTargetCheck = true;
if (this.NeedScrollToTargetFlag && this.m_dTargetX == x && this.m_dTargetY == y && this.m_lTargetPage == pageIndex)
this.NeedScrollToTarget = false;
else
this.NeedScrollToTarget = true;
return;
}
*/
if (-1 != this.m_lTimerUpdateTargetID)
{
clearTimeout(this.m_lTimerUpdateTargetID);
this.m_lTimerUpdateTargetID = -1;
}
this.m_dTargetX = x; this.m_dTargetX = x;
this.m_dTargetY = y; this.m_dTargetY = y;
this.m_lTargetPage = pageIndex; this.m_lTargetPage = pageIndex;
this.Native["DD_UpdateTarget"](x, y, pageIndex); this.Native["DD_UpdateTarget"](x, y, pageIndex);
// this.CheckTargetDraw(x, y); this.CheckTargetDraw(x, y);
} }
this.UpdateTarget2 = function(x, y, pageIndex) this.UpdateTarget2 = function(x, y, pageIndex)
{ {
...@@ -2796,155 +2776,21 @@ function CDrawingDocument(drawingObjects) ...@@ -2796,155 +2776,21 @@ function CDrawingDocument(drawingObjects)
// } // }
} }
this.UpdateTargetTimer = function() this.UpdateTargetTimer = function() {}
{
//TODO:
// var x = oThis.m_tempX;
// var y = oThis.m_tempY;
// var pageIndex = oThis.m_tempPageIndex;
//
// oThis.m_lTimerUpdateTargetID = -1;
// if (pageIndex >= oThis.m_arrPages.length)
// return;
//
// var oWordControl = oThis.m_oWordControl;
//
// var bIsPageChanged = false;
// if (oThis.m_lCurrentPage != pageIndex)
// {
// oThis.m_lCurrentPage = pageIndex;
// oWordControl.SetCurrentPage2();
// oWordControl.OnScroll();
// bIsPageChanged = true;
// }
//
// oThis.m_dTargetX = x;
// oThis.m_dTargetY = y;
// oThis.m_lTargetPage = pageIndex;
//
// var targetSize = Number(oThis.m_dTargetSize * oWordControl.m_nZoomValue * g_dKoef_mm_to_pix / 100);
// var pos = oThis.ConvertCoordsToCursor2(x, y, oThis.m_lCurrentPage);
// //pos.Y -= targetSize;
//
// if (true === pos.Error && (false === bIsPageChanged))
// return;
//
// // �������, ����� �� ������ �� ������
// var boxX = 0;
// var boxY = 0;
// var boxR = oWordControl.m_oEditor.HtmlElement.width - 2;
// var boxB = oWordControl.m_oEditor.HtmlElement.height - targetSize;
//
// /*
// if (true === oWordControl.m_bIsRuler)
// {
// boxX += Number(5 * g_dKoef_mm_to_pix);
// boxY += Number(7 * g_dKoef_mm_to_pix);
// boxR += Number(5 * g_dKoef_mm_to_pix);
// boxB += Number(7 * g_dKoef_mm_to_pix);
// }
// */
//
// var nValueScrollHor = 0;
// if (pos.X < boxX)
// {
// nValueScrollHor = boxX - pos.X;
// }
// if (pos.X > boxR)
// {
// nValueScrollHor = boxR - pos.X;
// }
//
// var nValueScrollVer = 0;
// if (pos.Y < boxY)
// {
// nValueScrollVer = boxY - pos.Y;
// }
// if (pos.Y > boxB)
// {
// nValueScrollVer = boxB - pos.Y;
// }
//
// var isNeedScroll = false;
// if (0 != nValueScrollHor)
// {
// isNeedScroll = true;
// oWordControl.m_bIsUpdateTargetNoAttack = true;
// oWordControl.m_oScrollHorApi.scrollByX(-nValueScrollHor, false);
// }
// if (0 != nValueScrollVer)
// {
// isNeedScroll = true;
// oWordControl.m_bIsUpdateTargetNoAttack = true;
// oWordControl.m_oScrollVerApi.scrollByY(-nValueScrollVer, false);
// }
//
// if (true === isNeedScroll)
// {
// oWordControl.m_bIsUpdateTargetNoAttack = true;
// oWordControl.OnScroll();
// return;
// }
//
// oThis.TargetHtmlElement.style.left = pos.X + "px";
// oThis.TargetHtmlElement.style.top = pos.Y + "px";
//
// this.m_oWordControl.CheckTextBoxInputPos();
//
// if (this.m_bIsSearching && null != this.CurrentSearchNavi)
// {
// this.CurrentSearchNavi = null;
// this.drawingObjects.OnUpdateOverlay();
// }
}
this.SetTargetSize = function(size) this.SetTargetSize = function(size)
{ {
this.m_dTargetSize = size; this.m_dTargetSize = size;
this.Native["DD_SetTargetSize"](size); this.Native["DD_SetTargetSize"](size);
//this.TargetHtmlElement.style.height = Number(this.m_dTargetSize * this.m_oWordControl.m_nZoomValue * g_dKoef_mm_to_pix / 100) + "px";
//this.TargetHtmlElement.style.width = "2px";
}
this.DrawTarget = function()
{
//TODO:
// if ( "block" != oThis.TargetHtmlElement.style.display && oThis.NeedTarget )
// oThis.TargetHtmlElement.style.display = "block";
// else
// oThis.TargetHtmlElement.style.display = "none";
} }
this.DrawTarget = function() {}
this.TargetShow = function() this.TargetShow = function()
{ {
this.TargetShowNeedFlag = true; this.TargetShowNeedFlag = true;
this.Native["DD_TargetShow"](); this.Native["DD_TargetShow"]();
} }
this.CheckTargetShow = function() this.CheckTargetShow = function() {}
{
//TODO:
// if (this.TargetShowFlag && this.TargetShowNeedFlag)
// {
// this.TargetHtmlElement.style.display = "block";
// this.TargetShowNeedFlag = false;
// return;
// }
//
// if (!this.TargetShowNeedFlag)
// return;
//
// this.TargetShowNeedFlag = false;
//
// if ( -1 == this.m_lTimerTargetId )
// this.TargetStart();
//
// if (oThis.NeedTarget)
// this.TargetHtmlElement.style.display = "block";
//
// this.TargetShowFlag = true;
}
this.StartTrackImage = function(obj, x, y, w, h, type, pagenum) this.StartTrackImage = function(obj, x, y, w, h, type, pagenum)
{ {
} }
...@@ -3383,9 +3229,9 @@ function CDrawingDocument(drawingObjects) ...@@ -3383,9 +3229,9 @@ function CDrawingDocument(drawingObjects)
this.private_StartDrawSelection = function(overlay) this.private_StartDrawSelection = function(overlay)
{ {
//TODO: this.Native["DD_StartDrawSelection"]();
// this.Overlay = overlay; // this.Overlay = overlay;
// this.IsTextMatrixUse = ((null != this.TextMatrix) && !global_MatrixTransformer.IsIdentity(this.TextMatrix)); // this.IsTextMatrixUse = ((null != this.TextMatrix) && !global_MatrixTransformer.IsIdentity(this.TextMatrix));
// //
// this.Overlay.m_oContext.fillStyle = "rgba(51,102,204,255)"; // this.Overlay.m_oContext.fillStyle = "rgba(51,102,204,255)";
...@@ -3396,6 +3242,8 @@ function CDrawingDocument(drawingObjects) ...@@ -3396,6 +3242,8 @@ function CDrawingDocument(drawingObjects)
} }
this.private_EndDrawSelection = function() this.private_EndDrawSelection = function()
{ {
this.Native["DD_EndDrawSelection"]();
//TODO: //TODO:
// var ctx = this.Overlay.m_oContext; // var ctx = this.Overlay.m_oContext;
// //
...@@ -3900,14 +3748,11 @@ function CDrawingDocument(drawingObjects) ...@@ -3900,14 +3748,11 @@ function CDrawingDocument(drawingObjects)
} }
this.DrawImageTextureFillTextArt = function(url) this.DrawImageTextureFillTextArt = function(url)
{ {
} }
this.InitGuiCanvasShape = function(div_id) this.InitGuiCanvasShape = function(div_id)
{ {
...@@ -4060,6 +3905,6 @@ function CDrawingDocument(drawingObjects) ...@@ -4060,6 +3905,6 @@ function CDrawingDocument(drawingObjects)
this.OnSelectEnd = function() this.OnSelectEnd = function()
{ {
} }
} }
\ No newline at end of file
This diff is collapsed.
...@@ -2906,13 +2906,6 @@ function OfflineEditor () { ...@@ -2906,13 +2906,6 @@ function OfflineEditor () {
if (null == drawingDocument.m_oDocumentRenderer) { if (null == drawingDocument.m_oDocumentRenderer) {
if (drawingDocument.m_bIsSelection) { if (drawingDocument.m_bIsSelection) {
// if (drawingDocument.m_bIsSelection) {
// trackOverlay.m_oControl.HtmlElement.style.display = "block";
//if (null == trackOverlay.m_oContext)
// trackOverlay.m_oContext = trackOverlay.m_oControl.HtmlElement.getContext('2d');
//}
drawingDocument.private_StartDrawSelection(trackOverlay); drawingDocument.private_StartDrawSelection(trackOverlay);
this.worksheet.objectRender.controller.drawTextSelection(); this.worksheet.objectRender.controller.drawTextSelection();
drawingDocument.private_EndDrawSelection(); drawingDocument.private_EndDrawSelection();
...@@ -2928,8 +2921,7 @@ function OfflineEditor () { ...@@ -2928,8 +2921,7 @@ function OfflineEditor () {
this.worksheet.objectRender.controller.drawTracks(shapeOverlayCtx); this.worksheet.objectRender.controller.drawTracks(shapeOverlayCtx);
shapeOverlayCtx.put_GlobalAlpha(true, 1); shapeOverlayCtx.put_GlobalAlpha(true, 1);
} }
} } else {
else {
ctx.fillStyle = "rgba(51,102,204,255)"; ctx.fillStyle = "rgba(51,102,204,255)";
ctx.beginPath(); ctx.beginPath();
...@@ -5415,7 +5407,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR ...@@ -5415,7 +5407,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
} }
} }
return {id:graphicsInfo.id, ischart: ischart}; return {id:graphicsInfo.id, ischart: ischart, 'textselect': (null !== ws.objectRender.controller.selection.textSelection)};
} }
_s.cellPin = pin; _s.cellPin = pin;
...@@ -5592,6 +5584,9 @@ function offline_mouse_up(x, y, isViewerMode, isRangeResize, isChartRange, index ...@@ -5592,6 +5584,9 @@ function offline_mouse_up(x, y, isViewerMode, isRangeResize, isChartRange, index
return ret; return ret;
} }
function offline_process_input_commands(comands) {
}
function offline_get_selection(x, y, width, height, autocorrection) {return _s.getSelection(x, y, width, height, autocorrection);} function offline_get_selection(x, y, width, height, autocorrection) {return _s.getSelection(x, y, width, height, autocorrection);}
function offline_get_charts_ranges() { function offline_get_charts_ranges() {
......
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