Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no component target for a plugin targeting paintable resources of type 'Text' #4085

Open
barmintor opened this issue Jan 28, 2025 · 0 comments · May be fixed by #4086
Open

There is no component target for a plugin targeting paintable resources of type 'Text' #4085

barmintor opened this issue Jan 28, 2025 · 0 comments · May be fixed by #4086

Comments

@barmintor
Copy link
Contributor

TypeSpecificViewer (in PrimaryWindow.js) falls through to WindowViewer (ie, OSD) when all resources that are not audio or video. We should ship a TextViewer component that acts just like WindowViewer, but provides a plugin target for better display of e.g. PDFs.

This would also require some minor additions to the canvas selectors to support filtering resources of type 'Text'.

barmintor added a commit to cul/mirador that referenced this issue Jan 29, 2025
- refactor type-based filters into a module
- MiradorCanvas.imagesResources does not assume any service is an image service
- stub TextViewer shows empty div, source elements for text resources, and canvas navigation
- fixes ProjectMirador#4085
barmintor added a commit to cul/mirador that referenced this issue Jan 29, 2025
- refactor type-based filters into a module
- MiradorCanvas.imagesResources does not assume any service is an image service
- stub TextViewer shows empty div, source elements for text resources, and canvas navigation
- fixes ProjectMirador#4085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant