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

Function findLayoutRel

apps/sim/lib/pptx-renderer/model/slide.ts:272–279  ·  view source on GitHub ↗

* Find the layout relationship target from a slide's rels map. * The relationship type URI for slide layouts ends with "slideLayout".

(rels: Map<string, RelEntry>)

Source from the content-addressed store, hash-verified

270 * The relationship type URI for slide layouts ends with "slideLayout".
271 */
272function findLayoutRel(rels: Map<string, RelEntry>): string {
273 for (const [, entry] of rels) {
274 if (entry.type.includes('slideLayout')) {
275 return entry.target
276 }
277 }
278 return ''
279}
280
281/**
282 * Parse a slide XML root (`p:sld`) into SlideData.

Callers 1

parseSlideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected