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

Method children

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

* Get child elements, optionally filtered by localName (namespace-agnostic). * If no localName is given, returns all direct child elements.

(localName?: string)

Source from the content-addressed store, hash-verified

48 * If no localName is given, returns all direct child elements.
49 */
50 children(localName?: string): SafeXmlNode[] {
51 if (!this.el) return []
52 const result: SafeXmlNode[] = []
53 const children = this.el.children
54 for (let i = 0; i < children.length; i++) {
55 if (localName === undefined || children[i].localName === localName) {
56 result.push(new SafeXmlNode(children[i]))
57 }
58 }
59 return result
60 }
61
62 /** Get the text content, or empty string if the element is missing. */
63 text(): string {

Callers 15

allChildrenMethod · 0.95
resolveGradientForTextFunction · 0.80
findTableStyleFunction · 0.80
resolveGradientFunction · 0.80
resolveGradientFillNodeFunction · 0.80
resolveGradientStrokeFunction · 0.80
extractStringValuesFunction · 0.80
extractNumericValuesFunction · 0.80
extractSeriesNameFunction · 0.80
buildEChartsGradientFunction · 0.80
extractDataPointColorsFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected