Skip to content

Releases: samuelbradshaw/highlight-helper-js

v0.8.0

25 Nov 22:47

Choose a tag to compare

  • 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

17 Oct 22:18

Choose a tag to compare

Fixed an issue that prevented resizing highlights in mark-elements drawing mode.

Full Changelog: 0.7.4...0.7.5

v0.7.4

16 Oct 02:27

Choose a tag to compare

  • Fixed an issue where text selection could be unexpectedly cleared when creating a highlight in mark-elements drawing 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

03 Oct 23:32

Choose a tag to compare

  • 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

09 Sep 16:41

Choose a tag to compare

Fixed an error when using the Highlight API drawing mode.

Full Changelog: 0.7.1...0.7.2

v0.7.1

09 Sep 02:43

Choose a tag to compare

Added support for importing as an ES module.

Full Changelog: 0.7.0...0.7.1

v0.7.0

06 Sep 16:52

Choose a tag to compare

v0.6.0

06 Sep 04:18

Choose a tag to compare

  • Renamed inserted-spans drawing mode to mark-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-elements drawing mode.
  • Added css-active and svg-active options to customize the appearance of active highlights.
  • Improved the default style for active underline highlights.
  • Improved appearance of overlapping highlights in the mark-elements drawing 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

17 Apr 23:35

Choose a tag to compare

  • 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:selectionupdate event 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

24 Feb 07:21

Choose a tag to compare

  • 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