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
d28bc6bf
Commit
d28bc6bf
authored
Aug 18, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resize sync
parent
260331cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
slide/Drawing/Transitions.js
slide/Drawing/Transitions.js
+15
-3
slide/api.js
slide/api.js
+14
-2
No files found.
slide/Drawing/Transitions.js
View file @
d28bc6bf
...
...
@@ -3502,9 +3502,9 @@ function CDemonstrationManager(htmlpage)
return
false
;
}
this
.
Resize
=
function
()
this
.
Resize
=
function
(
isNoSend
)
{
if
(
oThis
.
HtmlPage
.
m_oApi
.
reporterWindow
)
if
(
isNoSend
!==
true
&&
oThis
.
HtmlPage
.
m_oApi
.
reporterWindow
)
{
var
_msg_
=
{
"
main_command
"
:
true
,
...
...
@@ -3513,6 +3513,14 @@ function CDemonstrationManager(htmlpage)
oThis
.
HtmlPage
.
m_oApi
.
sendToReporter
(
JSON
.
stringify
(
_msg_
));
}
else
if
(
isNoSend
!==
true
&&
oThis
.
HtmlPage
.
m_oApi
.
isReporterMode
)
{
var
_msg_
=
{
"
reporter_command
"
:
"
resize
"
};
oThis
.
HtmlPage
.
m_oApi
.
sendFromReporter
(
JSON
.
stringify
(
_msg_
));
}
if
(
!
this
.
Mode
)
return
;
...
...
@@ -3520,9 +3528,11 @@ function CDemonstrationManager(htmlpage)
var
_width
=
this
.
DemonstrationDiv
.
clientWidth
;
var
_height
=
this
.
DemonstrationDiv
.
clientHeight
;
if
(
_width
==
this
.
DivWidth
&&
_height
==
this
.
DivHeight
)
if
(
_width
==
this
.
DivWidth
&&
_height
==
this
.
DivHeight
&&
true
!==
isNoSend
)
return
;
oThis
.
HtmlPage
.
m_oApi
.
disableReporterEvents
=
true
;
this
.
DivWidth
=
_width
;
this
.
DivHeight
=
_height
;
...
...
@@ -3542,6 +3552,8 @@ function CDemonstrationManager(htmlpage)
if
(
this
.
SlideNum
<
this
.
SlidesCount
)
this
.
StartSlide
(
this
.
Transition
.
IsPlaying
(),
false
);
oThis
.
HtmlPage
.
m_oApi
.
disableReporterEvents
=
false
;
}
this
.
PointerMove
=
function
(
x
,
y
,
w
,
h
)
...
...
slide/api.js
View file @
d28bc6bf
...
...
@@ -651,6 +651,7 @@
this
.
reporterWindow
=
null
;
this
.
reporterStartObject
=
null
;
this
.
isReporterMode
=
(
"
reporter
"
==
config
[
'
using
'
])
?
true
:
false
;
this
.
disableReporterEvents
=
false
;
if
(
this
.
isReporterMode
)
{
...
...
@@ -6009,6 +6010,11 @@ background-repeat: no-repeat;\
_this
.
WordControl
.
DemonstrationManager
.
Play
();
break
;
}
case
"
resize
"
:
{
_this
.
WordControl
.
DemonstrationManager
.
Resize
(
true
);
break
;
}
default
:
break
;
}
...
...
@@ -6040,6 +6046,9 @@ background-repeat: no-repeat;\
asc_docs_api
.
prototype
.
sendToReporter
=
function
(
value
)
{
if
(
this
.
disableReporterEvents
)
return
;
if
(
window
[
"
AscDesktopEditor
"
])
{
window
[
"
AscDesktopEditor
"
][
"
sendToReporter
"
](
value
);
...
...
@@ -6052,6 +6061,9 @@ background-repeat: no-repeat;\
asc_docs_api
.
prototype
.
sendFromReporter
=
function
(
value
)
{
if
(
this
.
disableReporterEvents
)
return
;
if
(
window
[
"
AscDesktopEditor
"
])
{
window
[
"
AscDesktopEditor
"
][
"
sendFromReporter
"
](
value
);
...
...
@@ -6092,7 +6104,7 @@ background-repeat: no-repeat;\
}
else
if
(
undefined
!==
_obj
[
"
resize
"
])
{
_this
.
WordControl
.
DemonstrationManager
.
Resize
();
_this
.
WordControl
.
DemonstrationManager
.
Resize
(
true
);
}
else
if
(
true
===
_obj
[
"
next
"
])
{
...
...
@@ -6153,7 +6165,7 @@ background-repeat: no-repeat;\
this
.
WordControl
.
DemonstrationManager
.
EndShowMessage
=
this
.
EndShowMessage
;
this
.
EndShowMessage
=
undefined
;
}
this
.
WordControl
.
DemonstrationManager
.
Play
();
this
.
WordControl
.
DemonstrationManager
.
Play
(
true
);
if
(
this
.
reporterWindow
)
this
.
sendToReporter
(
"
{
\"
main_command
\"
: true,
\"
play
\"
: true }
"
);
...
...
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