(page: fitz.Page, x1: float, y: float, x2: float)
| 65 | |
| 66 | |
| 67 | def arrow(page: fitz.Page, x1: float, y: float, x2: float) -> None: |
| 68 | page.draw_line(fitz.Point(x1, y), fitz.Point(x2, y), color=GRAY, width=1.8) |
| 69 | page.draw_polyline( |
| 70 | [ |
| 71 | fitz.Point(x2 - 5, y - 4), |
| 72 | fitz.Point(x2, y), |
| 73 | fitz.Point(x2 - 5, y + 4), |
| 74 | ], |
| 75 | color=GRAY, |
| 76 | width=1.8, |
| 77 | ) |
| 78 | |
| 79 | |
| 80 | def draw_status(page: fitz.Page, x: float, y: float, label: str, value: str, color) -> None: |