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

Function parsePlaceholder

apps/sim/lib/pptx-renderer/model/nodes/base-node.ts:104–112  ·  view source on GitHub ↗

* Parse placeholder info from nvPr > p:ph.

(nvPr: SafeXmlNode)

Source from the content-addressed store, hash-verified

102 * Parse placeholder info from nvPr > p:ph.
103 */
104function parsePlaceholder(nvPr: SafeXmlNode): PlaceholderInfo | undefined {
105 const ph = nvPr.child('ph')
106 if (!ph.exists()) return undefined
107
108 const type = ph.attr('type')
109 const idx = ph.numAttr('idx')
110
111 return { type, idx }
112}
113
114/**
115 * Parse the base properties common to all node types from a shape-like XML node.

Callers 1

parseBasePropsFunction · 0.85

Calls 4

childMethod · 0.80
existsMethod · 0.80
attrMethod · 0.80
numAttrMethod · 0.80

Tested by

no test coverage detected