higlass 1.13.3 → 1.13.4

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.
@@ -1630,6 +1630,14 @@ class TiledPlot extends React.Component {
1630
1630
  */
1631
1631
  getIdealizedTrackPositionsOverlay() {
1632
1632
  const evtJson = this.props.draggingHappening;
1633
+
1634
+ // For whatever reason, evtJson is sometimes a boolean. This rest of
1635
+ // this code block assumes it's an object, so we return undefined if
1636
+ // it's not.
1637
+ if (typeof evtJson === 'boolean') {
1638
+ return undefined;
1639
+ }
1640
+
1633
1641
  const datatype = evtJson.datatype;
1634
1642
 
1635
1643
  if (!(datatype in DEFAULT_TRACKS_FOR_DATATYPE) && !evtJson.defaultTracks) {
package/dist/hglib.js CHANGED
@@ -18699,7 +18699,7 @@
18699
18699
  return position;
18700
18700
  };
18701
18701
  const map$5 = (f2) => (x) => Array.prototype.map.call(x, f2);
18702
- const getXylofon = () => [window, map$5((c2) => c2.charCodeAt(0))("1.13.3").map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")];
18702
+ const getXylofon = () => [window, map$5((c2) => c2.charCodeAt(0))("1.13.4").map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")];
18703
18703
  const gradient = (steps, width = 1, height = 100, fromX = 0, fromY = 0, toX = 0, toY = 100) => {
18704
18704
  const canvas = document.createElement("canvas");
18705
18705
  canvas.width = width;
@@ -88489,7 +88489,7 @@
88489
88489
  toJSON,
88490
88490
  toString: toString$1
88491
88491
  });
88492
- const version = "1.13.3";
88492
+ const version = "1.13.4";
88493
88493
  const button = "_button_1wnjn_1";
88494
88494
  const classes$7 = {
88495
88495
  button,
@@ -106023,6 +106023,9 @@
106023
106023
  key: "getIdealizedTrackPositionsOverlay",
106024
106024
  value: function getIdealizedTrackPositionsOverlay() {
106025
106025
  const evtJson = this.props.draggingHappening;
106026
+ if (typeof evtJson === "boolean") {
106027
+ return void 0;
106028
+ }
106026
106029
  const datatype = evtJson.datatype;
106027
106030
  if (!(datatype in DEFAULT_TRACKS_FOR_DATATYPE) && !evtJson.defaultTracks) {
106028
106031
  console.warn("unknown data type:", evtJson.higlassTrack);