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

Function parseFontScheme

apps/sim/lib/copilot/vfs/document-style.ts:84–88  ·  view source on GitHub ↗
(xml: string)

Source from the content-addressed store, hash-verified

82}
83
84function 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
90function parseThemeXml(xml: string): NonNullable<DocumentStyleSummary['theme']> {
91 const slots: Array<keyof ThemeColors> = [

Callers 1

parseThemeXmlFunction · 0.85

Calls 2

betweenFunction · 0.85
attrFunction · 0.85

Tested by

no test coverage detected