|
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){ |
3 | 3 | (function (global){
|
4 | 4 |
|
5 | 5 | var __extends = (this && this.__extends) || (function () {
|
@@ -119,9 +119,9 @@ var IIIFComponents;
|
119 | 119 | var searchResults = Number(this.data.data.searchResults);
|
120 | 120 | if (searchResults) {
|
121 | 121 | 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()); |
123 | 123 | }
|
124 |
| - return String.format(that.options.data.content.searchResult, searchResults); |
| 124 | + return Utils.Strings.format(that.options.data.content.searchResult, searchResults.toString()); |
125 | 125 | }
|
126 | 126 | return null;
|
127 | 127 | }
|
@@ -238,7 +238,7 @@ var IIIFComponents;
|
238 | 238 | heights.push(initialHeight);
|
239 | 239 | thumb.multiSelectEnabled = multiSelectState.isEnabled;
|
240 | 240 | }
|
241 |
| - var medianHeight = Math.median(heights); |
| 241 | + var medianHeight = Utils.Maths.median(heights); |
242 | 242 | for (var i_3 = 0; i_3 < this._thumbs.length; i_3++) {
|
243 | 243 | var thumb = this._thumbs[i_3];
|
244 | 244 | thumb.initialHeight = medianHeight;
|
@@ -443,8 +443,8 @@ var IIIFComponents;
|
443 | 443 | this._updateThumbs();
|
444 | 444 | };
|
445 | 445 | 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); |
448 | 448 | };
|
449 | 449 | GalleryComponent.prototype._setThumbMultiSelected = function (thumb, selected) {
|
450 | 450 | $.observable(thumb).setProperty("multiSelected", selected);
|
|
0 commit comments