Skip to content

Commit

Permalink
added isPagingEnabled to IManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Dec 11, 2016
1 parent a6d753b commit 0ccdb9b
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto",
"version": "2.0.6",
"version": "2.0.7",
"homepage": "https://github.com/edsilv/manifesto",
"authors": [
"edsilv <e.silverton@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion dist/client/manifesto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto.js v2.0.6 https://github.com/viewdir/manifesto
// manifesto.js v2.0.7 https://github.com/viewdir/manifesto
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.manifesto = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global){
var Manifesto;
Expand Down
2 changes: 1 addition & 1 deletion dist/client/manifesto.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/manifesto.bundle.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto.js v2.0.6 https://github.com/viewdir/manifesto
// manifesto.js v2.0.7 https://github.com/viewdir/manifesto
declare module exjs {
}
declare module exjs {
Expand Down Expand Up @@ -1127,6 +1127,7 @@ declare module Manifesto {
getViewingDirection(): Manifesto.ViewingDirection;
getViewingHint(): ViewingHint;
isMultiSequence(): boolean;
isPagingEnabled(): boolean;
}
}

Expand Down
3 changes: 2 additions & 1 deletion dist/manifesto.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto.js v2.0.6 https://github.com/viewdir/manifesto
// manifesto.js v2.0.7 https://github.com/viewdir/manifesto
declare module Manifesto {
class StringValue {
value: string;
Expand Down Expand Up @@ -716,6 +716,7 @@ declare module Manifesto {
getViewingDirection(): Manifesto.ViewingDirection;
getViewingHint(): ViewingHint;
isMultiSequence(): boolean;
isPagingEnabled(): boolean;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/server/manifesto.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/server/manifesto.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto.js",
"version": "2.0.6",
"version": "2.0.7",
"description": "IIIF Presentation API utility library for client and server",
"main": "dist/server/manifesto.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/IManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ module Manifesto {
getViewingDirection(): Manifesto.ViewingDirection;
getViewingHint(): ViewingHint;
isMultiSequence(): boolean;
isPagingEnabled(): boolean;
}
}
4 changes: 2 additions & 2 deletions src/Manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ module Manifesto {
return '';
}

isMultiSequence(): boolean{
isMultiSequence(): boolean {
return this.getTotalSequences() > 1;
}

isPagingEnabled(): boolean{
isPagingEnabled(): boolean {
return this.getViewingHint().toString() === Manifesto.ViewingHint.PAGED.toString();
}

Expand Down

0 comments on commit 0ccdb9b

Please sign in to comment.