@1urso/generic-editor 0.1.71 → 0.1.72
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/generic-editor.js
CHANGED
|
@@ -8853,7 +8853,7 @@ function Ot({ children: n, className: _, elementRef: E, id: O, style: A, ...j })
|
|
|
8853
8853
|
Ot.displayName = "Separator";
|
|
8854
8854
|
var package_default = {
|
|
8855
8855
|
name: "@1urso/generic-editor",
|
|
8856
|
-
version: "0.1.
|
|
8856
|
+
version: "0.1.72",
|
|
8857
8857
|
publishConfig: { access: "public" },
|
|
8858
8858
|
type: "module",
|
|
8859
8859
|
main: "./dist/generic-editor.umd.cjs",
|
|
@@ -20986,11 +20986,11 @@ const processLayout = (n, _) => {
|
|
|
20986
20986
|
if (_) {
|
|
20987
20987
|
_.font = `${N}px ${P}`;
|
|
20988
20988
|
let E = _.measureText(j), O = Math.ceil(E.width + parseInt(String(n.style?.padding || 0)) * 2);
|
|
20989
|
-
O
|
|
20989
|
+
Math.abs(O - n.width) > 1 && (n.width = O, n.content = j);
|
|
20990
20990
|
}
|
|
20991
20991
|
} else {
|
|
20992
20992
|
let _ = measureTextHeight$1(j, n.width, P, N), M = n.height, z = _ - M;
|
|
20993
|
-
if (z >
|
|
20993
|
+
if (Math.abs(z) > 1) {
|
|
20994
20994
|
n.height = _, n.content = j;
|
|
20995
20995
|
let N = [], P = O.get(n.id);
|
|
20996
20996
|
P && E.forEach((_) => {
|
|
@@ -22490,7 +22490,7 @@ var camelToKebab = (n) => n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toL
|
|
|
22490
22490
|
if (_) {
|
|
22491
22491
|
_.font = `${P}px ${z}`;
|
|
22492
22492
|
let E = _.measureText(M), O = parseInt(String(n.style && n.style.padding || 0)) * 2, A = Math.ceil(E.width + O);
|
|
22493
|
-
A
|
|
22493
|
+
Math.abs(A - n.width) > 1 && (n.width = A, n.content = M);
|
|
22494
22494
|
}
|
|
22495
22495
|
} catch {}
|
|
22496
22496
|
else {
|
|
@@ -22502,7 +22502,7 @@ var camelToKebab = (n) => n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toL
|
|
|
22502
22502
|
let U = _ + N * 2;
|
|
22503
22503
|
(!H || H && !_) && (U += 4);
|
|
22504
22504
|
let W = parseInt(String(n.style && n.style.minHeight || 0)), G = Math.max(U, W), Z = n.height, YF = G - Z;
|
|
22505
|
-
if (YF >
|
|
22505
|
+
if (Math.abs(YF) > 1) {
|
|
22506
22506
|
n.height = G, n.content = M;
|
|
22507
22507
|
let _ = [], N = O.get(n.id);
|
|
22508
22508
|
N && E.forEach((E) => {
|