Commit 3070ae4
Provide bounding box for plain text - without tspan
While `a` element typically used together with text,
one need to have estimation of bounding box for text.
To avoid reimplementation of complete text rendering logic
just remember text position and sizes as bounding box.
Implemented only for plain text, any usage of tspan will not work properly1 parent c9fb455 commit 3070ae4
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
231 | | - | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
0 commit comments