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

Function findFill

apps/sim/lib/pptx-renderer/model/nodes/shape-node.ts:136–142  ·  view source on GitHub ↗

* Find the first fill element in a shape properties node.

(spPr: SafeXmlNode)

Source from the content-addressed store, hash-verified

134 * Find the first fill element in a shape properties node.
135 */
136function findFill(spPr: SafeXmlNode): SafeXmlNode | undefined {
137 for (const fillType of FILL_TYPES) {
138 const fill = spPr.child(fillType)
139 if (fill.exists()) return fill
140 }
141 return undefined
142}
143
144/**
145 * Parse adjustment values from `a:avLst > a:gd` elements.

Callers 1

parseShapeNodeFunction · 0.85

Calls 2

childMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected