MilanoteUnofficialApi.elements.annotation
1from .meta import Meta 2from .location import Location 3from .element import Element 4 5 6class Annotation(Element): 7 """ 8 A Milanote annotation element. 9 """ 10 11 id: str 12 """ID of the element.""" 13 element_type: str 14 """Type of the element.""" 15 meta: Meta 16 """Metadata of the element.""" 17 location: Location 18 """Location of the element.""" 19 drawing: dict 20 """A dictionary that contains "paths" and "svg" code.""" 21 22 def __init__(self, data: dict): 23 super().__init__(data) 24 self.drawing = data['content']['drawing'] 25 26 def __repr__(self): 27 return f"Annotation(id='{self.id}', drawing={self.drawing})"
7class Annotation(Element): 8 """ 9 A Milanote annotation element. 10 """ 11 12 id: str 13 """ID of the element.""" 14 element_type: str 15 """Type of the element.""" 16 meta: Meta 17 """Metadata of the element.""" 18 location: Location 19 """Location of the element.""" 20 drawing: dict 21 """A dictionary that contains "paths" and "svg" code.""" 22 23 def __init__(self, data: dict): 24 super().__init__(data) 25 self.drawing = data['content']['drawing'] 26 27 def __repr__(self): 28 return f"Annotation(id='{self.id}', drawing={self.drawing})"
A Milanote annotation element.