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

Method numAttr

apps/sim/lib/pptx-renderer/parser/xml-parser.ts:24–29  ·  view source on GitHub ↗

Get a numeric attribute value, or undefined if missing or not a number.

(name: string)

Source from the content-addressed store, hash-verified

22
23 /** Get a numeric attribute value, or undefined if missing or not a number. */
24 numAttr(name: string): number | undefined {
25 const raw = this.attr(name)
26 if (raw === undefined) return undefined
27 const n = Number(raw)
28 return Number.isNaN(n) ? undefined : n
29 }
30
31 /**
32 * Find the first child element matching the given localName (namespace-agnostic).

Callers 15

renderShapeFunction · 0.80
findPlaceholderNodeFunction · 0.80
mergeParagraphPropsFunction · 0.80
mergeRunPropsFunction · 0.80
resolveGradientForTextFunction · 0.80
renderTextBodyFunction · 0.80
resolveBlipOpacityFunction · 0.80
applyLumEffectFunction · 0.80
applyBiLevelEffectFunction · 0.80
applyStyleBordersFunction · 0.80
applyCellPropertiesFunction · 0.80
collectModifiersFunction · 0.80

Calls 1

attrMethod · 0.95

Tested by

no test coverage detected