Skip to content

Commit

Permalink
updated manifesto
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Mar 26, 2018
1 parent 1dc9424 commit 32e9be5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 2 files
+ uv.zip
+18 −28,142 uv/uv.js
47 changes: 43 additions & 4 deletions src/lib/manifesto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// manifesto v2.2.14 https://github.com/iiif-commons/manifesto
// manifesto v2.2.15 https://github.com/iiif-commons/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(){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}return e})()({1:[function(require,module,exports){
(function (global){

Expand Down Expand Up @@ -1456,6 +1456,12 @@ var Manifesto;
}
return this._ranges = this.items.en().where(function (m) { return m.isRange(); }).toArray();
};
Range.prototype.getBehavior = function () {
if (this.getProperty('behavior')) {
return new Manifesto.Behavior(this.getProperty('behavior'));
}
return null;
};
Range.prototype.getViewingDirection = function () {
if (this.getProperty('viewingDirection')) {
return new Manifesto.ViewingDirection(this.getProperty('viewingDirection'));
Expand Down Expand Up @@ -1492,9 +1498,15 @@ var Manifesto;
if (ranges && ranges.length) {
for (var i = 0; i < ranges.length; i++) {
var childRange = ranges[i];
var childNode = new Manifesto.TreeNode();
node.addNode(childNode);
this._parseTreeNode(childNode, childRange);
var behavior = childRange.getBehavior();
if (behavior && behavior.toString() === Manifesto.Behavior.NONAV.toString()) {
continue;
}
else {
var childNode = new Manifesto.TreeNode();
node.addNode(childNode);
this._parseTreeNode(childNode, childRange);
}
}
}
};
Expand Down Expand Up @@ -3193,6 +3205,33 @@ var Manifesto;
Manifesto.AnnotationPage = AnnotationPage;
})(Manifesto || (Manifesto = {}));

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var Manifesto;
(function (Manifesto) {
var Behavior = /** @class */ (function (_super) {
__extends(Behavior, _super);
function Behavior() {
return _super !== null && _super.apply(this, arguments) || this;
}
// todo: use getters when ES3 target is no longer required.
Behavior.prototype.nonav = function () {
return new Behavior(Behavior.NONAV.toString());
};
Behavior.NONAV = new Behavior("no-nav");
return Behavior;
}(Manifesto.StringValue));
Manifesto.Behavior = Behavior;
})(Manifesto || (Manifesto = {}));




Expand Down

0 comments on commit 32e9be5

Please sign in to comment.