* 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>)
| 270 | * The relationship type URI for slide layouts ends with "slideLayout". |
| 271 | */ |
| 272 | function 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. |