546e4b62f9c8abdda3576ce5b9bf8c4b82dc6b4e braney Tue Mar 21 14:42:01 2023 -0700 make squishyPack work nicely with Javascript track reorder diff --git src/hg/hgTracks/imageV2.h src/hg/hgTracks/imageV2.h index 0907ad6..292fe4b 100644 --- src/hg/hgTracks/imageV2.h +++ src/hg/hgTracks/imageV2.h @@ -293,30 +293,31 @@ // but then it must have a name char *db; // Image for db (species) (assert imgTrack matches imgBox) char *chrom; // Image for chrom (assert imgTrack matches imgBox) long chromStart; // Image start (absolute, not portal position) long chromEnd; // Image end (absolute, not portal position) boolean plusStrand; // Image covers plus strand, not minus strand boolean hasCenterLabel; // A track may have a center label but not show it enum centerLabelSeen centerLabelSeen; // Conditionally displayed center labels are always // there but sometimes hidden boolean reorderable; // Is this track reorderable (by drag and drop) ? boolean ajaxRetrieval; // This track needs to be retrieved via ajax int order; // Image order: This keeps track of dragReorder enum trackVisibility vis; // Current visibility of track image struct imgSlice *slices; // Currently there should be four slices for every track: // data, centerLabel, sideLabel, button + boolean linked; // is this track linked to another track (like squishyPack) }; #define IMG_ANYORDER -2 #define IMG_FIXEDPOS -1 #define IMG_ORDERTOP 10000 #define IMG_ORDEREND 20000 #define IMG_ORDER_VAR "imgOrd" struct imgTrack *imgTrackStart(struct trackDb *tdb,char *name,char *db, char *chrom, long chromStart, long chromEnd, boolean plusStrand, boolean hasCenterLabel, enum trackVisibility vis, int order); // Starts an image track which will contain all image slices needed to render one track // Must completed by adding slices with imgTrackAddSlice() struct imgTrack *imgTrackUpdate(struct imgTrack *imgTrack,struct trackDb *tdb,char *name,