Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
3b6c9d9b
Commit
3b6c9d9b
authored
Mar 31, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] убрал cell/native/ShapeDrawer.js
parent
38791ab6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1775 deletions
+14
-1775
cell/native/DrawingDocument.js
cell/native/DrawingDocument.js
+9
-164
cell/native/ShapeDrawer.js
cell/native/ShapeDrawer.js
+0
-1601
cell/native/native.js
cell/native/native.js
+5
-10
No files found.
cell/native/DrawingDocument.js
View file @
3b6c9d9b
...
...
@@ -2698,33 +2698,13 @@ function CDrawingDocument(drawingObjects)
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_dTargetY
=
y
;
this
.
m_lTargetPage
=
pageIndex
;
this
.
Native
[
"
DD_UpdateTarget
"
](
x
,
y
,
pageIndex
);
//
this.CheckTargetDraw(x, y);
this
.
CheckTargetDraw
(
x
,
y
);
}
this
.
UpdateTarget2
=
function
(
x
,
y
,
pageIndex
)
{
...
...
@@ -2820,155 +2800,21 @@ function CDrawingDocument(drawingObjects)
// }
}
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
.
UpdateTargetTimer
=
function
()
{}
this
.
SetTargetSize
=
function
(
size
)
{
this
.
m_dTargetSize
=
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
.
TargetShowNeedFlag
=
true
;
this
.
Native
[
"
DD_TargetShow
"
]();
}
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
.
CheckTargetShow
=
function
()
{}
this
.
StartTrackImage
=
function
(
obj
,
x
,
y
,
w
,
h
,
type
,
pagenum
)
{
}
...
...
@@ -3407,9 +3253,9 @@ function CDrawingDocument(drawingObjects)
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.Overlay.m_oContext.fillStyle = "rgba(51,102,204,255)";
...
...
@@ -3420,6 +3266,8 @@ function CDrawingDocument(drawingObjects)
}
this
.
private_EndDrawSelection
=
function
()
{
this
.
Native
[
"
DD_EndDrawSelection
"
]();
//TODO:
// var ctx = this.Overlay.m_oContext;
//
...
...
@@ -3924,14 +3772,11 @@ function CDrawingDocument(drawingObjects)
}
this
.
DrawImageTextureFillTextArt
=
function
(
url
)
{
}
this
.
InitGuiCanvasShape
=
function
(
div_id
)
{
...
...
@@ -4084,6 +3929,6 @@ function CDrawingDocument(drawingObjects)
this
.
OnSelectEnd
=
function
()
{
}
}
\ No newline at end of file
cell/native/ShapeDrawer.js
deleted
100644 → 0
View file @
38791ab6
This diff is collapsed.
Click to expand it.
cell/native/native.js
View file @
3b6c9d9b
...
...
@@ -2930,13 +2930,6 @@ function OfflineEditor () {
if
(
null
==
drawingDocument
.
m_oDocumentRenderer
)
{
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
);
this
.
worksheet
.
objectRender
.
controller
.
drawTextSelection
();
drawingDocument
.
private_EndDrawSelection
();
...
...
@@ -2952,8 +2945,7 @@ function OfflineEditor () {
this
.
worksheet
.
objectRender
.
controller
.
drawTracks
(
shapeOverlayCtx
);
shapeOverlayCtx
.
put_GlobalAlpha
(
true
,
1
);
}
}
else
{
}
else
{
ctx
.
fillStyle
=
"
rgba(51,102,204,255)
"
;
ctx
.
beginPath
();
...
...
@@ -5439,7 +5431,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
;
...
...
@@ -5616,6 +5608,9 @@ function offline_mouse_up(x, y, isViewerMode, isRangeResize, isChartRange, index
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_charts_ranges
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment