How to use the @deckdeckgo/utils.isIPad 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 / popovers / editor / app-deck-style / app-deck-style.tsx View on Github external
async componentWillLoad() {
        this.moreColors = !isIPad();

        this.deckElement = document ? document.querySelector('deckgo-deck') : undefined;

        this.imageHelper = new ImageHelper(this.deckDidChange, this.blockSlide, this.signIn);
    }
github deckgo / deckdeckgo / studio / src / app / popovers / editor / app-color / app-color.tsx View on Github external
async componentWillLoad() {
        if (this.deckOrSlide) {
            this.qrCode = this.selectedElement && this.selectedElement.tagName && this.selectedElement.tagName.toUpperCase() === 'deckgo-slide-qrcode'.toUpperCase();
            this.chart = this.selectedElement && this.selectedElement.tagName && this.selectedElement.tagName.toUpperCase() === 'deckgo-slide-chart'.toUpperCase();
            this.poll = this.selectedElement && this.selectedElement.tagName && this.selectedElement.tagName.toUpperCase() === 'deckgo-slide-poll'.toUpperCase();
        }

        this.code = this.selectedElement && this.selectedElement.nodeName && this.selectedElement.nodeName.toLocaleLowerCase() === SlotType.CODE;

        this.applyToTargetElement = this.code ? TargetElement.CODE : (this.qrCode || this.poll ? TargetElement.QR_CODE : (this.chart ? TargetElement.CHART : TargetElement.SLIDE));

        this.moreColors = !isIPad();
    }