Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Decorator API #186

Merged
merged 56 commits into from
Aug 20, 2021
Merged

Decorator API #186

merged 56 commits into from
Aug 20, 2021

Conversation

mickael-menu
Copy link
Member

@mickael-menu mickael-menu commented Jun 23, 2021

See the specification of the Decorator API

Added

  • (alpha) Support for the Decorator API to draw user interface elements over a publication's content.
    • This can be used to render highlights over a text selection, for example.
    • For now, only the EPUB navigator implements DecorableNavigator. You can implement custom decoration styles with HTMLDecorationTemplate.

Notes

  • A GitHub action will lint the JavaScript code and check if the bundle is up to date.
  • A part of the Hypothesis repo was copied as-is. We'll discuss with them how to extract this code in a dedicated repo.

@mickael-menu mickael-menu force-pushed the feature/decorator branch 3 times, most recently from 5fc85d4 to 0e38385 Compare June 24, 2021 12:19
@mickael-menu mickael-menu marked this pull request as ready for review August 13, 2021 08:54
@mickael-menu mickael-menu merged commit d9c7931 into develop Aug 20, 2021
@mickael-menu mickael-menu deleted the feature/decorator branch August 20, 2021 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant