modm_data.pdf2html.figure
1# Copyright 2022, Niklas Hauser 2# SPDX-License-Identifier: MPL-2.0 3 4from ..utils import Rectangle 5 6 7class Figure: 8 def __init__(self, page, bbox: Rectangle, cbbox: Rectangle = None, paths: list = None): 9 self._page = page 10 self.bbox = bbox 11 self.cbbox = cbbox 12 self._type = "figure" 13 self._paths = paths or [] 14 15 def as_svg(self): 16 return None 17 18 def __repr__(self) -> str: 19 return f"Figure({int(self.bbox.width)}x{int(self.bbox.height)})"
class
Figure:
8class Figure: 9 def __init__(self, page, bbox: Rectangle, cbbox: Rectangle = None, paths: list = None): 10 self._page = page 11 self.bbox = bbox 12 self.cbbox = cbbox 13 self._type = "figure" 14 self._paths = paths or [] 15 16 def as_svg(self): 17 return None 18 19 def __repr__(self) -> str: 20 return f"Figure({int(self.bbox.width)}x{int(self.bbox.height)})"
Figure( page, bbox: modm_data.utils.Rectangle, cbbox: modm_data.utils.Rectangle = None, paths: list = None)