Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 656 Bytes

File metadata and controls

24 lines (17 loc) · 656 Bytes

Diva.js

Version 7.2.2

Build

make build

Run

python3 -m http.server 8000

Open http://localhost:8000 in a browser.

Notes

  • Build output is a single build/diva.js bundle (Elm + TS) plus the OpenSeadragon CDN script. A debug build is available as build/diva.debug.js.
  • Initialize the viewer in public/index.html with new Diva("diva-wrapper", { objectData, acceptHeaders }).
  • src/viewer-element.ts defines the osd-viewer custom element used by the Elm view.
  • src/diva.ts owns the Elm ports and the filter preview OpenSeadragon instance.
  • make clean removes generated artifacts in build/ and public/.