File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -409,11 +409,10 @@ export async function drawPathway(
409409 pvjsContainer . insertAdjacentHTML ( 'afterBegin' , css ) ;
410410
411411 pathwayContainer . querySelectorAll ( 'g.GeneProduct' ) . forEach ( g => {
412- const geneName = g . getAttribute ( 'name' ) ;
413412 let tooltipContent = geneName ;
414413 g . addEventListener ( 'mouseover' , ( event ) => {
415414 if ( nodeHoverFn ) {
416- tooltipContent = nodeHoverFn ( geneName ) ;
415+ tooltipContent = nodeHoverFn ( event , geneName ) ;
417416 g . setAttribute ( 'data-tippy-content' , tooltipContent ) ;
418417 tippy ( 'g.GeneProduct[data-tippy-content]' , tippyConfig ) ;
419418 }
Original file line number Diff line number Diff line change @@ -1657,7 +1657,7 @@ function addPathwayListeners(ideo) {
16571657 // const pathwayName = target.getAttribute('data-pathway-name');
16581658 // const pathway = {id: pathwayId, name: pathwayName};
16591659 // plotPathwayGenes(searchedGene, pathway, ideo);
1660- function nodeHoverFn ( geneName ) {
1660+ function nodeHoverFn ( event , geneName ) {
16611661 console . log ( 'in nodeHoverFn' )
16621662 return '<div>ok ' + geneName + '</div><div>1234</div>' ;
16631663 }
You can’t perform that action at this time.
0 commit comments