MCPcopy Index your code
hub / github.com/simstudioai/sim / renderAllSlidesFull

Method renderAllSlidesFull

apps/sim/lib/pptx-renderer/core/viewer.ts:715–741  ·  view source on GitHub ↗
(
    scale: number,
    displayWidth: number,
    displayHeight: number
  )

Source from the content-addressed store, hash-verified

713 }
714
715 private async renderAllSlidesFull(
716 scale: number,
717 displayWidth: number,
718 displayHeight: number
719 ): Promise<void> {
720 if (!this.presentation) return
721 const batchSize = this.listOptions.batchSize
722 let batchFragment = document.createDocumentFragment()
723
724 for (let i = 0; i < this.presentation.slides.length; i++) {
725 const { item, wrapper } = this.createListSlideItem(i, displayWidth, displayHeight)
726 this.mountListSlide(i, wrapper, scale, displayWidth, displayHeight)
727 batchFragment.appendChild(item)
728
729 if ((i + 1) % batchSize === 0) {
730 this.container.appendChild(batchFragment)
731 batchFragment = document.createDocumentFragment()
732 await this.yieldToNextFrame()
733 }
734 }
735
736 if (batchFragment.childNodes.length > 0) {
737 this.container.appendChild(batchFragment)
738 }
739
740 this.setupScrollSlideTracking()
741 }
742
743 private async renderAllSlidesWindowed(
744 scale: number,

Callers 1

queueRenderMethod · 0.95

Calls 4

createListSlideItemMethod · 0.95
mountListSlideMethod · 0.95
yieldToNextFrameMethod · 0.95

Tested by

no test coverage detected