956931c1182aa23149d482f644f5d8a7626f489d hiram Thu Oct 29 13:13:46 2020 -0700 no longer need the secret MAP element to trigger mouseOver display refs #21980 diff --git src/hg/hgTracks/wigTrack.c src/hg/hgTracks/wigTrack.c index 5240177..df66159 100644 --- src/hg/hgTracks/wigTrack.c +++ src/hg/hgTracks/wigTrack.c @@ -1460,52 +1460,44 @@ int i; /* could put up a 'no data' box when these items are not contiguous * e.g. when gaps interrupt the track data */ for (i = 0; i <= mouseOverIdx; ++i) { jsonWriteObjectStart(jw, NULL); jsonWriteNumber(jw, "x1", (long long)mouseOverData[i].x1); jsonWriteNumber(jw, "x2", (long long)mouseOverData[i].x2); jsonWriteDouble(jw, "v", mouseOverData[i].value); jsonWriteObjectEnd(jw); } jsonWriteListEnd(jw); jsonWriteObjectEnd(jw); fputs(jw->dy->string,trashJson); + carefulClose(&trashJson); mouseOverIdx = -1; freez(&mouseOverData); - // This is the hidden signal to the javaScript of where to pick up - // the json file - hPrintf("<MAP Name=%s class=mouseOver trashFile='%s'>\n", tg->track, jsonData.forHtml); - hPrintf("</MAP>\n"); - carefulClose(&trashJson); if (! beenHereDoneThat ) { hPrintf("<div id='mouseOverContainer' class='wigMouseOver'>\n"); hPrintf(" <span id='mouseOverText' class=wigMouseOverValue'>\n"); hPrintf(" </span>\n"); hPrintf("</div>\n"); beenHereDoneThat = TRUE; -// hPrintf("<div id='mouseDbg'><span id='debugMsg'><p>. . . mouseDbg</p></span></div>\n"); -// hPrintf("<div id='mouseXY'><span id='xyMouse'><p>. . . mouse X,Y</p></span></div>\n"); -// hPrintf("<div id='rectEvent'><span id='eventRects'><p>. . . eventRects</p></span></div>\n"); -// hPrintf("<div id='dbgMsg'><span id='msgDebug'><p>. . . debug message</p></span></div>\n"); } } else -#endif /* NOT_READY_TO_GO */ +#endif wigMapSelf(tg, hvg, seqStart, seqEnd, xOff, yOff, width); } struct preDrawContainer *wigLoadPreDraw(struct track *tg, int seqStart, int seqEnd, int width) /* Do bits that load the predraw buffer tg->preDrawContainer. */ { /* Just need to do this once... */ if (tg->preDrawContainer) return tg->preDrawContainer; struct wigItem *wi; double pixelsPerBase = scaleForPixels(width); double basesPerPixel = 1.0; int itemCount = 0; char *currentFile = NULL;