Diva.js 4.0.0
New features in Diva.js 4.0.0:
- International Image Interoperability Framework (IIIF) support
- Book Layout view (facing pages)
- New plugins: Autoscroll (animated page scrolling), Page Alias (pages may have multiple identifiers), IIIF Metadata (displays document metadata from IIIF manifest), IIIF Highlight (displays annotations from a IIIF manifest)
- Improved development workflow (Gulp)
- Support for switching documents without reloading the viewer (by calling changeObject)
- Numerous bug fixes and optimizations (See our commits)
For more details, see the readme.
Note: Some existing features from 3.0 have changed. The breaking changes are as follows (see links for more information):
- We use gulp and npm for development instead of a shell script (
build.sh
has been removed), and UglifyJS instead of Closure Compiler for Javascript minification. - Callback functions (
onReady
, etc), deprecated in 3.0, have been removed and replaced with Events. - The URL hash parameters used in get/setState now use a
v
key for 'view' instead ofg
for 'grid'. - In the Plugin API, since callback functions are no longer used, the
setupHook
anddestroy
are no longer automatically bound—use Events.