25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
625 B

  1. <template>
  2. <div>
  3. openseadragon:
  4. <div ref="openSeadragonElt" style="width: 100%; height: 500px;"></div>
  5. </div>
  6. </template>
  7. <script setup>
  8. // vips dzsave --layout iiif --id /vignemale/dz vignemale.png dz
  9. import iiifConfig from './public/deepzoom/vignemale/dz/info.json'
  10. const openSeadragonElt = ref()
  11. onMounted(() => {
  12. if (import.meta.client) {
  13. import('openseadragon').then(OpenSeadragon => {
  14. OpenSeadragon.default({
  15. element: openSeadragonElt.value,
  16. prefixUrl: 'https://openseadragon.github.io/openseadragon/images/',
  17. tileSources: iiifConfig
  18. })
  19. })
  20. }
  21. })
  22. </script>