(xml: string)
| 82 | } |
| 83 | |
| 84 | function parseFontScheme(xml: string): { major: string; minor: string } { |
| 85 | const major = between(xml, '<a:majorFont>', '</a:majorFont>') |
| 86 | const minor = between(xml, '<a:minorFont>', '</a:minorFont>') |
| 87 | return { major: attr(major, 'typeface') || '', minor: attr(minor, 'typeface') || '' } |
| 88 | } |
| 89 | |
| 90 | function parseThemeXml(xml: string): NonNullable<DocumentStyleSummary['theme']> { |
| 91 | const slots: Array<keyof ThemeColors> = [ |
no test coverage detected