MCPcopy
hub / github.com/THU-MAIC/OpenMAIC / attr

Method attr

packages/@openmaic/importer/src/parser/XmlParser.ts:19–22  ·  view source on GitHub ↗

Get a string attribute value, or undefined if missing.

(name: string)

Source from the content-addressed store, hash-verified

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

Callers 15

numAttrMethod · 0.95
renderCustomGeometryFunction · 0.80
parseRelsFunction · 0.80
parseLayoutFunction · 0.80
isChartFrameFunction · 0.80
tryParseOleDocxMathFunction · 0.80
findOleFallbackPicFunction · 0.80
parseOleFrameAsPictureFunction · 0.80
isDiagramFrameFunction · 0.80
parseDiagramFrameFunction · 0.80
buildDiagramGroupFunction · 0.80
spHasVisibleFillOrLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected