Skip to content

Releases: hypothesis/client

v1.1612.0

11 Apr 15:43
Compare
Choose a tag to compare
v1.1612.0 Pre-release
Pre-release
Style shape highlights with CSS

Move the styling of shape highlights from inline styles set in JS to CSS. This
makes them consistent with text highlights and also enables shape highlight
visibility to reflect the global highlights-visible status.

Shape highlights use a different class than regular highlights because they have
different colors and other attributes.

Fixes https://github.com/hypothesis/client/issues/6971

v1.1611.0

11 Apr 10:46
Compare
Choose a tag to compare
v1.1611.0 Pre-release
Pre-release
Style shape highlights with CSS

Move the styling of shape highlights from inline styles set in JS to CSS. This
makes them consistent with text highlights and also enables shape highlight
visibility to reflect the global highlights-visible status.

Shape highlights use a different class than regular highlights because they have
different colors and other attributes.

Fixes https://github.com/hypothesis/client/issues/6971

v1.1610.0

11 Apr 10:42
Compare
Choose a tag to compare
v1.1610.0 Pre-release
Pre-release
Style shape highlights with CSS

Move the styling of shape highlights from inline styles set in JS to CSS. This
makes them consistent with text highlights and also enables shape highlight
visibility to reflect the global highlights-visible status.

Shape highlights use a different class than regular highlights because they have
different colors and other attributes.

Fixes https://github.com/hypothesis/client/issues/6971

v1.1609.0

10 Apr 11:44
Compare
Choose a tag to compare
v1.1609.0 Pre-release
Pre-release
  • Correct shape anchoring in PDF pages with offset bounding box
    #6968

v1.1608.0

09 Apr 09:22
Compare
Choose a tag to compare
v1.1608.0 Pre-release
Pre-release
  • Improve contrast ratio in annotation textarea
    #6966

v1.1607.0

08 Apr 13:42
Compare
Choose a tag to compare
v1.1607.0 Pre-release
Pre-release
Implement anchoring and highlighting of shapes in PDFs

 - Change `anchor` method of integrations to support resolving selectors to DOM
   ranges or "anchored shapes". An anchored shape is a combination of an anchor
   element, such as the container for a PDF page, and a shape whose coordinates
   are relative to the anchor.

 - Expose `PDFPageView.view` property in PDF.js types

 - Implement anchoring of rect and point shape selectors in PDFs

 - Implement initial creation of highlight elements for shapes

 - In `Guest`, anchor newly created annotations with shape regions in
   order to draw highlights.

v1.1606.0

08 Apr 12:08
Compare
Choose a tag to compare
v1.1606.0 Pre-release
Pre-release
Show mention suggestions only when editing a mention

v1.1605.0

07 Apr 15:41
Compare
Choose a tag to compare
v1.1605.0 Pre-release
Pre-release
Remove unused `root` parameter from PDF anchoring functions

This is a vestige from when the HTML and PDF anchoring modules were required to
have the same interface. The common interface is now implemented by
`PDFIntegration` which uses functions in the PDF anchoring module.

v1.1604.0

07 Apr 09:30
Compare
Choose a tag to compare
v1.1604.0 Pre-release
Pre-release
Generate shape selectors for rect and point annotations in PDFs

After drawing a rectangle or selecting a point using the new rect/point
annotation tools, map the coordinates of the shape to PDF user space
coordinates, in the page containing the top-left corner of the shape, and save
them as a new "ShapeSelector" selector in the annotation payload.

Anchoring of this selector is not yet implemented, so the annotation will
become an orphan after the page is reloaded.

 - Extend the `describe` operation of integrations to take a _region_
   rather than _range_ argument. A _region_ is either a DOM range or a
   shape.

 - Add a new `ShapeSelector` selector type which represents a 2D region of a
   document. For paged media the coordinates are relative to the selected page.

 - Support describing (ie. serializing) shapes in the PDF integration

 - Throw exceptions in the HTML and VitalSource integrations if passed a
   shape, since that is not yet supported.

v1.1603.0

07 Apr 08:27
Compare
Choose a tag to compare
v1.1603.0 Pre-release
Pre-release
Do not try to match usernames when mathing display-name mentions