@blorkfield/overlay-core 0.5.3 → 0.5.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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -1555,12 +1555,12 @@ var OverlayScene = class {
|
|
|
1555
1555
|
const shadowElement = entry.domElement.cloneNode(true);
|
|
1556
1556
|
shadowElement.style.opacity = String(opacity);
|
|
1557
1557
|
shadowElement.style.pointerEvents = "none";
|
|
1558
|
+
const { x, y } = entry.originalPosition;
|
|
1558
1559
|
const width = entry.domElement.offsetWidth;
|
|
1559
1560
|
const height = entry.domElement.offsetHeight;
|
|
1560
|
-
shadowElement.style.
|
|
1561
|
-
shadowElement.style.
|
|
1562
|
-
shadowElement.style.
|
|
1563
|
-
shadowElement.style.setProperty("transform", "rotate(0deg)", "important");
|
|
1561
|
+
shadowElement.style.left = `${x - width / 2}px`;
|
|
1562
|
+
shadowElement.style.top = `${y - height / 2}px`;
|
|
1563
|
+
shadowElement.style.transform = "rotate(0deg)";
|
|
1564
1564
|
entry.domElement.parentNode?.insertBefore(shadowElement, entry.domElement);
|
|
1565
1565
|
entry.domShadowElement = shadowElement;
|
|
1566
1566
|
return;
|