An ellipse defined by its bounding box dimensions.
| 39 | |
| 40 | @dataclass |
| 41 | class Ellipse: |
| 42 | """An ellipse defined by its bounding box dimensions.""" |
| 43 | |
| 44 | type: Literal["Ellipse"] |
| 45 | |
| 46 | x: Annotated[int, Doc("X-coordinate of the top left corner of the bounding box.")] |
| 47 | y: Annotated[int, Doc("Y-coordinate of the top left corner of the bounding box.")] |
| 48 | width: Annotated[int, Doc("Width of the bounding box.")] |
| 49 | height: Annotated[int, Doc("Height of the bounding box.")] |
| 50 | text: Annotated[Optional[str], Doc("Optional text centered in the box.")] = None |
| 51 | style: Annotated[Optional[Style], Doc("Optional style settings for the ellipse.")] = None |
| 52 | |
| 53 | |
| 54 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…