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.
@@ -13758,6 +13758,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13758
13758
  };
13759
13759
  Object.defineProperty(exports, "__esModule", ({ value: true }));
13760
13760
  exports.HiPS = void 0;
13761
+ exports.normalizeHiPSBaseURL = normalizeHiPSBaseURL;
13761
13762
  /**
13762
13763
  * @author Fabrizio Giordano (Fab77)
13763
13764
  */
@@ -13767,6 +13768,9 @@ const ColorMaps_js_1 = __importDefault(__webpack_require__(619));
13767
13768
  const AncestorTile_js_1 = __importDefault(__webpack_require__(2885));
13768
13769
  const AllSky_js_1 = __importDefault(__webpack_require__(2368));
13769
13770
  const HiPSCoverage_js_1 = __webpack_require__(9912);
13771
+ function normalizeHiPSBaseURL(url) {
13772
+ return url.replace(/\/+$/, "");
13773
+ }
13770
13774
  const FITS_SCALE_FUNCTION_INDEX = {
13771
13775
  linear: 0,
13772
13776
  sqrt: 1,
@@ -13831,7 +13835,7 @@ class HiPS extends AbstractSkyEntity_js_1.AbstractSkyEntity {
13831
13835
  this.initGL(webgl);
13832
13836
  this._healpixGrid = healpixGrid;
13833
13837
  this._format = this.selectDefaultFormat(descriptor.imgFormats);
13834
- this._baseurl = descriptor.url;
13838
+ this._baseurl = normalizeHiPSBaseURL(descriptor.url);
13835
13839
  this._maxorder = descriptor.maxOrder;
13836
13840
  this._minorder = descriptor.minOrder;
13837
13841
  this._coverage = new HiPSCoverage_js_1.HiPSCoverage();