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

rename molstar events

parent c17dad29
......@@ -67,9 +67,9 @@ class Visualization {
if (uiParameters.zoom) this.zoomHandler = this.getZoomHandler();
document.addEventListener(Config.molstarClickEvent, e => this.nodeMouseEnterEventHandler(e));
document.addEventListener(Config.molstarMouseoverEvent, e => this.nodeMouseEnterEventHandler(e));
document.addEventListener(Config.molstarMouseoutEvent, () => this.nodeMouseLeaveEventHandler());
document.addEventListener(Config.molstarClickEvent, e => this.molstarClickEventHandler(e));
document.addEventListener(Config.molstarMouseoverEvent, e => this.molstarClickEventHandler(e));
document.addEventListener(Config.molstarMouseoutEvent, () => this.molstarMouseoutEventHandler());
d3.select(this.parent).on('resize', () => this.resize());
this.addMarkers();
......@@ -84,7 +84,7 @@ class Visualization {
}
private nodeMouseEnterEventHandler(e: any) {
private molstarClickEventHandler(e: any) {
if (this.fullScreen) return;
let hash = `${e.eventData.auth_asym_id}${e.eventData.auth_seq_id}${e.eventData.ins_code}`;
......@@ -101,7 +101,7 @@ class Visualization {
}
private nodeMouseLeaveEventHandler() {
private molstarMouseoutEventHandler() {
if (this.fullScreen) return;
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