* Find the first fill element in a shape properties node.
(spPr: SafeXmlNode)
| 134 | * Find the first fill element in a shape properties node. |
| 135 | */ |
| 136 | function 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. |
no test coverage detected