Skip to content

Commit a6dec96

Browse files
authored
Merge pull request #877 from sul-dlss/update-uv
updated UV from sul-dlss-deprecated/universalviewer#56 b…
2 parents 8c4f6e5 + bc6354e commit a6dec96

34 files changed

+55088
-825
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./uv-3

public/uv-3/.md5

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23c963dae632bb47a10842798d0a145d
1+
4002350b6d7dd77c3f10f096e3a03785

public/uv-3/build.js.map

+30-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/uv-3/lib/iiif-av-component.js

+424-270
Large diffs are not rendered by default.

public/uv-3/lib/iiif-gallery-component.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// iiif-gallery-component v1.1.3 https://github.com/iiif-commons/iiif-gallery-component#readme
2-
(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.iiifGalleryComponent = 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){
1+
// iiif-gallery-component v1.1.4 https://github.com/iiif-commons/iiif-gallery-component#readme
2+
(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.iiifGalleryComponent = 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){
33
(function (global){
44

55
var __extends = (this && this.__extends) || (function () {
@@ -119,9 +119,9 @@ var IIIFComponents;
119119
var searchResults = Number(this.data.data.searchResults);
120120
if (searchResults) {
121121
if (searchResults > 1) {
122-
return String.format(that.options.data.content.searchResults, searchResults);
122+
return Utils.Strings.format(that.options.data.content.searchResults, searchResults.toString());
123123
}
124-
return String.format(that.options.data.content.searchResult, searchResults);
124+
return Utils.Strings.format(that.options.data.content.searchResult, searchResults.toString());
125125
}
126126
return null;
127127
}
@@ -238,7 +238,7 @@ var IIIFComponents;
238238
heights.push(initialHeight);
239239
thumb.multiSelectEnabled = multiSelectState.isEnabled;
240240
}
241-
var medianHeight = Math.median(heights);
241+
var medianHeight = Utils.Maths.median(heights);
242242
for (var i_3 = 0; i_3 < this._thumbs.length; i_3++) {
243243
var thumb = this._thumbs[i_3];
244244
thumb.initialHeight = medianHeight;
@@ -443,8 +443,8 @@ var IIIFComponents;
443443
this._updateThumbs();
444444
};
445445
GalleryComponent.prototype._setRange = function () {
446-
var norm = Math.normalise(Number(this._$sizeRange.val()), 0, 10);
447-
this._range = Math.clamp(norm, 0.05, 1);
446+
var norm = Utils.Maths.normalise(Number(this._$sizeRange.val()), 0, 10);
447+
this._range = Utils.Maths.clamp(norm, 0.05, 1);
448448
};
449449
GalleryComponent.prototype._setThumbMultiSelected = function (thumb, selected) {
450450
$.observable(thumb).setProperty("multiSelected", selected);

public/uv-3/lib/iiif-metadata-component.js

+111-75
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)