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

Function applyTextTransform

pptx/scripts/html2pptx.js:279–286  ·  view source on GitHub ↗
(text, textTransform)

Source from the content-addressed store, hash-verified

277 };
278
279 const applyTextTransform = (text, textTransform) => {
280 if (textTransform === 'uppercase') return text.toUpperCase();
281 if (textTransform === 'lowercase') return text.toLowerCase();
282 if (textTransform === 'capitalize') {
283 return text.replace(/\b\w/g, c => c.toUpperCase());
284 }
285 return text;
286 };
287
288 // Extract rotation angle from CSS transform and writing-mode
289 const getRotation = (transform, writingMode) => {

Callers 2

parseInlineFormattingFunction · 0.85
extractSlideDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected