mirador-disable-zoom

1.0.0-alpha.1 • Public • Published

mirador-disable-zoom

Node.js CI

mirador-disable-zoom is a Mirador 4 plugin that allows users to disable (and re-enable) zoom controls per window.

This plugin is based on the mirador-disable-zoom plugin by UCLA Library.

Mirador disable zoom example

When interacting with Mirador on touch devices, users report that they sometimes unintentionally change the zoom level. This plugin adds a button to each window in Mirador that a user can click/touch to disable zooming on that window, until the user does one of the following:

  • replaces the current window object with a new object (via the list of loaded manifests)
  • moves to a different canvas in the same object
  • changes the view type (BookView -> ImageView, and vice versa)

Configuration

Several configuration options are available on windows that use mirador-disable-zoom.

Configuration type default description
disableZoomEnabled boolean false Disable zoom controls

Example configuration:

const config = {
  id: "demo",
  windows: [
    {
      disableZoomEnabled: true,
      manifestId: "https://purl.stanford.edu/sn904cj3429/iiif/manifest",
    },
  ],
};

Installing mirador-disable-zoom

mirador-disable-zoom requires an instance of Mirador 4. See the Mirador wiki for examples of embedding Mirador within an application. See the live demo's index.js for an example of importing the mirador-disable-zoom plugin and configuring the adapter.

Contribute

Mirador's development, design, and maintenance is driven by community needs and ongoing feedback and discussion. Join us at our regularly scheduled community calls, on IIIF slack #mirador, or the mirador-tech and iiif-discuss mailing lists. To suggest features, report bugs, and clarify usage, please submit a GitHub issue.

Readme

Keywords

Package Sidebar

Install

npm i mirador-disable-zoom

Weekly Downloads

2

Version

1.0.0-alpha.1

License

Apache-2.0

Unpacked Size

2.15 MB

Total Files

16

Last publish

Collaborators

  • nakamura196