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

Method from_shape

demo/Paper2Poster/utils/src/presentation.py:456–467  ·  view source on GitHub ↗
(
        cls,
        slide_idx: int,
        shape_idx: int,
        shape: TextFrame,
        style: dict,
        text_frame: TextFrame,
        config: Config,
        slide_area: float,
        level: int,
    )

Source from the content-addressed store, hash-verified

454class TextBox(ShapeElement):
455 @classmethod
456 def from_shape(
457 cls,
458 slide_idx: int,
459 shape_idx: int,
460 shape: TextFrame,
461 style: dict,
462 text_frame: TextFrame,
463 config: Config,
464 slide_area: float,
465 level: int,
466 ):
467 return cls(slide_idx, shape_idx, style, None, text_frame, slide_area, level)
468
469 def to_html(self, style_args: StyleArg) -> str:
470

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected