Skip to content

Add Rect origin and size accessors - #681

Merged
Velli20 merged 1 commit into
mainfrom
rect-origin-size
Oct 31, 2026
Merged

Velli20 merged 1 commit into
mainfrom
rect-origin-size

Conversation

@Velli20

@Velli20 Velli20 commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Adds Rect::origin() (top-left Point) and Rect::size() (Size of width/height) and uses them where annotation code built these by hand:

  • pdf-annotation-core/src/projection.rs: entry origin/size
  • pdf-annotation-core/src/source_kind.rs: text note anchor
  • pdf-annotation-core/src/source_properties.rs: layout anchor fallback

🤖 Generated with Claude Code

Replace hand-built top-left points and sizes in annotation projection
with Rect::origin() and Rect::size().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Velli20
Velli20 merged commit 853cca7 into main Oct 31, 2026
10 checks passed
@Velli20
Velli20 deleted the rect-origin-size branch October 31, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant