astro-viewer 3.13.0 → 3.13.1

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.
@@ -13804,6 +13804,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13804
13804
  };
13805
13805
  Object.defineProperty(exports, "__esModule", ({ value: true }));
13806
13806
  exports.HiPS = void 0;
13807
+ exports.normalizeHiPSBaseURL = normalizeHiPSBaseURL;
13807
13808
  /**
13808
13809
  * @author Fabrizio Giordano (Fab77)
13809
13810
  */
@@ -13813,6 +13814,9 @@ const ColorMaps_js_1 = __importDefault(__webpack_require__(619));
13813
13814
  const AncestorTile_js_1 = __importDefault(__webpack_require__(2885));
13814
13815
  const AllSky_js_1 = __importDefault(__webpack_require__(2368));
13815
13816
  const HiPSCoverage_js_1 = __webpack_require__(9912);
13817
+ function normalizeHiPSBaseURL(url) {
13818
+ return url.replace(/\/+$/, "");
13819
+ }
13816
13820
  const FITS_SCALE_FUNCTION_INDEX = {
13817
13821
  linear: 0,
13818
13822
  sqrt: 1,
@@ -13877,7 +13881,7 @@ class HiPS extends AbstractSkyEntity_js_1.AbstractSkyEntity {
13877
13881
  this.initGL(webgl);
13878
13882
  this._healpixGrid = healpixGrid;
13879
13883
  this._format = this.selectDefaultFormat(descriptor.imgFormats);
13880
- this._baseurl = descriptor.url;
13884
+ this._baseurl = normalizeHiPSBaseURL(descriptor.url);
13881
13885
  this._maxorder = descriptor.maxOrder;
13882
13886
  this._minorder = descriptor.minOrder;
13883
13887
  this._coverage = new HiPSCoverage_js_1.HiPSCoverage();