How to use the @deckdeckgo/utils.isFullscreen function in @deckdeckgo/utils

To help you get started, we’ve selected a few @deckdeckgo/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deckgo / deckdeckgo / studio / src / app / pages / editor / app-editor / app-editor.tsx View on Github external
private onWindowResize = async () => {
        this.fullscreen = isFullscreen();

        // Per default, when we switch to the fullscreen mode, we want to present the presentation not edit it
        await this.updatePresenting(this.fullscreen);
    };
github deckgo / deckdeckgo / studio / src / app / pages / editor / app-editor / app-editor.tsx View on Github external
await this.fetchSlides();
            }

            this.slidesFetched = true;
        });

        this.busySubscription = this.busyService.watchSlideEditable().subscribe(async (slide: HTMLElement) => {
            // Hide actions footer till deck is editable
            this.hideFooterActions = false;

            this.slidesEditable = true;

            await this.contentEditable(slide);
        });

        this.fullscreen = isFullscreen();
    }
github deckgo / deckdeckgo / studio / src / app / components / editor / app-editor-toolbar / app-editor-toolbar.tsx View on Github external
async inactivity($event: CustomEvent) {
        if (!isFullscreen()) {
            return;
        }

        this.displayed = $event.detail;

        await this.blurSelectedElement();
    }
github deckgo / deckdeckgo / webcomponents / core / src / components / deck / deckdeckgo-deck / deckdeckgo-deck.tsx View on Github external
window.addEventListener('resize', debounce(async () => {
        await this.initSlideSize();
        await this.slideTo(this.activeIndex);

        const toggleFullscreen: boolean = isFullscreen();
        await this.hideOrClearMouseCursorTimer(toggleFullscreen);
        await this.showHideActionsSlot(toggleFullscreen);
      }, 100));
    }