Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
const filteredSlides: HTMLElement[] = await this.getDefinedFilteredSlides();
const definedSlidesLength: number = filteredSlides ? filteredSlides.length : 0;
// Are all slides loaded?
if (loadedSlides.length !== definedSlidesLength) {
resolve(null);
return;
}
const orderedSlidesTagNames: DeckdeckgoSlideDefinition[] = [];
for (const slide of Array.from(loadedSlides)) {
const attributes: DeckdeckgoAttributeDefinition[] = await getAttributesDefinition(slide.attributes);
orderedSlidesTagNames.push({
template: slide.tagName ? slide.tagName.toLowerCase() : undefined,
content: slide.innerHTML,
attributes: attributes
});
}
const attributes: DeckdeckgoAttributeDefinition[] = await getAttributesDefinition(this.el.attributes);
const background: HTMLElement = this.el.querySelector(':scope > [slot=\'background\']');
const deck: DeckdeckgoDeckDefinition = {
slides: orderedSlidesTagNames,
attributes: attributes,
background: background ? background.innerHTML : null,
reveal: this.reveal,