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

Method build

utils/src/presentation.py:1054–1067  ·  view source on GitHub ↗
(self, slide: PPTXSlide)

Source from the content-addressed store, hash-verified

1052 )
1053
1054 def build(self, slide: PPTXSlide):
1055 for ph in slide.placeholders:
1056 ph.element.getparent().remove(ph.element)
1057
1058 apply_fill(slide.background, self.background_xml)
1059
1060 for shape in self.shapes:
1061 build_shape = shape.build(slide)
1062 for closure in shape.closures:
1063 try:
1064 closure.apply(build_shape)
1065 except:
1066 raise ValueError("Failed to apply closures to slides")
1067 return slide
1068
1069 def shape_filter(self, shape_type: type, shapes: list[ShapeElement] = None):
1070 """

Callers

nothing calls this directly

Calls 3

apply_fillFunction · 0.90
buildMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected