MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / getText

Function getText

pptx/scripts/html2pptx.js:101–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100 if (fontSize > 12 && distanceFromBottom < minBottomMargin) {
101 const getText = () => {
102 if (typeof el.text === 'string') return el.text;
103 if (Array.isArray(el.text)) return el.text.find(t => t.text)?.text || '';
104 if (Array.isArray(el.items)) return el.items.find(item => item.text)?.text || '';
105 return '';
106 };
107 const textPrefix = getText().substring(0, 50) + (getText().length > 50 ? '...' : '');
108
109 errors.push(

Callers 1

validateTextBoxPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected