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
18eb621b
Commit
18eb621b
authored
Apr 14, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] селект текста
parent
eb312aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
cell/native/native.js
cell/native/native.js
+22
-6
No files found.
cell/native/native.js
View file @
18eb621b
...
...
@@ -512,7 +512,9 @@ window.clearInterval = clearInterval;
window
.
setInterval
=
setInterval
;
var
console
=
{
log
:
function
(
param
)
{
window
.
native
.
consoleLog
(
param
);
}
log
:
function
(
param
)
{
window
.
native
.
consoleLog
(
param
);
},
time
:
function
(
param
)
{},
timeEnd
:
function
(
param
)
{}
};
window
[
"
NativeCorrectImageUrlOnPaste
"
]
=
function
(
url
)
{
...
...
@@ -3268,6 +3270,17 @@ function OfflineEditor () {
}
DrawingArea
.
prototype
.
drawSelection
=
function
(
drawingDocument
)
{
g_oTextMeasurer
.
m_oFont
=
null
;
g_oTextMeasurer
.
m_oTextPr
=
null
;
g_oTextMeasurer
.
m_oGrFonts
=
new
CGrRFonts
();
g_oTextMeasurer
.
m_oLastFont
=
new
CFontSetup
();
g_oTextMeasurer
.
LastFontOriginInfo
=
{
Name
:
""
,
Replace
:
null
};
g_oTextMeasurer
.
Ascender
=
0
;
g_oTextMeasurer
.
Descender
=
0
;
g_oTextMeasurer
.
Height
=
0
;
g_oTextMeasurer
.
UnitsPerEm
=
0
;
var
canvas
=
this
.
worksheet
.
objectRender
.
getDrawingCanvas
();
var
shapeCtx
=
canvas
.
shapeCtx
;
var
shapeOverlayCtx
=
canvas
.
shapeOverlayCtx
;
...
...
@@ -5791,17 +5804,13 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
var
e
=
{
isLocked
:
true
,
Button
:
0
,
ClickCount
:
1
,
shiftKey
:
false
,
metaKey
:
false
,
ctrlKey
:
false
};
var
content
=
null
;
if
(
1
===
select
.
pin
)
{
content
=
ws
.
objectRender
.
controller
.
getTargetDocContent
();
wb
.
_onGraphicObjectMouseDown
(
e
,
select
.
beginX
,
select
.
beginY
);
wb
.
_onGraphicObjectMouseUp
(
e
,
select
.
endX
,
select
.
endY
);
e
.
shiftKey
=
true
;
}
if
(
-
1
===
select
.
pin
)
{
content
=
ws
.
objectRender
.
controller
.
getTargetDocContent
();
wb
.
_onGraphicObjectMouseDown
(
e
,
select
.
endX
,
select
.
endY
);
wb
.
_onGraphicObjectMouseUp
(
e
,
select
.
beginX
,
select
.
beginY
);
e
.
shiftKey
=
true
;
...
...
@@ -5930,8 +5939,15 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, isChartRange, ind
if
(
_s
.
isShapeAction
)
{
if
(
!
isViewerMode
)
{
var
e
=
{
isLocked
:
true
,
Button
:
0
,
ClickCount
:
1
,
shiftKey
:
false
,
metaKey
:
false
,
ctrlKey
:
false
};
ws
.
objectRender
.
graphicObjectMouseMove
(
e
,
x
,
y
);
if
(
textPin
&&
0
==
textPin
.
pin
)
{
wb
.
_onGraphicObjectMouseDown
(
e
,
x
,
y
);
wb
.
_onGraphicObjectMouseUp
(
e
,
x
,
y
);
}
else
{
ws
.
objectRender
.
graphicObjectMouseMove
(
e
,
x
,
y
);
}
}
}
else
{
if
(
_s
.
isFormulaEditMode
)
{
...
...
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