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

Function hasColorNode

apps/sim/lib/pptx-renderer/renderer/background-renderer.ts:24–30  ·  view source on GitHub ↗

* Check whether a node contains a supported OOXML color node.

(node: SafeXmlNode)

Source from the content-addressed store, hash-verified

22 * Check whether a node contains a supported OOXML color node.
23 */
24function hasColorNode(node: SafeXmlNode): boolean {
25 if (COLOR_NODE_NAMES.has(node.localName)) {
26 return true
27 }
28
29 return node.allChildren().some((child) => COLOR_NODE_NAMES.has(child.localName))
30}
31
32/**
33 * Composite a semi-transparent color on white so the result is always opaque.

Callers 1

renderBgRefFunction · 0.85

Calls 1

allChildrenMethod · 0.80

Tested by

no test coverage detected