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("\n", tg->track, jsonData.forHtml); - hPrintf("\n"); - carefulClose(&trashJson); if (! beenHereDoneThat ) { hPrintf("
\n"); hPrintf(" \n"); hPrintf(" \n"); hPrintf("
\n"); beenHereDoneThat = TRUE; -// hPrintf("

. . . mouseDbg

\n"); -// hPrintf("

. . . mouse X,Y

\n"); -// hPrintf("

. . . eventRects

\n"); -// hPrintf("

. . . debug message

\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;