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

Function apply_fill

demo/Paper2Poster/utils/src/utils.py:216–220  ·  view source on GitHub ↗
(shape: BaseShape, fill_xml: str)

Source from the content-addressed store, hash-verified

214
215
216def apply_fill(shape: BaseShape, fill_xml: str):
217 if fill_xml is None:
218 return
219 new_element = etree.fromstring(fill_xml)
220 shape.fill._xPr.getparent().replace(shape.fill._xPr, new_element)
221
222
223def parse_groupshape(groupshape: GroupShape):

Callers 3

buildMethod · 0.90
buildMethod · 0.90
buildMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected