1.0.33 • Published 2 years ago

lensing v1.0.33

Weekly downloads
55
License
ISC
Repository
github
Last release
2 years ago

Lensing

Note

This plugin introduces a lens to the OpenSeadragon viewer with several characteristic features, including hi-res magnification, physical measurements, exportable snapshots, customized overlays, and localized filtering. The overlays and filters in particular can be extended to support application-specific tasks.

Refs.

  • npm - npm i lensing
  • github - git clone git@github.com:jessupjs/lensing.git

Use

  1. Install w NPM
  2. Import at top of .js:
    import * as osd from 'openseadragon';
    import * as l from 'lensing';
  3. After original OSD viewer is instantiated, construct the lensing hidden viewer:

    // Instantiate viewer
    const viewer = osd(viewer_config);
    
    // Compile dataLoad, i.e. custom filters (empty by default)
    const dataLoad = []
    
    // Instantiate Lensing
    viewer.lensing = l.construct(osd, viewer, viewer_config, dataLoad);
  4. Refer to the following examples if useful:

    1. Lensing Demo - a small application that demonstrates the lensing tool's core functionalities.
    2. Scope2Screen - a domain-specific application (digital histopathology) that presents examples for extending functionality with custom filters and annotations.
1.0.33

2 years ago

1.0.31

2 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago