Coverage for fpdf2_textindex/interface/link_location.py: 100.00%

13 statements  

« prev     ^ index     » next       coverage.py v7.14.1, created at 2026-06-01 14:22 +0000

1"""Link Location.""" 

2 

3import dataclasses 

4 

5 

6@dataclasses.dataclass(kw_only=True, slots=True) 

7class LinkLocation: 

8 """Link Location.""" 

9 

10 page: int 

11 """The page the link is referened/used on.""" 

12 

13 x: float 

14 """The `x`-position on the page.""" 

15 

16 y: float 

17 """The `y`-position on the page.""" 

18 

19 w: float 

20 """The width the link has on the page.""" 

21 

22 h: float 

23 """The height the link has on the page."""