Skip to content

Remove FontAwesome dependency from edirom-image-viewer by making anno… - #275

Open
hizclick wants to merge 2 commits into
image-component-integrationfrom
271-ftr--remove-fontawesome-dependency-from-edirom-image-viewer-use-edirom-icon-instead
Open

Remove FontAwesome dependency from edirom-image-viewer by making anno…#275
hizclick wants to merge 2 commits into
image-component-integrationfrom
271-ftr--remove-fontawesome-dependency-from-edirom-image-viewer-use-edirom-icon-instead

Conversation

@hizclick

@hizclick hizclick commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Description, Context and related Issue

Removes the FontAwesome dependency from edirom-image-viewer by making both annotation stylesheet injection and category icon rendering fully host-driven, instead of hardcoded inside the component:

  • edirom-image-viewer.js (submodule): replaced the hardcoded resources/css/annotation-style.css / resources/css/font-awesome.min.css paths and the getPreference()//db/ lookup with a generic overlay-stylesheets attribute (host-supplied hrefs/markers, cloned from the host <head> into the shadow root via _applyOverlayStylesheets()), and a generic zone.iconHtml field in _renderOverlays() (host-supplied markup inserted as-is). The component now has no built-in knowledge of any file path, preference API, eXist-db convention, or icon system — keeping it reusable outside Edirom-Online-Frontend.
  • OpenSeaDragonViewer.js (bridge): computes and sets overlay-stylesheets in initSurface() (annotation-style.css + the resolved additional_css_path edition CSS) — the Edirom-specific lookup now lives here instead of in the shared component.
  • annotation-style.css: removed the 2 FontAwesome ::before glyph rules (beschreibung, rasurTektur); added centering + --edirom-icon-size/--edirom-icon-color rules for an edirom-icon child element in their place.

Refs #271

How Has This Been Tested?

  • klarinettenquintett

Types of changes

  • Improvement

Overview

  • I have updated the inline documentation accordingly.
  • I have performed a self-review of my code, according to the style guide
  • I have read the CONTRIBUTING document.
  • [ x] I have added tests to cover my changes at testing
  • All new and existing tests passed.

…tation stylesheet injection and category icons fully host-driven; closes #271.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants