Skip to content
Snippets Groups Projects
Commit 6235d006 authored by Ibrahim Roshan Kunnakkattu's avatar Ibrahim Roshan Kunnakkattu
Browse files

:bug: use input environment variable for the interactionAPI resource

parent f5857968
No related branches found
No related tags found
1 merge request!5Refactored code for diplaying aggregated ligand interactions
......@@ -320,7 +320,7 @@ class Visualization {
*/
public async initLigandWeights(ligandId: string){
const weightUrl = Resources.interactionAPI(ligandId, Model.Environment.Development);
const weightUrl = Resources.interactionAPI(ligandId, this.environment);
return d3.json(weightUrl)
.then((d: any) => this.ligandIntxData = d[ligandId]);
}
......@@ -349,8 +349,8 @@ class Visualization {
public showWeights(contactType: string[]){
if ((this.depiction === undefined) || (this.ligandIntxData) === undefined) return;
const atomPropensity= new Model.LigandIntx(this.ligandIntxData, contactType).getAtomIntxPropensity();
const colorScheme = "Greens";
this.depiction.addCircles(atomPropensity, colorScheme);
this.depiction.addCircles(atomPropensity);
if(this.zoomHandler !== undefined){
this.zoomHandler(this.svg, d3.zoomIdentity)
};
......
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