(graphicFrame: SafeXmlNode)
| 77 | * Exported for use in GroupRenderer when parsing group children. |
| 78 | */ |
| 79 | export function parseOleFrameAsPicture(graphicFrame: SafeXmlNode): PicNodeData | undefined { |
| 80 | const pic = findOleFallbackPic(graphicFrame) |
| 81 | if (!pic) return undefined |
| 82 | |
| 83 | const base = parseBaseProps(graphicFrame) |
| 84 | const blipFill = pic.child('blipFill') |
| 85 | const blip = blipFill.child('blip') |
| 86 | const blipEmbed = blip.attr('embed') ?? blip.attr('r:embed') |
| 87 | const blipLink = blip.attr('link') ?? blip.attr('r:link') |
| 88 | if (!blipEmbed) return undefined |
| 89 | |
| 90 | return { |
| 91 | ...base, |
| 92 | nodeType: 'picture', |
| 93 | blipEmbed, |
| 94 | blipLink, |
| 95 | source: graphicFrame, |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Check whether a graphicFrame contains a SmartArt diagram. |
no test coverage detected