-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presenter Console #10107
base: master
Are you sure you want to change the base?
Presenter Console #10107
Conversation
hcvcastro
commented
Sep 24, 2024
- browser: slideshow: simplify notify blocked popup
- browser: slideshow: simplify 'onSlideShowInfo'
- browser: slideshow: add options parameter to SlideShowPresenter
- browser: slideshow: add options parameters to not start presentation
- browser: slideshow: change to public '_startSlide' access
- browser: slideshow: add 'PresenterConsole' class
- browser: slideshow: avoid unhandled excpetions requestedSlideHash
c675dc4
to
6761537
Compare
this.addHooks(); | ||
} | ||
|
||
addHooks() { | ||
addHooks() { | ||
this._map.on('presentationinfo', this.onSlideShowInfo, this); | ||
this._map.on('newfullscreen', this._onStart, this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, add this._map.off('presentationinfo', this.onSlideShowInfo, this)
in removeHooks
.
@@ -81,12 +81,14 @@ abstract class AnimationBaseNode extends BaseNode { | |||
slideHash, | |||
slideWidth, | |||
slideHeight, | |||
this.aNodeContext.metaSlide._slideShowHandler.getPresenter()._slideRenderer | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can access _SlideShowHandler
through this.aNodeContext.aContext.aSlideShowHandler
) | ||
: new AnimatedElement( | ||
this.aTargetHash, | ||
slideHash, | ||
slideWidth, | ||
slideHeight, | ||
this.aNodeContext.metaSlide._slideShowHandler.getPresenter()._slideRenderer | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment above
@@ -15,7 +15,7 @@ declare var app: any; | |||
class MetaSlide { | |||
private _info: SlideInfo; | |||
private readonly _metaPres: MetaPresentation; | |||
private readonly _slideShowHandler: SlideShowHandler; | |||
public readonly _slideShowHandler: SlideShowHandler; | |||
private _transitionHandler: SlideTransition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need, see comment in AnimationBaseNode
@@ -110,7 +110,8 @@ class SlideShowPresenter { | |||
_slideShowCanvas: HTMLCanvasElement = null; | |||
_slideShowWindowProxy: ReturnType<typeof window.open> = null; | |||
_windowCloseInterval: ReturnType<typeof setInterval> = null; | |||
_currentSlide: number = 0; | |||
_currentSlide: number = 0; | |||
_startSlide: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: _currentSlide
will probably be removed; for known the current slide index ask SlideShowNavigator
@@ -621,6 +621,10 @@ class LayerDrawing { | |||
this.prefetchedSlideHash = null; | |||
return; | |||
} | |||
|
|||
if (!this.requestedSlideHash) | |||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case better to log a warning on the console
6761537
to
84594e7
Compare
Useful with 2 instances of SlideShowPresenter class. Change-Id: I5b02830286f4c2dedae8daf90a8758e70c836e50 Signed-off-by: Henry Castro <[email protected]>
Useful with 2 instances of SlideShowPresenter class. Change-Id: I5e11bd26c2155e5ab40715a9697e22ea32b5ab1d Signed-off-by: Henry Castro <[email protected]>
Useful with 2 instances of SlideShowPresenter class. Change-Id: Ie3329746cd6f2b7a83c1ee9054db226f8d1b8b15 Signed-off-by: Henry Castro <[email protected]>
Useful with 2 instances of SlideShowPresenter class. Change-Id: Ibe39c8f907544eca134348d0ac77095cfffb964e Signed-off-by: Henry Castro <[email protected]>
Change-Id: Ibd4017174bd9eff5ffe456847cb3e4287ccaeba2 Signed-off-by: Henry Castro <[email protected]>
Change-Id: Ibb07c214afe2741942e2f81281395077328eab63 Signed-off-by: Henry Castro <[email protected]>
Useful with 2 instances of SlideShowPresenter class Change-Id: I1e0528d05ddfc157350e7aa549223638c2aa24b9 Signed-off-by: Henry Castro <[email protected]>
Useful with 2 instances of SlideShowPresenter class. Change-Id: Ic162190f881e3a32395afd45fa84e8e81fecf084 Signed-off-by: Henry Castro <[email protected]>
Useful with 2 instances of SlideShowPresenter class. Change-Id: I27c301cb7dfdae9034df97eed107a2066cadc84a Signed-off-by: Henry Castro <[email protected]>
Change-Id: I9e07681b3834e35b673e65e126fe751f3060403b Signed-off-by: Henry Castro <[email protected]>
It removes all cached master page layers so the background layer is lost when the start slide is greater than 0. Change-Id: I4ce3b40f80fc6e8f268b6528db501e209ea8dcb3 Signed-off-by: Henry Castro <[email protected]>
84594e7
to
04b037e
Compare