higlass 1.12.1 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -795,11 +795,7 @@ class GenomePositionSearchBox extends React.Component {
795
795
  className={styles['genome-position-search-bar-button']}
796
796
  id={this.uid}
797
797
  onChange={this.handleAssemblySelectEvt.bind(this)}
798
- title={
799
- this.state.selectedAssembly
800
- ? this.state.selectedAssembly
801
- : '(none)'
802
- }
798
+ value={this.state.selectedAssembly || undefined}
803
799
  >
804
800
  {assemblyMenuItems}
805
801
  </select>
@@ -839,7 +835,11 @@ class GenomePositionSearchBox extends React.Component {
839
835
  </div>
840
836
  )}
841
837
  renderMenu={this.handleRenderMenu.bind(this)}
842
- value={this.positionText}
838
+ value={
839
+ this.state.selectedAssembly
840
+ ? this.positionText
841
+ : 'No valid assembly selected'
842
+ }
843
843
  wrapperStyle={{ width: '100%' }}
844
844
  />
845
845
 
package/dist/hglib.js CHANGED
@@ -14326,7 +14326,7 @@ function _toPrimitive2(input, hint) {
14326
14326
  return usedTrack;
14327
14327
  };
14328
14328
  const map$5 = (f2) => (x) => Array.prototype.map.call(x, f2);
14329
- const getXylofon = () => [window, map$5((c2) => c2.charCodeAt(0))("1.12.1").map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")];
14329
+ const getXylofon = () => [window, map$5((c2) => c2.charCodeAt(0))("1.12.2").map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")];
14330
14330
  let isInit = false;
14331
14331
  const listen = () => {
14332
14332
  if (isInit)
@@ -68600,7 +68600,7 @@ function _toPrimitive2(input, hint) {
68600
68600
  }
68601
68601
  return new DataFetcher(dataConfig, pubSub);
68602
68602
  };
68603
- const version = "1.12.1";
68603
+ const version = "1.12.2";
68604
68604
  const libraries = { d3Array, d3Axis, d3Brush, d3Color, d3Drag, d3Dsv, d3Format, d3Geo, d3Queue, d3Request, d3Scale, d3Selection, d3Transition, d3Zoom, PIXI: GLOBALS.PIXI, mix, slugid };
68605
68605
  const tracks$1 = { Annotations1dTrack, Annotations2dTrack, ArrowheadDomainsTrack, BarTrack, BedLikeTrack, CNVIntervalTrack, Chromosome2DAnnotations, Chromosome2DLabels, ChromosomeGrid, CombinedTrack, CrossRule, DivergentBarTrack, HeatmapTiledPixiTrack, Horizontal1dHeatmapTrack, Horizontal2DDomainsTrack, HorizontalChromosomeLabels, HorizontalGeneAnnotationsTrack, HorizontalHeatmapTrack, HorizontalLine1DPixiTrack, HorizontalMultivecTrack, HorizontalPoint1DPixiTrack, HorizontalRule, HorizontalTiled1DPixiTrack, HorizontalTiledPlot, HorizontalTrack, Id2DTiledPixiTrack, IdHorizontal1DTiledPixiTrack, IdVertical1DTiledPixiTrack, LeftAxisTrack, MapboxTilesTrack, MoveableTrack, OSMTileIdsTrack, OSMTilesTrack, OverlayTrack, PixiTrack, RasterTilesTrack, SVGTrack, SquareMarkersTrack, Tiled1DPixiTrack, TiledPixiTrack, TopAxisTrack, Track, ValueIntervalTrack, VerticalRule, VerticalTiled1DPixiTrack, VerticalTrack, ViewportTracker2D: ViewportTracker2D$1, ViewportTracker2DPixi: ViewportTracker2D, ViewportTrackerHorizontal, ViewportTrackerVertical };
68606
68606
  const factories = { ContextMenuItem, DataFetcher, LruCache };
@@ -74001,9 +74001,9 @@ function _toPrimitive2(input, hint) {
74001
74001
  this.gpsbForm = c2;
74002
74002
  }, className: clsx({ [styles$2["genome-position-search-focus"]]: this.state.isFocused, [styles$2["genome-position-search"]]: !this.state.isFocused, [styles$2["genome-position-search-dark"]]: this.props.theme === THEME_DARK }) }, !this.props.hideAvailableAssemblies && /* @__PURE__ */ React__default.default.createElement("select", { ref: (c2) => {
74003
74003
  this.assemblyPickButton = c2;
74004
- }, className: styles$2["genome-position-search-bar-button"], id: this.uid, onChange: this.handleAssemblySelectEvt.bind(this), title: this.state.selectedAssembly ? this.state.selectedAssembly : "(none)" }, assemblyMenuItems), /* @__PURE__ */ React__default.default.createElement(Autocomplete, { ref: (c2) => {
74004
+ }, className: styles$2["genome-position-search-bar-button"], id: this.uid, onChange: this.handleAssemblySelectEvt.bind(this), value: this.state.selectedAssembly || void 0 }, assemblyMenuItems), /* @__PURE__ */ React__default.default.createElement(Autocomplete, { ref: (c2) => {
74005
74005
  this.autocompleteMenu = c2;
74006
- }, getItemValue: (item) => item.geneName, inputProps: { className: styles$2["genome-position-search-bar"], title: "Current location: enter a symbol or location to change the position of the current view" }, items: this.state.genes, menuStyle: { position: "absolute", left: this.menuPosition.left, top: this.menuPosition.top, border: "1px solid black" }, onChange: this.onAutocompleteChange.bind(this), onFocus: this.focusHandler.bind(this), onMenuVisibilityChange: this.handleMenuVisibilityChange.bind(this), onSelect: (value2, objct) => this.geneSelected(value2, objct), onSubmit: this.searchFieldSubmit.bind(this), renderItem: (item, isHighlighted) => /* @__PURE__ */ React__default.default.createElement("div", { key: item.refseqid, id: item.refseqid, style: isHighlighted ? this.styles.highlightedItem : this.styles.item }, item.geneName), renderMenu: this.handleRenderMenu.bind(this), value: this.positionText, wrapperStyle: { width: "100%" } }), /* @__PURE__ */ React__default.default.createElement(SearchIcon, { onClick: this.buttonClick.bind(this), theStyle: "multitrack-header-icon" }));
74006
+ }, getItemValue: (item) => item.geneName, inputProps: { className: styles$2["genome-position-search-bar"], title: "Current location: enter a symbol or location to change the position of the current view" }, items: this.state.genes, menuStyle: { position: "absolute", left: this.menuPosition.left, top: this.menuPosition.top, border: "1px solid black" }, onChange: this.onAutocompleteChange.bind(this), onFocus: this.focusHandler.bind(this), onMenuVisibilityChange: this.handleMenuVisibilityChange.bind(this), onSelect: (value2, objct) => this.geneSelected(value2, objct), onSubmit: this.searchFieldSubmit.bind(this), renderItem: (item, isHighlighted) => /* @__PURE__ */ React__default.default.createElement("div", { key: item.refseqid, id: item.refseqid, style: isHighlighted ? this.styles.highlightedItem : this.styles.item }, item.geneName), renderMenu: this.handleRenderMenu.bind(this), value: this.state.selectedAssembly ? this.positionText : "No valid assembly selected", wrapperStyle: { width: "100%" } }), /* @__PURE__ */ React__default.default.createElement(SearchIcon, { onClick: this.buttonClick.bind(this), theStyle: "multitrack-header-icon" }));
74007
74007
  } }]);
74008
74008
  return GenomePositionSearchBox2;
74009
74009
  }(React__default.default.Component);