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
c326fe33
Commit
c326fe33
authored
Nov 01, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build presentation sdk for mobile version
parent
09edaef6
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
787 additions
and
778 deletions
+787
-778
build/build-mobile.bat
build/build-mobile.bat
+2
-2
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+2
-6
slide/Native/Wrappers/DrawingDocument.js
slide/Native/Wrappers/DrawingDocument.js
+346
-337
slide/Native/Wrappers/HtmlPage.js
slide/Native/Wrappers/HtmlPage.js
+417
-398
slide/Native/Wrappers/api.js
slide/Native/Wrappers/api.js
+20
-0
slide/Native/native.js
slide/Native/native.js
+0
-35
No files found.
build/build-mobile.bat
View file @
c326fe33
...
...
@@ -2,10 +2,10 @@ CD /D %~dp0
call
npm
install
-g
grunt
-cli
call
npm
install
rem call grunt --level=WHITESPACE_ONLY --mobile=true --formatting=PRETTY_PRINT
call
grunt
-
-level
=
ADVANCED
-
-mobile
=
true
call
grunt
-
-level
=
WHITESPACE_ONLY
-
-mobile
=
true
-
-noclosure
=
true
-
-formatting
=
PRETTY_PRINT
echo
.>
tmp_newline
.txt
copy
/b/y
..\..\web
-apps
\vendor\xregexp\xregexp
-all-min
.js
+
tmp_newline
.txt
+
..\..\web
-apps
\vendor\underscore\underscore
-min
.js
+
tmp_newline
.txt
+
..\common\Native\
native
.js
+
tmp_newline
.txt
+
..\common\Native\jquery_native.js
+
tmp_newline
.txt ..\mobile_banners.js
copy
/b/y
..\..\web
-apps
\vendor\xregexp\xregexp
-all-min
.js
+
tmp_newline
.txt
+
..\..\web
-apps
\vendor\underscore\underscore
-min
.js
+
tmp_newline
.txt
+
..\common\Native\
Wrappers\common
.js
+
tmp_newline
.txt
+
..\common\Native\jquery_native.js
+
tmp_newline
.txt ..\mobile_banners.js
copy
/b/y
..\mobile_banners.js
+
..\word\sdk
-all-min
.js
+
..\word\sdk
-all
.js ..\..\core\build\jsnative\word\script.bin
copy
/b/y
..\mobile_banners.js
+
..\cell\sdk
-all-min
.js
+
..\cell\sdk
-all
.js ..\..\core\build\jsnative\cell\script.bin
...
...
build/configs/webpowerpoint.json
View file @
c326fe33
...
...
@@ -224,20 +224,16 @@
]
},
"mobile_banners"
:
{
"min"
:
[
"../common/Native/native.js"
,
"../common/Native/jquery_native.js"
,
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
"min"
:
[
"../common/Native/Wrappers/memory.js"
],
"common"
:
[]
},
"mobile"
:
[
"../common/Native/Wrappers/memory.js"
,
"../common/Native/Wrappers/TextMeasurerWrapper.js"
,
"../common/Native/Wrappers/DrawingStream.js"
,
"../common/Native/Wrappers/ShapeDrawer.js"
,
"../common/Native/Wrappers/Overlay.js"
,
"../slide/Native/native.js"
,
"../slide/Native/Wrappers/api.js"
,
"../slide/Native/Wrappers/HtmlPage.js"
,
"../slide/Native/Wrappers/DrawingDocument.js"
,
...
...
slide/Native/Wrappers/DrawingDocument.js
View file @
c326fe33
This diff is collapsed.
Click to expand it.
slide/Native/Wrappers/HtmlPage.js
View file @
c326fe33
This diff is collapsed.
Click to expand it.
slide/Native/Wrappers/api.js
View file @
c326fe33
...
...
@@ -33,6 +33,7 @@
var
global_memory_stream_menu
=
CreateNativeMemoryStream
();
// endsectionPr -----------------------------------------------------------------------------------------
// font engine -------------------------------------
var
FontStyle
=
{
...
...
@@ -51,6 +52,25 @@ window["use_native_fonts_only"] = true;
window
[
"
ftm
"
]
=
FT_Memory
;
function
NativeOpenFileP
(
_params
){
console
.
log
(
"
NativeOpenFileP
"
);
window
[
"
CreateMainTextMeasurerWrapper
"
]();
window
.
g_file_path
=
"
native_open_file
"
;
window
.
NATIVE_DOCUMENT_TYPE
=
window
.
native
.
GetEditorType
();
var
doc_bin
=
window
.
native
.
GetFileString
(
window
.
g_file_path
);
if
(
"
presentation
"
!==
window
.
NATIVE_DOCUMENT_TYPE
){
return
;
}
_api
=
new
window
[
"
Asc
"
][
"
asc_docs_api
"
](
""
);
_api
.
Native_Editor_Initialize_Settings
(
_params
);
_api
.
asc_nativeOpenFile
(
doc_bin
);
_api
.
WordControl
.
m_oDrawingDocument
.
AfterLoad
();
Api
=
_api
;
}
Asc
[
'
asc_docs_api
'
].
prototype
[
"
Native_Editor_Initialize_Settings
"
]
=
function
(
_params
)
{
window
[
"
NativeSupportTimeouts
"
]
=
true
;
...
...
slide/Native/native.js
deleted
100644 → 0
View file @
09edaef6
/*
* (c) Copyright Ascensio System SIA 2010-2017
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
function
Call_CheckSlideBounds
(
nSlideIndex
){
return
_api
.
CheckSlideBounds
(
nSlideIndex
);
};
\ No newline at end of file
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