nanosplash 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,i,s)=>i in e?t(e,i,{t:!0,i:!0,writable:!0,value:s}):e[i]=s,h=document.createElement("style");h.innerHTML='@charset "UTF-8";.ns-blur,body .ns-fs~*{filter:blur(5px);overflow:hidden}.ns-wrapper{position:relative}.ns-fs{left:0;min-height:100vh;min-width:100%;position:fixed;top:0;z-index:2}.ns-window{align-items:center;background-color:#fffc;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.ns-img{margin-bottom:1rem;max-height:9rem;max-width:9rem}.ns-text{color:#333;display:flex;text-align:center}.ns-text:after{-webkit-animation:anim 1s infinite;animation:anim 1s infinite;content:"\\a0\\a0\\a0";margin-left:.25em}@-webkit-keyframes anim{0%{content:"\\a0\\a0\\a0"}30%{content:".\\a0\\a0"}60%{content:"..\\a0"}90%{content:"..."}}@keyframes anim{0%{content:"\\a0\\a0\\a0"}30%{content:".\\a0\\a0"}60%{content:"..\\a0"}90%{content:"..."}}\n',document.head.appendChild(h),function(){const t=t=>document.createElement(t);function h(t,...e){t.classList.add(...e)}function a(t,e,i){t.setAttribute(e,i)}class c{static o(t){if("string"==typeof t){const i=(e=t,document.querySelector(e));if(!i)throw new Error(`No match with ${t}`);return i}if(t instanceof Node)return t;var e;throw new Error("Destination argument must string or Node")}static h(t){const h={getId:()=>t.getId(),remove:()=>t.delete(),moveTo:e=>t.moveTo(e),getText:()=>t.getText(),setText:e=>t.setText(e),getImgSrc:()=>t.getImgSrc(),setImgSrc:e=>t.setImgSrc(e)};return a=((t,e)=>{for(var i in e||(e={}))n.call(e,i)&&o(t,i,e[i]);if(s)for(var i of s(e))r.call(e,i)&&o(t,i,e[i]);return t})({},h),e(a,i({inside:e=>(t.moveTo(e),h)}));var a}}class u{constructor(e,i,s){var n;this.u=t("div"),this.l=t("div"),this.m=t("div"),this.g=t("div"),this.p=t("img"),this.v=t("div"),this.id=Math.random().toString(36).substring(2),this.S=e,this.v.innerText=i,this.I=s,this.p.src=null!=(n=this.I)?n:"",this.p.alt=m.O,this.j(),this.setImgSrc(s)}F(){h(this.g,"ns-container"),h(this.l,"ns-blur"),h(this.p,"ns-img"),h(this.v,"ns-text"),h(this.m,"ns","ns-window"),h(this.u,"ns-wrapper")}T(){this.g.append(this.p,this.v),this.m.append(this.g),this.u.append(this.l,this.m)}j(){this.u.id=this.getId(),a(this.u,"data-ctx","nanosplash"),this.T(),this.F()}getId(){return this.id}getText(){return this.v.innerText}setText(t){return this.v.innerText=t,this}getImgSrc(){return this.I}setImgSrc(t){return this.p.src=null!=t?t:"",this.p.style.display=t?"block":"none",this.T(),this}k(){const t=this.u.parentElement;t&&this.N(t)}C(){a(this.u,"style",""),this.u.classList.remove("ns-fs")}A(t){const e=t.parentNode;e&&(this.N(e),e.replaceChild(this.u,t),this.l.appendChild(t))}M(){this.u.classList.add("ns-fs"),((t,e,i=!1)=>{t&&e&&(e.hasChildNodes()&&i?e.insertBefore(t,e.firstChild):e.appendChild(t))})(this.u,document.body,!0)}moveTo(t){this.k();const e=c.o(t);e===document.body?this.M():(this.C(),this.A(e)),this.j()}W(t){Array.from(this.l.childNodes).forEach(t)}N(t){this.W((e=>t.insertBefore(e,this.u)))}D(){[this.v,this.p,this.g,this.l,this.m,this.u].forEach((t=>t.remove()))}delete(){this.k(),this.D(),this.S.delete(this)}}class l{static $(t,e,i,s){var n;return t||(t=new u(e,i,s)),t.setText(i).setImgSrc(null!=(n=t.getImgSrc())?n:s)}static P(t,e){return i=>(e=l.$(e,t,"",i),{show:l.R(t,e),progress:l.U(t,e),while:l.q(t,e)})}static R(t,e){return i=>(e=l.$(e,t,i),t.B.set(e.getId(),e),e.moveTo(document.body),c.h(e))}static U(t,e){return(...i)=>((e=l.$(e,t,"")).moveTo(document.body),(async()=>{for(const[t,[s,n]]of i.entries())e.setText(n),await s;e.delete()})(),c.h(e))}static q(t,e){return i=>(e=l.$(e,t,""),{show:s=>(t.B.set(e.getId(),e),e.moveTo(document.body),e.setText(s),i.finally((()=>e.delete())),c.h(e))})}}class m{constructor(){this.B=new Map}img(t){return l.P(this,new u(this,"",t))(t)}show(t){return l.R(this,new u(this,t))(t)}progress(...t){return l.U(this,new u(this,""))(...t)}while(t){return l.q(this,new u(this,""))(t)}G(t){let e=0;const i=this.B.entries();for(const[s,n]of i)if(!t(s,n,e++))break}delete(t){this.B.delete(t.getId())}hideAll(){this.B.forEach((t=>t.delete()))}hide(t){if(t){const e=this.B.get(t);if(!e)throw new Error(`Could not find element with id: ${t}`);e.delete()}else this.G(((t,e,i)=>{const s=0===i;return s&&e.delete(),s}))}}m.O="Nanosplash",window.addEventListener("load",(()=>window.ns=new m))}();
1
+ var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,h=(e,i,s)=>i in e?t(e,i,{t:!0,i:!0,writable:!0,value:s}):e[i]=s,o=document.createElement("style");o.innerHTML='@charset "UTF-8";.ns-blur,body .ns-fs~*{filter:blur(5px);overflow:hidden}.ns-wrapper{position:relative}.ns-fs{left:0;min-height:100vh;min-width:100%;position:fixed;top:0;z-index:2}.ns-window{align-items:center;background-color:#fffc;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.ns-img{margin-bottom:1rem;max-height:9rem;max-width:9rem}.ns-text{color:#333;display:flex;text-align:center}.ns-text:after{-webkit-animation:anim 1s infinite;animation:anim 1s infinite;content:"\\a0\\a0\\a0";margin-left:.25em}@-webkit-keyframes anim{0%{content:"\\a0\\a0\\a0"}30%{content:".\\a0\\a0"}60%{content:"..\\a0"}90%{content:"..."}}@keyframes anim{0%{content:"\\a0\\a0\\a0"}30%{content:".\\a0\\a0"}60%{content:"..\\a0"}90%{content:"..."}}\n',document.head.appendChild(o),function(){const t=t=>document.createElement(t);function o(t,...e){t.classList.add(...e)}function a(t,e,i){t.setAttribute(e,i)}class c{static h(t){if("string"==typeof t){const i=(e=t,document.querySelector(e));if(!i)throw new Error(`No match with ${t}`);return i}if(t instanceof Node)return t;var e;throw new Error("Destination argument must string or Node")}static o(t){const o={getId:()=>t.getId(),remove:()=>t.delete(),moveTo:e=>t.moveTo(e),getText:()=>t.getText(),setText:e=>t.setText(e),getImgSrc:()=>t.getImgSrc(),setImgSrc:e=>t.setImgSrc(e)};return a=((t,e)=>{for(var i in e||(e={}))n.call(e,i)&&h(t,i,e[i]);if(s)for(var i of s(e))r.call(e,i)&&h(t,i,e[i]);return t})({},o),e(a,i({inside:e=>(t.moveTo(e),o)}));var a}}class l{constructor(e,i,s){var n;this.l=t("div"),this.u=t("div"),this.m=t("div"),this.g=t("div"),this.p=t("div"),this.v=t("img"),this.id=Math.random().toString(36).substring(2),this.S=e,this.u.innerText=i,this.I=s,this.v.src=null!=(n=this.I)?n:"",this.v.alt=m.O,this.j(),this.setImgSrc(s)}F(){o(this.p,"ns-container"),o(this.g,"ns-blur"),o(this.v,"ns-img"),o(this.u,"ns-text"),o(this.m,"ns","ns-window"),o(this.l,"ns-wrapper")}N(){this.p.append(this.v,this.u),this.m.append(this.p),this.l.append(this.g,this.m)}j(){this.l.id=this.getId(),a(this.l,"data-ctx","nanosplash"),this.N(),this.F()}getId(){return this.id}getText(){return this.u.innerText}setText(t){return this.u.innerText=t,this}getImgSrc(){return this.I}setImgSrc(t){return this.v.src=null!=t?t:"",this.v.style.display=t?"block":"none",this.N(),this}T(){return this.k}A(){const t=this.l.parentElement;t&&this.D(t)}C(){a(this.l,"style",""),this.l.classList.remove("ns-fs")}W(t){const e=t.parentNode;e&&(this.D(e),e.replaceChild(this.l,t),this.g.appendChild(t))}M(){this.l.classList.add("ns-fs"),((t,e,i=!1)=>{t&&e&&(e.hasChildNodes()&&i?e.insertBefore(t,e.firstChild):e.appendChild(t))})(this.l,document.body,!0)}R(t){this.S.$(t).filter((t=>t.getId()!==this.getId())).forEach((t=>t.delete()))}moveTo(t){this.A(),this.k=c.h(t),this.R(this.k),this.k===document.body?this.M():(this.C(),this.W(this.k)),this.j()}H(t){Array.from(this.g.childNodes).forEach(t)}D(t){this.H((e=>t.insertBefore(e,this.l)))}P(){[this.u,this.v,this.p,this.g,this.m,this.l].forEach((t=>t.remove()))}delete(){this.A(),this.P(),this.S.delete(this)}}class u{static U(t,e,i,s){var n;return t||(t=new l(e,i,s)),t.setText(i).setImgSrc(null!=(n=t.getImgSrc())?n:s)}static q(t,e){return i=>(e=u.U(e,t,"",i),{show:u.B(t,e),progress:u.G(t,e),while:u.J(t,e)})}static B(t,e){return i=>(e=u.U(e,t,i),t.K.set(e.getId(),e),e.moveTo(document.body),c.o(e))}static G(t,e){return(...i)=>((e=u.U(e,t,"")).moveTo(document.body),(async()=>{for(const[t,[s,n]]of i.entries())e.setText(n),await s;e.delete()})(),c.o(e))}static J(t,e){return i=>(e=u.U(e,t,""),{show:s=>(t.K.set(e.getId(),e),e.moveTo(document.body),e.setText(s),i.finally((()=>e.delete())),c.o(e))})}}class m{constructor(){this.K=new Map}img(t){return u.q(this,new l(this,"",t))(t)}show(t){return u.B(this,new l(this,t))(t)}progress(...t){return u.G(this,new l(this,""))(...t)}while(t){return u.J(this,new l(this,""))(t)}L(t){let e=0;const i=this.K.entries();for(const[s,n]of i)if(!t(s,n,e++))break}delete(t){this.K.delete(t.getId())}hideAll(){this.K.forEach((t=>t.delete()))}hide(t){if(t){const e=this.K.get(t);if(!e)throw new Error(`Could not find element with id: ${t}`);e.delete()}else this.L(((t,e,i)=>{const s=0===i;return s&&e.delete(),s}))}$(t){return Array.from(this.K.values()).filter((e=>e.T()===t))}}m.O="Nanosplash",window.addEventListener("load",(()=>window.ns=new m))}();
@@ -1 +1 @@
1
- var t=Object.defineProperty,s=Object.defineProperties,e=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,h=(s,e,i)=>e in s?t(s,e,{t:!0,i:!0,writable:!0,value:i}):s[e]=i;Object.defineProperties(exports,{h:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=t=>document.createElement(t);function c(t,...s){t.classList.add(...s)}function a(t,s,e){t.setAttribute(s,e)}class u{static o(t){if("string"==typeof t){const e=(s=t,document.querySelector(s));if(!e)throw new Error(`No match with ${t}`);return e}if(t instanceof Node)return t;var s;throw new Error("Destination argument must string or Node")}static u(t){const o={getId:()=>t.getId(),remove:()=>t.delete(),moveTo:s=>t.moveTo(s),getText:()=>t.getText(),setText:s=>t.setText(s),getImgSrc:()=>t.getImgSrc(),setImgSrc:s=>t.setImgSrc(s)};return c=((t,s)=>{for(var e in s||(s={}))r.call(s,e)&&h(t,e,s[e]);if(i)for(var e of i(s))n.call(s,e)&&h(t,e,s[e]);return t})({},o),s(c,e({inside:s=>(t.moveTo(s),o)}));var c}}class l{constructor(t,s,e){var i;this.l=o("div"),this.m=o("div"),this.g=o("div"),this.v=o("div"),this.p=o("img"),this.S=o("div"),this.id=Math.random().toString(36).substring(2),this.O=t,this.S.innerText=s,this.I=e,this.p.src=null!=(i=this.I)?i:"",this.p.alt=d.j,this.F(),this.setImgSrc(e)}N(){c(this.v,"ns-container"),c(this.m,"ns-blur"),c(this.p,"ns-img"),c(this.S,"ns-text"),c(this.g,"ns","ns-window"),c(this.l,"ns-wrapper")}T(){this.v.append(this.p,this.S),this.g.append(this.v),this.l.append(this.m,this.g)}F(){this.l.id=this.getId(),a(this.l,"data-ctx","nanosplash"),this.T(),this.N()}getId(){return this.id}getText(){return this.S.innerText}setText(t){return this.S.innerText=t,this}getImgSrc(){return this.I}setImgSrc(t){return this.p.src=null!=t?t:"",this.p.style.display=t?"block":"none",this.T(),this}M(){const t=this.l.parentElement;t&&this.C(t)}A(){a(this.l,"style",""),this.l.classList.remove("ns-fs")}W(t){const s=t.parentNode;s&&(this.C(s),s.replaceChild(this.l,t),this.m.appendChild(t))}D(){this.l.classList.add("ns-fs"),((t,s,e=!1)=>{t&&s&&(s.hasChildNodes()&&e?s.insertBefore(t,s.firstChild):s.appendChild(t))})(this.l,document.body,!0)}moveTo(t){this.M();const s=u.o(t);s===document.body?this.D():(this.A(),this.W(s)),this.F()}k(t){Array.from(this.m.childNodes).forEach(t)}C(t){this.k((s=>t.insertBefore(s,this.l)))}$(){[this.S,this.p,this.v,this.m,this.g,this.l].forEach((t=>t.remove()))}delete(){this.M(),this.$(),this.O.delete(this)}}class m{static _(t,s,e,i){var r;return t||(t=new l(s,e,i)),t.setText(e).setImgSrc(null!=(r=t.getImgSrc())?r:i)}static P(t,s){return e=>(s=m._(s,t,"",e),{show:m.R(t,s),progress:m.q(t,s),while:m.B(t,s)})}static R(t,s){return e=>(s=m._(s,t,e),t.G.set(s.getId(),s),s.moveTo(document.body),u.u(s))}static q(t,s){return(...e)=>((s=m._(s,t,"")).moveTo(document.body),(async()=>{for(const[t,[i,r]]of e.entries())s.setText(r),await i;s.delete()})(),u.u(s))}static B(t,s){return e=>(s=m._(s,t,""),{show:i=>(t.G.set(s.getId(),s),s.moveTo(document.body),s.setText(i),e.finally((()=>s.delete())),u.u(s))})}}class d{constructor(){this.G=new Map}img(t){return m.P(this,new l(this,"",t))(t)}show(t){return m.R(this,new l(this,t))(t)}progress(...t){return m.q(this,new l(this,""))(...t)}while(t){return m.B(this,new l(this,""))(t)}H(t){let s=0;const e=this.G.entries();for(const[i,r]of e)if(!t(i,r,s++))break}delete(t){this.G.delete(t.getId())}hideAll(){this.G.forEach((t=>t.delete()))}hide(t){if(t){const s=this.G.get(t);if(!s)throw new Error(`Could not find element with id: ${t}`);s.delete()}else this.H(((t,s,e)=>{const i=0===e;return i&&s.delete(),i}))}}d.j="Nanosplash",exports.Nanosplash=d;
1
+ var t=Object.defineProperty,s=Object.defineProperties,e=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,h=(s,e,i)=>e in s?t(s,e,{t:!0,i:!0,writable:!0,value:i}):s[e]=i;Object.defineProperties(exports,{h:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=t=>document.createElement(t);function a(t,...s){t.classList.add(...s)}function c(t,s,e){t.setAttribute(s,e)}class u{static o(t){if("string"==typeof t){const e=(s=t,document.querySelector(s));if(!e)throw new Error(`No match with ${t}`);return e}if(t instanceof Node)return t;var s;throw new Error("Destination argument must string or Node")}static u(t){const o={getId:()=>t.getId(),remove:()=>t.delete(),moveTo:s=>t.moveTo(s),getText:()=>t.getText(),setText:s=>t.setText(s),getImgSrc:()=>t.getImgSrc(),setImgSrc:s=>t.setImgSrc(s)};return a=((t,s)=>{for(var e in s||(s={}))r.call(s,e)&&h(t,e,s[e]);if(i)for(var e of i(s))n.call(s,e)&&h(t,e,s[e]);return t})({},o),s(a,e({inside:s=>(t.moveTo(s),o)}));var a}}class l{constructor(t,s,e){var i;this.l=o("div"),this.m=o("div"),this.g=o("div"),this.v=o("div"),this.p=o("div"),this.S=o("img"),this.id=Math.random().toString(36).substring(2),this.I=t,this.m.innerText=s,this.O=e,this.S.src=null!=(i=this.O)?i:"",this.S.alt=m.j,this.N(),this.setImgSrc(e)}F(){a(this.p,"ns-container"),a(this.v,"ns-blur"),a(this.S,"ns-img"),a(this.m,"ns-text"),a(this.g,"ns","ns-window"),a(this.l,"ns-wrapper")}T(){this.p.append(this.S,this.m),this.g.append(this.p),this.l.append(this.v,this.g)}N(){this.l.id=this.getId(),c(this.l,"data-ctx","nanosplash"),this.T(),this.F()}getId(){return this.id}getText(){return this.m.innerText}setText(t){return this.m.innerText=t,this}getImgSrc(){return this.O}setImgSrc(t){return this.S.src=null!=t?t:"",this.S.style.display=t?"block":"none",this.T(),this}A(){return this.D}M(){const t=this.l.parentElement;t&&this.C(t)}W(){c(this.l,"style",""),this.l.classList.remove("ns-fs")}k(t){const s=t.parentNode;s&&(this.C(s),s.replaceChild(this.l,t),this.v.appendChild(t))}R(){this.l.classList.add("ns-fs"),((t,s,e=!1)=>{t&&s&&(s.hasChildNodes()&&e?s.insertBefore(t,s.firstChild):s.appendChild(t))})(this.l,document.body,!0)}$(t){this.I._(t).filter((t=>t.getId()!==this.getId())).forEach((t=>t.delete()))}moveTo(t){this.M(),this.D=u.o(t),this.$(this.D),this.D===document.body?this.R():(this.W(),this.k(this.D)),this.N()}H(t){Array.from(this.v.childNodes).forEach(t)}C(t){this.H((s=>t.insertBefore(s,this.l)))}P(){[this.m,this.S,this.p,this.v,this.g,this.l].forEach((t=>t.remove()))}delete(){this.M(),this.P(),this.I.delete(this)}}class d{static q(t,s,e,i){var r;return t||(t=new l(s,e,i)),t.setText(e).setImgSrc(null!=(r=t.getImgSrc())?r:i)}static B(t,s){return e=>(s=d.q(s,t,"",e),{show:d.G(t,s),progress:d.J(t,s),while:d.K(t,s)})}static G(t,s){return e=>(s=d.q(s,t,e),t.L.set(s.getId(),s),s.moveTo(document.body),u.u(s))}static J(t,s){return(...e)=>((s=d.q(s,t,"")).moveTo(document.body),(async()=>{for(const[t,[i,r]]of e.entries())s.setText(r),await i;s.delete()})(),u.u(s))}static K(t,s){return e=>(s=d.q(s,t,""),{show:i=>(t.L.set(s.getId(),s),s.moveTo(document.body),s.setText(i),e.finally((()=>s.delete())),u.u(s))})}}class m{constructor(){this.L=new Map}img(t){return d.B(this,new l(this,"",t))(t)}show(t){return d.G(this,new l(this,t))(t)}progress(...t){return d.J(this,new l(this,""))(...t)}while(t){return d.K(this,new l(this,""))(t)}U(t){let s=0;const e=this.L.entries();for(const[i,r]of e)if(!t(i,r,s++))break}delete(t){this.L.delete(t.getId())}hideAll(){this.L.forEach((t=>t.delete()))}hide(t){if(t){const s=this.L.get(t);if(!s)throw new Error(`Could not find element with id: ${t}`);s.delete()}else this.U(((t,s,e)=>{const i=0===e;return i&&s.delete(),i}))}_(t){return Array.from(this.L.values()).filter((s=>s.A()===t))}}m.j="Nanosplash",exports.Nanosplash=m;
@@ -68,11 +68,11 @@ class SplashInstance {
68
68
  constructor(ns, text, imgSrc) {
69
69
  var _a;
70
70
  this.nsRootElement = mk("div");
71
- this.nsWrapperElement = mk("div");
71
+ this.nsTextElement = mk("div");
72
72
  this.nsWindowElement = mk("div");
73
+ this.nsWrapperElement = mk("div");
73
74
  this.nsContentElement = mk("div");
74
75
  this.nsImageElement = mk("img");
75
- this.nsTextElement = mk("div");
76
76
  this.id = Math.random().toString(36).substring(2);
77
77
  this.nsInstance = ns;
78
78
  this.nsTextElement.innerText = text;
@@ -120,7 +120,10 @@ class SplashInstance {
120
120
  this.assembleElementStructure();
121
121
  return this;
122
122
  }
123
- cleanup() {
123
+ getDestination() {
124
+ return this.destinationNode;
125
+ }
126
+ cleanAndRestore() {
124
127
  const currentParent = this.nsRootElement.parentElement;
125
128
  if (currentParent) {
126
129
  this.restoreDOMStructure(currentParent);
@@ -142,15 +145,21 @@ class SplashInstance {
142
145
  this.nsRootElement.classList.add("ns-fs");
143
146
  move(this.nsRootElement, document.body, true);
144
147
  }
148
+ replaceSplashInstancesHavingSameDestination(destinationNode) {
149
+ const fnNotSameInstance = (v) => v.getId() !== this.getId();
150
+ const fnDelete = (v) => v.delete();
151
+ this.nsInstance.getSplashesWithDestinationNode(destinationNode).filter(fnNotSameInstance).forEach(fnDelete);
152
+ }
145
153
  moveTo(destination) {
146
- this.cleanup();
147
- const targetNode = NanosplashRepository.destinationToNode(destination);
148
- const targetIsBody = targetNode === document.body;
154
+ this.cleanAndRestore();
155
+ this.destinationNode = NanosplashRepository.destinationToNode(destination);
156
+ this.replaceSplashInstancesHavingSameDestination(this.destinationNode);
157
+ const targetIsBody = this.destinationNode === document.body;
149
158
  if (targetIsBody) {
150
159
  this.moveWithFullscreenStrategy();
151
160
  } else {
152
161
  this.resetFullscreenAttributes();
153
- this.moveWithRegularStrategy(targetNode);
162
+ this.moveWithRegularStrategy(this.destinationNode);
154
163
  }
155
164
  this.assembleNSComponent();
156
165
  }
@@ -171,7 +180,7 @@ class SplashInstance {
171
180
  ].forEach((v) => v.remove());
172
181
  }
173
182
  delete() {
174
- this.cleanup();
183
+ this.cleanAndRestore();
175
184
  this.removeElementsFromDOM();
176
185
  this.nsInstance.delete(this);
177
186
  }
@@ -280,6 +289,10 @@ class Nanosplash {
280
289
  });
281
290
  }
282
291
  }
292
+ getSplashesWithDestinationNode(node) {
293
+ const fnSameDestinationNode = (v) => v.getDestination() === node;
294
+ return Array.from(this.instances.values()).filter(fnSameDestinationNode);
295
+ }
283
296
  }
284
297
  Nanosplash.APP_NAME = "Nanosplash";
285
298
  export { Nanosplash };
@@ -1 +1 @@
1
- var v=Object.defineProperty,b=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var w=(l,o,c)=>o in l?v(l,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[o]=c,S=(l,o)=>{for(var c in o||(o={}))y.call(o,c)&&w(l,c,o[c]);if(I)for(var c of I(o))C.call(o,c)&&w(l,c,o[c]);return l},p=(l,o)=>b(l,x(o));(function(){"use strict";const l=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const h of r.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&n(h)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}};var o="";function c(i){return document.querySelector(i)}function T(i,e,t=!1){i&&e&&(e.hasChildNodes()&&t?e.insertBefore(i,e.firstChild):e.appendChild(i))}const u=i=>document.createElement(i);function a(i,...e){i.classList.add(...e)}function E(i,e,t){i.setAttribute(e,t)}class f{static destinationToNode(e){if(typeof e=="string"){const t=c(e);if(!t)throw new Error(`No match with ${e}`);return t}else if(e instanceof Node)return e;throw new Error("Destination argument must string or Node")}static createContextualApiObject(e){const t={getId:()=>e.getId(),remove:()=>e.delete(),moveTo:n=>e.moveTo(n),getText:()=>e.getText(),setText:n=>e.setText(n),getImgSrc:()=>e.getImgSrc(),setImgSrc:n=>e.setImgSrc(n)};return p(S({},t),{inside:n=>(e.moveTo(n),t)})}}class d{constructor(e,t,n){var s;this.nsRootElement=u("div"),this.nsWrapperElement=u("div"),this.nsWindowElement=u("div"),this.nsContentElement=u("div"),this.nsImageElement=u("img"),this.nsTextElement=u("div"),this.id=Math.random().toString(36).substring(2),this.nsInstance=e,this.nsTextElement.innerText=t,this.imgSrc=n,this.nsImageElement.src=(s=this.imgSrc)!=null?s:"",this.nsImageElement.alt=g.APP_NAME,this.assembleNSComponent(),this.setImgSrc(n)}assignCSSClasses(){a(this.nsContentElement,"ns-container"),a(this.nsWrapperElement,"ns-blur"),a(this.nsImageElement,"ns-img"),a(this.nsTextElement,"ns-text"),a(this.nsWindowElement,"ns","ns-window"),a(this.nsRootElement,"ns-wrapper")}assembleElementStructure(){this.nsContentElement.append(this.nsImageElement,this.nsTextElement),this.nsWindowElement.append(this.nsContentElement),this.nsRootElement.append(this.nsWrapperElement,this.nsWindowElement)}assembleNSComponent(){this.nsRootElement.id=this.getId(),E(this.nsRootElement,"data-ctx","nanosplash"),this.assembleElementStructure(),this.assignCSSClasses()}getId(){return this.id}getText(){return this.nsTextElement.innerText}setText(e){return this.nsTextElement.innerText=e,this}getImgSrc(){return this.imgSrc}setImgSrc(e){return this.nsImageElement.src=e!=null?e:"",this.nsImageElement.style.display=e?"block":"none",this.assembleElementStructure(),this}cleanup(){const e=this.nsRootElement.parentElement;e&&this.restoreDOMStructure(e)}resetFullscreenAttributes(){E(this.nsRootElement,"style",""),this.nsRootElement.classList.remove("ns-fs")}moveWithRegularStrategy(e){const t=e.parentNode;t&&(this.restoreDOMStructure(t),t.replaceChild(this.nsRootElement,e),this.nsWrapperElement.appendChild(e))}moveWithFullscreenStrategy(){this.nsRootElement.classList.add("ns-fs"),T(this.nsRootElement,document.body,!0)}moveTo(e){this.cleanup();const t=f.destinationToNode(e);t===document.body?this.moveWithFullscreenStrategy():(this.resetFullscreenAttributes(),this.moveWithRegularStrategy(t)),this.assembleNSComponent()}forEachWrappedNode(e){Array.from(this.nsWrapperElement.childNodes).forEach(e)}restoreDOMStructure(e){this.forEachWrappedNode(t=>e.insertBefore(t,this.nsRootElement))}removeElementsFromDOM(){[this.nsTextElement,this.nsImageElement,this.nsContentElement,this.nsWrapperElement,this.nsWindowElement,this.nsRootElement].forEach(e=>e.remove())}delete(){this.cleanup(),this.removeElementsFromDOM(),this.nsInstance.delete(this)}}class m{static ensureInstance(e,t,n,s){var r;return e||(e=new d(t,n,s)),e.setText(n).setImgSrc((r=e.getImgSrc())!=null?r:s)}static createImgFunction(e,t){return n=>(t=m.ensureInstance(t,e,"",n),{show:m.createShowFunction(e,t),progress:m.createProgressFunction(e,t),while:m.createWhileFunction(e,t)})}static createShowFunction(e,t){return n=>(t=m.ensureInstance(t,e,n),e.instances.set(t.getId(),t),t.moveTo(document.body),f.createContextualApiObject(t))}static createProgressFunction(e,t){return(...n)=>(t=m.ensureInstance(t,e,""),t.moveTo(document.body),(async()=>{for(const[s,[r,h]]of n.entries())t.setText(h),await r;t.delete()})(),f.createContextualApiObject(t))}static createWhileFunction(e,t){return n=>(t=m.ensureInstance(t,e,""),{show(s){return e.instances.set(t.getId(),t),t.moveTo(document.body),t.setText(s),n.finally(()=>t.delete()),f.createContextualApiObject(t)}})}}class g{constructor(){this.instances=new Map}img(e){return m.createImgFunction(this,new d(this,"",e))(e)}show(e){return m.createShowFunction(this,new d(this,e))(e)}progress(...e){return m.createProgressFunction(this,new d(this,""))(...e)}while(e){return m.createWhileFunction(this,new d(this,""))(e)}fifoIterate(e){let t=0;const n=this.instances.entries();for(const[s,r]of n)if(!e(s,r,t++))break}delete(e){this.instances.delete(e.getId())}hideAll(){this.instances.forEach(e=>e.delete())}hide(e){if(e){const t=this.instances.get(e);if(t)t.delete();else throw new Error(`Could not find element with id: ${e}`)}else this.fifoIterate((t,n,s)=>{const r=s===0;return r&&n.delete(),r})}}g.APP_NAME="Nanosplash",window.addEventListener("load",()=>window.ns=new g)})();
1
+ var T=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var S=(a,o,c)=>o in a?T(a,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[o]=c,w=(a,o)=>{for(var c in o||(o={}))x.call(o,c)&&S(a,c,o[c]);if(I)for(var c of I(o))C.call(o,c)&&S(a,c,o[c]);return a},p=(a,o)=>b(a,y(o));(function(){"use strict";const a=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const h of i.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&n(h)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}};var o="";function c(r){return document.querySelector(r)}function v(r,e,t=!1){r&&e&&(e.hasChildNodes()&&t?e.insertBefore(r,e.firstChild):e.appendChild(r))}const m=r=>document.createElement(r);function d(r,...e){r.classList.add(...e)}function E(r,e,t){r.setAttribute(e,t)}class f{static destinationToNode(e){if(typeof e=="string"){const t=c(e);if(!t)throw new Error(`No match with ${e}`);return t}else if(e instanceof Node)return e;throw new Error("Destination argument must string or Node")}static createContextualApiObject(e){const t={getId:()=>e.getId(),remove:()=>e.delete(),moveTo:n=>e.moveTo(n),getText:()=>e.getText(),setText:n=>e.setText(n),getImgSrc:()=>e.getImgSrc(),setImgSrc:n=>e.setImgSrc(n)};return p(w({},t),{inside:n=>(e.moveTo(n),t)})}}class u{constructor(e,t,n){var s;this.nsRootElement=m("div"),this.nsTextElement=m("div"),this.nsWindowElement=m("div"),this.nsWrapperElement=m("div"),this.nsContentElement=m("div"),this.nsImageElement=m("img"),this.id=Math.random().toString(36).substring(2),this.nsInstance=e,this.nsTextElement.innerText=t,this.imgSrc=n,this.nsImageElement.src=(s=this.imgSrc)!=null?s:"",this.nsImageElement.alt=g.APP_NAME,this.assembleNSComponent(),this.setImgSrc(n)}assignCSSClasses(){d(this.nsContentElement,"ns-container"),d(this.nsWrapperElement,"ns-blur"),d(this.nsImageElement,"ns-img"),d(this.nsTextElement,"ns-text"),d(this.nsWindowElement,"ns","ns-window"),d(this.nsRootElement,"ns-wrapper")}assembleElementStructure(){this.nsContentElement.append(this.nsImageElement,this.nsTextElement),this.nsWindowElement.append(this.nsContentElement),this.nsRootElement.append(this.nsWrapperElement,this.nsWindowElement)}assembleNSComponent(){this.nsRootElement.id=this.getId(),E(this.nsRootElement,"data-ctx","nanosplash"),this.assembleElementStructure(),this.assignCSSClasses()}getId(){return this.id}getText(){return this.nsTextElement.innerText}setText(e){return this.nsTextElement.innerText=e,this}getImgSrc(){return this.imgSrc}setImgSrc(e){return this.nsImageElement.src=e!=null?e:"",this.nsImageElement.style.display=e?"block":"none",this.assembleElementStructure(),this}getDestination(){return this.destinationNode}cleanAndRestore(){const e=this.nsRootElement.parentElement;e&&this.restoreDOMStructure(e)}resetFullscreenAttributes(){E(this.nsRootElement,"style",""),this.nsRootElement.classList.remove("ns-fs")}moveWithRegularStrategy(e){const t=e.parentNode;t&&(this.restoreDOMStructure(t),t.replaceChild(this.nsRootElement,e),this.nsWrapperElement.appendChild(e))}moveWithFullscreenStrategy(){this.nsRootElement.classList.add("ns-fs"),v(this.nsRootElement,document.body,!0)}replaceSplashInstancesHavingSameDestination(e){const t=s=>s.getId()!==this.getId(),n=s=>s.delete();this.nsInstance.getSplashesWithDestinationNode(e).filter(t).forEach(n)}moveTo(e){this.cleanAndRestore(),this.destinationNode=f.destinationToNode(e),this.replaceSplashInstancesHavingSameDestination(this.destinationNode),this.destinationNode===document.body?this.moveWithFullscreenStrategy():(this.resetFullscreenAttributes(),this.moveWithRegularStrategy(this.destinationNode)),this.assembleNSComponent()}forEachWrappedNode(e){Array.from(this.nsWrapperElement.childNodes).forEach(e)}restoreDOMStructure(e){this.forEachWrappedNode(t=>e.insertBefore(t,this.nsRootElement))}removeElementsFromDOM(){[this.nsTextElement,this.nsImageElement,this.nsContentElement,this.nsWrapperElement,this.nsWindowElement,this.nsRootElement].forEach(e=>e.remove())}delete(){this.cleanAndRestore(),this.removeElementsFromDOM(),this.nsInstance.delete(this)}}class l{static ensureInstance(e,t,n,s){var i;return e||(e=new u(t,n,s)),e.setText(n).setImgSrc((i=e.getImgSrc())!=null?i:s)}static createImgFunction(e,t){return n=>(t=l.ensureInstance(t,e,"",n),{show:l.createShowFunction(e,t),progress:l.createProgressFunction(e,t),while:l.createWhileFunction(e,t)})}static createShowFunction(e,t){return n=>(t=l.ensureInstance(t,e,n),e.instances.set(t.getId(),t),t.moveTo(document.body),f.createContextualApiObject(t))}static createProgressFunction(e,t){return(...n)=>(t=l.ensureInstance(t,e,""),t.moveTo(document.body),(async()=>{for(const[s,[i,h]]of n.entries())t.setText(h),await i;t.delete()})(),f.createContextualApiObject(t))}static createWhileFunction(e,t){return n=>(t=l.ensureInstance(t,e,""),{show(s){return e.instances.set(t.getId(),t),t.moveTo(document.body),t.setText(s),n.finally(()=>t.delete()),f.createContextualApiObject(t)}})}}class g{constructor(){this.instances=new Map}img(e){return l.createImgFunction(this,new u(this,"",e))(e)}show(e){return l.createShowFunction(this,new u(this,e))(e)}progress(...e){return l.createProgressFunction(this,new u(this,""))(...e)}while(e){return l.createWhileFunction(this,new u(this,""))(e)}fifoIterate(e){let t=0;const n=this.instances.entries();for(const[s,i]of n)if(!e(s,i,t++))break}delete(e){this.instances.delete(e.getId())}hideAll(){this.instances.forEach(e=>e.delete())}hide(e){if(e){const t=this.instances.get(e);if(t)t.delete();else throw new Error(`Could not find element with id: ${e}`)}else this.fifoIterate((t,n,s)=>{const i=s===0;return i&&n.delete(),i})}getSplashesWithDestinationNode(e){const t=n=>n.getDestination()===e;return Array.from(this.instances.values()).filter(t)}}g.APP_NAME="Nanosplash",window.addEventListener("load",()=>window.ns=new g)})();
@@ -1 +1 @@
1
- window.searchData = JSON.parse("{\"kinds\":{\"2\":\"Module\",\"128\":\"Class\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\"},\"rows\":[{\"id\":0,\"kind\":2,\"name\":\"Core/Nanosplash\",\"url\":\"modules/Core_Nanosplash.html\",\"classes\":\"tsd-kind-module\"},{\"id\":1,\"kind\":128,\"name\":\"Nanosplash\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"Core/Nanosplash\"},{\"id\":2,\"kind\":1024,\"name\":\"APP_NAME\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#APP_NAME\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-static\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":3,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":4,\"kind\":1024,\"name\":\"instances\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#instances\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":5,\"kind\":2048,\"name\":\"img\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#img\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":6,\"kind\":2048,\"name\":\"show\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#show\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":7,\"kind\":2048,\"name\":\"progress\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#progress\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":8,\"kind\":2048,\"name\":\"while\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#while\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":9,\"kind\":2048,\"name\":\"delete\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#delete\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":10,\"kind\":2048,\"name\":\"hideAll\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#hideAll\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":11,\"kind\":2048,\"name\":\"hide\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#hide\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":12,\"kind\":2,\"name\":\"types\",\"url\":\"modules/types.html\",\"classes\":\"tsd-kind-module\"},{\"id\":13,\"kind\":4194304,\"name\":\"Destination\",\"url\":\"modules/types.html#Destination\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":14,\"kind\":4194304,\"name\":\"SplashJob\",\"url\":\"modules/types.html#SplashJob\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":15,\"kind\":4194304,\"name\":\"ShowFunction\",\"url\":\"modules/types.html#ShowFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":16,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ShowFunction.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ShowFunction\"},{\"id\":17,\"kind\":4194304,\"name\":\"ProgressFunction\",\"url\":\"modules/types.html#ProgressFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":18,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ProgressFunction.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ProgressFunction\"},{\"id\":19,\"kind\":4194304,\"name\":\"WhileFunction\",\"url\":\"modules/types.html#WhileFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":20,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#WhileFunction.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.WhileFunction\"},{\"id\":21,\"kind\":4194304,\"name\":\"StrategyObject\",\"url\":\"modules/types.html#StrategyObject\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":22,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#StrategyObject.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.StrategyObject\"},{\"id\":23,\"kind\":1024,\"name\":\"show\",\"url\":\"modules/types.html#StrategyObject.__type-5.show\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":24,\"kind\":1024,\"name\":\"progress\",\"url\":\"modules/types.html#StrategyObject.__type-5.progress\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":25,\"kind\":1024,\"name\":\"while\",\"url\":\"modules/types.html#StrategyObject.__type-5.while\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":26,\"kind\":4194304,\"name\":\"ImgFunction\",\"url\":\"modules/types.html#ImgFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":27,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ImgFunction.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ImgFunction\"},{\"id\":28,\"kind\":4194304,\"name\":\"InsideFunction\",\"url\":\"modules/types.html#InsideFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":29,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#InsideFunction.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.InsideFunction\"},{\"id\":30,\"kind\":4194304,\"name\":\"ContextualAPIObject\",\"url\":\"modules/types.html#ContextualAPIObject\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":31,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ContextualAPIObject.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ContextualAPIObject\"},{\"id\":32,\"kind\":2048,\"name\":\"getId\",\"url\":\"modules/types.html#ContextualAPIObject.__type.getId\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":33,\"kind\":1024,\"name\":\"inside\",\"url\":\"modules/types.html#ContextualAPIObject.__type.inside\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":34,\"kind\":2048,\"name\":\"remove\",\"url\":\"modules/types.html#ContextualAPIObject.__type.remove\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":35,\"kind\":2048,\"name\":\"moveTo\",\"url\":\"modules/types.html#ContextualAPIObject.__type.moveTo\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":36,\"kind\":2048,\"name\":\"getText\",\"url\":\"modules/types.html#ContextualAPIObject.__type.getText\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":37,\"kind\":2048,\"name\":\"setText\",\"url\":\"modules/types.html#ContextualAPIObject.__type.setText\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":38,\"kind\":2048,\"name\":\"getImgSrc\",\"url\":\"modules/types.html#ContextualAPIObject.__type.getImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":39,\"kind\":2048,\"name\":\"setImgSrc\",\"url\":\"modules/types.html#ContextualAPIObject.__type.setImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,27.973]],[\"parent/0\",[]],[\"name/1\",[1,33.081]],[\"parent/1\",[0,2.738]],[\"name/2\",[2,33.081]],[\"parent/2\",[3,1.333]],[\"name/3\",[4,33.081]],[\"parent/3\",[3,1.333]],[\"name/4\",[5,33.081]],[\"parent/4\",[3,1.333]],[\"name/5\",[6,33.081]],[\"parent/5\",[3,1.333]],[\"name/6\",[7,27.973]],[\"parent/6\",[3,1.333]],[\"name/7\",[8,27.973]],[\"parent/7\",[3,1.333]],[\"name/8\",[9,27.973]],[\"parent/8\",[3,1.333]],[\"name/9\",[10,33.081]],[\"parent/9\",[3,1.333]],[\"name/10\",[11,33.081]],[\"parent/10\",[3,1.333]],[\"name/11\",[12,33.081]],[\"parent/11\",[3,1.333]],[\"name/12\",[13,13.622]],[\"parent/12\",[]],[\"name/13\",[14,33.081]],[\"parent/13\",[13,1.333]],[\"name/14\",[15,33.081]],[\"parent/14\",[13,1.333]],[\"name/15\",[16,33.081]],[\"parent/15\",[13,1.333]],[\"name/16\",[17,16.987]],[\"parent/16\",[18,3.238]],[\"name/17\",[19,33.081]],[\"parent/17\",[13,1.333]],[\"name/18\",[17,16.987]],[\"parent/18\",[20,3.238]],[\"name/19\",[21,33.081]],[\"parent/19\",[13,1.333]],[\"name/20\",[17,16.987]],[\"parent/20\",[22,3.238]],[\"name/21\",[23,33.081]],[\"parent/21\",[13,1.333]],[\"name/22\",[17,16.987]],[\"parent/22\",[24,3.238]],[\"name/23\",[7,27.973]],[\"parent/23\",[25,2.409]],[\"name/24\",[8,27.973]],[\"parent/24\",[25,2.409]],[\"name/25\",[9,27.973]],[\"parent/25\",[25,2.409]],[\"name/26\",[26,33.081]],[\"parent/26\",[13,1.333]],[\"name/27\",[17,16.987]],[\"parent/27\",[27,3.238]],[\"name/28\",[28,33.081]],[\"parent/28\",[13,1.333]],[\"name/29\",[17,16.987]],[\"parent/29\",[29,3.238]],[\"name/30\",[30,33.081]],[\"parent/30\",[13,1.333]],[\"name/31\",[17,16.987]],[\"parent/31\",[31,3.238]],[\"name/32\",[32,33.081]],[\"parent/32\",[33,1.54]],[\"name/33\",[34,33.081]],[\"parent/33\",[33,1.54]],[\"name/34\",[35,33.081]],[\"parent/34\",[33,1.54]],[\"name/35\",[36,33.081]],[\"parent/35\",[33,1.54]],[\"name/36\",[37,33.081]],[\"parent/36\",[33,1.54]],[\"name/37\",[38,33.081]],[\"parent/37\",[33,1.54]],[\"name/38\",[39,33.081]],[\"parent/38\",[33,1.54]],[\"name/39\",[40,33.081]],[\"parent/39\",[33,1.54]]],\"invertedIndex\":[[\"__type\",{\"_index\":17,\"name\":{\"16\":{},\"18\":{},\"20\":{},\"22\":{},\"27\":{},\"29\":{},\"31\":{}},\"parent\":{}}],[\"app_name\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":4,\"name\":{\"3\":{}},\"parent\":{}}],[\"contextualapiobject\",{\"_index\":30,\"name\":{\"30\":{}},\"parent\":{}}],[\"core/nanosplash\",{\"_index\":0,\"name\":{\"0\":{}},\"parent\":{\"1\":{}}}],[\"core/nanosplash.nanosplash\",{\"_index\":3,\"name\":{},\"parent\":{\"2\":{},\"3\":{},\"4\":{},\"5\":{},\"6\":{},\"7\":{},\"8\":{},\"9\":{},\"10\":{},\"11\":{}}}],[\"delete\",{\"_index\":10,\"name\":{\"9\":{}},\"parent\":{}}],[\"destination\",{\"_index\":14,\"name\":{\"13\":{}},\"parent\":{}}],[\"getid\",{\"_index\":32,\"name\":{\"32\":{}},\"parent\":{}}],[\"getimgsrc\",{\"_index\":39,\"name\":{\"38\":{}},\"parent\":{}}],[\"gettext\",{\"_index\":37,\"name\":{\"36\":{}},\"parent\":{}}],[\"hide\",{\"_index\":12,\"name\":{\"11\":{}},\"parent\":{}}],[\"hideall\",{\"_index\":11,\"name\":{\"10\":{}},\"parent\":{}}],[\"img\",{\"_index\":6,\"name\":{\"5\":{}},\"parent\":{}}],[\"imgfunction\",{\"_index\":26,\"name\":{\"26\":{}},\"parent\":{}}],[\"inside\",{\"_index\":34,\"name\":{\"33\":{}},\"parent\":{}}],[\"insidefunction\",{\"_index\":28,\"name\":{\"28\":{}},\"parent\":{}}],[\"instances\",{\"_index\":5,\"name\":{\"4\":{}},\"parent\":{}}],[\"moveto\",{\"_index\":36,\"name\":{\"35\":{}},\"parent\":{}}],[\"nanosplash\",{\"_index\":1,\"name\":{\"1\":{}},\"parent\":{}}],[\"progress\",{\"_index\":8,\"name\":{\"7\":{},\"24\":{}},\"parent\":{}}],[\"progressfunction\",{\"_index\":19,\"name\":{\"17\":{}},\"parent\":{}}],[\"remove\",{\"_index\":35,\"name\":{\"34\":{}},\"parent\":{}}],[\"setimgsrc\",{\"_index\":40,\"name\":{\"39\":{}},\"parent\":{}}],[\"settext\",{\"_index\":38,\"name\":{\"37\":{}},\"parent\":{}}],[\"show\",{\"_index\":7,\"name\":{\"6\":{},\"23\":{}},\"parent\":{}}],[\"showfunction\",{\"_index\":16,\"name\":{\"15\":{}},\"parent\":{}}],[\"splashjob\",{\"_index\":15,\"name\":{\"14\":{}},\"parent\":{}}],[\"strategyobject\",{\"_index\":23,\"name\":{\"21\":{}},\"parent\":{}}],[\"types\",{\"_index\":13,\"name\":{\"12\":{}},\"parent\":{\"13\":{},\"14\":{},\"15\":{},\"17\":{},\"19\":{},\"21\":{},\"26\":{},\"28\":{},\"30\":{}}}],[\"types.contextualapiobject\",{\"_index\":31,\"name\":{},\"parent\":{\"31\":{}}}],[\"types.contextualapiobject.__type\",{\"_index\":33,\"name\":{},\"parent\":{\"32\":{},\"33\":{},\"34\":{},\"35\":{},\"36\":{},\"37\":{},\"38\":{},\"39\":{}}}],[\"types.imgfunction\",{\"_index\":27,\"name\":{},\"parent\":{\"27\":{}}}],[\"types.insidefunction\",{\"_index\":29,\"name\":{},\"parent\":{\"29\":{}}}],[\"types.progressfunction\",{\"_index\":20,\"name\":{},\"parent\":{\"18\":{}}}],[\"types.showfunction\",{\"_index\":18,\"name\":{},\"parent\":{\"16\":{}}}],[\"types.strategyobject\",{\"_index\":24,\"name\":{},\"parent\":{\"22\":{}}}],[\"types.strategyobject.__type\",{\"_index\":25,\"name\":{},\"parent\":{\"23\":{},\"24\":{},\"25\":{}}}],[\"types.whilefunction\",{\"_index\":22,\"name\":{},\"parent\":{\"20\":{}}}],[\"while\",{\"_index\":9,\"name\":{\"8\":{},\"25\":{}},\"parent\":{}}],[\"whilefunction\",{\"_index\":21,\"name\":{\"19\":{}},\"parent\":{}}]],\"pipeline\":[]}}");
1
+ window.searchData = JSON.parse("{\"kinds\":{\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\"},\"rows\":[{\"id\":0,\"kind\":4194304,\"name\":\"Destination\",\"url\":\"index.html#Destination\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":1,\"kind\":4194304,\"name\":\"SplashJob\",\"url\":\"index.html#SplashJob\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":2,\"kind\":4194304,\"name\":\"ShowFunction\",\"url\":\"index.html#ShowFunction\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":3,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#ShowFunction.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ShowFunction\"},{\"id\":4,\"kind\":4194304,\"name\":\"ProgressFunction\",\"url\":\"index.html#ProgressFunction\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":5,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#ProgressFunction.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ProgressFunction\"},{\"id\":6,\"kind\":4194304,\"name\":\"WhileFunction\",\"url\":\"index.html#WhileFunction\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":7,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#WhileFunction.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"WhileFunction\"},{\"id\":8,\"kind\":4194304,\"name\":\"StrategyObject\",\"url\":\"index.html#StrategyObject\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":9,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#StrategyObject.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"StrategyObject\"},{\"id\":10,\"kind\":1024,\"name\":\"show\",\"url\":\"index.html#StrategyObject.__type.show\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StrategyObject.__type\"},{\"id\":11,\"kind\":1024,\"name\":\"progress\",\"url\":\"index.html#StrategyObject.__type.progress\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StrategyObject.__type\"},{\"id\":12,\"kind\":1024,\"name\":\"while\",\"url\":\"index.html#StrategyObject.__type.while\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"StrategyObject.__type\"},{\"id\":13,\"kind\":4194304,\"name\":\"ImgFunction\",\"url\":\"index.html#ImgFunction\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":14,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#ImgFunction.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ImgFunction\"},{\"id\":15,\"kind\":4194304,\"name\":\"InsideFunction\",\"url\":\"index.html#InsideFunction\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":16,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#InsideFunction.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"InsideFunction\"},{\"id\":17,\"kind\":4194304,\"name\":\"ContextualAPIObject\",\"url\":\"index.html#ContextualAPIObject\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":18,\"kind\":65536,\"name\":\"__type\",\"url\":\"index.html#ContextualAPIObject.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ContextualAPIObject\"},{\"id\":19,\"kind\":2048,\"name\":\"getId\",\"url\":\"index.html#ContextualAPIObject.__type.getId\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":20,\"kind\":1024,\"name\":\"inside\",\"url\":\"index.html#ContextualAPIObject.__type.inside\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":21,\"kind\":2048,\"name\":\"remove\",\"url\":\"index.html#ContextualAPIObject.__type.remove\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":22,\"kind\":2048,\"name\":\"moveTo\",\"url\":\"index.html#ContextualAPIObject.__type.moveTo\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":23,\"kind\":2048,\"name\":\"getText\",\"url\":\"index.html#ContextualAPIObject.__type.getText\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":24,\"kind\":2048,\"name\":\"setText\",\"url\":\"index.html#ContextualAPIObject.__type.setText\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":25,\"kind\":2048,\"name\":\"getImgSrc\",\"url\":\"index.html#ContextualAPIObject.__type.getImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"},{\"id\":26,\"kind\":2048,\"name\":\"setImgSrc\",\"url\":\"index.html#ContextualAPIObject.__type.setImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"ContextualAPIObject.__type\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,29.267]],[\"parent/0\",[]],[\"name/1\",[1,29.267]],[\"parent/1\",[]],[\"name/2\",[2,24.159]],[\"parent/2\",[]],[\"name/3\",[3,13.173]],[\"parent/3\",[2,2.006]],[\"name/4\",[4,24.159]],[\"parent/4\",[]],[\"name/5\",[3,13.173]],[\"parent/5\",[4,2.006]],[\"name/6\",[5,24.159]],[\"parent/6\",[]],[\"name/7\",[3,13.173]],[\"parent/7\",[5,2.006]],[\"name/8\",[6,24.159]],[\"parent/8\",[]],[\"name/9\",[3,13.173]],[\"parent/9\",[6,2.006]],[\"name/10\",[7,29.267]],[\"parent/10\",[8,1.726]],[\"name/11\",[9,29.267]],[\"parent/11\",[8,1.726]],[\"name/12\",[10,29.267]],[\"parent/12\",[8,1.726]],[\"name/13\",[11,24.159]],[\"parent/13\",[]],[\"name/14\",[3,13.173]],[\"parent/14\",[11,2.006]],[\"name/15\",[12,24.159]],[\"parent/15\",[]],[\"name/16\",[3,13.173]],[\"parent/16\",[12,2.006]],[\"name/17\",[13,24.159]],[\"parent/17\",[]],[\"name/18\",[3,13.173]],[\"parent/18\",[13,2.006]],[\"name/19\",[14,29.267]],[\"parent/19\",[15,0.99]],[\"name/20\",[16,29.267]],[\"parent/20\",[15,0.99]],[\"name/21\",[17,29.267]],[\"parent/21\",[15,0.99]],[\"name/22\",[18,29.267]],[\"parent/22\",[15,0.99]],[\"name/23\",[19,29.267]],[\"parent/23\",[15,0.99]],[\"name/24\",[20,29.267]],[\"parent/24\",[15,0.99]],[\"name/25\",[21,29.267]],[\"parent/25\",[15,0.99]],[\"name/26\",[22,29.267]],[\"parent/26\",[15,0.99]]],\"invertedIndex\":[[\"__type\",{\"_index\":3,\"name\":{\"3\":{},\"5\":{},\"7\":{},\"9\":{},\"14\":{},\"16\":{},\"18\":{}},\"parent\":{}}],[\"contextualapiobject\",{\"_index\":13,\"name\":{\"17\":{}},\"parent\":{\"18\":{}}}],[\"contextualapiobject.__type\",{\"_index\":15,\"name\":{},\"parent\":{\"19\":{},\"20\":{},\"21\":{},\"22\":{},\"23\":{},\"24\":{},\"25\":{},\"26\":{}}}],[\"destination\",{\"_index\":0,\"name\":{\"0\":{}},\"parent\":{}}],[\"getid\",{\"_index\":14,\"name\":{\"19\":{}},\"parent\":{}}],[\"getimgsrc\",{\"_index\":21,\"name\":{\"25\":{}},\"parent\":{}}],[\"gettext\",{\"_index\":19,\"name\":{\"23\":{}},\"parent\":{}}],[\"imgfunction\",{\"_index\":11,\"name\":{\"13\":{}},\"parent\":{\"14\":{}}}],[\"inside\",{\"_index\":16,\"name\":{\"20\":{}},\"parent\":{}}],[\"insidefunction\",{\"_index\":12,\"name\":{\"15\":{}},\"parent\":{\"16\":{}}}],[\"moveto\",{\"_index\":18,\"name\":{\"22\":{}},\"parent\":{}}],[\"progress\",{\"_index\":9,\"name\":{\"11\":{}},\"parent\":{}}],[\"progressfunction\",{\"_index\":4,\"name\":{\"4\":{}},\"parent\":{\"5\":{}}}],[\"remove\",{\"_index\":17,\"name\":{\"21\":{}},\"parent\":{}}],[\"setimgsrc\",{\"_index\":22,\"name\":{\"26\":{}},\"parent\":{}}],[\"settext\",{\"_index\":20,\"name\":{\"24\":{}},\"parent\":{}}],[\"show\",{\"_index\":7,\"name\":{\"10\":{}},\"parent\":{}}],[\"showfunction\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{\"3\":{}}}],[\"splashjob\",{\"_index\":1,\"name\":{\"1\":{}},\"parent\":{}}],[\"strategyobject\",{\"_index\":6,\"name\":{\"8\":{}},\"parent\":{\"9\":{}}}],[\"strategyobject.__type\",{\"_index\":8,\"name\":{},\"parent\":{\"10\":{},\"11\":{},\"12\":{}}}],[\"while\",{\"_index\":10,\"name\":{\"12\":{}},\"parent\":{}}],[\"whilefunction\",{\"_index\":5,\"name\":{\"6\":{}},\"parent\":{\"7\":{}}}]],\"pipeline\":[]}}");
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>nanosplash</title><meta name="description" content="Documentation for nanosplash"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">nanosplash</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1> nanosplash </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Modules</h3><ul class="tsd-index-list"><li class="tsd-kind-module"><a href="modules/Core_Nanosplash.html" class="tsd-kind-icon">Core/<wbr/>Nanosplash</a></li><li class="tsd-kind-module"><a href="modules/types.html" class="tsd-kind-icon">types</a></li></ul></section></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="index.html">Modules</a></li><li class=" tsd-kind-module"><a href="modules/Core_Nanosplash.html">Core/<wbr/>Nanosplash</a></li><li class=" tsd-kind-module"><a href="modules/types.html">types</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
1
+ <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>nanosplash</title><meta name="description" content="Documentation for nanosplash"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">nanosplash</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>nanosplash </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias"><a href="index.html#ContextualAPIObject" class="tsd-kind-icon">ContextualAPIObject</a></li><li class="tsd-kind-type-alias"><a href="index.html#Destination" class="tsd-kind-icon">Destination</a></li><li class="tsd-kind-type-alias"><a href="index.html#ImgFunction" class="tsd-kind-icon">Img<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#InsideFunction" class="tsd-kind-icon">Inside<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#ProgressFunction" class="tsd-kind-icon">Progress<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#ShowFunction" class="tsd-kind-icon">Show<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#SplashJob" class="tsd-kind-icon">Splash<wbr/>Job</a></li><li class="tsd-kind-type-alias"><a href="index.html#StrategyObject" class="tsd-kind-icon">Strategy<wbr/>Object</a></li><li class="tsd-kind-type-alias"><a href="index.html#WhileFunction" class="tsd-kind-icon">While<wbr/>Function</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ContextualAPIObject" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ContextualAPIObject<a href="#ContextualAPIObject" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">ContextualAPIObject<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>inside<span class="tsd-signature-symbol">?: </span><a href="index.html#InsideFunction" class="tsd-signature-type" data-tsd-kind="Type alias">InsideFunction</a><span class="tsd-signature-symbol">; </span>getId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>getImgSrc<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>getText<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>moveTo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>remove<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>setImgSrc<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>setText<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L35">types.d.ts:35</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> inside<span class="tsd-signature-symbol">?: </span><a href="index.html#InsideFunction" class="tsd-signature-type" data-tsd-kind="Type alias">InsideFunction</a></h5></li><li class="tsd-parameter"><h5>get<wbr/>Id<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">get<wbr/>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L36">types.d.ts:36</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></li><li class="tsd-parameter"><h5>get<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">get<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L42">types.d.ts:42</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></li><li class="tsd-parameter"><h5>get<wbr/>Text<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">get<wbr/>Text<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L40">types.d.ts:40</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></li><li class="tsd-parameter"><h5>move<wbr/>To<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">move<wbr/>To<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L39">types.d.ts:39</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selector: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>remove<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">remove<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L38">types.d.ts:38</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>set<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">set<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L43">types.d.ts:43</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> src: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SplashInstance</span></h4></li></ul></li><li class="tsd-parameter"><h5>set<wbr/>Text<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">set<wbr/>Text<span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L41">types.d.ts:41</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>text: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SplashInstance</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="Destination" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Destination<a href="#Destination" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Destination<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L12">types.d.ts:12</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ImgFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Img<wbr/>Function<a href="#ImgFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Img<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><a href="index.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L33">types.d.ts:33</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="index.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>src: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="index.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="InsideFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Inside<wbr/>Function<a href="#InsideFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Inside<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ContextualAPIInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L34">types.d.ts:34</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selector: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ProgressFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Progress<wbr/>Function<a href="#ProgressFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Progress<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>[]<span class="tsd-signature-symbol">: </span><a href="index.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ContextualAPIInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L26">types.d.ts:26</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>[]<span class="tsd-signature-symbol">: </span><a href="index.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>[]: <a href="index.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ShowFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Show<wbr/>Function<a href="#ShowFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Show<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ContextualAPIInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L25">types.d.ts:25</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>text: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="SplashJob" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Splash<wbr/>Job<a href="#SplashJob" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Splash<wbr/>Job<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L13">types.d.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="StrategyObject" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Strategy<wbr/>Object<a href="#StrategyObject" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Strategy<wbr/>Object<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>progress<span class="tsd-signature-symbol">: </span><a href="index.html#ProgressFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ProgressFunction</a><span class="tsd-signature-symbol">; </span>show<span class="tsd-signature-symbol">: </span><a href="index.html#ShowFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ShowFunction</a><span class="tsd-signature-symbol">; </span>while<span class="tsd-signature-symbol">: </span><a href="index.html#WhileFunction" class="tsd-signature-type" data-tsd-kind="Type alias">WhileFunction</a><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L28">types.d.ts:28</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>progress<span class="tsd-signature-symbol">: </span><a href="index.html#ProgressFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ProgressFunction</a></h5></li><li class="tsd-parameter"><h5>show<span class="tsd-signature-symbol">: </span><a href="index.html#ShowFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ShowFunction</a></h5></li><li class="tsd-parameter"><h5>while<span class="tsd-signature-symbol">: </span><a href="index.html#WhileFunction" class="tsd-signature-type" data-tsd-kind="Type alias">WhileFunction</a></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="WhileFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">While<wbr/>Function<a href="#WhileFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">While<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>asyncTask<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ShowInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/d617de1/src/types.d.ts#L27">types.d.ts:27</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>asyncTask<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ShowInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>asyncTask: <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ShowInterface</span></h4></li></ul></li></ul></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="index.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-type-alias"><a href="index.html#ContextualAPIObject" class="tsd-kind-icon">ContextualAPIObject</a></li><li class="tsd-kind-type-alias"><a href="index.html#Destination" class="tsd-kind-icon">Destination</a></li><li class="tsd-kind-type-alias"><a href="index.html#ImgFunction" class="tsd-kind-icon">Img<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#InsideFunction" class="tsd-kind-icon">Inside<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#ProgressFunction" class="tsd-kind-icon">Progress<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#ShowFunction" class="tsd-kind-icon">Show<wbr/>Function</a></li><li class="tsd-kind-type-alias"><a href="index.html#SplashJob" class="tsd-kind-icon">Splash<wbr/>Job</a></li><li class="tsd-kind-type-alias"><a href="index.html#StrategyObject" class="tsd-kind-icon">Strategy<wbr/>Object</a></li><li class="tsd-kind-type-alias"><a href="index.html#WhileFunction" class="tsd-kind-icon">While<wbr/>Function</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nanosplash",
3
3
  "description": "The simple, 2KB loading screen",
4
- "version": "2.3.2",
4
+ "version": "2.3.3",
5
5
  "author": {
6
6
  "name": "Isak K. Hauge",
7
7
  "email": "isakhauge@gmail.com",
@@ -71,4 +71,10 @@ export class Nanosplash implements NanosplashInterface {
71
71
  })
72
72
  }
73
73
  }
74
+
75
+ public getSplashesWithDestinationNode(node: HTMLElement): SplashInstance[]
76
+ {
77
+ const fnSameDestinationNode = (v: SplashInstance) => v.getDestination() === node
78
+ return Array.from(this.instances.values()).filter(fnSameDestinationNode)
79
+ }
74
80
  }
@@ -1,19 +1,20 @@
1
1
  import {Destination} from "../types";
2
2
  import {Nanosplash} from "./Nanosplash";
3
3
  import {addClass, mk, move, setAttr} from "../utilities/dom";
4
- import {NanosplashRepository} from "../repositories/NanosplashRepository";
5
4
  import {IdentityInterface} from "../Interfaces/IdentityInterface";
5
+ import {NanosplashRepository} from "../repositories/NanosplashRepository";
6
6
 
7
7
  export class SplashInstance implements IdentityInterface {
8
8
  private readonly id: string
9
9
  private imgSrc: string | undefined
10
10
  private readonly nsInstance: Nanosplash
11
+ private destinationNode: HTMLElement | undefined
11
12
  private readonly nsRootElement: HTMLDivElement = mk('div') as HTMLDivElement
12
- private readonly nsWrapperElement: HTMLDivElement = mk('div') as HTMLDivElement
13
+ private readonly nsTextElement: HTMLDivElement = mk('div') as HTMLDivElement
13
14
  private readonly nsWindowElement: HTMLDivElement = mk('div') as HTMLDivElement
15
+ private readonly nsWrapperElement: HTMLDivElement = mk('div') as HTMLDivElement
14
16
  private readonly nsContentElement: HTMLDivElement = mk('div') as HTMLDivElement
15
17
  private readonly nsImageElement: HTMLImageElement = mk('img') as HTMLImageElement
16
- private readonly nsTextElement: HTMLDivElement = mk('div') as HTMLDivElement
17
18
 
18
19
  public constructor(ns: Nanosplash, text: string, imgSrc?: string) {
19
20
  this.id = Math.random().toString(36).substring(2)
@@ -80,7 +81,12 @@ export class SplashInstance implements IdentityInterface {
80
81
  return this
81
82
  }
82
83
 
83
- private cleanup(): void
84
+ public getDestination(): HTMLElement | undefined
85
+ {
86
+ return this.destinationNode
87
+ }
88
+
89
+ private cleanAndRestore(): void
84
90
  {
85
91
  const currentParent = this.nsRootElement.parentElement
86
92
  if (currentParent) {
@@ -110,17 +116,36 @@ export class SplashInstance implements IdentityInterface {
110
116
  move(this.nsRootElement, document.body, true)
111
117
  }
112
118
 
119
+ private replaceSplashInstancesHavingSameDestination(destinationNode: HTMLElement): void
120
+ {
121
+ const fnNotSameInstance = (v: SplashInstance) => v.getId() !== this.getId()
122
+ const fnDelete = (v: SplashInstance) => v.delete()
123
+ this.nsInstance.getSplashesWithDestinationNode(destinationNode).filter(fnNotSameInstance).forEach(fnDelete)
124
+ }
125
+
113
126
  public moveTo(destination: Destination): void
114
127
  {
115
- this.cleanup()
116
- const targetNode = NanosplashRepository.destinationToNode(destination)
117
- const targetIsBody = targetNode === document.body
128
+ // Clean up and restore previous location if any.
129
+ this.cleanAndRestore()
130
+
131
+ // Convert the destination into a DOM Node
132
+ this.destinationNode = NanosplashRepository.destinationToNode(destination)
133
+
134
+ // Replace splash instances having the same destination node
135
+ this.replaceSplashInstancesHavingSameDestination(this.destinationNode)
136
+
137
+ // Assess whether the destination node is the Document body or not
138
+ const targetIsBody = this.destinationNode === document.body
139
+
140
+
118
141
  if (targetIsBody) {
119
142
  this.moveWithFullscreenStrategy()
120
143
  } else {
121
144
  this.resetFullscreenAttributes()
122
- this.moveWithRegularStrategy(targetNode)
145
+ this.moveWithRegularStrategy(this.destinationNode)
123
146
  }
147
+
148
+ // Assemble the Nanosplash component
124
149
  this.assembleNSComponent()
125
150
  }
126
151
 
@@ -147,7 +172,7 @@ export class SplashInstance implements IdentityInterface {
147
172
  }
148
173
 
149
174
  public delete(): void {
150
- this.cleanup()
175
+ this.cleanAndRestore()
151
176
  this.removeElementsFromDOM()
152
177
  this.nsInstance.delete(this)
153
178
  }
@@ -17,7 +17,8 @@ export class NanosplashRepository {
17
17
  throw new Error('Destination argument must string or Node')
18
18
  }
19
19
 
20
- public static createContextualApiObject(splash: SplashInstance): ContextualAPIObject {
20
+ public static createContextualApiObject(splash: SplashInstance): ContextualAPIObject
21
+ {
21
22
  const ctx = {
22
23
  getId: () => splash.getId(),
23
24
  remove: () => splash.delete(),
package/src/types.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import {Nanosplash} from "./Core/Nanosplash";
2
- import {ShowInterface} from "./Interfaces/ShowInterface";
3
- import {InsideInterface} from "./Interfaces/InsideInterface";
4
2
  import {SplashInstance} from "./Core/SplashInstance";
3
+ import {ShowInterface} from "./Interfaces/ShowInterface";
5
4
  import {ContextualAPIInterface} from "./Interfaces/ContextualAPIInterface";
6
5
 
7
6
  declare global {
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Nanosplash | nanosplash</title><meta name="description" content="Documentation for nanosplash"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">nanosplash</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">nanosplash</a></li><li><a href="../modules/Core_Nanosplash.html">Core/Nanosplash</a></li><li><a href="Core_Nanosplash.Nanosplash.html">Nanosplash</a></li></ul><h1>Class Nanosplash </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Nanosplash</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">NanosplashInterface</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#instances" class="tsd-kind-icon">instances</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Core_Nanosplash.Nanosplash.html#APP_NAME" class="tsd-kind-icon">APP_<wbr/>NAME</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#delete" class="tsd-kind-icon">delete</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hide" class="tsd-kind-icon">hide</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hideAll" class="tsd-kind-icon">hide<wbr/>All</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#img" class="tsd-kind-icon">img</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#progress" class="tsd-kind-icon">progress</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#show" class="tsd-kind-icon">show</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#while" class="tsd-kind-icon">while</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Nanosplash<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Core_Nanosplash.Nanosplash.html" class="tsd-signature-type" data-tsd-kind="Class">Nanosplash</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L13">Core/Nanosplash.ts:13</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="Core_Nanosplash.Nanosplash.html" class="tsd-signature-type" data-tsd-kind="Class">Nanosplash</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="instances" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> instances<a href="#instances" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">instances<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">SplashInstance</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L11">Core/Nanosplash.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="APP_NAME" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> APP_<wbr/>NAME<a href="#APP_NAME" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">APP_<wbr/>NAME<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;Nanosplash&#39;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L10">Core/Nanosplash.ts:10</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="delete" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delete<a href="#delete" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">delete<span class="tsd-signature-symbol">(</span>splashInstance<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L43">Core/Nanosplash.ts:43</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>splashInstance: <span class="tsd-signature-type">SplashInstance</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="hide" class="tsd-anchor"></a><h3 class="tsd-anchor-link">hide<a href="#hide" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">hide<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L54">Core/Nanosplash.ts:54</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> id: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="hideAll" class="tsd-anchor"></a><h3 class="tsd-anchor-link">hide<wbr/>All<a href="#hideAll" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">hide<wbr/>All<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L47">Core/Nanosplash.ts:47</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="img" class="tsd-anchor"></a><h3 class="tsd-anchor-link">img<a href="#img" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">img<span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/types.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.img</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L17">Core/Nanosplash.ts:17</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>src: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="../modules/types.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="progress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">progress<a href="#progress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">progress<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>jobs<span class="tsd-signature-symbol">: </span><a href="../modules/types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.progress</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L25">Core/Nanosplash.ts:25</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>jobs: <a href="../modules/types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="show" class="tsd-anchor"></a><h3 class="tsd-anchor-link">show<a href="#show" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">show<span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.show</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L21">Core/Nanosplash.ts:21</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>text: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="while" class="tsd-anchor"></a><h3 class="tsd-anchor-link">while<a href="#while" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">while<span class="tsd-signature-symbol">(</span>asyncTask<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ShowInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Implementation of NanosplashInterface.while</p><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/Core/Nanosplash.ts#L29">Core/Nanosplash.ts:29</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>asyncTask: <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ShowInterface</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Modules</a></li><li class="current tsd-kind-module"><a href="../modules/Core_Nanosplash.html">Core/<wbr/>Nanosplash</a></li><li class=" tsd-kind-module"><a href="../modules/types.html">types</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-module"><a href="Core_Nanosplash.Nanosplash.html" class="tsd-kind-icon">Nanosplash</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#instances" class="tsd-kind-icon">instances</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Core_Nanosplash.Nanosplash.html#APP_NAME" class="tsd-kind-icon">APP_<wbr/>NAME</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#delete" class="tsd-kind-icon">delete</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hide" class="tsd-kind-icon">hide</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#hideAll" class="tsd-kind-icon">hide<wbr/>All</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#img" class="tsd-kind-icon">img</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#progress" class="tsd-kind-icon">progress</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#show" class="tsd-kind-icon">show</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Core_Nanosplash.Nanosplash.html#while" class="tsd-kind-icon">while</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Core/Nanosplash | nanosplash</title><meta name="description" content="Documentation for nanosplash"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">nanosplash</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">nanosplash</a></li><li><a href="Core_Nanosplash.html">Core/Nanosplash</a></li></ul><h1>Module Core/Nanosplash </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/Core_Nanosplash.Nanosplash.html" class="tsd-kind-icon">Nanosplash</a></li></ul></section></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Modules</a></li><li class="current tsd-kind-module"><a href="Core_Nanosplash.html">Core/<wbr/>Nanosplash</a></li><li class=" tsd-kind-module"><a href="types.html">types</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/Core_Nanosplash.Nanosplash.html" class="tsd-kind-icon">Nanosplash</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>types | nanosplash</title><meta name="description" content="Documentation for nanosplash"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">nanosplash</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">nanosplash</a></li><li><a href="types.html">types</a></li></ul><h1>Module types </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ContextualAPIObject" class="tsd-kind-icon">ContextualAPIObject</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#Destination" class="tsd-kind-icon">Destination</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ImgFunction" class="tsd-kind-icon">Img<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#InsideFunction" class="tsd-kind-icon">Inside<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ProgressFunction" class="tsd-kind-icon">Progress<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ShowFunction" class="tsd-kind-icon">Show<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#SplashJob" class="tsd-kind-icon">Splash<wbr/>Job</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#StrategyObject" class="tsd-kind-icon">Strategy<wbr/>Object</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#WhileFunction" class="tsd-kind-icon">While<wbr/>Function</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ContextualAPIObject" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ContextualAPIObject<a href="#ContextualAPIObject" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">ContextualAPIObject<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>inside<span class="tsd-signature-symbol">?: </span><a href="types.html#InsideFunction" class="tsd-signature-type" data-tsd-kind="Type alias">InsideFunction</a><span class="tsd-signature-symbol">; </span>getId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>getImgSrc<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>getText<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>moveTo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>remove<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>setImgSrc<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>setText<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L36">types.d.ts:36</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> inside<span class="tsd-signature-symbol">?: </span><a href="types.html#InsideFunction" class="tsd-signature-type" data-tsd-kind="Type alias">InsideFunction</a></h5></li><li class="tsd-parameter"><h5>get<wbr/>Id<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">get<wbr/>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L37">types.d.ts:37</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></li><li class="tsd-parameter"><h5>get<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">get<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L43">types.d.ts:43</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></li><li class="tsd-parameter"><h5>get<wbr/>Text<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">get<wbr/>Text<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L41">types.d.ts:41</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></li><li class="tsd-parameter"><h5>move<wbr/>To<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">move<wbr/>To<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L40">types.d.ts:40</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selector: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>remove<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">remove<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L39">types.d.ts:39</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>set<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">set<wbr/>Img<wbr/>Src<span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L44">types.d.ts:44</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> src: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SplashInstance</span></h4></li></ul></li><li class="tsd-parameter"><h5>set<wbr/>Text<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">set<wbr/>Text<span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SplashInstance</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L42">types.d.ts:42</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>text: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">SplashInstance</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="Destination" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Destination<a href="#Destination" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Destination<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L13">types.d.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ImgFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Img<wbr/>Function<a href="#ImgFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Img<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><a href="types.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L34">types.d.ts:34</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>src<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="types.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>src: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="types.html#StrategyObject" class="tsd-signature-type" data-tsd-kind="Type alias">StrategyObject</a></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="InsideFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Inside<wbr/>Function<a href="#InsideFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Inside<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ContextualAPIInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L35">types.d.ts:35</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>selector: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ProgressFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Progress<wbr/>Function<a href="#ProgressFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Progress<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>[]<span class="tsd-signature-symbol">: </span><a href="types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ContextualAPIInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L27">types.d.ts:27</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>[]<span class="tsd-signature-symbol">: </span><a href="types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>[]: <a href="types.html#SplashJob" class="tsd-signature-type" data-tsd-kind="Type alias">SplashJob</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ShowFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Show<wbr/>Function<a href="#ShowFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Show<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ContextualAPIInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L26">types.d.ts:26</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>text<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ContextualAPIInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>text: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ContextualAPIInterface</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="SplashJob" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Splash<wbr/>Job<a href="#SplashJob" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Splash<wbr/>Job<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L14">types.d.ts:14</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="StrategyObject" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Strategy<wbr/>Object<a href="#StrategyObject" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Strategy<wbr/>Object<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>progress<span class="tsd-signature-symbol">: </span><a href="types.html#ProgressFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ProgressFunction</a><span class="tsd-signature-symbol">; </span>show<span class="tsd-signature-symbol">: </span><a href="types.html#ShowFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ShowFunction</a><span class="tsd-signature-symbol">; </span>while<span class="tsd-signature-symbol">: </span><a href="types.html#WhileFunction" class="tsd-signature-type" data-tsd-kind="Type alias">WhileFunction</a><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L29">types.d.ts:29</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>progress<span class="tsd-signature-symbol">: </span><a href="types.html#ProgressFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ProgressFunction</a></h5></li><li class="tsd-parameter"><h5>show<span class="tsd-signature-symbol">: </span><a href="types.html#ShowFunction" class="tsd-signature-type" data-tsd-kind="Type alias">ShowFunction</a></h5></li><li class="tsd-parameter"><h5>while<span class="tsd-signature-symbol">: </span><a href="types.html#WhileFunction" class="tsd-signature-type" data-tsd-kind="Type alias">WhileFunction</a></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="WhileFunction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">While<wbr/>Function<a href="#WhileFunction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">While<wbr/>Function<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>asyncTask<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">ShowInterface</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/isakhauge/nanosplash/blob/6f47d63/src/types.d.ts#L28">types.d.ts:28</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-alias"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>asyncTask<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ShowInterface</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>asyncTask: <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ShowInterface</span></h4></li></ul></li></ul></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Modules</a></li><li class=" tsd-kind-module"><a href="Core_Nanosplash.html">Core/<wbr/>Nanosplash</a></li><li class="current tsd-kind-module"><a href="types.html">types</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ContextualAPIObject" class="tsd-kind-icon">ContextualAPIObject</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#Destination" class="tsd-kind-icon">Destination</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ImgFunction" class="tsd-kind-icon">Img<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#InsideFunction" class="tsd-kind-icon">Inside<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ProgressFunction" class="tsd-kind-icon">Progress<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#ShowFunction" class="tsd-kind-icon">Show<wbr/>Function</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#SplashJob" class="tsd-kind-icon">Splash<wbr/>Job</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#StrategyObject" class="tsd-kind-icon">Strategy<wbr/>Object</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="types.html#WhileFunction" class="tsd-kind-icon">While<wbr/>Function</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>