Skip to content

Commit e2563ef

Browse files
committed
Add changeset
1 parent f490b32 commit e2563ef

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@embedpdf/snippet': patch
3+
---
4+
5+
Add `annotation:add-ink-highlighter` command and toolbar button for the ink highlighter tool.
6+
7+
The command toggles the `inkHighlighter` tool, respects the `ModifyAnnotations` permission, and is registered under the `annotation` and `annotation-ink` categories. The corresponding button is inserted into all relevant toolbar and mobile-menu slots next to the existing ink pen button.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@embedpdf/plugin-annotation': patch
3+
---
4+
5+
Add smart line recognition to the ink handler with horizontal/vertical axis snapping.
6+
7+
When `smartLineRecognition` is enabled on an ink tool, straight strokes drawn close to a horizontal or vertical axis are automatically snapped to a clean two-point line after `pointerUp`. The snapped line is centred on the average position of all recorded points rather than being anchored to the start point. Diagonal straight strokes (outside the snap cone) are left untouched with their original points intact.
8+
9+
New `InkBehavior` fields on `AnnotationTool`:
10+
11+
- `snapAngleDeg` — degrees from horizontal/vertical within which snapping is applied (default `15`). Strokes whose angle falls outside both snap zones are not reduced to two points.

0 commit comments

Comments
 (0)