Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/IIIF-Commons/manifold
Wraps Manifesto to provide viewer state and related utilities
https://github.com/IIIF-Commons/manifold
iiif typescript
Last synced: about 1 month ago
JSON representation
Wraps Manifesto to provide viewer state and related utilities
- Host: GitHub
- URL: https://github.com/IIIF-Commons/manifold
- Owner: IIIF-Commons
- License: mit
- Created: 2016-05-31T14:16:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T20:39:46.000Z (about 2 months ago)
- Last Synced: 2024-11-04T21:31:51.976Z (about 2 months ago)
- Topics: iiif, typescript
- Language: TypeScript
- Homepage:
- Size: 2.28 MB
- Stars: 6
- Watchers: 4
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-iiif - Manifold - Wraps Manifesto to provide viewer state and related utilities. (Presentation API Libraries / Image viewers (Image API only))
README
# manifold
[![Build Status](https://travis-ci.org/IIIF-Commons/manifold.svg?branch=master)](https://travis-ci.org/IIIF-Commons/manifold)
npm install @iiif/manifold --save
Stateful utils on top of manifesto. Returns a `helper` object that can be used to navigate a IIIF manifest.
e.g.
- `getMetadata`: returns all metadata for current image, range, canvas, sequence, manifest)
- `getCurrentRange`, `getPreviousRange`, `getNextRange`: Used to navigate a flattened range tree (useful for IIIF AV scenarios)
- `getTree`: Returns a default tree (sortable by `navDate`) of collections, manifests, ranges, or a tree based on a given top range.Has an ajax implementation of manifesto's `IExternalResource` (used in the IIIF auth flow).
## Getting Started
### Documentation
https://iiif-commons.github.io/manifold/
### Developer Setup
git clone https://github.com/iiif-commons/manifold.git
npm install
npm run build### Publishing Package
git checkout master
npm version patch
git add .
git commit -m "Release v1.2.3"
git tag v1.2.3
git push origin master v1.2.3