How to use the openseadragon.setString function in openseadragon

To help you get started, we’ve selected a few openseadragon examples, based on popular ways it is used in public projects.

github NCI-GDC / portal-ui / src / packages / @ncigdc / components / ZoomableImage.js View on Github external
componentDidMount() {
      OpenSeadragon.setString('Tooltips.Home', 'Reset zoom');
      fetch(`${SLIDE_IMAGE_ENDPOINT}metadata/${this.props.imageId}`)
        .then(res => res.json())
        .then(data => {
          const { imageId, setViewer, setImageParams } = this.props;
          if (!data.Format) {
            this.props.setLoadError(true);
          } else {
            this.props.setLoadError(false);
            setImageParams({
              height: Number(data.Height),
              width: Number(data.Width),
              overlap: Number(data.Overlap),
              tileSize: Number(data.TileSize),
            });
            const viewer = OpenSeadragon({
              id: 'osd1',
github UMNLibraries / react-openseadragon / src / react-openseadragon-viewer.js View on Github external
      item => OpenSeadragon.setString(item.name, `${item.value}`));
  }

openseadragon

Provides a smooth, zoomable user interface for HTML/Javascript.

BSD-3-Clause
Latest version published 4 months ago

Package Health Score

85 / 100
Full package analysis

Similar packages