MCPcopy
hub / github.com/simstudioai/sim / attr

Method attr

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

Get a string attribute value, or undefined if missing.

(name: string)

Source from the content-addressed store, hash-verified

16
17 /** Get a string attribute value, or undefined if missing. */
18 attr(name: string): string | undefined {
19 if (!this.el) return undefined
20 return this.el.hasAttribute(name) ? this.el.getAttribute(name)! : undefined
21 }
22
23 /** Get a numeric attribute value, or undefined if missing or not a number. */
24 numAttr(name: string): number | undefined {

Callers 15

numAttrMethod · 0.95
parseBufferMethod · 0.80
processElementMethod · 0.80
extractLinksMethod · 0.80
resolveShapeBlipUrlFunction · 0.80
getLineEndsFromLnFunction · 0.80
renderShapeFunction · 0.80
findPlaceholderNodeFunction · 0.80
mergeParagraphPropsFunction · 0.80
mergeRunPropsFunction · 0.80
renderTextBodyFunction · 0.80
findTableStyleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected