Releases: samuelbradshaw/highlight-helper-js
Releases · samuelbradshaw/highlight-helper-js
v0.8.0
- Added options for controlling visibility of custom selection handles.
- Fixed an issue where SVG highlight rectangles sometimes stuck out into the margin.
Full Changelog: 0.7.5...0.8.0
v0.7.5
Fixed an issue that prevented resizing highlights in mark-elements drawing mode.
Full Changelog: 0.7.4...0.7.5
v0.7.4
- Fixed an issue where text selection could be unexpectedly cleared when creating a highlight in
mark-elementsdrawing mode. - Fixed an issue where custom selection handles didn’t show as expected after creating a highlight in SVG drawing mode, with snapToWord set to false.
- Fixed an issue where some highlight rectangles were being skipped in SVG drawing mode.
Full Changelog: 0.7.3...0.7.4
v0.7.3
- Simplified logic for calculating the position of highlight rectangles in SVG drawing mode.
- Fixed an issue where highlights didn't draw on some lines of text in SVG drawing mode.
- Fixed an error when long-pressing in the annotatable container.
Full Changelog: 0.7.2...0.7.3
v0.7.2
Fixed an error when using the Highlight API drawing mode.
Full Changelog: 0.7.1...0.7.2
v0.7.1
Added support for importing as an ES module.
Full Changelog: 0.7.0...0.7.1
v0.7.0
Published to npm:
https://www.npmjs.com/package/@samuelbradshaw/highlight-helper-js
Full Changelog: 0.6.0...0.7.0
v0.6.0
- Renamed
inserted-spansdrawing mode tomark-elements, and switched to using HTML<mark>elements in that mode.<mark>elements are more semantic than<span>, and provide better accessibility for screen readers. - Added support for editing highlights in the
mark-elementsdrawing mode. - Added
css-activeandsvg-activeoptions to customize the appearance of active highlights. - Improved the default style for active underline highlights.
- Improved appearance of overlapping highlights in the
mark-elementsdrawing mode. - Improved logic to only redraw a modified highlight once, after the user has finished editing.
- Improved logic for detecting changes to the width of the annotatable container, to avoid redrawing SVG highlights unnecessarily.
- Fixed a few cases where selection handles didn't show after creating or editing a highlight in Android Chrome.
- Fixed an issue where a hidden input field (used for initializing selection) was visible to screen readers.
- Fixed an issue where selection handles didn't redraw in the correct location after resizing the window.
- Fixed an issue that could prevent SVG highlights from showing in Android Chrome.
- Fixed an issue where a highlight's rangeHtml string included surrounding links and highlights.
- Fixed an issue where selected text sometimes turned black in dark mode, making it difficult to read.
Full Changelog: 0.5.1...0.6.0
v0.5.1
- Improved text selection in WKWebView on macOS (especially in "Designed for iPad" apps running on macOS).
- Improved support for browsers that don’t fully support the CSSStyleSheet API (including Safari 16.0 to 16.3).
- Improved timing of
hh:selectionupdateevent when deactivating a highlight. - Improved flexibility for annotatable containers that are set to
position: relative. - Fixed an issue that could cause the style attribute on the annotatable container element to be overwritten.
- Fixed an issue that could cause the page to jump to the bottom when initializing text selection.
Full Changelog: 0.5.0...0.5.1
v0.5.0
- Improved style of default custom selection handles (on non-touch devices).
- Improved logic for drawing SVG highlights and custom selection handles in right-to-left text (such as Arabic).
- Improved logic for getting a caret from coordinates, to reduce jitter while dragging custom selection handles.
- Fixed an issue where highlights were sometimes drawn to the full width of the paragraph, instead of the width of the line of text.
- Fixed an issue where dragging to resize a highlight didn’t behave as expected after right-clicking the selection handle.
- Fixed errors when attempting to create or modify a highlight whose range includes non-annotatable content.
- Fixed an issue where the last text node in a paragraph could sometimes be skipped when drawing highlights.
- Fixed an issue where tap events on hyperlinks with child elements weren't always recognized.
Full Changelog: 0.4.0...0.5.0