open-index/open-npm huggingface dataset:
npm package: @picturae/openseadragonmagnifier
Description: An OpenSeadragon plugin to view part of the image magnified.
Latest version: 1.3.0

# OpenSeadragonMagnifier

An OpenSeadragon plugin to view part of the image magnified.

It could be useful for zooming into 2 separate parts of an image to compare them.

## Demo

A basic demo/test page can be found in the `demo` directory. Make sure to run `npm run build` and serve the root of the
project.

## Usage

This plugin requires a version of OpenSeadragon later than 2.0

Include `dist/openseadragonmagnifier.js` after OpenSeadragon in your html. Then after you create a viewer:

    var magnifier = viewer.magnifier({
        sizeRatio:              0.2, // size relative to parent viewer
        magnifierRotate:        true, // rotate with parent viewer (does not work yet)
        keyboardShortcut:       'm', // to toggle magnifier visibility
        // ... supports all OpenSeadragon viewer options
        // because it is essentially a mini viewer
    });

## Build

Build using 'npm run build'

## TODO

- Fix Rotation
npm package: @picturae/openseadragonzoomlevels
Description: An OpenSeadragon plugin to allow restricting the image zoom to specific levels.
Author: Petar Petrov
Latest version: 1.0.1

# OpenSeadragonZoomLevels

An OpenSeadragon plugin to allow restricting the image zoom to specific levels.

**Currently only works with single images!**

## Demo

http://picturae.github.io/openseadragonselection/#tabs-zoom-levels

## Usage

This plugin requires a version of OpenSeadragon later than 2.0

Include `dist/openseadragonzoomlevels.js` after OpenSeadragon in your html. Then after you create a viewer:

    var zoomLevels = viewer.zoomLevels({
        levels: [0.1, 0.5, 1]
    });

Zoom levels are specified as an array of Floats where 1 is 100%. Allows zooming only to specific levels.

When `minZoomImageRatio`, `maxZoomPixelRatio`, `minZoomLevel` and/or `maxZoomLevel` are in conflict with this, the most restrictive options are used. `defaultZoomLevel` is always respected, even if not in this list.

If `zoomPerScroll` is too big, some levels might be skipped, so a small value is recommended (e.g. 1.00001).