mudlet-map-renderer 1.2.1 → 1.2.2

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
@@ -3697,7 +3697,10 @@ var K = "rgb(120, 72, 0)", Dt = class {
3697
3697
  }
3698
3698
  }
3699
3699
  applyPositionMarker(e) {
3700
- this.positionMarker && this.positionMarker.destroy();
3700
+ if (this.positionMarker &&= (this.positionMarker.destroy(), void 0), e.area !== this.state.currentArea || e.z !== this.state.currentZIndex) {
3701
+ this.positionLayerNode.batchDraw();
3702
+ return;
3703
+ }
3701
3704
  let t = st(e, this.state.settings);
3702
3705
  this.positionMarker = this.addStyledShape(ut(t), this.positionLayerNode);
3703
3706
  }