@mapcreator/sdk 1.5.0 → 1.5.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.
@@ -15194,11 +15194,7 @@ var l = (/* @__PURE__ */ o(((e, t) => {
15194
15194
  let y = !1;
15195
15195
  if (a.icon && a.icon.name) {
15196
15196
  let e = t.imageMap[a.icon.name];
15197
- if (e) {
15198
- _ = ju(t.imagePositions[a.icon.name], r.get("icon-offset").evaluate(a, {}, t.canonical), r.get("icon-anchor").evaluate(a, {}, t.canonical)), y = !!e.sdf, t.bucket.sdfIcons === void 0 ? t.bucket.sdfIcons = y : t.bucket.sdfIcons !== y && se("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer");
15199
- let n = a.properties?.["icon-rotate"] ?? r.get("icon-rotate").constantOr(1), i = a.properties?.["icon-size"] ?? r.get("icon-size").constantOr(1);
15200
- e.pixelRatio === t.bucket.pixelRatio && n === 0 && i === 1 || (t.bucket.iconsNeedLinear = !0);
15201
- }
15197
+ e && (_ = ju(t.imagePositions[a.icon.name], r.get("icon-offset").evaluate(a, {}, t.canonical), r.get("icon-anchor").evaluate(a, {}, t.canonical)), y = !!e.sdf, t.bucket.sdfIcons === void 0 ? t.bucket.sdfIcons = y : t.bucket.sdfIcons !== y && se("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (e.pixelRatio !== t.bucket.pixelRatio || (a.properties?.["icon-rotate"] ?? r.get("icon-rotate").constantOr(1)) !== 0) && (t.bucket.iconsNeedLinear = !0));
15202
15198
  }
15203
15199
  let b = Zd(h.horizontal) || h.vertical;
15204
15200
  t.bucket.iconsInText = !!b && b.iconsInText, (b || _) && Yd(t.bucket, a, h, _, t.imageMap, o, p, m, v, y, t.canonical, t.subdivisionGranularity);
@@ -16478,7 +16474,7 @@ var l = (/* @__PURE__ */ o(((e, t) => {
16478
16474
  }
16479
16475
  return e.i(self) && (self.worker = new Se(self)), Se;
16480
16476
  })), n("index", ["exports", "./shared"], (function(e, t) {
16481
- var n = "5.7.0-mc.6";
16477
+ var n = "1000.0.0";
16482
16478
  function r() {
16483
16479
  var e = new t.A(4);
16484
16480
  return t.A != Float32Array && (e[1] = 0, e[2] = 0), e[0] = 1, e[3] = 1, e;
@@ -21556,9 +21552,9 @@ var l = (/* @__PURE__ */ o(((e, t) => {
21556
21552
  c > .5 ? c - 1 : c,
21557
21553
  l > .5 ? l - 1 : l,
21558
21554
  0
21559
- ]), this._alignedProjMatrix = u, s = t.S(new Float64Array(16), this._pixelMatrix);
21555
+ ]), this._alignedProjMatrix = u;
21560
21556
  } else this._alignedProjMatrix = new Float64Array(s);
21561
- if (!s) throw Error("failed to invert matrix");
21557
+ if (s = t.S(new Float64Array(16), this._pixelMatrix), !s) throw Error("failed to invert matrix");
21562
21558
  this._pixelMatrixInverse = s, this._clearMatrixCaches();
21563
21559
  }
21564
21560
  _clearMatrixCaches() {
@@ -33224,8 +33220,8 @@ function Xr(e, t, n) {
33224
33220
  if (r.length !== 0) {
33225
33221
  let t = Kr(e).cloneNode(!0), n = t.querySelector("defs");
33226
33222
  n === null && (n = t.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "defs"), t.prepend(n));
33227
- let i = document.createElement("style");
33228
- i.textContent = r, n.appendChild(i), Yr.set(e, t.outerHTML);
33223
+ let i = t.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "style");
33224
+ i.textContent = r, n.appendChild(i), Yr.set(e, Wr.serializeToString(t));
33229
33225
  } else Yr.set(e, e);
33230
33226
  }
33231
33227
  return Yr.get(e) ?? e;