From 2dbabacdcc4e0295a1db3a01ab8a013b2c74dd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20W=C3=B3jcik?= <1711174+lwojcik@users.noreply.github.com> Date: Mon, 20 May 2019 20:08:14 +0200 Subject: [PATCH] onViewerImageUpdate (#87) * onViewerImageUpdate --- dist/examples/events.html | 6 ++++++ dist/js/tridi.d.ts | 2 ++ dist/js/tridi.js | 4 ++++ dist/js/tridi.js.map | 2 +- dist/js/tridi.min.d.ts | 2 ++ dist/js/tridi.min.js | 2 +- dist/js/tridi.min.js.map | 2 +- dist/notes/api.html | 6 +++++- src/tridi.ts | 5 +++++ tests/tridi.test.ts | 13 +++++++++++++ 10 files changed, 40 insertions(+), 4 deletions(-) diff --git a/dist/examples/events.html b/dist/examples/events.html index beba32a..2a967cc 100644 --- a/dist/examples/events.html +++ b/dist/examples/events.html @@ -42,6 +42,9 @@

JavaScript

onViewerImageGenerate: function() { console.log('Viewer image generated'); }, + onViewerImageUpdate: function() { + console.log('Viewer image updated'); + }, onImagesPreload: function() { console.log('Images preloaded'); }, @@ -103,6 +106,9 @@

JavaScript

onViewerImageGenerate: function() { console.log('Viewer image generated'); }, + onViewerImageUpdate: function() { + console.log('Viewer image updated'); + }, onImagesPreload: function() { console.log('Images preloaded'); }, diff --git a/dist/js/tridi.d.ts b/dist/js/tridi.d.ts index 3bcfe2d..bae6317 100644 --- a/dist/js/tridi.d.ts +++ b/dist/js/tridi.d.ts @@ -30,6 +30,7 @@ interface TridiOptions { playable?: boolean; onViewerGenerate?: Function | undefined; onViewerImageGenerate?: Function | undefined; + onViewerImageUpdate?: Function | undefined; onHintShow?: Function | undefined; onHintHide?: Function | undefined; onLoadingScreenShow: Function | undefined; @@ -81,6 +82,7 @@ declare class Tridi { inverse?: boolean; onViewerGenerate?: Function | undefined; onViewerImageGenerate?: Function | undefined; + onViewerImageUpdate?: Function | undefined; onHintShow?: Function | undefined; onHintHide?: Function | undefined; onLoadingScreenShow: Function | undefined; diff --git a/dist/js/tridi.js b/dist/js/tridi.js index 97b5537..42443b1 100644 --- a/dist/js/tridi.js +++ b/dist/js/tridi.js @@ -59,6 +59,7 @@ var Tridi = /** @class */ (function () { this.mouseleaveDetect = options.mouseleaveDetect || false; this.onViewerGenerate = options.onViewerGenerate || undefined; this.onViewerImageGenerate = options.onViewerImageGenerate || undefined; + this.onViewerImageUpdate = options.onViewerImageUpdate || undefined; this.onHintShow = options.onHintShow || undefined; this.onHintHide = options.onHintHide || undefined; this.onLoadingScreenShow = options.onLoadingScreenShow || undefined; @@ -269,6 +270,9 @@ var Tridi = /** @class */ (function () { viewer.innerHTML = "" + viewerImage.outerHTML + viewer.innerHTML; }; Tridi.prototype.updateViewerImage = function (whichImage) { + var _this = this; + /* istanbul ignore next */ + this.viewerImage().onload = function () { return _this.trigger('onViewerImageUpdate'); }; this.viewerImage().src = this.image(whichImage); }; Tridi.prototype.nextFrame = function () { diff --git a/dist/js/tridi.js.map b/dist/js/tridi.js.map index bf55f3c..aacd7d3 100644 --- a/dist/js/tridi.js.map +++ b/dist/js/tridi.js.map @@ -1 +1 @@ -{"version":3,"file":"tridi.js","sourceRoot":"","sources":["../../src/tridi.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AA2DF;IAoDE,eAAY,OAAqB;QAAjC,iBA0DC;QAYO,YAAO,GAAG,UAAC,SAAgB;YAChC,IAAM,EAAE,GAAG,KAAI,CAAC,SAAS,CAAC,CAAC;YAC3B,IAAI,EAAE;gBAAE,EAAE,EAAE,CAAC;QAChB,CAAC,CAAA;QAEO,aAAQ,GAAG,UAAC,OAAqB;YACvC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;gBACpB,OAAO,CAAC,KAAK,CACX,gFAAgF,CACjF,CAAC;aACH;YAED,IACE,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW;gBACrC,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW,EACrC;gBACA,OAAO,CAAC,KAAK,CACX,iGAAiG,CAClG,CA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IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAC5B,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACxD,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC1B;IACH,CAAC;IAED,oBAAI,GAAJ;QACE,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IACH,YAAC;AAAD,CAAC,AA1rBD,IA0rBC;AAED,0BAA0B;AAC1B,IAAI,OAAO,MAAM,KAAK,WAAW;IAAE,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/js/tridi.min.d.ts b/dist/js/tridi.min.d.ts index 3bcfe2d..bae6317 100644 --- a/dist/js/tridi.min.d.ts +++ b/dist/js/tridi.min.d.ts @@ -30,6 +30,7 @@ interface TridiOptions { playable?: boolean; onViewerGenerate?: Function | undefined; onViewerImageGenerate?: Function | undefined; + onViewerImageUpdate?: Function | undefined; onHintShow?: Function | undefined; onHintHide?: Function | undefined; onLoadingScreenShow: Function | undefined; @@ -81,6 +82,7 @@ declare class Tridi { inverse?: boolean; onViewerGenerate?: Function | undefined; onViewerImageGenerate?: Function | undefined; + onViewerImageUpdate?: Function | undefined; onHintShow?: Function | undefined; onHintHide?: Function | undefined; onLoadingScreenShow: Function | undefined; diff --git a/dist/js/tridi.min.js b/dist/js/tridi.min.js index 8b8cc2f..613d0c2 100644 --- a/dist/js/tridi.min.js +++ b/dist/js/tridi.min.js @@ -5,4 +5,4 @@ Homepage: https://tridi.lukem.net GitHub: http://github.com/lukemnet/tridi */ -var Tridi=function(){function t(t){var i=this;this.trigger=function(t){var e=i[t];e&&e()},this.validate=function(t){t.element||console.error("'element' property is missing or invalid. Container element must be specified."),void 0===t.images&&void 0===t.format&&console.error("'format' property is missing or invalid. Image format must be provided for 'numbered' property."),"numbered"!==t.images||t.location||console.error("'location' property is missing or invalid. Image location must be provided for 'numbered' property.")},this.validate(t),this.element=t.element,this.images=t.images||"numbered",this.format=t.format||void 0,this.location=t.location||"./images",this.count=Array.isArray(this.images)?this.images.length:t.count,this.draggable=void 0===t.draggable||t.draggable,this.keys=t.keys||!1,this.hintOnStartup=t.hintOnStartup||!1,this.hintText=t.hintText||null,this.focusOnHintClose=t.focusOnHintClose||!1,this.lazy=t.lazy||!1,this.autoplay=t.autoplay||!1,this.autoplaySpeed=void 0!==t.autoplaySpeed?t.autoplaySpeed:50,this.stopAutoplayOnClick=t.stopAutoplayOnClick||!1,this.stopAutoplayOnMouseenter=t.stopAutoplayOnMouseenter||!1,this.resumeAutoplayOnMouseleave=t.resumeAutoplayOnMouseleave||!1,this.resumeAutoplayDelay=t.resumeAutoplayDelay||0,this.passive=void 0===t.passive||t.passive,this.spinner=t.spinner||!1,this.touch=void 0===t.touch||t.touch,this.mousewheel=t.mousewheel||!1,this.inverse=t.inverse||!1,this.dragInterval=t.dragInterval||1,this.touchDragInterval=t.touchDragInterval||2,this.mouseleaveDetect=t.mouseleaveDetect||!1,this.onViewerGenerate=t.onViewerGenerate||void 0,this.onViewerImageGenerate=t.onViewerImageGenerate||void 0,this.onHintShow=t.onHintShow||void 0,this.onHintHide=t.onHintHide||void 0,this.onLoadingScreenShow=t.onLoadingScreenShow||void 0,this.onLoadingScreenHide=t.onLoadingScreenHide||void 0,this.onImagesPreload=t.onImagesPreload||void 0,this.onAutoplayStart=t.onAutoplayStart||void 0,this.onAutoplayStop=t.onAutoplayStop||void 0,this.onNextMove=t.onNextMove||void 0,this.onPrevMove=t.onPrevMove||void 0,this.onNextFrame=t.onNextFrame||void 0,this.onPrevFrame=t.onPrevFrame||void 0,this.onDragStart=t.onDragStart||void 0,this.onDragEnd=t.onDragEnd||void 0,this.onLoad=t.onLoad||void 0,this.onUpdate=t.onUpdate||void 0,this.elementName=this.setElementName(),this.imageIndex=1,this.moveBuffer=[],this.dragActive=!1,this.intervals=[],this.timeouts=[],this.stashedImgs=0}return t.prototype.setElementName=function(){var t=this.element;return"string"==typeof t?t.substr(1):t.getAttribute("id")?t.getAttribute("id"):t.getAttribute("class")?t.getAttribute("class").split(" ")[0]:"unnamedTridi-"+(Math.floor(9e4*Math.random())+1e4)},t.prototype.validateUpdate=function(t){return!!(t.images||t.format||t.count||t.location)||(console.error("UpdatableOptions object doesn't contain options that can be updated."),!1)},t.prototype.updateOptions=function(e){var i=this;Object.keys(e).map(function(t){i[t]=e[t],"images"===t&&e[t].constructor===Array&&(i.count=e.images.length)})},t.prototype.getElem=function(t){return"string"==typeof this.element?t?document.querySelector(this.element+" "+t):document.querySelector(this.element):this.element},t.prototype.viewer=function(){return this.getElem()},t.prototype.stash=function(){return this.getElem(".tridi-stash")},t.prototype.getHintOverlay=function(){return this.getElem(".tridi-hint-overlay")},t.prototype.getLoadingScreen=function(){return this.getElem(".tridi-loading")},t.prototype.image=function(t){return this.imgs()[t-1]},t.prototype.viewerImage=function(){return this.getElem(".tridi-viewer-image")},t.prototype.lazyLoad=function(t,e){this.lazy&&!e?(this.viewerImage().addEventListener("click",t),this.touch&&this.viewerImage().addEventListener("touchstart",t,{passive:this.passive})):t()},t.prototype.imgs=function(){var i=this;return"numbered"===this.images?Array.apply(null,{length:this.count}).map(function(t,e){return i.location+"/"+(e+1)+"."+i.format.toLowerCase()}):this.images},t.prototype.generateViewer=function(){this.viewer().className+=" tridi-viewer tridi-"+this.elementName+"-viewer tridi-draggable-"+this.draggable+" tridi-touch-"+this.touch+" tridi-mousewheel-"+this.mousewheel+" tridi-hintOnStartup-"+this.hintOnStartup+" tridi-lazy-"+this.lazy,this.trigger("onViewerGenerate")},t.prototype.generateLoadingScreen=function(){var t=document.createElement("div");t.className+="tridi-loading tridi-"+this.elementName+"-loading",t.style.display="none";var e=document.createElement("div");e.className+="tridi-spinner tridi-"+this.elementName+"-spinner",t.appendChild(e),this.viewer().appendChild(t)},t.prototype.setLoadingState=function(t,e){this.getLoadingScreen().style.display=t?"block":"none",e||this.trigger(t?"onLoadingScreenShow":"onLoadingScreenHide")},t.prototype.generateStash=function(){if(!this.stash()){this.stashedImgs=0;var t=document.createElement("div");t.style.display="none",t.classList.add("tridi-stash"),this.viewer().appendChild(t)}},t.prototype.destroyStash=function(){this.stashedImgs=0,this.stash().parentNode.removeChild(this.stash())},t.prototype.displayHintOnStartup=function(n){var o=this;if(this.hintOnStartup){var s="tridi-"+this.elementName+"-hint-overlay",t=document.createElement("div");t.className+="tridi-hint-overlay "+s,t.tabIndex=0;var a="tridi-"+this.elementName+"-hint",e=document.createElement("div");e.className+="tridi-hint "+a,this.hintText&&(e.innerHTML=''+this.hintText+""),t.appendChild(e),this.viewer().appendChild(t),this.trigger("onHintShow");function i(t){var e=t.target.classList.contains(s),i=t.target.classList.contains(a);(e||i)&&(o.getHintOverlay().style.display="none",n(),o.focusOnHintClose&&o.viewerImage().focus(),o.trigger("onHintHide"))}document.addEventListener("click",i),this.touch&&document.addEventListener("touchstart",i),document.addEventListener("keydown",function(t){"Enter"===t.key&&i(t)})}else n()},t.prototype.stashImage=function(t,e,i,n){var o=new Image;o.onload=n.bind(this),o.className+="tridi-image tridi-image-"+(i+1),o.src=e,t.innerHTML+=o.outerHTML},t.prototype.populateStash=function(){var i=this,n=this.stash(),o=this.imgs();n&&o&&o.map(function(t,e){i.stashImage(n,t,e,function(){i.stashedImgs+=1,i.stashedImgs===o.length&&(i.setLoadingState(!1,!0),i.trigger("onImagesPreload"))})})},t.prototype.generateViewerImage=function(){var t=this,e=this.viewer(),i=new Image;i.onload=function(){return t.trigger("onViewerImageGenerate")},i.className+="tridi-viewer-image tridi-"+this.elementName+"-viewer-image",i.setAttribute("draggable","false"),i.setAttribute("alt",""),i.src=this.image(1),e.innerHTML=""+i.outerHTML+e.innerHTML},t.prototype.updateViewerImage=function(t){this.viewerImage().src=this.image(t)},t.prototype.nextFrame=function(){this.imageIndex=this.imageIndex<=1?this.count:this.imageIndex-1,this.viewerImage().src=this.image(this.imageIndex),this.trigger("onNextFrame")},t.prototype.prevFrame=function(){this.imageIndex=this.imageIndex>=this.count?1:this.imageIndex+1,this.viewerImage().src=this.image(this.imageIndex),this.trigger("onPrevFrame")},t.prototype.nextMove=function(){return this.trigger("onNextMove"),this.inverse?this.prevFrame():this.nextFrame()},t.prototype.prevMove=function(){return this.trigger("onPrevMove"),this.inverse?this.nextFrame():this.prevFrame()},t.prototype.rotateViewerImage=function(t){var e=t.touches?this.touchDragInterval:this.dragInterval,i=(t.touches?t.touches[0].clientX:t.clientX)-this.viewerImage().offsetLeft;if(this.moveBuffer.length<2)this.moveBuffer.push(i);else{var n=this.moveBuffer[1];this.moveBuffer[1]=i,this.moveBuffer[0]=n}var o=!(i%e),s=this.moveBuffer[0],a=this.moveBuffer[1];o&&a'+this.hintText+""),t.appendChild(e),this.viewer().appendChild(t),this.trigger("onHintShow");function i(t){var e=t.target.classList.contains(s),i=t.target.classList.contains(a);(e||i)&&(o.getHintOverlay().style.display="none",n(),o.focusOnHintClose&&o.viewerImage().focus(),o.trigger("onHintHide"))}document.addEventListener("click",i),this.touch&&document.addEventListener("touchstart",i),document.addEventListener("keydown",function(t){"Enter"===t.key&&i(t)})}else n()},t.prototype.stashImage=function(t,e,i,n){var o=new Image;o.onload=n.bind(this),o.className+="tridi-image tridi-image-"+(i+1),o.src=e,t.innerHTML+=o.outerHTML},t.prototype.populateStash=function(){var i=this,n=this.stash(),o=this.imgs();n&&o&&o.map(function(t,e){i.stashImage(n,t,e,function(){i.stashedImgs+=1,i.stashedImgs===o.length&&(i.setLoadingState(!1,!0),i.trigger("onImagesPreload"))})})},t.prototype.generateViewerImage=function(){var t=this,e=this.viewer(),i=new Image;i.onload=function(){return t.trigger("onViewerImageGenerate")},i.className+="tridi-viewer-image tridi-"+this.elementName+"-viewer-image",i.setAttribute("draggable","false"),i.setAttribute("alt",""),i.src=this.image(1),e.innerHTML=""+i.outerHTML+e.innerHTML},t.prototype.updateViewerImage=function(t){var e=this;this.viewerImage().onload=function(){return e.trigger("onViewerImageUpdate")},this.viewerImage().src=this.image(t)},t.prototype.nextFrame=function(){this.imageIndex=this.imageIndex<=1?this.count:this.imageIndex-1,this.viewerImage().src=this.image(this.imageIndex),this.trigger("onNextFrame")},t.prototype.prevFrame=function(){this.imageIndex=this.imageIndex>=this.count?1:this.imageIndex+1,this.viewerImage().src=this.image(this.imageIndex),this.trigger("onPrevFrame")},t.prototype.nextMove=function(){return this.trigger("onNextMove"),this.inverse?this.prevFrame():this.nextFrame()},t.prototype.prevMove=function(){return this.trigger("onPrevMove"),this.inverse?this.nextFrame():this.prevFrame()},t.prototype.rotateViewerImage=function(t){var e=t.touches?this.touchDragInterval:this.dragInterval,i=(t.touches?t.touches[0].clientX:t.clientX)-this.viewerImage().offsetLeft;if(this.moveBuffer.length<2)this.moveBuffer.push(i);else{var n=this.moveBuffer[1];this.moveBuffer[1]=i,this.moveBuffer[0]=n}var o=!(i%e),s=this.moveBuffer[0],a=this.moveBuffer[1];o&&aEvents onViewerImageGenerate - First viewer image is loaded + First viewer image is initially loaded + + + onViewerImageUpdate + Viewer image is updated onHintShow diff --git a/src/tridi.ts b/src/tridi.ts index ba85cb0..3587c43 100644 --- a/src/tridi.ts +++ b/src/tridi.ts @@ -38,6 +38,7 @@ interface TridiOptions { playable?: boolean; onViewerGenerate?: Function | undefined; onViewerImageGenerate?: Function | undefined; + onViewerImageUpdate?: Function | undefined; onHintShow?: Function | undefined; onHintHide?: Function | undefined; onLoadingScreenShow: Function | undefined; @@ -91,6 +92,7 @@ class Tridi { inverse?: boolean; onViewerGenerate?: Function | undefined; onViewerImageGenerate?: Function | undefined; + onViewerImageUpdate?: Function | undefined; onHintShow?: Function | undefined; onHintHide?: Function | undefined; onLoadingScreenShow: Function | undefined; @@ -151,6 +153,7 @@ class Tridi { this.mouseleaveDetect = options.mouseleaveDetect || false; this.onViewerGenerate = options.onViewerGenerate || undefined; this.onViewerImageGenerate = options.onViewerImageGenerate || undefined; + this.onViewerImageUpdate = options.onViewerImageUpdate || undefined; this.onHintShow = options.onHintShow || undefined; this.onHintHide = options.onHintHide || undefined; this.onLoadingScreenShow = options.onLoadingScreenShow || undefined; @@ -444,6 +447,8 @@ class Tridi { } private updateViewerImage(whichImage: number) { + /* istanbul ignore next */ + this.viewerImage().onload = () => this.trigger('onViewerImageUpdate'); this.viewerImage().src = this.image(whichImage); } diff --git a/tests/tridi.test.ts b/tests/tridi.test.ts index fb218f2..7498462 100644 --- a/tests/tridi.test.ts +++ b/tests/tridi.test.ts @@ -735,6 +735,19 @@ describe('Custom events', () => { expect(() => tridi.load()).not.toThrow(); }); + test(`should accept 'onViewerImageGenerate' event callback`, () => { + const tridi = setupTridi(containerId, { + ...options, + onViewerImageUpdate: () => { + return 0; + }, + }); + + tridi.load(); + + expect(() => tridi.update(options)).not.toThrow(); + }); + test(`should accept 'onImagesPreload' event callback`, () => { const tridi = setupTridi(containerId, { ...options,