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

Method __init__

utils/src/presentation.py:185–205  ·  view source on GitHub ↗
(
        self,
        slide_idx: int,
        shape_idx: int,
        style: dict,
        data: dict,
        text_frame: TextFrame,
        slide_area: float,
        level: int,
    )

Source from the content-addressed store, hash-verified

183
184class ShapeElement:
185 def __init__(
186 self,
187 slide_idx: int,
188 shape_idx: int,
189 style: dict,
190 data: dict,
191 text_frame: TextFrame,
192 slide_area: float,
193 level: int,
194 ):
195 self.slide_idx = slide_idx
196 self.shape_idx = shape_idx
197 self.style = style
198 self.data = data
199 self.text_frame = text_frame
200 self._closure_keys = ["clone", "replace", "delete", "style"]
201 self._closures: dict[str, list[Closure]] = {
202 key: [] for key in self._closure_keys
203 }
204 self.slide_area = slide_area
205 self.level = level
206
207 @classmethod
208 def from_shape(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected