UNPKG

cozy-iiif

Version:

A developer-friendly collection of abstractions and utilities built on top of @iiif/presentation-3 and @iiif/parser

13 lines (12 loc) 782 B
import { ImageService2, ImageService3, Service } from '@iiif/presentation-3'; import { Bounds, CozyImageResource, GetRegionURLOpts } from '../types'; type ImageService = ImageService2 | ImageService3; export declare const isImageService: (data: any) => data is ImageService; export declare const parseImageService: (service: Service) => { majorVersion: number; profileLevel: number; } | undefined; export declare const getImageURLFromService: (service: Service, width: number, height: number) => string; export declare const getRegionURLFromService: (service: Service, bounds: Bounds, opts?: GetRegionURLOpts) => string | undefined; export declare const getRegionURL: (image: CozyImageResource) => (bounds: Bounds, opts?: GetRegionURLOpts) => string | undefined; export {};