Skip to content

Standalone decorator#228

Open
JayPanoz wants to merge 72 commits into
developfrom
standalone-decorator
Open

Standalone decorator#228
JayPanoz wants to merge 72 commits into
developfrom
standalone-decorator

Conversation

@JayPanoz

@JayPanoz JayPanoz commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

We need Decorators in Readium Speech as standalone (on any webpage), which is not necessarily trivial given our Decorator module was designed with iframe in mind. Especially as we will also use Readium Speech in the context of Navigator…

This should be considered an exploratory PR whose code may dramatically change in the near feature.

JayPanoz added 30 commits April 28, 2026 08:54
- Observe Readium CSS changes
- Handle font loading
- Handle Chrome Zoom discrepancy in rects/positioning
TMP. will deal with this in new build.
- Use shadow DOM to isolate from Readium CSS
- check and adjust contrast for all types
- defaults specific to type
So that it can be easier to create highlights in FXL
Otherwise it is overflowing and clipped
Achievable through mask + Layout/Width options
So that it does not create types in other packages
JayPanoz added 30 commits June 23, 2026 18:15
This is underspecified in the API, and we must discuss what to make of it.
strikethrough + bounds
This is needed for standalone Decorator, so that the build is not bloated by other packages of the monorepo. Since I have to align build options of the new packages, it makes sense to merge it into standalone decorator first.
No more building in order to get types, etc.
So that it is not accidentally caught up by bundler outside of the monorepo
+ Migration guide
Used across navigator and injectables so it makes sense to have it in helpers
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