* Parse placeholder info from nvPr > p:ph.
(nvPr: SafeXmlNode)
| 102 | * Parse placeholder info from nvPr > p:ph. |
| 103 | */ |
| 104 | function 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. |
no test coverage detected