Commit f555279
committed
Adjust ink annotation stroke scaling
Replace previous area-based stroke scaling with axis-aware logic for ink annotations. Side-handle resizes now scale the stroke along the changed axis, corner/non-uniform resizes use the smaller axis scale, and an epsilon is used to detect axis-only changes. Stroke width is clamped to at most the smallest rect dimension, forced to a minimum of 1, and rounded to one decimal place. Also remove an unused import (calculateRotatedRectAABB). These changes make handle-based resizing more intuitive and avoid excessively large stroke widths.1 parent 64ff405 commit f555279
1 file changed
Lines changed: 18 additions & 7 deletions
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
57 | 68 | | |
58 | 69 | | |
59 | 70 | | |
| |||
0 commit comments