vue-openseadragon

OpenSeaDragon component for Vue.js
3,936 29
Install
npm install vue-openseadragon
Latest Version:0.1.2
License:MIT
Last Updated:Apr 27, 2018
Links: GitHub  ·  npm
Maintainer: simone.sanfra

vue-openseadragon

NPM Version NPM Downloads

NPM

JS Standard Style

OpenSeaDragon component for Vue.js

https://openseadragon.github.io/

OpenSeaDragon version bundled: v. 2.3.1

Install

npm i vue-openseadragon --save

Example

<script type="text/javascript" src="/path/to/dist/vue-openseadragon.min.js"></script>

<vue-openseadragon :id="'image-viewer'" 
  :options="{
    tileSources: {
      type: 'image'
      url: 'url-to-image.jpg'
    },
    maxZoomLevel: 5,
    ajaxWithCredentials: true,
    showNavigator: true,
    homeFillsViewer: true,
    navigatorId: 'image-navigator',
    toolbar: 'image-toolbar',
    zoomInButton: 'image-toolbar-zoomin',
    zoomOutButton: 'image-toolbar-zoomout',
    homeButton: 'image-toolbar-reset',
    fullPageButton: 'image-toolbar-fullscreen'
  }">
</vue-openseadragon>

See https://openseadragon.github.io/docs/OpenSeadragon.html#.Options for full options

Todo

  • doc i18n, custom messages :i18n="i18n" :messages="messages"
  • add debug option

License

The MIT License (MIT)

Copyright (c) 2017-2018, braces lab

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Related Packages

vue-panzoom

Vue plugin to zoom/pan dom elements

201,156 96
simple-panzoom

保留 vue3-sketch-ruler 实际用到的功能,移除 SVG、IE 与多指捏合等未用特性,提升性...

1,539 303
vue-zoomable

Tiny and high performance zoom and pan library for Vue 3. It uses CSS Transforms...

145,993 37
vue-zoomable-cute

Tiny and high performance zoom and pan library for Vue 3. It uses CSS Transforms...

5,653 37
vue3-zoom-pan-pinch

vue3 zoom and pan

3,432 8

Version History

Version Released License
0.1.2 MIT
0.1.1 MIT
0.1.0 MIT