UNPKG

@iiif/3d-manifesto-dev

Version:

IIIF Presentation API utility library for client and server with 3D extension

23 lines (21 loc) 923 B
export * from "./internal"; import { Utils } from "./Utils"; /** Initiates downloading an IIIF manifest json file from URL. Returns a Promise<any> to allow subsequent processing on a successful fetch. @param url string containing the URL to Fetch @returns Promise<any> The object returned through the Promise is the javascript object obtained by deserializing the json text. **/ export var loadManifest = function (url) { return Utils.loadManifest(url); }; /** Parses IIIF manifest file to return a manifesto Manifest instance @param manifest Either a string containing text of a manifest file or an javascript object obtained by deserializing by the JSON.parse function a manifest file. @param options? TODO Not yet documented @returns instance of Manifest class. **/ export var parseManifest = function (manifest, options) { return Utils.parseManifest(manifest, options); }; //# sourceMappingURL=index.js.map