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
8df37c07
Commit
8df37c07
authored
Oct 10, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile-coautoring
parent
98c98d5b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
195 additions
and
60 deletions
+195
-60
cell/native/Graphics.js
cell/native/Graphics.js
+1
-1
cell/native/Overlay.js
cell/native/Overlay.js
+3
-3
cell/native/native.js
cell/native/native.js
+169
-36
common/editorscommon.js
common/editorscommon.js
+22
-20
No files found.
cell/native/Graphics.js
View file @
8df37c07
...
...
@@ -1218,4 +1218,4 @@ CGraphics.prototype =
};
//------------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
window
[
'
AscCommon
'
].
CGraphics
=
CGraphics
;
\ No newline at end of file
window
[
'
AscCommon
'
].
CGraphics
=
CGraphics
;
cell/native/Overlay.js
View file @
8df37c07
...
...
@@ -677,10 +677,10 @@ CAutoshapeTrack.prototype =
{
this
.
Native
[
"
PD_reset
"
]();
},
transform3
:
function
(
m
)
transform3
:
function
(
m
,
isNeedInvert
,
funcName
)
{
var
isNeedInvert
=
false
;
this
.
Native
[
"
PD_transform3
"
](
m
.
sx
,
m
.
shy
,
m
.
shx
,
m
.
sy
,
m
.
tx
,
m
.
ty
,
isNeedInvert
);
this
.
Native
[
funcName
?
funcName
:
"
PD_transform3
"
](
m
.
sx
,
m
.
shy
,
m
.
shx
,
m
.
sy
,
m
.
tx
,
m
.
ty
,
isNeedInvert
);
},
transform
:
function
(
sx
,
shy
,
shx
,
sy
,
tx
,
ty
)
{
...
...
@@ -3067,4 +3067,4 @@ window['AscCommon'] = window['AscCommon'] || {};
window
[
'
AscCommon
'
].
COverlay
=
COverlay
;
window
[
'
AscCommon
'
].
TRACK_CIRCLE_RADIUS
=
TRACK_CIRCLE_RADIUS
;
window
[
'
AscCommon
'
].
TRACK_DISTANCE_ROTATE
=
TRACK_DISTANCE_ROTATE
;
window
[
'
AscCommon
'
].
CAutoshapeTrack
=
CAutoshapeTrack
;
\ No newline at end of file
window
[
'
AscCommon
'
].
CAutoshapeTrack
=
CAutoshapeTrack
;
cell/native/native.js
View file @
8df37c07
This diff is collapsed.
Click to expand it.
common/editorscommon.js
View file @
8df37c07
...
...
@@ -269,24 +269,7 @@ function openFileCommand(binUrl, changesUrl, Signature, callback) {
var
sFileUrl
=
binUrl
;
sFileUrl
=
sFileUrl
.
replace
(
/
\\
/g
,
"
/
"
);
if
(
window
[
'
IS_NATIVE_EDITOR
'
])
{
result
=
window
[
"
native
"
][
"
openFileCommand
"
](
sFileUrl
,
changesUrl
,
Signature
);
var
url
;
var
nIndex
=
sFileUrl
.
lastIndexOf
(
"
/
"
);
url
=
(
-
1
!==
nIndex
)
?
sFileUrl
.
substring
(
0
,
nIndex
+
1
)
:
sFileUrl
;
if
(
0
<
result
.
length
)
{
oResult
.
bSerFormat
=
Signature
===
result
.
substring
(
0
,
Signature
.
length
);
oResult
.
data
=
result
;
oResult
.
url
=
url
;
}
else
{
bError
=
true
;
}
bEndLoadFile
=
true
;
onEndOpen
();
}
else
{
if
(
!
window
[
'
IS_NATIVE_EDITOR
'
])
{
asc_ajax
({
url
:
sFileUrl
,
dataType
:
"
text
"
,
...
...
@@ -335,8 +318,27 @@ function openFileCommand(binUrl, changesUrl, Signature, callback) {
}
else
{
bEndLoadChanges
=
true
;
}
}
function
sendCommand
(
editor
,
fCallback
,
rdata
,
dataContainer
)
{
if
(
window
[
'
IS_NATIVE_EDITOR
'
])
{
result
=
window
[
"
native
"
][
"
openFileCommand
"
](
sFileUrl
,
changesUrl
,
Signature
);
var
url
;
var
nIndex
=
sFileUrl
.
lastIndexOf
(
"
/
"
);
url
=
(
-
1
!==
nIndex
)
?
sFileUrl
.
substring
(
0
,
nIndex
+
1
)
:
sFileUrl
;
if
(
0
<
result
.
length
)
{
oResult
.
bSerFormat
=
Signature
===
result
.
substring
(
0
,
Signature
.
length
);
oResult
.
data
=
result
;
oResult
.
url
=
url
;
}
else
{
bError
=
true
;
}
bEndLoadFile
=
true
;
onEndOpen
();
}
}
function
sendCommand
(
editor
,
fCallback
,
rdata
,
dataContainer
)
{
//json не должен превышать размера 2097152, иначе при его чтении будет exception
var
docConnectionId
=
editor
.
CoAuthoringApi
.
getDocId
();
if
(
docConnectionId
&&
docConnectionId
!==
rdata
[
"
id
"
])
{
...
...
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