Return appropriate shape object for `shape_elm` on a slide layout.
(shape_elm: ShapeElement, parent: ProvidesPart)
| 821 | |
| 822 | |
| 823 | def _LayoutShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape: |
| 824 | """Return appropriate shape object for `shape_elm` on a slide layout.""" |
| 825 | if isinstance(shape_elm, CT_Shape) and shape_elm.has_ph_elm: |
| 826 | return LayoutPlaceholder(shape_elm, parent) |
| 827 | return BaseShapeFactory(shape_elm, parent) |
| 828 | |
| 829 | |
| 830 | def _MasterShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape: |
searching dependent graphs…