Skip to content

Commit

Permalink
Merge pull request cBioPortal#96 from cBioPortal/jesus
Browse files Browse the repository at this point in the history
hide track name highlight in clearMouseOverEffects function
  • Loading branch information
adamabeshouse authored and onursumer committed May 24, 2022
1 parent 7ea9964 commit d968785
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/oncoprintjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ Session.vim
.DS_Store
src/.DS_Store
test/.DS_Store
.idea
3 changes: 2 additions & 1 deletion packages/oncoprintjs/dist/oncoprint.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14006,11 +14006,12 @@ var Oncoprint = (function () {
this.destroyed = true;
}

Oncoprint.prototype.clearCellViewOverlay = function() {
Oncoprint.prototype.clearMouseOverEffects = function() {
if(this.webgl_unavailable || this.destroyed) {
return;
}
this.cell_view.clearOverlay();
this.label_view.highlightTrack(null, this.model);
}


Expand Down
1 change: 1 addition & 0 deletions packages/oncoprintjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ declare module "oncoprintjs"
onClipboardChange:(callback:(array:string[])=>void)=>void;
setTrackCustomOptions:(track_id:TrackId, custom_options?:CustomTrackOption[])=>void;
setShowTrackSublabels:(show:boolean)=>void;
clearMouseOverEffects:()=>void;

constructor(ctr_selector:string, width:number);
destroy:()=>void;
Expand Down
3 changes: 2 additions & 1 deletion packages/oncoprintjs/src/js/oncoprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,11 +1186,12 @@ var Oncoprint = (function () {
this.destroyed = true;
}

Oncoprint.prototype.clearCellViewOverlay = function() {
Oncoprint.prototype.clearMouseOverEffects = function() {
if(this.webgl_unavailable || this.destroyed) {
return;
}
this.cell_view.clearOverlay();
this.label_view.highlightTrack(null, this.model);
}


Expand Down

0 comments on commit d968785

Please sign in to comment.