function getShapeInfo(shapeName) {
  if (!shapeName) {
    return pptxShapes.RECTANGLE
  } // Endif.

  if (
    typeof shapeName === 'object' &&
    shapeName.name &&
    shapeName.displayName &&
    shapeName.avLst
  ) {
    return shapeName
  } // Endif.

  if (pptxShapes[shapeName]) {
    return pptxShapes[shapeName]
  } // Endif.

  for (var shapeIntName in pptxShapes) {
    if (pptxShapes[shapeIntName].name === shapeName) {
      return pptxShapes[shapeIntName]
    } // Endif.

    if (pptxShapes[shapeIntName].displayName === shapeName) {
      return pptxShapes[shapeIntName]
    } // Endif.
  } // End of for loop.

  return pptxShapes.RECTANGLE
}
Convert shape name to shape information.

This method convert the shape information received from the user to the real shape information object.

@param {object} shapeName Either the name of the shape or the shape information.
@return Information about this shape.