MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / clear_images

Method clear_images

utils/src/presentation.py:1269–1274  ·  view source on GitHub ↗
(self, shapes: list[ShapeElement])

Source from the content-addressed store, hash-verified

1267 del self.prs.slides._sldIdLst[0]
1268
1269 def clear_images(self, shapes: list[ShapeElement]):
1270 for shape in shapes:
1271 if isinstance(shape, GroupShape):
1272 self.clear_images(shape.data)
1273 elif isinstance(shape, Picture):
1274 shape.img_path = "resource/pic_placeholder.png"
1275
1276 def clear_text(self, shapes: list[BaseShape]):
1277 for shape in shapes:

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected