@univerjs/sheets-ui 0.8.0-nightly.202506041607 → 0.8.0
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/LICENSE +176 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +9 -1
- package/lib/index.js +9 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
|
@@ -15406,7 +15406,15 @@ let gi = class extends oe {
|
|
|
15406
15406
|
const { scene: s, engine: l } = n, a = i.getCellWithCoordByIndex(e, t), c = a.isMergedMainCell ? a.mergeInfo : a, { scaleX: d, scaleY: u } = s.getAncestorScale(), h = {
|
|
15407
15407
|
x: o.viewportScrollX,
|
|
15408
15408
|
y: o.viewportScrollY
|
|
15409
|
-
}, g = l.getCanvasElement()
|
|
15409
|
+
}, g = l.getCanvasElement();
|
|
15410
|
+
if (!g)
|
|
15411
|
+
return {
|
|
15412
|
+
left: 0,
|
|
15413
|
+
right: 0,
|
|
15414
|
+
top: 0,
|
|
15415
|
+
bottom: 0
|
|
15416
|
+
};
|
|
15417
|
+
const m = g.getBoundingClientRect(), f = ja(g.style.width), { top: v, left: p, width: C } = m, _ = C / f;
|
|
15410
15418
|
return {
|
|
15411
15419
|
left: (c.startX - h.x) * _ * d + p,
|
|
15412
15420
|
right: (c.endX - h.x) * _ * d + p,
|
package/lib/index.js
CHANGED
|
@@ -15406,7 +15406,15 @@ let gi = class extends oe {
|
|
|
15406
15406
|
const { scene: s, engine: l } = n, a = i.getCellWithCoordByIndex(e, t), c = a.isMergedMainCell ? a.mergeInfo : a, { scaleX: d, scaleY: u } = s.getAncestorScale(), h = {
|
|
15407
15407
|
x: o.viewportScrollX,
|
|
15408
15408
|
y: o.viewportScrollY
|
|
15409
|
-
}, g = l.getCanvasElement()
|
|
15409
|
+
}, g = l.getCanvasElement();
|
|
15410
|
+
if (!g)
|
|
15411
|
+
return {
|
|
15412
|
+
left: 0,
|
|
15413
|
+
right: 0,
|
|
15414
|
+
top: 0,
|
|
15415
|
+
bottom: 0
|
|
15416
|
+
};
|
|
15417
|
+
const m = g.getBoundingClientRect(), f = ja(g.style.width), { top: v, left: p, width: C } = m, _ = C / f;
|
|
15410
15418
|
return {
|
|
15411
15419
|
left: (c.startX - h.x) * _ * d + p,
|
|
15412
15420
|
right: (c.endX - h.x) * _ * d + p,
|