gralobe 1.0.26 → 1.0.27

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.
package/dist/gralobe.js CHANGED
@@ -4209,7 +4209,8 @@ class Ua {
4209
4209
  constructor(e) {
4210
4210
  this.canvas = document.createElement("canvas"), this.canvas.width = Lt, this.canvas.height = Ot, this.ctx = this.canvas.getContext("2d"), this.topologyConfig = {
4211
4211
  url: e?.url || "https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json",
4212
- objectName: e?.objectName || "countries"
4212
+ objectName: e?.objectName || "countries",
4213
+ disableNormalization: e?.disableNormalization || !1
4213
4214
  }, this.statsMap = /* @__PURE__ */ new Map(), Mr.forEach((t) => {
4214
4215
  this.statsMap.set(t.id, t);
4215
4216
  }), this.loadCountries();
@@ -4312,7 +4313,7 @@ class Ua {
4312
4313
  renderCustomTexture(e, t, i) {
4313
4314
  if (this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Lt, Ot), !this.loaded)
4314
4315
  return this.canvas;
4315
- const n = ka(e);
4316
+ const n = this.topologyConfig?.disableNormalization ? e instanceof Map ? Object.fromEntries(e) : e : ka(e);
4316
4317
  return this.countries.forEach((r) => {
4317
4318
  const s = n[r.id];
4318
4319
  if (s !== void 0) {