Commit 68ba6c5d authored by Lukas Pravda's avatar Lukas Pravda
Browse files

rename molstar events

parent c17dad29
...@@ -66,10 +66,10 @@ class Visualization { ...@@ -66,10 +66,10 @@ class Visualization {
this.nodesRoot = this.canvas.append('g').attr('id', 'nodes'); this.nodesRoot = this.canvas.append('g').attr('id', 'nodes');
if (uiParameters.zoom) this.zoomHandler = this.getZoomHandler(); if (uiParameters.zoom) this.zoomHandler = this.getZoomHandler();
document.addEventListener(Config.molstarClickEvent, e => this.nodeMouseEnterEventHandler(e)); document.addEventListener(Config.molstarClickEvent, e => this.molstarClickEventHandler(e));
document.addEventListener(Config.molstarMouseoverEvent, e => this.nodeMouseEnterEventHandler(e)); document.addEventListener(Config.molstarMouseoverEvent, e => this.molstarClickEventHandler(e));
document.addEventListener(Config.molstarMouseoutEvent, () => this.nodeMouseLeaveEventHandler()); document.addEventListener(Config.molstarMouseoutEvent, () => this.molstarMouseoutEventHandler());
d3.select(this.parent).on('resize', () => this.resize()); d3.select(this.parent).on('resize', () => this.resize());
this.addMarkers(); this.addMarkers();
...@@ -84,7 +84,7 @@ class Visualization { ...@@ -84,7 +84,7 @@ class Visualization {
} }
private nodeMouseEnterEventHandler(e: any) { private molstarClickEventHandler(e: any) {
if (this.fullScreen) return; if (this.fullScreen) return;
let hash = `${e.eventData.auth_asym_id}${e.eventData.auth_seq_id}${e.eventData.ins_code}`; let hash = `${e.eventData.auth_asym_id}${e.eventData.auth_seq_id}${e.eventData.ins_code}`;
...@@ -101,7 +101,7 @@ class Visualization { ...@@ -101,7 +101,7 @@ class Visualization {
} }
private nodeMouseLeaveEventHandler() { private molstarMouseoutEventHandler() {
if (this.fullScreen) return; if (this.fullScreen) return;
this.nodes?.each((node: Model.InteractionNode, index: number, group: any) => { this.nodes?.each((node: Model.InteractionNode, index: number, group: any) => {
......
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