mesurer-solid 0.2.4-beta.3 → 0.2.4-beta.4

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.js CHANGED
@@ -9887,17 +9887,17 @@ function xh(e) {
9887
9887
  };
9888
9888
  }, fe = () => {
9889
9889
  N();
9890
- let t = e.model.state.hoverElement, r = t ? Qu(t) : e.model.state.hoverRect, i = r && t ? Xd(r, Yd(t.ownerDocument)) : r;
9891
- if (!i || i.width <= 0 || i.height <= 0) return null;
9892
- let a = !!ue(), o = de();
9893
- var s = X("div", {
9890
+ let t = e.model.state.hoverElement, r = t ? Qu(t) : e.model.state.hoverRect, i = t ? Yd(t.ownerDocument) : void 0, a = r && t ? Xd(r, i) : r;
9891
+ if (!a || a.width <= 0 || a.height <= 0) return null;
9892
+ let o = !!ue(), s = o || i ? "2147482700" : void 0, c = de();
9893
+ var l = X("div", {
9894
9894
  "data-mesurer-hover-measurement": "true",
9895
- "data-mesurer-document-hover-layer": a ? "true" : void 0,
9895
+ "data-mesurer-document-hover-layer": o ? "true" : void 0,
9896
9896
  class: "msr:pointer-events-none msr:absolute"
9897
9897
  });
9898
9898
  return lc(() => (e) => {
9899
9899
  n = e;
9900
- }, s), Q(s, Y(K, {
9900
+ }, l), Q(l, Y(K, {
9901
9901
  get when() {
9902
9902
  return le()?.top;
9903
9903
  },
@@ -9914,7 +9914,7 @@ function xh(e) {
9914
9914
  $(e, "style", t, n);
9915
9915
  }), e;
9916
9916
  }
9917
- }), null), Q(s, Y(K, {
9917
+ }), null), Q(l, Y(K, {
9918
9918
  get when() {
9919
9919
  return le()?.right;
9920
9920
  },
@@ -9931,7 +9931,7 @@ function xh(e) {
9931
9931
  $(e, "style", t, n);
9932
9932
  }), e;
9933
9933
  }
9934
- }), null), Q(s, Y(K, {
9934
+ }), null), Q(l, Y(K, {
9935
9935
  get when() {
9936
9936
  return le()?.bottom;
9937
9937
  },
@@ -9948,7 +9948,7 @@ function xh(e) {
9948
9948
  $(e, "style", t, n);
9949
9949
  }), e;
9950
9950
  }
9951
- }), null), Q(s, Y(K, {
9951
+ }), null), Q(l, Y(K, {
9952
9952
  get when() {
9953
9953
  return le()?.left;
9954
9954
  },
@@ -9968,17 +9968,17 @@ function xh(e) {
9968
9968
  }), null), q(() => ({
9969
9969
  position: "absolute",
9970
9970
  "pointer-events": "none",
9971
- "z-index": a ? "2147482700" : void 0,
9972
- left: `${i.left + o.x}px`,
9973
- top: `${i.top + o.y}px`,
9974
- width: `${i.width}px`,
9975
- height: `${i.height}px`,
9971
+ "z-index": s,
9972
+ left: `${a.left + c.x}px`,
9973
+ top: `${a.top + c.y}px`,
9974
+ width: `${a.width}px`,
9975
+ height: `${a.height}px`,
9976
9976
  "background-color": k(),
9977
9977
  transition: "none",
9978
9978
  animation: "none"
9979
9979
  }), (e, t) => {
9980
- $(s, "style", e, t);
9981
- }), s;
9980
+ $(l, "style", e, t);
9981
+ }), l;
9982
9982
  }, pe = (t) => {
9983
9983
  let n = t === "active" ? 100 : t === "hover" ? 90 : t === "preview" ? 50 : 70;
9984
9984
  return `color-mix(in oklch, ${e.model.state.settings.guideColor} ${n}%, transparent)`;
@@ -27920,7 +27920,7 @@ function FO(e) {
27920
27920
  }
27921
27921
  //#endregion
27922
27922
  //#region src/version.ts
27923
- var IO = "0.2.4-beta.3", LO = ab, RO = ob, zO = () => ({
27923
+ var IO = "0.2.4-beta.4", LO = ab, RO = ob, zO = () => ({
27924
27924
  ...tx(),
27925
27925
  version: IO
27926
27926
  }), BO = RO, VO = (e, t) => e.left <= t.left + t.width && e.left + e.width >= t.left && e.top <= t.top + t.height && e.top + e.height >= t.top, HO = (e) => {