@servlyadmin/runtime-core 0.1.17 → 0.1.18
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 +2 -8
- package/dist/index.js +2 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17804,11 +17804,8 @@ function applyStyles(element, styles) {
|
|
|
17804
17804
|
}
|
|
17805
17805
|
}
|
|
17806
17806
|
var CANVAS_ONLY_STYLES = /* @__PURE__ */ new Set([
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
"--translate-y",
|
|
17810
|
-
"--width",
|
|
17811
|
-
"--height",
|
|
17807
|
+
// Only filter out z-index which is purely for canvas layering
|
|
17808
|
+
// Keep --width, --height, --translate-x, --translate-y as they're used for sizing/positioning
|
|
17812
17809
|
"z-index",
|
|
17813
17810
|
"zIndex"
|
|
17814
17811
|
]);
|
|
@@ -17818,9 +17815,6 @@ function filterCanvasStyles(style) {
|
|
|
17818
17815
|
if (CANVAS_ONLY_STYLES.has(key)) {
|
|
17819
17816
|
continue;
|
|
17820
17817
|
}
|
|
17821
|
-
if (key === "transform" && typeof value === "string" && value.includes("translate(")) {
|
|
17822
|
-
continue;
|
|
17823
|
-
}
|
|
17824
17818
|
filtered[key] = value;
|
|
17825
17819
|
}
|
|
17826
17820
|
return filtered;
|
package/dist/index.js
CHANGED
|
@@ -1008,11 +1008,8 @@ function applyStyles(element, styles) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
var CANVAS_ONLY_STYLES = /* @__PURE__ */ new Set([
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
"--translate-y",
|
|
1014
|
-
"--width",
|
|
1015
|
-
"--height",
|
|
1011
|
+
// Only filter out z-index which is purely for canvas layering
|
|
1012
|
+
// Keep --width, --height, --translate-x, --translate-y as they're used for sizing/positioning
|
|
1016
1013
|
"z-index",
|
|
1017
1014
|
"zIndex"
|
|
1018
1015
|
]);
|
|
@@ -1022,9 +1019,6 @@ function filterCanvasStyles(style) {
|
|
|
1022
1019
|
if (CANVAS_ONLY_STYLES.has(key)) {
|
|
1023
1020
|
continue;
|
|
1024
1021
|
}
|
|
1025
|
-
if (key === "transform" && typeof value === "string" && value.includes("translate(")) {
|
|
1026
|
-
continue;
|
|
1027
|
-
}
|
|
1028
1022
|
filtered[key] = value;
|
|
1029
1023
|
}
|
|
1030
1024
|
return filtered;
|