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

Method renderList

apps/sim/lib/pptx-renderer/core/viewer.ts:182–192  ·  view source on GitHub ↗

* Render all slides in a scrollable list.

(options?: ListRenderOptions)

Source from the content-addressed store, hash-verified

180 * Render all slides in a scrollable list.
181 */
182 async renderList(options?: ListRenderOptions): Promise<void> {
183 this.activeRenderMode = 'list'
184 this.listOptions = {
185 windowed: options?.windowed ?? false,
186 batchSize: this.normalizeBatchSize(options?.batchSize ?? 12),
187 initialSlides: this.normalizePositiveInt(options?.initialSlides ?? 4, 4),
188 overscanViewport: this.normalizePositiveFloat(options?.overscanViewport ?? 1.5, 1.5),
189 showSlideLabels: options?.showSlideLabels ?? false,
190 }
191 await this.queueRender()
192 }
193
194 /**
195 * Render a single slide (no built-in nav UI).

Callers 1

openMethod · 0.95

Calls 4

normalizeBatchSizeMethod · 0.95
normalizePositiveIntMethod · 0.95
queueRenderMethod · 0.95

Tested by

no test coverage detected