Skip to content

feat: upgrade to Angular 22 - #53

Merged
philenius merged 5 commits into
mainfrom
feat/upgrade-to-angular-22
Oct 30, 2026
Merged

philenius merged 5 commits into
mainfrom
feat/upgrade-to-angular-22

Conversation

@philenius

@philenius philenius commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Implements #52

getCurrentTextSelection() counted all text rendered before the selection,
including text added by custom annotation renderers (e.g. labels), and
counted Unicode code points while annotation indices use UTF-16 code
units. Both produced wrong offsets: with custom renderers and in texts
containing emojis.
@philenius
philenius force-pushed the feat/upgrade-to-angular-22 branch from 29f0fe9 to 05ce0be Compare October 30, 2026 00:15
…nt OnPush

getCurrentTextSelection() threw a WrongDocumentError when the component
is inside a shadow root and the selection is outside of it. It now
returns undefined.

Document in the README and CHANGELOG that annotations must be updated by
assigning a new array, since OnPush doesn't detect in-place changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@philenius
philenius merged commit 63788c9 into main Oct 30, 2026
1 check passed
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