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

Function createFillImage

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

* Create an element that fills its container.

(url: string)

Source from the content-addressed store, hash-verified

470 * Create an <img> element that fills its container.
471 */
472function createFillImage(url: string): HTMLImageElement {
473 const img = document.createElement('img')
474 img.src = url
475 img.style.width = '100%'
476 img.style.height = '100%'
477 img.style.objectFit = 'fill'
478 img.style.display = 'block'
479 img.draggable = false
480 return img
481}
482
483// ---------------------------------------------------------------------------
484// Duotone Effect

Callers 2

renderEmfPdfFunction · 0.85
renderEmfBitmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected