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

Method createListSlideItem

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

Source from the content-addressed store, hash-verified

622 }
623
624 private createListSlideItem(
625 index: number,
626 displayWidth: number,
627 displayHeight: number
628 ): { item: HTMLDivElement; wrapper: HTMLDivElement } {
629 const item = document.createElement('div')
630 item.dataset.slideIndex = String(index)
631 item.style.cssText = 'width: fit-content; margin: 0 auto 20px;'
632
633 const wrapper = document.createElement('div')
634 wrapper.style.cssText = `
635 width: ${displayWidth}px;
636 height: ${displayHeight}px;
637 box-shadow: 0 2px 8px rgba(0,0,0,0.15);
638 overflow: hidden;
639 position: relative;
640 background: #fff;
641 `
642
643 item.appendChild(wrapper)
644
645 if (this.listOptions.showSlideLabels) {
646 const label = document.createElement('div')
647 label.style.cssText = 'text-align: center; padding: 4px; font-size: 12px; color: #666;'
648 label.textContent = `Slide ${index + 1}`
649 item.appendChild(label)
650 }
651 return { item, wrapper }
652 }
653
654 private mountListSlide(
655 index: number,

Callers 2

renderAllSlidesFullMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected