Commit 28ff4ccf authored by Lukas Pravda's avatar Lukas Pravda
Browse files

remove debug info

parent 70bc67d7
Pipeline #44572 passed with stages
in 16 seconds
......@@ -148,5 +148,5 @@ window.JSCompiler_renameProperty=(t,e)=>t;const B={toAttribute(t,e){switch(e){ca
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
(window.litElementVersions||(window.litElementVersions=[])).push("2.0.1");const et=t=>t.flat?t.flat(1/0):function t(e,s=[]){for(let i=0,n=e.length;i<n;i++){const n=e[i];Array.isArray(n)?t(n,s):s.push(n)}return s}(t);class st extends Z{static finalize(){super.finalize(),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){et(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?tt?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof v&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}st.finalized=!0,st.render=(t,e,s)=>{const i=s.scopeName,n=M.has(e),r=H&&11===e.nodeType&&!!e.host&&t instanceof v,a=r&&!I.has(i),l=a?document.createDocumentFragment():e;if(((t,e,s)=>{let i=M.get(e);void 0===i&&(o(e,e.firstChild),M.set(e,i=new P(Object.assign({templateFactory:O},s))),i.appendInto(e)),i.setValue(t),i.commit()})(t,l,Object.assign({templateFactory:$(i)},s)),a){const t=M.get(l);M.delete(l),t.value instanceof y&&L(l,t.value.template,i),o(e,e.firstChild),e.appendChild(l),M.set(e,t)}!n&&r&&window.ShadyCSS.styleElement(e.host)};customElements.define("ligand-display",class extends st{static get properties(){return{hetCode:{type:String,attribute:"het-code"},substructureName:{type:String,attribute:"substructure-name"},highlight:{type:String},color:{type:String},zoom:{type:Boolean}}}constructor(){super()}async connectedCallback(){this.style.display="block",this.style.height="100%",this.style.width="100%",this.style.position="relative",this.style.overflow="hidden";let t=void 0!==this.zoom;if(console.log(this),this.display=new Visualization(this,t),this.hetCode){let t=`https://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/${this.hetCode}/annotation`;const e=await fetch(t),s=await e.json();if(this.display.depiction=new Depiction(s),"scaffold"===this.highlight||"fragment"===this.highlight){let t=`https://wwwdev.ebi.ac.uk/pdbe/graph-api/compound/substructures/${this.hetCode}`;const e=await fetch(t),s=(await e.json())[this.hetCode][0];if("scaffold"===this.highlight&&(this.display.atomHighlight=s.scaffold[Object.keys(s.scaffold)[0]]),"fragment"===this.highlight){const t=s.fragments[this.substructureName];if(void 0===t)throw`Unknown fragment ${this.substructureName} on the compound ${this.hetCode}`;this.display.atomHighlight=t[0]}else this.highlight}this.display.draw()}}set depiction(t){t&&(this.display.depiction=new Depiction(t),this.display.draw())}set atomHighlight(t){t&&(this.display.atomHighlight=t,this.display.draw())}createRenderRoot(){return this}})}]);
(window.litElementVersions||(window.litElementVersions=[])).push("2.0.1");const et=t=>t.flat?t.flat(1/0):function t(e,s=[]){for(let i=0,n=e.length;i<n;i++){const n=e[i];Array.isArray(n)?t(n,s):s.push(n)}return s}(t);class st extends Z{static finalize(){super.finalize(),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){et(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?tt?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof v&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}st.finalized=!0,st.render=(t,e,s)=>{const i=s.scopeName,n=M.has(e),r=H&&11===e.nodeType&&!!e.host&&t instanceof v,a=r&&!I.has(i),l=a?document.createDocumentFragment():e;if(((t,e,s)=>{let i=M.get(e);void 0===i&&(o(e,e.firstChild),M.set(e,i=new P(Object.assign({templateFactory:O},s))),i.appendInto(e)),i.setValue(t),i.commit()})(t,l,Object.assign({templateFactory:$(i)},s)),a){const t=M.get(l);M.delete(l),t.value instanceof y&&L(l,t.value.template,i),o(e,e.firstChild),e.appendChild(l),M.set(e,t)}!n&&r&&window.ShadyCSS.styleElement(e.host)};customElements.define("ligand-display",class extends st{static get properties(){return{hetCode:{type:String,attribute:"het-code"},substructureName:{type:String,attribute:"substructure-name"},highlight:{type:String},color:{type:String},zoom:{type:Boolean}}}constructor(){super()}async connectedCallback(){this.style.display="block",this.style.height="100%",this.style.width="100%",this.style.position="relative",this.style.overflow="hidden";let t=void 0!==this.zoom;if(this.display=new Visualization(this,t),this.hetCode){let t=`https://www.ebi.ac.uk/pdbe/static/files/pdbechem_v2/${this.hetCode}/annotation`;const e=await fetch(t),s=await e.json();if(this.display.depiction=new Depiction(s),"scaffold"===this.highlight||"fragment"===this.highlight){let t=`https://wwwdev.ebi.ac.uk/pdbe/graph-api/compound/substructures/${this.hetCode}`;const e=await fetch(t),s=(await e.json())[this.hetCode][0];if("scaffold"===this.highlight&&(this.display.atomHighlight=s.scaffold[Object.keys(s.scaffold)[0]]),"fragment"===this.highlight){const t=s.fragments[this.substructureName];if(void 0===t)throw`Unknown fragment ${this.substructureName} on the compound ${this.hetCode}`;this.display.atomHighlight=t[0]}else this.highlight}this.display.draw()}}set depiction(t){t&&(this.display.depiction=new Depiction(t),this.display.draw())}set atomHighlight(t){t&&(this.display.atomHighlight=t,this.display.draw())}createRenderRoot(){return this}})}]);
//# sourceMappingURL=component.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -30,8 +30,6 @@ class ligandDisplay extends LitElement {
this.style.overflow = 'hidden';
let zoom = typeof this.zoom !== "undefined" ? true : false
console.log(this);
this.display = new Visualization(this, zoom);
if (this.hetCode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment