mudlet-map-renderer 0.37.1-konva → 0.37.2-konva

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/index.mjs CHANGED
@@ -4441,11 +4441,18 @@ function gn(e) {
4441
4441
  var _n = class {
4442
4442
  constructor(e, t) {
4443
4443
  this.rooms = {}, this.areas = {}, this.areaSources = {}, this.explorationEnabled = !1, this.colors = {}, e.forEach((e) => {
4444
- e.rooms.forEach((e) => {
4445
- e.y = -e.y, this.rooms[e.id] = e;
4444
+ let t = {
4445
+ ...e,
4446
+ rooms: e.rooms.map((e) => ({
4447
+ ...e,
4448
+ y: -e.y
4449
+ }))
4450
+ };
4451
+ t.rooms.forEach((e) => {
4452
+ this.rooms[e.id] = e;
4446
4453
  });
4447
- let t = parseInt(e.areaId);
4448
- this.areas[t] = new at(e), this.areaSources[t] = e;
4454
+ let n = parseInt(e.areaId);
4455
+ this.areas[n] = new at(t), this.areaSources[n] = t;
4449
4456
  }), this.colors = t.reduce((e, t) => ({
4450
4457
  ...e,
4451
4458
  [t.envId]: {