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

Function renderPlaceholder

apps/sim/lib/pptx-renderer/renderer/image-renderer.ts:331–344  ·  view source on GitHub ↗

* Render a placeholder div for missing or error content.

(wrapper: HTMLElement, message: string)

Source from the content-addressed store, hash-verified

329 * Render a placeholder div for missing or error content.
330 */
331function renderPlaceholder(wrapper: HTMLElement, message: string): void {
332 const placeholder = document.createElement('div')
333 placeholder.style.width = '100%'
334 placeholder.style.height = '100%'
335 placeholder.style.display = 'flex'
336 placeholder.style.alignItems = 'center'
337 placeholder.style.justifyContent = 'center'
338 placeholder.style.backgroundColor = '#f0f0f0'
339 placeholder.style.color = '#888'
340 placeholder.style.fontSize = '12px'
341 placeholder.style.border = '1px dashed #ccc'
342 placeholder.textContent = message
343 wrapper.appendChild(placeholder)
344}
345
346/**
347 * Render a placeholder for unsupported image formats (WMF).

Callers 3

renderImageFunction · 0.85
renderVideoFunction · 0.85
renderAudioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected