Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

hcvcastro
Copy link
Member

  • 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

@hcvcastro hcvcastro force-pushed the pr/master/7C branch 4 times, most recently from c675dc4 to 6761537 Compare September 25, 2024 14:44
this.addHooks();
}

addHooks() {
addHooks() {
this._map.on('presentationinfo', this.onSlideShowInfo, this);
this._map.on('newfullscreen', this._onStart, this);
Copy link
Contributor

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
)
Copy link
Contributor

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
);
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Review
Development

Successfully merging this pull request may close these issues.

2 participants