nanosplash 2.4.0 → 2.5.0

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.
@@ -24,10 +24,13 @@ jobs:
24
24
  - uses: actions/checkout@v2
25
25
  with:
26
26
  fetch-depth: 0
27
-
27
+
28
28
  # Checkout branch
29
29
  - name: Checkout
30
- run: git checkout production
30
+ run: |
31
+ git checkout production
32
+ git fetch
33
+ git pull origin
31
34
 
32
35
  - name: Install npm packages
33
36
  run: yarn install
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  ## Import via CDN (recommended)
18
18
 
19
19
  ```html
20
- <script src="https://unpkg.com/nanosplash/dist/iife/nanosplash.iife.js">
20
+ <script src="https://unpkg.com/nanosplash/dist/iife/nanosplash.iife.js"></script>
21
21
  ```
22
22
  ```js
23
23
  // Install Nanosplash in the browser
@@ -1 +1 @@
1
- var t=Object.defineProperty,s=Object.defineProperties,e=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,h=(s,e,i)=>e in s?t(s,e,{t:!0,i:!0,writable:!0,value:i}):s[e]=i,o=document.createElement("style");o.innerHTML=".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:2em;max-height:9rem;width:9rem}.ns-text-container{align-items:center}.ns-text,.ns-text-container{display:flex;justify-content:center}.ns-text{color:#5a6685}.ns-spinner{display:flex;height:1em;margin-left:1em;width:1em}.ns-spinner>svg{stroke-width:8;-webkit-animation:Rotate 2s linear infinite;animation:Rotate 2s linear infinite;height:inherit;position:relative;width:inherit}.ns-spinner .path{stroke:#5a6685;stroke-linecap:round;-webkit-animation:Dash 1.5s ease-in-out infinite;animation:Dash 1.5s ease-in-out infinite}@-webkit-keyframes Rotate{to{transform:rotate(1turn)}}@keyframes Rotate{to{transform:rotate(1turn)}}@-webkit-keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}\n",document.head.appendChild(o),function(){const t=t=>document.createElement(t);function o(t,...s){t.classList.add(...s)}function a(t,s,e){t.setAttribute(s,e)}class c{static h(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 o(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={}))n.call(s,e)&&h(t,e,s[e]);if(i)for(var e of i(s))r.call(s,e)&&h(t,e,s[e]);return t})({},o),s(a,e({inside:s=>(t.moveTo(s),o)}));var a}static l(){const s=t("div");return o(s,"ns-spinner"),s.innerHTML='\n <svg viewBox="0 0 50 50">\n <circle class="path" cx="25" cy="25" r="20" fill="none"></circle>\n </svg>\n ',s}}class l{constructor(s,e,i){var n;this.u=t("div"),this.m=t("div"),this.g=t("div"),this.p=c.l(),this.v=t("div"),this.k=t("div"),this.S=t("div"),this.I=t("img"),this.id=Math.random().toString(36).substring(2),this.D=s,this.m.innerText=e,this.j=i,this.I.src=null!=(n=this.j)?n:"",this.I.alt=u.N,this.u.style.fontSize=s.fontSize,this.p.style.display=s.O?"flex":"none",this.A(),this.setImgSrc(i)}T(){o(this.S,"ns-container"),o(this.k,"ns-blur"),o(this.I,"ns-img"),o(this.m,"ns-text"),o(this.g,"ns-text-container"),o(this.p,"ns-spinner"),o(this.v,"ns","ns-window"),o(this.u,"ns-wrapper")}F(){this.g.append(this.m,this.p),this.S.append(this.I,this.g),this.v.append(this.S),this.u.append(this.k,this.v)}A(){this.u.id=this.getId(),a(this.u,"data-ctx","nanosplash"),this.F(),this.T()}getId(){return this.id}getText(){return this.m.innerText}setText(t){return this.m.innerText=t,this}getImgSrc(){return this.j}setImgSrc(t){return this.I.src=null!=t?t:"",this.I.style.display=t?"block":"none",this.F(),this}R(){return this.C}W(){const t=this.u.parentElement;t&&this.M(t)}$(){a(this.u,"style",""),this.u.classList.remove("ns-fs")}B(t){const s=t.parentNode;s&&(this.M(s),s.replaceChild(this.u,t),this.k.appendChild(t))}H(){this.u.classList.add("ns-fs"),((t,s,e=!1)=>{t&&s&&(s.hasChildNodes()&&e?s.insertBefore(t,s.firstChild):s.appendChild(t))})(this.u,document.body,!0)}P(t){this.D.q(t).filter((t=>t.getId()!==this.getId())).forEach((t=>t.delete()))}moveTo(t){this.W(),this.C=c.h(t),this.P(this.C),this.C===document.body?this.H():(this.$(),this.B(this.C)),this.A()}G(t){Array.from(this.k.childNodes).forEach(t)}M(t){this.G((s=>t.insertBefore(s,this.u)))}J(){[this.m,this.p,this.g,this.I,this.S,this.k,this.v,this.u].forEach((t=>t.remove()))}delete(){this.W(),this.J(),this.D.delete(this)}}class d{static K(t,s,e,i){var n;return t||(t=new l(s,e,i)),t.setText(e).setImgSrc(null!=(n=t.getImgSrc())?n:i)}static L(t,s){return e=>(s=d.K(s,t,e),t.U.set(s.getId(),s),s.moveTo(document.body),c.o(s))}static V(t,s){return(...e)=>((s=d.K(s,t,"")).moveTo(document.body),(async()=>{for(const[t,[i,n]]of e.entries())s.setText(n),await i;s.delete()})(),c.o(s))}static X(t,s){return e=>(s=d.K(s,t,""),{show:i=>(t.U.set(s.getId(),s),s.moveTo(document.body),s.setText(i),e.finally((()=>s.delete())),c.o(s))})}}class u{constructor(t){var s,e,i;this.j=null!=(s=null==t?void 0:t.j)?s:void 0,this.O=null!=(e=null==t?void 0:t.Y)&&e,this.fontSize=null!=(i=null==t?void 0:t.fontSize)?i:"18px",this.U=new Map}show(t){return d.L(this,new l(this,t,this.j))(t)}progress(...t){return d.V(this,new l(this,"",this.j))(...t)}while(t){return d.X(this,new l(this,"",this.j))(t)}Z(t){const s=this.U.size,e=Array.from(this.U.values());for(let i=s-1;i>=0;i--){console.log({size:s,_:s-1,tt:i});const n=e[i];if(!t(n.getId(),n,i))break}}delete(t){this.U.delete(t.getId())}hideAll(){this.U.forEach((t=>t.delete()))}hide(t){if(t){const s=this.U.get(t);if(!s)throw new Error(`Could not find element with id: ${t}`);s.delete()}else{const t=this.U.size;this.Z(((s,e,i)=>{const n=i===t-1;return n&&e.delete(),n}))}}q(t){return Array.from(this.U.values()).filter((s=>s.R()===t))}}u.N="Nanosplash",window.addEventListener("load",(()=>{window.Nanosplash=u,window.installNanosplash=t=>{window.ns=new u(t)}}))}();
1
+ var t=Object.defineProperty,s=Object.defineProperties,e=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,h=(s,e,i)=>e in s?t(s,e,{t:!0,i:!0,writable:!0,value:i}):s[e]=i,o=document.createElement("style");o.innerHTML=".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:2em;max-height:9rem;width:9rem}.ns-text-container{align-items:center}.ns-text,.ns-text-container{display:flex;justify-content:center}.ns-text{color:#5a6685}.ns-spinner{display:flex;height:1em;margin-left:1em;width:1em}.ns-spinner>svg{stroke-width:8;-webkit-animation:Rotate 2s linear infinite;animation:Rotate 2s linear infinite;height:inherit;position:relative;width:inherit}.ns-spinner .path{stroke:#5a6685;stroke-linecap:round;-webkit-animation:Dash 1.5s ease-in-out infinite;animation:Dash 1.5s ease-in-out infinite}@-webkit-keyframes Rotate{to{transform:rotate(1turn)}}@keyframes Rotate{to{transform:rotate(1turn)}}@-webkit-keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}\n",document.head.appendChild(o),function(){function t(t){return document.querySelector(t)}const o=t=>document.createElement(t);function a(t,...s){t.classList.add(...s)}function c(t,s,e){t.setAttribute(s,e)}class l{static h(s){if("string"==typeof s){const e=t(s);if(!e)throw new Error(`No match with ${s}`);return e}if(s instanceof Node)return s;throw new Error("Destination argument must string or Node")}static o(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={}))n.call(s,e)&&h(t,e,s[e]);if(i)for(var e of i(s))r.call(s,e)&&h(t,e,s[e]);return t})({},o),s(a,e({inside:s=>(t.moveTo(s),o)}));var a}static l(){const t=o("div");return a(t,"ns-spinner"),t.innerHTML='\n <svg viewBox="0 0 50 50">\n <circle class="path" cx="25" cy="25" r="20" fill="none"></circle>\n </svg>\n ',t}}class u{constructor(t,s,e){var i;this.u=o("div"),this.m=o("div"),this.g=o("div"),this.p=l.l(),this.v=o("div"),this.k=o("div"),this.S=o("div"),this.I=o("img"),this.id=Math.random().toString(36).substring(2),this.D=t,this.m.innerText=s,this.j=e,this.I.src=null!=(i=this.j)?i:"",this.I.alt=m.F,this.u.style.fontSize=t.N(),this.p.style.display=t.O()?"flex":"none",this.A(),this.setImgSrc(e)}T(){a(this.S,"ns-container"),a(this.k,"ns-blur"),a(this.I,"ns-img"),a(this.m,"ns-text"),a(this.g,"ns-text-container"),a(this.p,"ns-spinner"),a(this.v,"ns","ns-window"),a(this.u,"ns-wrapper")}R(){this.g.append(this.m,this.p),this.S.append(this.I,this.g),this.v.append(this.S),this.u.append(this.k,this.v)}A(){this.u.id=this.getId(),c(this.u,"data-ctx","nanosplash"),this.R(),this.T()}getId(){return this.id}getText(){return this.m.innerText}setText(t){return this.m.innerText=t,this}getImgSrc(){return this.j}setImgSrc(t){return this.I.src=null!=t?t:"",this.I.style.display=t?"block":"none",this.R(),this}C(){return this.M}W(){const t=this.u.parentElement;t&&this.B(t)}H(){c(this.u,"style",""),this.u.classList.remove("ns-fs")}P(t){const s=t.parentNode;s&&(this.B(s),s.replaceChild(this.u,t),this.k.appendChild(t))}V(){this.u.classList.add("ns-fs"),((t,s,e=!1)=>{t&&s&&(s.hasChildNodes()&&e?s.insertBefore(t,s.firstChild):s.appendChild(t))})(this.u,document.body,!0)}$(t){this.D.q(t).filter((t=>t.getId()!==this.getId())).forEach((t=>t.delete()))}moveTo(t){this.W(),this.M=l.h(t),this.$(this.M),this.M===document.body?this.V():(this.H(),this.P(this.M)),this.A()}G(t){Array.from(this.k.childNodes).forEach(t)}B(t){this.G((s=>t.insertBefore(s,this.u)))}J(){[this.m,this.p,this.g,this.I,this.S,this.k,this.v,this.u].forEach((t=>t.remove()))}delete(){this.W(),this.J(),this.D.delete(this)}}class d{static K(t,s,e,i){var n;return t||(t=new u(s,e,i)),t.setText(e).setImgSrc(null!=(n=t.getImgSrc())?n:i)}static L(t,s){return e=>(s=d.K(s,t,e),t.U.set(s.getId(),s),s.moveTo(document.body),l.o(s))}static X(t,s){return(...e)=>((s=d.K(s,t,"")).moveTo(document.body),(async()=>{for(const[t,[i,n]]of e.entries())s.setText(n),await i;s.delete()})(),l.o(s))}static Y(t,s){return e=>(s=d.K(s,t,""),{show:i=>(t.U.set(s.getId(),s),s.moveTo(document.body),s.setText(i),e.finally((()=>s.delete())),l.o(s))})}}const f=class{constructor(t){var s;this.j=null==t?void 0:t.j,this.Z=void 0===(null==t?void 0:t.Z)?f._:t.Z,this.fontSize=null!=(s=null==t?void 0:t.fontSize)?s:"18px",this.U=new Map}setImgSrc(t){return this.j=t,this}tt(t){return this.Z=t,this}st(t){return this.fontSize=t,this}getImgSrc(){return this.j}O(){return this.Z}N(){return this.fontSize}show(t){return d.L(this,new u(this,t,this.j))(t)}progress(...t){return d.X(this,new u(this,"",this.j))(...t)}while(t){return d.Y(this,new u(this,"",this.j))(t)}et(t){const s=this.U.size,e=Array.from(this.U.values());for(let i=s-1;i>=0;i--){const s=e[i];if(!t(s.getId(),s,i))break}}delete(t){this.U.delete(t.getId())}hideAll(){this.U.forEach((t=>t.delete()))}hide(s){if(s){const e=this.U.get(s);e?e.delete():Array.from(this.U.values()).filter((e=>e.C()===t(s))).forEach((t=>t.delete()))}else{const t=this.U.size;this.et(((s,e,i)=>{const n=i===t-1;return n&&e.delete(),n}))}}q(t){return Array.from(this.U.values()).filter((s=>s.C()===t))}};let m=f;m.F="Nanosplash",m._=!0,window.addEventListener("load",(()=>{window.Nanosplash=m,window.ns=new m}))}();
@@ -2,9 +2,6 @@
2
2
  "src/Core/Nanosplash.ts": {
3
3
  "file": "nanosplash.cjs.js",
4
4
  "src": "src/Core/Nanosplash.ts",
5
- "isEntry": true,
6
- "css": [
7
- "Nanosplash.css"
8
- ]
5
+ "isEntry": true
9
6
  }
10
7
  }
@@ -1 +1 @@
1
- var t=Object.defineProperty,s=Object.defineProperties,i=Object.getOwnPropertyDescriptors,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,r=(s,i,e)=>i in s?t(s,i,{t:!0,i:!0,writable:!0,value:e}):s[i]=e;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,i){t.setAttribute(s,i)}class l{static o(t){if("string"==typeof t){const i=(s=t,document.querySelector(s));if(!i)throw new Error(`No match with ${t}`);return i}if(t instanceof Node)return t;var s;throw new Error("Destination argument must string or Node")}static l(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 i in s||(s={}))n.call(s,i)&&r(t,i,s[i]);if(e)for(var i of e(s))h.call(s,i)&&r(t,i,s[i]);return t})({},o),s(c,i({inside:s=>(t.moveTo(s),o)}));var c}static u(){const t=o("div");return c(t,"ns-spinner"),t.innerHTML='\n <svg viewBox="0 0 50 50">\n <circle class="path" cx="25" cy="25" r="20" fill="none"></circle>\n </svg>\n ',t}}class u{constructor(t,s,i){var e;this.m=o("div"),this.v=o("div"),this.g=o("div"),this.p=l.u(),this.S=o("div"),this.I=o("div"),this.O=o("div"),this.N=o("img"),this.id=Math.random().toString(36).substring(2),this.j=t,this.v.innerText=s,this.A=i,this.N.src=null!=(e=this.A)?e:"",this.N.alt=m.T,this.m.style.fontSize=t.fontSize,this.p.style.display=t.D?"flex":"none",this.F(),this.setImgSrc(i)}M(){c(this.O,"ns-container"),c(this.I,"ns-blur"),c(this.N,"ns-img"),c(this.v,"ns-text"),c(this.g,"ns-text-container"),c(this.p,"ns-spinner"),c(this.S,"ns","ns-window"),c(this.m,"ns-wrapper")}C(){this.g.append(this.v,this.p),this.O.append(this.N,this.g),this.S.append(this.O),this.m.append(this.I,this.S)}F(){this.m.id=this.getId(),a(this.m,"data-ctx","nanosplash"),this.C(),this.M()}getId(){return this.id}getText(){return this.v.innerText}setText(t){return this.v.innerText=t,this}getImgSrc(){return this.A}setImgSrc(t){return this.N.src=null!=t?t:"",this.N.style.display=t?"block":"none",this.C(),this}W(){return this.k}R(){const t=this.m.parentElement;t&&this.$(t)}_(){a(this.m,"style",""),this.m.classList.remove("ns-fs")}B(t){const s=t.parentNode;s&&(this.$(s),s.replaceChild(this.m,t),this.I.appendChild(t))}H(){this.m.classList.add("ns-fs"),((t,s,i=!1)=>{t&&s&&(s.hasChildNodes()&&i?s.insertBefore(t,s.firstChild):s.appendChild(t))})(this.m,document.body,!0)}P(t){this.j.q(t).filter((t=>t.getId()!==this.getId())).forEach((t=>t.delete()))}moveTo(t){this.R(),this.k=l.o(t),this.P(this.k),this.k===document.body?this.H():(this._(),this.B(this.k)),this.F()}G(t){Array.from(this.I.childNodes).forEach(t)}$(t){this.G((s=>t.insertBefore(s,this.m)))}J(){[this.v,this.p,this.g,this.N,this.O,this.I,this.S,this.m].forEach((t=>t.remove()))}delete(){this.R(),this.J(),this.j.delete(this)}}class d{static K(t,s,i,e){var n;return t||(t=new u(s,i,e)),t.setText(i).setImgSrc(null!=(n=t.getImgSrc())?n:e)}static L(t,s){return i=>(s=d.K(s,t,i),t.U.set(s.getId(),s),s.moveTo(document.body),l.l(s))}static V(t,s){return(...i)=>((s=d.K(s,t,"")).moveTo(document.body),(async()=>{for(const[t,[e,n]]of i.entries())s.setText(n),await e;s.delete()})(),l.l(s))}static X(t,s){return i=>(s=d.K(s,t,""),{show:e=>(t.U.set(s.getId(),s),s.moveTo(document.body),s.setText(e),i.finally((()=>s.delete())),l.l(s))})}}class m{constructor(t){var s,i,e;this.A=null!=(s=null==t?void 0:t.A)?s:void 0,this.D=null!=(i=null==t?void 0:t.Y)&&i,this.fontSize=null!=(e=null==t?void 0:t.fontSize)?e:"18px",this.U=new Map}show(t){return d.L(this,new u(this,t,this.A))(t)}progress(...t){return d.V(this,new u(this,"",this.A))(...t)}while(t){return d.X(this,new u(this,"",this.A))(t)}Z(t){const s=this.U.size,i=Array.from(this.U.values());for(let e=s-1;e>=0;e--){console.log({size:s,tt:s-1,st:e});const n=i[e];if(!t(n.getId(),n,e))break}}delete(t){this.U.delete(t.getId())}hideAll(){this.U.forEach((t=>t.delete()))}hide(t){if(t){const s=this.U.get(t);if(!s)throw new Error(`Could not find element with id: ${t}`);s.delete()}else{const t=this.U.size;this.Z(((s,i,e)=>{const n=e===t-1;return n&&i.delete(),n}))}}q(t){return Array.from(this.U.values()).filter((s=>s.W()===t))}}m.T="Nanosplash",exports.Nanosplash=m;
1
+ var t=Object.defineProperty,s=Object.defineProperties,i=Object.getOwnPropertyDescriptors,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,h=(s,i,e)=>i in s?t(s,i,{t:!0,i:!0,writable:!0,value:e}):s[i]=e;function o(t){return document.querySelector(t)}const c=t=>document.createElement(t);function a(t,...s){t.classList.add(...s)}function u(t,s,i){t.setAttribute(s,i)}class l{static h(t){if("string"==typeof t){const s=o(t);if(!s)throw new Error(`No match with ${t}`);return s}if(t instanceof Node)return t;throw new Error("Destination argument must string or Node")}static o(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 i in s||(s={}))n.call(s,i)&&h(t,i,s[i]);if(e)for(var i of e(s))r.call(s,i)&&h(t,i,s[i]);return t})({},o),s(c,i({inside:s=>(t.moveTo(s),o)}));var c}static u(){const t=c("div");return a(t,"ns-spinner"),t.innerHTML='\n <svg viewBox="0 0 50 50">\n <circle class="path" cx="25" cy="25" r="20" fill="none"></circle>\n </svg>\n ',t}}class SplashInstance{constructor(t,s,i){var e;this.l=c("div"),this.m=c("div"),this.g=c("div"),this.v=l.u(),this.p=c("div"),this.S=c("div"),this.I=c("div"),this.F=c("img"),this.id=Math.random().toString(36).substring(2),this.N=t,this.m.innerText=s,this.O=i,this.F.src=null!=(e=this.O)?e:"",this.F.alt=Nanosplash.A,this.l.style.fontSize=t.getFontSize(),this.v.style.display=t.spinnerIsVisible()?"flex":"none",this.j(),this.setImgSrc(i)}T(){a(this.I,"ns-container"),a(this.S,"ns-blur"),a(this.F,"ns-img"),a(this.m,"ns-text"),a(this.g,"ns-text-container"),a(this.v,"ns-spinner"),a(this.p,"ns","ns-window"),a(this.l,"ns-wrapper")}D(){this.g.append(this.m,this.v),this.I.append(this.F,this.g),this.p.append(this.I),this.l.append(this.S,this.p)}j(){this.l.id=this.getId(),u(this.l,"data-ctx","nanosplash"),this.D(),this.T()}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.F.src=null!=t?t:"",this.F.style.display=t?"block":"none",this.D(),this}getDestination(){return this.C}M(){const t=this.l.parentElement;t&&this.W(t)}k(){u(this.l,"style",""),this.l.classList.remove("ns-fs")}R(t){const s=t.parentNode;s&&(this.W(s),s.replaceChild(this.l,t),this.S.appendChild(t))}B(){this.l.classList.add("ns-fs"),((t,s,i=!1)=>{t&&s&&(s.hasChildNodes()&&i?s.insertBefore(t,s.firstChild):s.appendChild(t))})(this.l,document.body,!0)}H(t){this.N.getFromDestinationNode(t).filter((t=>t.getId()!==this.getId())).forEach((t=>t.delete()))}moveTo(t){this.M(),this.C=l.h(t),this.H(this.C),this.C===document.body?this.B():(this.k(),this.R(this.C)),this.j()}P(t){Array.from(this.S.childNodes).forEach(t)}W(t){this.P((s=>t.insertBefore(s,this.l)))}V(){[this.m,this.v,this.g,this.F,this.I,this.S,this.p,this.l].forEach((t=>t.remove()))}delete(){this.M(),this.V(),this.N.delete(this)}}class d{static $(t,s,i,e){var n;return t||(t=new SplashInstance(s,i,e)),t.setText(i).setImgSrc(null!=(n=t.getImgSrc())?n:e)}static q(t,s){return i=>(s=d.$(s,t,i),t.G.set(s.getId(),s),s.moveTo(document.body),l.o(s))}static J(t,s){return(...i)=>((s=d.$(s,t,"")).moveTo(document.body),(async()=>{for(const[t,[e,n]]of i.entries())s.setText(n),await e;s.delete()})(),l.o(s))}static K(t,s){return i=>(s=d.$(s,t,""),{show:e=>(t.G.set(s.getId(),s),s.moveTo(document.body),s.setText(e),i.finally((()=>s.delete())),l.o(s))})}}const m=class{constructor(t){var s;this.O=null==t?void 0:t.O,this.L=void 0===(null==t?void 0:t.L)?m.U:t.L,this.fontSize=null!=(s=null==t?void 0:t.fontSize)?s:"18px",this.G=new Map}setImgSrc(t){return this.O=t,this}showSpinner(t){return this.L=t,this}setFontSize(t){return this.fontSize=t,this}getImgSrc(){return this.O}spinnerIsVisible(){return this.L}getFontSize(){return this.fontSize}show(t){return d.q(this,new SplashInstance(this,t,this.O))(t)}progress(...t){return d.J(this,new SplashInstance(this,"",this.O))(...t)}while(t){return d.K(this,new SplashInstance(this,"",this.O))(t)}X(t){const s=this.G.size,i=Array.from(this.G.values());for(let e=s-1;e>=0;e--){const s=i[e];if(!t(s.getId(),s,e))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);s?s.delete():Array.from(this.G.values()).filter((s=>s.getDestination()===o(t))).forEach((t=>t.delete()))}else{const t=this.G.size;this.X(((s,i,e)=>{const n=e===t-1;return n&&i.delete(),n}))}}getFromDestinationNode(t){return Array.from(this.G.values()).filter((s=>s.getDestination()===t))}};let Nanosplash=m;Nanosplash.A="Nanosplash",Nanosplash.U=!0,module.exports=Nanosplash;
@@ -91,8 +91,8 @@ class SplashInstance {
91
91
  this.imgSrc = imgSrc;
92
92
  this.nsImageElement.src = (_a = this.imgSrc) != null ? _a : "";
93
93
  this.nsImageElement.alt = Nanosplash.APP_NAME;
94
- this.nsRootElement.style.fontSize = ns.fontSize;
95
- this.nsSpinnerElement.style.display = ns.showSpinner ? "flex" : "none";
94
+ this.nsRootElement.style.fontSize = ns.getFontSize();
95
+ this.nsSpinnerElement.style.display = ns.spinnerIsVisible() ? "flex" : "none";
96
96
  this.assembleNSComponent();
97
97
  this.setImgSrc(imgSrc);
98
98
  }
@@ -165,7 +165,7 @@ class SplashInstance {
165
165
  replaceSplashInstancesHavingSameDestination(destinationNode) {
166
166
  const fnNotSameInstance = (v) => v.getId() !== this.getId();
167
167
  const fnDelete = (v) => v.delete();
168
- this.nsInstance.getSplashesWithDestinationNode(destinationNode).filter(fnNotSameInstance).forEach(fnDelete);
168
+ this.nsInstance.getFromDestinationNode(destinationNode).filter(fnNotSameInstance).forEach(fnDelete);
169
169
  }
170
170
  moveTo(destination) {
171
171
  this.cleanAndRestore();
@@ -249,14 +249,35 @@ class NanosplashFactory {
249
249
  };
250
250
  }
251
251
  }
252
- class Nanosplash {
252
+ const _Nanosplash = class {
253
253
  constructor(options) {
254
- var _a, _b, _c;
255
- this.imgSrc = (_a = options == null ? void 0 : options.imgSrc) != null ? _a : void 0;
256
- this.showSpinner = (_b = options == null ? void 0 : options.spinner) != null ? _b : false;
257
- this.fontSize = (_c = options == null ? void 0 : options.fontSize) != null ? _c : "18px";
254
+ var _a;
255
+ this.imgSrc = options == null ? void 0 : options.imgSrc;
256
+ this.spinner = (options == null ? void 0 : options.spinner) === void 0 ? _Nanosplash.SPINNER_DEFAULT_VISIBILITY : options.spinner;
257
+ this.fontSize = (_a = options == null ? void 0 : options.fontSize) != null ? _a : "18px";
258
258
  this.instances = /* @__PURE__ */ new Map();
259
259
  }
260
+ setImgSrc(value) {
261
+ this.imgSrc = value;
262
+ return this;
263
+ }
264
+ showSpinner(value) {
265
+ this.spinner = value;
266
+ return this;
267
+ }
268
+ setFontSize(value) {
269
+ this.fontSize = value;
270
+ return this;
271
+ }
272
+ getImgSrc() {
273
+ return this.imgSrc;
274
+ }
275
+ spinnerIsVisible() {
276
+ return this.spinner;
277
+ }
278
+ getFontSize() {
279
+ return this.fontSize;
280
+ }
260
281
  show(text) {
261
282
  return NanosplashFactory.createShowFunction(this, new SplashInstance(this, text, this.imgSrc))(text);
262
283
  }
@@ -270,11 +291,6 @@ class Nanosplash {
270
291
  const n = this.instances.size;
271
292
  const instances = Array.from(this.instances.values());
272
293
  for (let i = n - 1; i >= 0; i--) {
273
- console.log({
274
- size: n,
275
- lastIdx: n - 1,
276
- currentIdx: i
277
- });
278
294
  const instance = instances[i];
279
295
  const id = instance.getId();
280
296
  if (!callback(id, instance, i)) {
@@ -288,13 +304,15 @@ class Nanosplash {
288
304
  hideAll() {
289
305
  this.instances.forEach((instance) => instance.delete());
290
306
  }
291
- hide(id) {
292
- if (id) {
293
- const splashInstance = this.instances.get(id);
307
+ hide(idOrSelector) {
308
+ if (idOrSelector) {
309
+ const splashInstance = this.instances.get(idOrSelector);
294
310
  if (splashInstance) {
295
311
  splashInstance.delete();
296
312
  } else {
297
- throw new Error(`Could not find element with id: ${id}`);
313
+ Array.from(this.instances.values()).filter((splashInstance2) => {
314
+ return splashInstance2.getDestination() === get(idOrSelector);
315
+ }).forEach((splashInstance2) => splashInstance2.delete());
298
316
  }
299
317
  } else {
300
318
  const n = this.instances.size;
@@ -307,10 +325,12 @@ class Nanosplash {
307
325
  });
308
326
  }
309
327
  }
310
- getSplashesWithDestinationNode(node) {
328
+ getFromDestinationNode(node) {
311
329
  const fnSameDestinationNode = (v) => v.getDestination() === node;
312
330
  return Array.from(this.instances.values()).filter(fnSameDestinationNode);
313
331
  }
314
- }
332
+ };
333
+ let Nanosplash = _Nanosplash;
315
334
  Nanosplash.APP_NAME = "Nanosplash";
316
- export { Nanosplash };
335
+ Nanosplash.SPINNER_DEFAULT_VISIBILITY = true;
336
+ export { Nanosplash as default };
File without changes
package/docs/index.html CHANGED
@@ -17,6 +17,21 @@
17
17
  <div class="w-100 min-h-screen flex flex-col justify-center items-center">
18
18
  <div class="text-4xl text-slate-900 drop-shadow-lg">Nanosplash</div>
19
19
  <div class="text-pink-500 mt-3 font-mono text-sm">ns.show('text').inside('#id')</div>
20
+ <div class="flex gap-5">
21
+ <div
22
+ id="demo"
23
+ class="bg-pink-500 text-pink-200 p-3 cursor-pointer hover:text-white rounded-xl shadow-xl mt-8"
24
+ >
25
+ <i class="lni lni-play"></i>
26
+ Display demo
27
+ </div>
28
+ <a
29
+ href="#example"
30
+ class="bg-slate-500 text-slate-200 p-3 cursor-pointer hover:text-white rounded-xl shadow-xl mt-8"
31
+ >
32
+ Show examples
33
+ </a>
34
+ </div>
20
35
  <div class="flex flex-col space-y-2 my-10">
21
36
  <div class="flex space-x-2 justify-center">
22
37
  <img src="https://badgen.net/npm/v/nanosplash" />
@@ -40,9 +55,9 @@
40
55
  <a href="https://www.npmjs.com/package/nanosplash" target="_blank"><i class="lni lni-npm text-4xl hover:text-pink-500 px-5"></i></a>
41
56
  <a href="https://github.com/isakhauge/nanosplash" target="_blank"><i class="lni lni-github-original text-2xl hover:text-pink-500 px-5"></i></a>
42
57
  </div>
43
- <a class="mt-10 text-pink-300 hover:text-pink-500" href="/typedoc">API Reference Documentation</a>
58
+ <a class="mt-10 text-pink-300 hover:text-pink-500" href="https://rawcdn.githack.com/isakhauge/nanosplash/0a6cdef58b0e47c0cad911952b1a329df58d2c24/docs/typedoc/index.html">API Reference Documentation</a>
44
59
  </div>
45
- <div class="grid grid-cols-1 xl:grid-cols-2 gap-1">
60
+ <div id="example" class="grid grid-cols-1 xl:grid-cols-2 gap-1">
46
61
  <div id="a" class="p-20 bg-slate-100 flex flex-col items-center">
47
62
  <div class="text-xl mb-10">Give user progress feedback</div>
48
63
  <div class="text-white bg-slate-800 p-5 rounded-xl shadow-2xl font-mono text-sm break-all">
@@ -62,9 +77,7 @@
62
77
  <div id="c" class="p-20 bg-slate-100 flex flex-col items-center">
63
78
  <div class="text-xl mb-10">Display fullscreen</div>
64
79
  <div class="text-white bg-slate-800 p-5 rounded-xl shadow-2xl font-mono text-sm break-all">
65
- const splash = ns.show('Fullscreen text')<br>
66
- splash.moveTo('#myDiv')<br>
67
- splash.remove()
80
+ ns.show('Fullscreen text')
68
81
  </div>
69
82
  </div>
70
83
  <div id="d" class="p-20 bg-slate-100 flex flex-col items-center">
@@ -72,26 +85,43 @@
72
85
  <div class="text-white bg-slate-800 p-5 rounded-xl shadow-2xl font-mono text-sm break-all">
73
86
  ns.show('Loading component A').inside('#a')<br>
74
87
  ns.show('Loading component B').inside('#b')<br>
75
- ns.show('Loading component C').inside('#c')<br>
76
- <br><br>
77
- ns.hide() // Removes instances in a LIFO manner.<br>
78
- ns.hideAll() // Removes all instances.
88
+ ns.show('Loading component C').inside('#c')
89
+ </div>
90
+ </div>
91
+ <div id="e" class="p-20 bg-slate-100 flex flex-col items-center">
92
+ <div class="text-xl mb-10">Move splash instance to another destination</div>
93
+ <div class="text-white bg-slate-800 p-5 rounded-xl shadow-2xl font-mono text-sm break-all">
94
+ const splash = ns.show('Loading').inside('#a')<br>
95
+ splash.moveTo('#b')
96
+ </div>
97
+ </div>
98
+ <div id="f" class="p-20 bg-slate-100 flex flex-col items-center">
99
+ <div class="text-xl mb-10">Hide splash instances</div>
100
+ <div class="text-white bg-slate-800 p-5 rounded-xl shadow-2xl font-mono text-sm break-all">
101
+ // Hides one instance at a time, in a LIFO-fashion.<br>
102
+ ns.hide()<br><br>
103
+ // Hides all instances.<br>
104
+ ns.hideAll()
79
105
  </div>
80
106
  </div>
81
107
  </div>
82
108
  <footer>
83
109
 
84
110
  <script>
111
+ document.getElementById('demo').onclick = function () {
112
+ const wait = ms => new Promise(r => setTimeout(r, ms))
113
+ window.ns.progress(
114
+ [wait(2000), 'Loading data from API'],
115
+ [wait(4000), 'Restructuring'],
116
+ [wait(6000), 'Indexing'],
117
+ [wait(8000), 'Give this repo a star']
118
+ )
119
+ }
85
120
  document.getElementById('copy').onclick = function () {
86
121
  const text = document.querySelector('[data-copy]').innerText
87
122
  navigator.clipboard.writeText(text)
88
123
  alert('Copied to clipboard!')
89
124
  }
90
- window.onload = () => {
91
- setTimeout(() => {
92
- window.installNanosplash({spinner: true})
93
- }, 100)
94
- }
95
125
  </script>
96
126
  </footer>
97
127
  <style>body{min-height:100vh}</style>
@@ -1,6 +1,6 @@
1
- var I=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var S=(l,o,a)=>o in l?I(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,w=(l,o)=>{for(var a in o||(o={}))T.call(o,a)&&S(l,a,o[a]);if(p)for(var a of p(o))N.call(o,a)&&S(l,a,o[a]);return l},y=(l,o)=>v(l,b(o));(function(){"use strict";const l=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerpolicy&&(i.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?i.credentials="include":n.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}};var o=(()=>`.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:2em;max-height:9rem;width:9rem}.ns-text-container{align-items:center}.ns-text,.ns-text-container{display:flex;justify-content:center}.ns-text{color:#5a6685}.ns-spinner{display:flex;height:1em;margin-left:1em;width:1em}.ns-spinner>svg{stroke-width:8;-webkit-animation:Rotate 2s linear infinite;animation:Rotate 2s linear infinite;height:inherit;position:relative;width:inherit}.ns-spinner .path{stroke:#5a6685;stroke-linecap:round;-webkit-animation:Dash 1.5s ease-in-out infinite;animation:Dash 1.5s ease-in-out infinite}@-webkit-keyframes Rotate{to{transform:rotate(1turn)}}@keyframes Rotate{to{transform:rotate(1turn)}}@-webkit-keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
2
- `)();function a(r){return document.querySelector(r)}function x(r,e,t=!1){r&&e&&(e.hasChildNodes()&&t?e.insertBefore(r,e.firstChild):e.appendChild(r))}const m=r=>document.createElement(r);function h(r,...e){r.classList.add(...e)}function E(r,e,t){r.setAttribute(e,t)}class u{static destinationToNode(e){if(typeof e=="string"){const t=a(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:s=>e.moveTo(s),getText:()=>e.getText(),setText:s=>e.setText(s),getImgSrc:()=>e.getImgSrc(),setImgSrc:s=>e.setImgSrc(s)};return y(w({},t),{inside:s=>(e.moveTo(s),t)})}static createNanosplashSpinnerElement(){const e=m("div");return h(e,"ns-spinner"),e.innerHTML=`
1
+ var v=Object.defineProperty,b=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var I=(l,o,a)=>o in l?v(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,y=(l,o)=>{for(var a in o||(o={}))N.call(o,a)&&I(l,a,o[a]);if(S)for(var a of S(o))k.call(o,a)&&I(l,a,o[a]);return l},w=(l,o)=>b(l,T(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"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const f of r.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).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 i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}};var o=(()=>`.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:2em;max-height:9rem;width:9rem}.ns-text-container{align-items:center}.ns-text,.ns-text-container{display:flex;justify-content:center}.ns-text{color:#5a6685}.ns-spinner{display:flex;height:1em;margin-left:1em;width:1em}.ns-spinner>svg{stroke-width:8;-webkit-animation:Rotate 2s linear infinite;animation:Rotate 2s linear infinite;height:inherit;position:relative;width:inherit}.ns-spinner .path{stroke:#5a6685;stroke-linecap:round;-webkit-animation:Dash 1.5s ease-in-out infinite;animation:Dash 1.5s ease-in-out infinite}@-webkit-keyframes Rotate{to{transform:rotate(1turn)}}@keyframes Rotate{to{transform:rotate(1turn)}}@-webkit-keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes Dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
2
+ `)();function a(n){return document.querySelector(n)}function x(n,e,t=!1){n&&e&&(e.hasChildNodes()&&t?e.insertBefore(n,e.firstChild):e.appendChild(n))}const m=n=>document.createElement(n);function c(n,...e){n.classList.add(...e)}function E(n,e,t){n.setAttribute(e,t)}class d{static destinationToNode(e){if(typeof e=="string"){const t=a(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:i=>e.moveTo(i),getText:()=>e.getText(),setText:i=>e.setText(i),getImgSrc:()=>e.getImgSrc(),setImgSrc:i=>e.setImgSrc(i)};return w(y({},t),{inside:i=>(e.moveTo(i),t)})}static createNanosplashSpinnerElement(){const e=m("div");return c(e,"ns-spinner"),e.innerHTML=`
3
3
  <svg viewBox="0 0 50 50">
4
4
  <circle class="path" cx="25" cy="25" r="20" fill="none"></circle>
5
5
  </svg>
6
- `,e}}class f{constructor(e,t,s){var n;this.nsRootElement=m("div"),this.nsTextElement=m("div"),this.nsTextContainerElement=m("div"),this.nsSpinnerElement=u.createNanosplashSpinnerElement(),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=s,this.nsImageElement.src=(n=this.imgSrc)!=null?n:"",this.nsImageElement.alt=g.APP_NAME,this.nsRootElement.style.fontSize=e.fontSize,this.nsSpinnerElement.style.display=e.showSpinner?"flex":"none",this.assembleNSComponent(),this.setImgSrc(s)}assignCSSClasses(){h(this.nsContentElement,"ns-container"),h(this.nsWrapperElement,"ns-blur"),h(this.nsImageElement,"ns-img"),h(this.nsTextElement,"ns-text"),h(this.nsTextContainerElement,"ns-text-container"),h(this.nsSpinnerElement,"ns-spinner"),h(this.nsWindowElement,"ns","ns-window"),h(this.nsRootElement,"ns-wrapper")}assembleElementStructure(){this.nsTextContainerElement.append(this.nsTextElement,this.nsSpinnerElement),this.nsContentElement.append(this.nsImageElement,this.nsTextContainerElement),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"),x(this.nsRootElement,document.body,!0)}replaceSplashInstancesHavingSameDestination(e){const t=n=>n.getId()!==this.getId(),s=n=>n.delete();this.nsInstance.getSplashesWithDestinationNode(e).filter(t).forEach(s)}moveTo(e){this.cleanAndRestore(),this.destinationNode=u.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.nsSpinnerElement,this.nsTextContainerElement,this.nsImageElement,this.nsContentElement,this.nsWrapperElement,this.nsWindowElement,this.nsRootElement].forEach(e=>e.remove())}delete(){this.cleanAndRestore(),this.removeElementsFromDOM(),this.nsInstance.delete(this)}}class d{static ensureInstance(e,t,s,n){var i;return e||(e=new f(t,s,n)),e.setText(s).setImgSrc((i=e.getImgSrc())!=null?i:n)}static createShowFunction(e,t){return s=>(t=d.ensureInstance(t,e,s),e.instances.set(t.getId(),t),t.moveTo(document.body),u.createContextualApiObject(t))}static createProgressFunction(e,t){return(...s)=>(t=d.ensureInstance(t,e,""),t.moveTo(document.body),(async()=>{for(const[n,[i,c]]of s.entries())t.setText(c),await i;t.delete()})(),u.createContextualApiObject(t))}static createWhileFunction(e,t){return s=>(t=d.ensureInstance(t,e,""),{show(n){return e.instances.set(t.getId(),t),t.moveTo(document.body),t.setText(n),s.finally(()=>t.delete()),u.createContextualApiObject(t)}})}}class g{constructor(e){var t,s,n;this.imgSrc=(t=e==null?void 0:e.imgSrc)!=null?t:void 0,this.showSpinner=(s=e==null?void 0:e.spinner)!=null?s:!1,this.fontSize=(n=e==null?void 0:e.fontSize)!=null?n:"18px",this.instances=new Map}show(e){return d.createShowFunction(this,new f(this,e,this.imgSrc))(e)}progress(...e){return d.createProgressFunction(this,new f(this,"",this.imgSrc))(...e)}while(e){return d.createWhileFunction(this,new f(this,"",this.imgSrc))(e)}lifoIterate(e){const t=this.instances.size,s=Array.from(this.instances.values());for(let n=t-1;n>=0;n--){console.log({size:t,lastIdx:t-1,currentIdx:n});const i=s[n],c=i.getId();if(!e(c,i,n))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{const t=this.instances.size;this.lifoIterate((s,n,i)=>{const c=i===t-1;return c&&n.delete(),c})}}getSplashesWithDestinationNode(e){const t=s=>s.getDestination()===e;return Array.from(this.instances.values()).filter(t)}}g.APP_NAME="Nanosplash",window.addEventListener("load",()=>{window.Nanosplash=g,window.installNanosplash=r=>{window.ns=new g(r)}})})();
6
+ `,e}}class g{constructor(e,t,i){var s;this.nsRootElement=m("div"),this.nsTextElement=m("div"),this.nsTextContainerElement=m("div"),this.nsSpinnerElement=d.createNanosplashSpinnerElement(),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=i,this.nsImageElement.src=(s=this.imgSrc)!=null?s:"",this.nsImageElement.alt=u.APP_NAME,this.nsRootElement.style.fontSize=e.getFontSize(),this.nsSpinnerElement.style.display=e.spinnerIsVisible()?"flex":"none",this.assembleNSComponent(),this.setImgSrc(i)}assignCSSClasses(){c(this.nsContentElement,"ns-container"),c(this.nsWrapperElement,"ns-blur"),c(this.nsImageElement,"ns-img"),c(this.nsTextElement,"ns-text"),c(this.nsTextContainerElement,"ns-text-container"),c(this.nsSpinnerElement,"ns-spinner"),c(this.nsWindowElement,"ns","ns-window"),c(this.nsRootElement,"ns-wrapper")}assembleElementStructure(){this.nsTextContainerElement.append(this.nsTextElement,this.nsSpinnerElement),this.nsContentElement.append(this.nsImageElement,this.nsTextContainerElement),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"),x(this.nsRootElement,document.body,!0)}replaceSplashInstancesHavingSameDestination(e){const t=s=>s.getId()!==this.getId(),i=s=>s.delete();this.nsInstance.getFromDestinationNode(e).filter(t).forEach(i)}moveTo(e){this.cleanAndRestore(),this.destinationNode=d.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.nsSpinnerElement,this.nsTextContainerElement,this.nsImageElement,this.nsContentElement,this.nsWrapperElement,this.nsWindowElement,this.nsRootElement].forEach(e=>e.remove())}delete(){this.cleanAndRestore(),this.removeElementsFromDOM(),this.nsInstance.delete(this)}}class h{static ensureInstance(e,t,i,s){var r;return e||(e=new g(t,i,s)),e.setText(i).setImgSrc((r=e.getImgSrc())!=null?r:s)}static createShowFunction(e,t){return i=>(t=h.ensureInstance(t,e,i),e.instances.set(t.getId(),t),t.moveTo(document.body),d.createContextualApiObject(t))}static createProgressFunction(e,t){return(...i)=>(t=h.ensureInstance(t,e,""),t.moveTo(document.body),(async()=>{for(const[s,[r,f]]of i.entries())t.setText(f),await r;t.delete()})(),d.createContextualApiObject(t))}static createWhileFunction(e,t){return i=>(t=h.ensureInstance(t,e,""),{show(s){return e.instances.set(t.getId(),t),t.moveTo(document.body),t.setText(s),i.finally(()=>t.delete()),d.createContextualApiObject(t)}})}}const p=class{constructor(n){var e;this.imgSrc=n==null?void 0:n.imgSrc,this.spinner=(n==null?void 0:n.spinner)===void 0?p.SPINNER_DEFAULT_VISIBILITY:n.spinner,this.fontSize=(e=n==null?void 0:n.fontSize)!=null?e:"18px",this.instances=new Map}setImgSrc(n){return this.imgSrc=n,this}showSpinner(n){return this.spinner=n,this}setFontSize(n){return this.fontSize=n,this}getImgSrc(){return this.imgSrc}spinnerIsVisible(){return this.spinner}getFontSize(){return this.fontSize}show(n){return h.createShowFunction(this,new g(this,n,this.imgSrc))(n)}progress(...n){return h.createProgressFunction(this,new g(this,"",this.imgSrc))(...n)}while(n){return h.createWhileFunction(this,new g(this,"",this.imgSrc))(n)}lifoIterate(n){const e=this.instances.size,t=Array.from(this.instances.values());for(let i=e-1;i>=0;i--){const s=t[i],r=s.getId();if(!n(r,s,i))break}}delete(n){this.instances.delete(n.getId())}hideAll(){this.instances.forEach(n=>n.delete())}hide(n){if(n){const e=this.instances.get(n);e?e.delete():Array.from(this.instances.values()).filter(t=>t.getDestination()===a(n)).forEach(t=>t.delete())}else{const e=this.instances.size;this.lifoIterate((t,i,s)=>{const r=s===e-1;return r&&i.delete(),r})}}getFromDestinationNode(n){const e=t=>t.getDestination()===n;return Array.from(this.instances.values()).filter(e)}};let u=p;u.APP_NAME="Nanosplash",u.SPINNER_DEFAULT_VISIBILITY=!0,window.addEventListener("load",()=>{window.Nanosplash=u,window.ns=new u})})();
@@ -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\":\"imgSrc\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#imgSrc\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":5,\"kind\":1024,\"name\":\"showSpinner\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#showSpinner\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":6,\"kind\":1024,\"name\":\"fontSize\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#fontSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":7,\"kind\":1024,\"name\":\"instances\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#instances\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":8,\"kind\":2048,\"name\":\"show\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#show\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":9,\"kind\":2048,\"name\":\"progress\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#progress\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":10,\"kind\":2048,\"name\":\"while\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#while\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":11,\"kind\":2048,\"name\":\"delete\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#delete\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":12,\"kind\":2048,\"name\":\"hideAll\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#hideAll\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":13,\"kind\":2048,\"name\":\"hide\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#hide\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":14,\"kind\":2048,\"name\":\"getSplashesWithDestinationNode\",\"url\":\"classes/Core_Nanosplash.Nanosplash.html#getSplashesWithDestinationNode\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.Nanosplash\"},{\"id\":15,\"kind\":2,\"name\":\"types\",\"url\":\"modules/types.html\",\"classes\":\"tsd-kind-module\"},{\"id\":16,\"kind\":4194304,\"name\":\"Destination\",\"url\":\"modules/types.html#Destination\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":17,\"kind\":4194304,\"name\":\"SplashJob\",\"url\":\"modules/types.html#SplashJob\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":18,\"kind\":4194304,\"name\":\"ShowFunction\",\"url\":\"modules/types.html#ShowFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":19,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ShowFunction.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ShowFunction\"},{\"id\":20,\"kind\":4194304,\"name\":\"ProgressFunction\",\"url\":\"modules/types.html#ProgressFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":21,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ProgressFunction.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ProgressFunction\"},{\"id\":22,\"kind\":4194304,\"name\":\"WhileFunction\",\"url\":\"modules/types.html#WhileFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":23,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#WhileFunction.__type-8\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.WhileFunction\"},{\"id\":24,\"kind\":4194304,\"name\":\"StrategyObject\",\"url\":\"modules/types.html#StrategyObject\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":25,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#StrategyObject.__type-7\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.StrategyObject\"},{\"id\":26,\"kind\":1024,\"name\":\"show\",\"url\":\"modules/types.html#StrategyObject.__type-7.show\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":27,\"kind\":1024,\"name\":\"progress\",\"url\":\"modules/types.html#StrategyObject.__type-7.progress\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":28,\"kind\":1024,\"name\":\"while\",\"url\":\"modules/types.html#StrategyObject.__type-7.while\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":29,\"kind\":4194304,\"name\":\"ImgFunction\",\"url\":\"modules/types.html#ImgFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":30,\"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\":31,\"kind\":4194304,\"name\":\"InsideFunction\",\"url\":\"modules/types.html#InsideFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":32,\"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\":33,\"kind\":4194304,\"name\":\"ContextualAPIObject\",\"url\":\"modules/types.html#ContextualAPIObject\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":34,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ContextualAPIObject.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ContextualAPIObject\"},{\"id\":35,\"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\":36,\"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\":37,\"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\":38,\"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\":39,\"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\":40,\"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\":41,\"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\":42,\"kind\":2048,\"name\":\"setImgSrc\",\"url\":\"modules/types.html#ContextualAPIObject.__type.setImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":43,\"kind\":4194304,\"name\":\"InstanceIterationCallback\",\"url\":\"modules/types.html#InstanceIterationCallback\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":44,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#InstanceIterationCallback.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.InstanceIterationCallback\"},{\"id\":45,\"kind\":4194304,\"name\":\"NanosplashOptions\",\"url\":\"modules/types.html#NanosplashOptions\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":46,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#NanosplashOptions.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.NanosplashOptions\"},{\"id\":47,\"kind\":1024,\"name\":\"imgSrc\",\"url\":\"modules/types.html#NanosplashOptions.__type-4.imgSrc\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.NanosplashOptions.__type\"},{\"id\":48,\"kind\":1024,\"name\":\"spinner\",\"url\":\"modules/types.html#NanosplashOptions.__type-4.spinner\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.NanosplashOptions.__type\"},{\"id\":49,\"kind\":1024,\"name\":\"fontSize\",\"url\":\"modules/types.html#NanosplashOptions.__type-4.fontSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.NanosplashOptions.__type\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,30.155]],[\"parent/0\",[]],[\"name/1\",[1,35.264]],[\"parent/1\",[0,2.965]],[\"name/2\",[2,35.264]],[\"parent/2\",[3,1.307]],[\"name/3\",[4,35.264]],[\"parent/3\",[3,1.307]],[\"name/4\",[5,30.155]],[\"parent/4\",[3,1.307]],[\"name/5\",[6,35.264]],[\"parent/5\",[3,1.307]],[\"name/6\",[7,30.155]],[\"parent/6\",[3,1.307]],[\"name/7\",[8,35.264]],[\"parent/7\",[3,1.307]],[\"name/8\",[9,30.155]],[\"parent/8\",[3,1.307]],[\"name/9\",[10,30.155]],[\"parent/9\",[3,1.307]],[\"name/10\",[11,30.155]],[\"parent/10\",[3,1.307]],[\"name/11\",[12,35.264]],[\"parent/11\",[3,1.307]],[\"name/12\",[13,35.264]],[\"parent/12\",[3,1.307]],[\"name/13\",[14,35.264]],[\"parent/13\",[3,1.307]],[\"name/14\",[15,35.264]],[\"parent/14\",[3,1.307]],[\"name/15\",[16,14.061]],[\"parent/15\",[]],[\"name/16\",[17,35.264]],[\"parent/16\",[16,1.383]],[\"name/17\",[18,35.264]],[\"parent/17\",[16,1.383]],[\"name/18\",[19,35.264]],[\"parent/18\",[16,1.383]],[\"name/19\",[20,16.805]],[\"parent/19\",[21,3.467]],[\"name/20\",[22,35.264]],[\"parent/20\",[16,1.383]],[\"name/21\",[20,16.805]],[\"parent/21\",[23,3.467]],[\"name/22\",[24,35.264]],[\"parent/22\",[16,1.383]],[\"name/23\",[20,16.805]],[\"parent/23\",[25,3.467]],[\"name/24\",[26,35.264]],[\"parent/24\",[16,1.383]],[\"name/25\",[20,16.805]],[\"parent/25\",[27,3.467]],[\"name/26\",[9,30.155]],[\"parent/26\",[28,2.634]],[\"name/27\",[10,30.155]],[\"parent/27\",[28,2.634]],[\"name/28\",[11,30.155]],[\"parent/28\",[28,2.634]],[\"name/29\",[29,35.264]],[\"parent/29\",[16,1.383]],[\"name/30\",[20,16.805]],[\"parent/30\",[30,3.467]],[\"name/31\",[31,35.264]],[\"parent/31\",[16,1.383]],[\"name/32\",[20,16.805]],[\"parent/32\",[32,3.467]],[\"name/33\",[33,35.264]],[\"parent/33\",[16,1.383]],[\"name/34\",[20,16.805]],[\"parent/34\",[34,3.467]],[\"name/35\",[35,35.264]],[\"parent/35\",[36,1.762]],[\"name/36\",[37,35.264]],[\"parent/36\",[36,1.762]],[\"name/37\",[38,35.264]],[\"parent/37\",[36,1.762]],[\"name/38\",[39,35.264]],[\"parent/38\",[36,1.762]],[\"name/39\",[40,35.264]],[\"parent/39\",[36,1.762]],[\"name/40\",[41,35.264]],[\"parent/40\",[36,1.762]],[\"name/41\",[42,35.264]],[\"parent/41\",[36,1.762]],[\"name/42\",[43,35.264]],[\"parent/42\",[36,1.762]],[\"name/43\",[44,35.264]],[\"parent/43\",[16,1.383]],[\"name/44\",[20,16.805]],[\"parent/44\",[45,3.467]],[\"name/45\",[46,35.264]],[\"parent/45\",[16,1.383]],[\"name/46\",[20,16.805]],[\"parent/46\",[47,3.467]],[\"name/47\",[5,30.155]],[\"parent/47\",[48,2.634]],[\"name/48\",[49,35.264]],[\"parent/48\",[48,2.634]],[\"name/49\",[7,30.155]],[\"parent/49\",[48,2.634]]],\"invertedIndex\":[[\"__type\",{\"_index\":20,\"name\":{\"19\":{},\"21\":{},\"23\":{},\"25\":{},\"30\":{},\"32\":{},\"34\":{},\"44\":{},\"46\":{}},\"parent\":{}}],[\"app_name\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":4,\"name\":{\"3\":{}},\"parent\":{}}],[\"contextualapiobject\",{\"_index\":33,\"name\":{\"33\":{}},\"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\":{},\"12\":{},\"13\":{},\"14\":{}}}],[\"delete\",{\"_index\":12,\"name\":{\"11\":{}},\"parent\":{}}],[\"destination\",{\"_index\":17,\"name\":{\"16\":{}},\"parent\":{}}],[\"fontsize\",{\"_index\":7,\"name\":{\"6\":{},\"49\":{}},\"parent\":{}}],[\"getid\",{\"_index\":35,\"name\":{\"35\":{}},\"parent\":{}}],[\"getimgsrc\",{\"_index\":42,\"name\":{\"41\":{}},\"parent\":{}}],[\"getsplasheswithdestinationnode\",{\"_index\":15,\"name\":{\"14\":{}},\"parent\":{}}],[\"gettext\",{\"_index\":40,\"name\":{\"39\":{}},\"parent\":{}}],[\"hide\",{\"_index\":14,\"name\":{\"13\":{}},\"parent\":{}}],[\"hideall\",{\"_index\":13,\"name\":{\"12\":{}},\"parent\":{}}],[\"imgfunction\",{\"_index\":29,\"name\":{\"29\":{}},\"parent\":{}}],[\"imgsrc\",{\"_index\":5,\"name\":{\"4\":{},\"47\":{}},\"parent\":{}}],[\"inside\",{\"_index\":37,\"name\":{\"36\":{}},\"parent\":{}}],[\"insidefunction\",{\"_index\":31,\"name\":{\"31\":{}},\"parent\":{}}],[\"instanceiterationcallback\",{\"_index\":44,\"name\":{\"43\":{}},\"parent\":{}}],[\"instances\",{\"_index\":8,\"name\":{\"7\":{}},\"parent\":{}}],[\"moveto\",{\"_index\":39,\"name\":{\"38\":{}},\"parent\":{}}],[\"nanosplash\",{\"_index\":1,\"name\":{\"1\":{}},\"parent\":{}}],[\"nanosplashoptions\",{\"_index\":46,\"name\":{\"45\":{}},\"parent\":{}}],[\"progress\",{\"_index\":10,\"name\":{\"9\":{},\"27\":{}},\"parent\":{}}],[\"progressfunction\",{\"_index\":22,\"name\":{\"20\":{}},\"parent\":{}}],[\"remove\",{\"_index\":38,\"name\":{\"37\":{}},\"parent\":{}}],[\"setimgsrc\",{\"_index\":43,\"name\":{\"42\":{}},\"parent\":{}}],[\"settext\",{\"_index\":41,\"name\":{\"40\":{}},\"parent\":{}}],[\"show\",{\"_index\":9,\"name\":{\"8\":{},\"26\":{}},\"parent\":{}}],[\"showfunction\",{\"_index\":19,\"name\":{\"18\":{}},\"parent\":{}}],[\"showspinner\",{\"_index\":6,\"name\":{\"5\":{}},\"parent\":{}}],[\"spinner\",{\"_index\":49,\"name\":{\"48\":{}},\"parent\":{}}],[\"splashjob\",{\"_index\":18,\"name\":{\"17\":{}},\"parent\":{}}],[\"strategyobject\",{\"_index\":26,\"name\":{\"24\":{}},\"parent\":{}}],[\"types\",{\"_index\":16,\"name\":{\"15\":{}},\"parent\":{\"16\":{},\"17\":{},\"18\":{},\"20\":{},\"22\":{},\"24\":{},\"29\":{},\"31\":{},\"33\":{},\"43\":{},\"45\":{}}}],[\"types.contextualapiobject\",{\"_index\":34,\"name\":{},\"parent\":{\"34\":{}}}],[\"types.contextualapiobject.__type\",{\"_index\":36,\"name\":{},\"parent\":{\"35\":{},\"36\":{},\"37\":{},\"38\":{},\"39\":{},\"40\":{},\"41\":{},\"42\":{}}}],[\"types.imgfunction\",{\"_index\":30,\"name\":{},\"parent\":{\"30\":{}}}],[\"types.insidefunction\",{\"_index\":32,\"name\":{},\"parent\":{\"32\":{}}}],[\"types.instanceiterationcallback\",{\"_index\":45,\"name\":{},\"parent\":{\"44\":{}}}],[\"types.nanosplashoptions\",{\"_index\":47,\"name\":{},\"parent\":{\"46\":{}}}],[\"types.nanosplashoptions.__type\",{\"_index\":48,\"name\":{},\"parent\":{\"47\":{},\"48\":{},\"49\":{}}}],[\"types.progressfunction\",{\"_index\":23,\"name\":{},\"parent\":{\"21\":{}}}],[\"types.showfunction\",{\"_index\":21,\"name\":{},\"parent\":{\"19\":{}}}],[\"types.strategyobject\",{\"_index\":27,\"name\":{},\"parent\":{\"25\":{}}}],[\"types.strategyobject.__type\",{\"_index\":28,\"name\":{},\"parent\":{\"26\":{},\"27\":{},\"28\":{}}}],[\"types.whilefunction\",{\"_index\":25,\"name\":{},\"parent\":{\"23\":{}}}],[\"while\",{\"_index\":11,\"name\":{\"10\":{},\"28\":{}},\"parent\":{}}],[\"whilefunction\",{\"_index\":24,\"name\":{\"22\":{}},\"parent\":{}}]],\"pipeline\":[]}}");
1
+ window.searchData = JSON.parse("{\"kinds\":{\"2\":\"Module\",\"128\":\"Class\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\",\"16777216\":\"Reference\"},\"rows\":[{\"id\":0,\"kind\":2,\"name\":\"Core/Nanosplash\",\"url\":\"modules/Core_Nanosplash.html\",\"classes\":\"tsd-kind-module\"},{\"id\":1,\"kind\":128,\"name\":\"default\",\"url\":\"classes/Core_Nanosplash.default.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"Core/Nanosplash\"},{\"id\":2,\"kind\":1024,\"name\":\"APP_NAME\",\"url\":\"classes/Core_Nanosplash.default.html#APP_NAME\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-static\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":3,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/Core_Nanosplash.default.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":4,\"kind\":1024,\"name\":\"instances\",\"url\":\"classes/Core_Nanosplash.default.html#instances\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":5,\"kind\":2048,\"name\":\"setImgSrc\",\"url\":\"classes/Core_Nanosplash.default.html#setImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":6,\"kind\":2048,\"name\":\"showSpinner\",\"url\":\"classes/Core_Nanosplash.default.html#showSpinner\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":7,\"kind\":2048,\"name\":\"setFontSize\",\"url\":\"classes/Core_Nanosplash.default.html#setFontSize\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":8,\"kind\":2048,\"name\":\"getImgSrc\",\"url\":\"classes/Core_Nanosplash.default.html#getImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":9,\"kind\":2048,\"name\":\"spinnerIsVisible\",\"url\":\"classes/Core_Nanosplash.default.html#spinnerIsVisible\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":10,\"kind\":2048,\"name\":\"getFontSize\",\"url\":\"classes/Core_Nanosplash.default.html#getFontSize\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":11,\"kind\":2048,\"name\":\"show\",\"url\":\"classes/Core_Nanosplash.default.html#show\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":12,\"kind\":2048,\"name\":\"progress\",\"url\":\"classes/Core_Nanosplash.default.html#progress\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":13,\"kind\":2048,\"name\":\"while\",\"url\":\"classes/Core_Nanosplash.default.html#while\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":14,\"kind\":2048,\"name\":\"delete\",\"url\":\"classes/Core_Nanosplash.default.html#delete\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":15,\"kind\":2048,\"name\":\"hideAll\",\"url\":\"classes/Core_Nanosplash.default.html#hideAll\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":16,\"kind\":2048,\"name\":\"hide\",\"url\":\"classes/Core_Nanosplash.default.html#hide\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":17,\"kind\":2048,\"name\":\"getFromDestinationNode\",\"url\":\"classes/Core_Nanosplash.default.html#getFromDestinationNode\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"Core/Nanosplash.default\"},{\"id\":18,\"kind\":2,\"name\":\"types\",\"url\":\"modules/types.html\",\"classes\":\"tsd-kind-module\"},{\"id\":19,\"kind\":4194304,\"name\":\"Destination\",\"url\":\"modules/types.html#Destination\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":20,\"kind\":4194304,\"name\":\"SplashJob\",\"url\":\"modules/types.html#SplashJob\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":21,\"kind\":4194304,\"name\":\"ShowFunction\",\"url\":\"modules/types.html#ShowFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":22,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ShowFunction.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ShowFunction\"},{\"id\":23,\"kind\":4194304,\"name\":\"ProgressFunction\",\"url\":\"modules/types.html#ProgressFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":24,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ProgressFunction.__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ProgressFunction\"},{\"id\":25,\"kind\":4194304,\"name\":\"WhileFunction\",\"url\":\"modules/types.html#WhileFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":26,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#WhileFunction.__type-7\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.WhileFunction\"},{\"id\":27,\"kind\":4194304,\"name\":\"StrategyObject\",\"url\":\"modules/types.html#StrategyObject\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":28,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#StrategyObject.__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.StrategyObject\"},{\"id\":29,\"kind\":1024,\"name\":\"show\",\"url\":\"modules/types.html#StrategyObject.__type-6.show\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":30,\"kind\":1024,\"name\":\"progress\",\"url\":\"modules/types.html#StrategyObject.__type-6.progress\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":31,\"kind\":1024,\"name\":\"while\",\"url\":\"modules/types.html#StrategyObject.__type-6.while\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.StrategyObject.__type\"},{\"id\":32,\"kind\":4194304,\"name\":\"InsideFunction\",\"url\":\"modules/types.html#InsideFunction\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":33,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#InsideFunction.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.InsideFunction\"},{\"id\":34,\"kind\":4194304,\"name\":\"ContextualAPIObject\",\"url\":\"modules/types.html#ContextualAPIObject\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":35,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#ContextualAPIObject.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.ContextualAPIObject\"},{\"id\":36,\"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\":37,\"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\":38,\"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\":39,\"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\":40,\"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\":41,\"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\":42,\"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\":43,\"kind\":2048,\"name\":\"setImgSrc\",\"url\":\"modules/types.html#ContextualAPIObject.__type.setImgSrc\",\"classes\":\"tsd-kind-method tsd-parent-kind-type-literal\",\"parent\":\"types.ContextualAPIObject.__type\"},{\"id\":44,\"kind\":4194304,\"name\":\"InstanceIterationCallback\",\"url\":\"modules/types.html#InstanceIterationCallback\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":45,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#InstanceIterationCallback.__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.InstanceIterationCallback\"},{\"id\":46,\"kind\":4194304,\"name\":\"NanosplashOptions\",\"url\":\"modules/types.html#NanosplashOptions\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"types\"},{\"id\":47,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules/types.html#NanosplashOptions.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"types.NanosplashOptions\"},{\"id\":48,\"kind\":1024,\"name\":\"imgSrc\",\"url\":\"modules/types.html#NanosplashOptions.__type-3.imgSrc\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.NanosplashOptions.__type\"},{\"id\":49,\"kind\":1024,\"name\":\"spinner\",\"url\":\"modules/types.html#NanosplashOptions.__type-3.spinner\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.NanosplashOptions.__type\"},{\"id\":50,\"kind\":1024,\"name\":\"fontSize\",\"url\":\"modules/types.html#NanosplashOptions.__type-3.fontSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"types.NanosplashOptions.__type\"},{\"id\":51,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules/types.html#default\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"types\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,30.54]],[\"parent/0\",[]],[\"name/1\",[1,30.54]],[\"parent/1\",[0,3.005]],[\"name/2\",[2,35.648]],[\"parent/2\",[3,1.148]],[\"name/3\",[4,35.648]],[\"parent/3\",[3,1.148]],[\"name/4\",[5,35.648]],[\"parent/4\",[3,1.148]],[\"name/5\",[6,30.54]],[\"parent/5\",[3,1.148]],[\"name/6\",[7,35.648]],[\"parent/6\",[3,1.148]],[\"name/7\",[8,35.648]],[\"parent/7\",[3,1.148]],[\"name/8\",[9,30.54]],[\"parent/8\",[3,1.148]],[\"name/9\",[10,35.648]],[\"parent/9\",[3,1.148]],[\"name/10\",[11,35.648]],[\"parent/10\",[3,1.148]],[\"name/11\",[12,30.54]],[\"parent/11\",[3,1.148]],[\"name/12\",[13,30.54]],[\"parent/12\",[3,1.148]],[\"name/13\",[14,30.54]],[\"parent/13\",[3,1.148]],[\"name/14\",[15,35.648]],[\"parent/14\",[3,1.148]],[\"name/15\",[16,35.648]],[\"parent/15\",[3,1.148]],[\"name/16\",[17,35.648]],[\"parent/16\",[3,1.148]],[\"name/17\",[18,35.648]],[\"parent/17\",[3,1.148]],[\"name/18\",[19,14.446]],[\"parent/18\",[]],[\"name/19\",[20,35.648]],[\"parent/19\",[19,1.421]],[\"name/20\",[21,35.648]],[\"parent/20\",[19,1.421]],[\"name/21\",[22,35.648]],[\"parent/21\",[19,1.421]],[\"name/22\",[23,18.302]],[\"parent/22\",[24,3.507]],[\"name/23\",[25,35.648]],[\"parent/23\",[19,1.421]],[\"name/24\",[23,18.302]],[\"parent/24\",[26,3.507]],[\"name/25\",[27,35.648]],[\"parent/25\",[19,1.421]],[\"name/26\",[23,18.302]],[\"parent/26\",[28,3.507]],[\"name/27\",[29,35.648]],[\"parent/27\",[19,1.421]],[\"name/28\",[23,18.302]],[\"parent/28\",[30,3.507]],[\"name/29\",[12,30.54]],[\"parent/29\",[31,2.674]],[\"name/30\",[13,30.54]],[\"parent/30\",[31,2.674]],[\"name/31\",[14,30.54]],[\"parent/31\",[31,2.674]],[\"name/32\",[32,35.648]],[\"parent/32\",[19,1.421]],[\"name/33\",[23,18.302]],[\"parent/33\",[33,3.507]],[\"name/34\",[34,35.648]],[\"parent/34\",[19,1.421]],[\"name/35\",[23,18.302]],[\"parent/35\",[35,3.507]],[\"name/36\",[36,35.648]],[\"parent/36\",[37,1.801]],[\"name/37\",[38,35.648]],[\"parent/37\",[37,1.801]],[\"name/38\",[39,35.648]],[\"parent/38\",[37,1.801]],[\"name/39\",[40,35.648]],[\"parent/39\",[37,1.801]],[\"name/40\",[41,35.648]],[\"parent/40\",[37,1.801]],[\"name/41\",[42,35.648]],[\"parent/41\",[37,1.801]],[\"name/42\",[9,30.54]],[\"parent/42\",[37,1.801]],[\"name/43\",[6,30.54]],[\"parent/43\",[37,1.801]],[\"name/44\",[43,35.648]],[\"parent/44\",[19,1.421]],[\"name/45\",[23,18.302]],[\"parent/45\",[44,3.507]],[\"name/46\",[45,35.648]],[\"parent/46\",[19,1.421]],[\"name/47\",[23,18.302]],[\"parent/47\",[46,3.507]],[\"name/48\",[47,35.648]],[\"parent/48\",[48,2.674]],[\"name/49\",[49,35.648]],[\"parent/49\",[48,2.674]],[\"name/50\",[50,35.648]],[\"parent/50\",[48,2.674]],[\"name/51\",[1,30.54]],[\"parent/51\",[19,1.421]]],\"invertedIndex\":[[\"__type\",{\"_index\":23,\"name\":{\"22\":{},\"24\":{},\"26\":{},\"28\":{},\"33\":{},\"35\":{},\"45\":{},\"47\":{}},\"parent\":{}}],[\"app_name\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":4,\"name\":{\"3\":{}},\"parent\":{}}],[\"contextualapiobject\",{\"_index\":34,\"name\":{\"34\":{}},\"parent\":{}}],[\"core/nanosplash\",{\"_index\":0,\"name\":{\"0\":{}},\"parent\":{\"1\":{}}}],[\"core/nanosplash.default\",{\"_index\":3,\"name\":{},\"parent\":{\"2\":{},\"3\":{},\"4\":{},\"5\":{},\"6\":{},\"7\":{},\"8\":{},\"9\":{},\"10\":{},\"11\":{},\"12\":{},\"13\":{},\"14\":{},\"15\":{},\"16\":{},\"17\":{}}}],[\"default\",{\"_index\":1,\"name\":{\"1\":{},\"51\":{}},\"parent\":{}}],[\"delete\",{\"_index\":15,\"name\":{\"14\":{}},\"parent\":{}}],[\"destination\",{\"_index\":20,\"name\":{\"19\":{}},\"parent\":{}}],[\"fontsize\",{\"_index\":50,\"name\":{\"50\":{}},\"parent\":{}}],[\"getfontsize\",{\"_index\":11,\"name\":{\"10\":{}},\"parent\":{}}],[\"getfromdestinationnode\",{\"_index\":18,\"name\":{\"17\":{}},\"parent\":{}}],[\"getid\",{\"_index\":36,\"name\":{\"36\":{}},\"parent\":{}}],[\"getimgsrc\",{\"_index\":9,\"name\":{\"8\":{},\"42\":{}},\"parent\":{}}],[\"gettext\",{\"_index\":41,\"name\":{\"40\":{}},\"parent\":{}}],[\"hide\",{\"_index\":17,\"name\":{\"16\":{}},\"parent\":{}}],[\"hideall\",{\"_index\":16,\"name\":{\"15\":{}},\"parent\":{}}],[\"imgsrc\",{\"_index\":47,\"name\":{\"48\":{}},\"parent\":{}}],[\"inside\",{\"_index\":38,\"name\":{\"37\":{}},\"parent\":{}}],[\"insidefunction\",{\"_index\":32,\"name\":{\"32\":{}},\"parent\":{}}],[\"instanceiterationcallback\",{\"_index\":43,\"name\":{\"44\":{}},\"parent\":{}}],[\"instances\",{\"_index\":5,\"name\":{\"4\":{}},\"parent\":{}}],[\"moveto\",{\"_index\":40,\"name\":{\"39\":{}},\"parent\":{}}],[\"nanosplashoptions\",{\"_index\":45,\"name\":{\"46\":{}},\"parent\":{}}],[\"progress\",{\"_index\":13,\"name\":{\"12\":{},\"30\":{}},\"parent\":{}}],[\"progressfunction\",{\"_index\":25,\"name\":{\"23\":{}},\"parent\":{}}],[\"remove\",{\"_index\":39,\"name\":{\"38\":{}},\"parent\":{}}],[\"setfontsize\",{\"_index\":8,\"name\":{\"7\":{}},\"parent\":{}}],[\"setimgsrc\",{\"_index\":6,\"name\":{\"5\":{},\"43\":{}},\"parent\":{}}],[\"settext\",{\"_index\":42,\"name\":{\"41\":{}},\"parent\":{}}],[\"show\",{\"_index\":12,\"name\":{\"11\":{},\"29\":{}},\"parent\":{}}],[\"showfunction\",{\"_index\":22,\"name\":{\"21\":{}},\"parent\":{}}],[\"showspinner\",{\"_index\":7,\"name\":{\"6\":{}},\"parent\":{}}],[\"spinner\",{\"_index\":49,\"name\":{\"49\":{}},\"parent\":{}}],[\"spinnerisvisible\",{\"_index\":10,\"name\":{\"9\":{}},\"parent\":{}}],[\"splashjob\",{\"_index\":21,\"name\":{\"20\":{}},\"parent\":{}}],[\"strategyobject\",{\"_index\":29,\"name\":{\"27\":{}},\"parent\":{}}],[\"types\",{\"_index\":19,\"name\":{\"18\":{}},\"parent\":{\"19\":{},\"20\":{},\"21\":{},\"23\":{},\"25\":{},\"27\":{},\"32\":{},\"34\":{},\"44\":{},\"46\":{},\"51\":{}}}],[\"types.contextualapiobject\",{\"_index\":35,\"name\":{},\"parent\":{\"35\":{}}}],[\"types.contextualapiobject.__type\",{\"_index\":37,\"name\":{},\"parent\":{\"36\":{},\"37\":{},\"38\":{},\"39\":{},\"40\":{},\"41\":{},\"42\":{},\"43\":{}}}],[\"types.insidefunction\",{\"_index\":33,\"name\":{},\"parent\":{\"33\":{}}}],[\"types.instanceiterationcallback\",{\"_index\":44,\"name\":{},\"parent\":{\"45\":{}}}],[\"types.nanosplashoptions\",{\"_index\":46,\"name\":{},\"parent\":{\"47\":{}}}],[\"types.nanosplashoptions.__type\",{\"_index\":48,\"name\":{},\"parent\":{\"48\":{},\"49\":{},\"50\":{}}}],[\"types.progressfunction\",{\"_index\":26,\"name\":{},\"parent\":{\"24\":{}}}],[\"types.showfunction\",{\"_index\":24,\"name\":{},\"parent\":{\"22\":{}}}],[\"types.strategyobject\",{\"_index\":30,\"name\":{},\"parent\":{\"28\":{}}}],[\"types.strategyobject.__type\",{\"_index\":31,\"name\":{},\"parent\":{\"29\":{},\"30\":{},\"31\":{}}}],[\"types.whilefunction\",{\"_index\":28,\"name\":{},\"parent\":{\"26\":{}}}],[\"while\",{\"_index\":14,\"name\":{\"13\":{},\"31\":{}},\"parent\":{}}],[\"whilefunction\",{\"_index\":27,\"name\":{\"25\":{}},\"parent\":{}}]],\"pipeline\":[]}}");