@univerjs/engine-render 0.8.2-nightly.202506201607 → 0.8.2-nightly.202506221606
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +10 -11
- package/lib/index.js +10 -11
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
package/lib/es/index.js
CHANGED
|
@@ -56955,34 +56955,33 @@ class kC extends E3 {
|
|
|
56955
56955
|
e.startX = d, e.startY = c, e.endX = g, e.endY = h;
|
|
56956
56956
|
}
|
|
56957
56957
|
_renderText(e, a, s, n, i) {
|
|
56958
|
-
var F, S, M, B, R, I, L, O, P, N,
|
|
56958
|
+
var T, F, S, M, B, R, I, L, O, P, N, $;
|
|
56959
56959
|
const { fontCache: o } = n;
|
|
56960
56960
|
if (!o) return;
|
|
56961
|
-
const l = (
|
|
56961
|
+
const l = (F = (T = o.style) == null ? void 0 : T.pd) != null ? F : c2, u = (S = l.l) != null ? S : c2.l, d = (M = l.r) != null ? M : c2.r, g = (B = l.t) != null ? B : c2.t, c = (R = l.b) != null ? R : c2.b, { vertexAngle: h = 0, wrapStrategy: p, cellData: f } = o;
|
|
56962
56962
|
if ((f == null ? void 0 : f.v) === void 0 || (f == null ? void 0 : f.v) === null) return;
|
|
56963
56963
|
const m = String(f.v);
|
|
56964
56964
|
let { startX: v, startY: b, endX: z, endY: _ } = n, j = z - v - u - d;
|
|
56965
56965
|
const w = _ - b - g - c, x = i.getValue(a, s);
|
|
56966
56966
|
if (!(p === T1.WRAP && h === 0) && x) {
|
|
56967
|
-
const
|
|
56968
|
-
z =
|
|
56969
|
-
const
|
|
56970
|
-
v =
|
|
56967
|
+
const H = x.endColumn, Y = x.startColumn, Q = x.startRow, d1 = x.endRow, u1 = n.spreadsheetSkeleton.getCellWithCoordByIndex(d1, H);
|
|
56968
|
+
z = u1.endX, _ = u1.endY;
|
|
56969
|
+
const a1 = n.spreadsheetSkeleton.getCellWithCoordByIndex(Q, Y);
|
|
56970
|
+
v = a1.startX, b = a1.startY, j = z - v - u - d;
|
|
56971
56971
|
}
|
|
56972
|
-
const T = f.t === Y2.NUMBER && typeof f.v == "number";
|
|
56973
56972
|
Q4.drawWith(e, {
|
|
56974
56973
|
text: m,
|
|
56975
56974
|
fontStyle: o.fontString,
|
|
56976
56975
|
warp: p === T1.WRAP && h === 0,
|
|
56977
|
-
hAlign:
|
|
56976
|
+
hAlign: f.t === Y2.NUMBER && o.horizontalAlign === c1.UNSPECIFIED ? c1.RIGHT : o.horizontalAlign,
|
|
56978
56977
|
vAlign: o.verticalAlign,
|
|
56979
56978
|
width: j,
|
|
56980
56979
|
height: w,
|
|
56981
56980
|
left: u,
|
|
56982
56981
|
top: g,
|
|
56983
|
-
color: (
|
|
56984
|
-
strokeLine: !!((
|
|
56985
|
-
underline: !!((
|
|
56982
|
+
color: (L = (I = o.style) == null ? void 0 : I.cl) == null ? void 0 : L.rgb,
|
|
56983
|
+
strokeLine: !!((P = (O = o.style) == null ? void 0 : O.st) != null && P.s),
|
|
56984
|
+
underline: !!(($ = (N = o.style) == null ? void 0 : N.ul) != null && $.s)
|
|
56986
56985
|
});
|
|
56987
56986
|
}
|
|
56988
56987
|
_renderDocuments(e, a, s, n, i) {
|
package/lib/index.js
CHANGED
|
@@ -56955,34 +56955,33 @@ class kC extends E3 {
|
|
|
56955
56955
|
e.startX = d, e.startY = c, e.endX = g, e.endY = h;
|
|
56956
56956
|
}
|
|
56957
56957
|
_renderText(e, a, s, n, i) {
|
|
56958
|
-
var F, S, M, B, R, I, L, O, P, N,
|
|
56958
|
+
var T, F, S, M, B, R, I, L, O, P, N, $;
|
|
56959
56959
|
const { fontCache: o } = n;
|
|
56960
56960
|
if (!o) return;
|
|
56961
|
-
const l = (
|
|
56961
|
+
const l = (F = (T = o.style) == null ? void 0 : T.pd) != null ? F : c2, u = (S = l.l) != null ? S : c2.l, d = (M = l.r) != null ? M : c2.r, g = (B = l.t) != null ? B : c2.t, c = (R = l.b) != null ? R : c2.b, { vertexAngle: h = 0, wrapStrategy: p, cellData: f } = o;
|
|
56962
56962
|
if ((f == null ? void 0 : f.v) === void 0 || (f == null ? void 0 : f.v) === null) return;
|
|
56963
56963
|
const m = String(f.v);
|
|
56964
56964
|
let { startX: v, startY: b, endX: z, endY: _ } = n, j = z - v - u - d;
|
|
56965
56965
|
const w = _ - b - g - c, x = i.getValue(a, s);
|
|
56966
56966
|
if (!(p === T1.WRAP && h === 0) && x) {
|
|
56967
|
-
const
|
|
56968
|
-
z =
|
|
56969
|
-
const
|
|
56970
|
-
v =
|
|
56967
|
+
const H = x.endColumn, Y = x.startColumn, Q = x.startRow, d1 = x.endRow, u1 = n.spreadsheetSkeleton.getCellWithCoordByIndex(d1, H);
|
|
56968
|
+
z = u1.endX, _ = u1.endY;
|
|
56969
|
+
const a1 = n.spreadsheetSkeleton.getCellWithCoordByIndex(Q, Y);
|
|
56970
|
+
v = a1.startX, b = a1.startY, j = z - v - u - d;
|
|
56971
56971
|
}
|
|
56972
|
-
const T = f.t === Y2.NUMBER && typeof f.v == "number";
|
|
56973
56972
|
Q4.drawWith(e, {
|
|
56974
56973
|
text: m,
|
|
56975
56974
|
fontStyle: o.fontString,
|
|
56976
56975
|
warp: p === T1.WRAP && h === 0,
|
|
56977
|
-
hAlign:
|
|
56976
|
+
hAlign: f.t === Y2.NUMBER && o.horizontalAlign === c1.UNSPECIFIED ? c1.RIGHT : o.horizontalAlign,
|
|
56978
56977
|
vAlign: o.verticalAlign,
|
|
56979
56978
|
width: j,
|
|
56980
56979
|
height: w,
|
|
56981
56980
|
left: u,
|
|
56982
56981
|
top: g,
|
|
56983
|
-
color: (
|
|
56984
|
-
strokeLine: !!((
|
|
56985
|
-
underline: !!((
|
|
56982
|
+
color: (L = (I = o.style) == null ? void 0 : I.cl) == null ? void 0 : L.rgb,
|
|
56983
|
+
strokeLine: !!((P = (O = o.style) == null ? void 0 : O.st) != null && P.s),
|
|
56984
|
+
underline: !!(($ = (N = o.style) == null ? void 0 : N.ul) != null && $.s)
|
|
56986
56985
|
});
|
|
56987
56986
|
}
|
|
56988
56987
|
_renderDocuments(e, a, s, n, i) {
|