@univerjs/sheets-ui 0.6.1-nightly.202502211606 → 0.6.1-nightly.202502221605
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/es/index.js
CHANGED
|
@@ -2112,34 +2112,38 @@ let mo = class extends ae {
|
|
|
2112
2112
|
return t - e + 1;
|
|
2113
2113
|
}
|
|
2114
2114
|
getUndoRedoParamsOfAutoHeight(r) {
|
|
2115
|
+
var p;
|
|
2115
2116
|
const { _univerInstanceService: e, _configService: t } = this, n = e.getCurrentUnitForType(O.UNIVER_SHEET), i = n.getActiveSheet(), o = n.getUnitId(), s = i.getSheetId(), l = this._renderManagerService.getRenderById(o).with(he);
|
|
2116
2117
|
if (!s || !l.getCurrentParam())
|
|
2117
2118
|
return {
|
|
2118
2119
|
redos: [],
|
|
2119
2120
|
undos: []
|
|
2120
2121
|
};
|
|
2121
|
-
const a = t.getConfig(or)
|
|
2122
|
-
|
|
2122
|
+
const a = t.getConfig(or);
|
|
2123
|
+
let c = r;
|
|
2124
|
+
Array.isArray(r) || (r.startRow !== void 0 && r.startRow !== void 0 ? c = [r] : c = []);
|
|
2125
|
+
const d = this._getRangesScope(c);
|
|
2126
|
+
if (((p = a == null ? void 0 : a.maxAutoHeightCount) != null ? p : 1e3) < d)
|
|
2123
2127
|
return {
|
|
2124
2128
|
redos: [],
|
|
2125
2129
|
undos: []
|
|
2126
2130
|
};
|
|
2127
|
-
const { skeleton:
|
|
2131
|
+
const { skeleton: h } = l.getCurrentParam(), g = h.calculateAutoHeightInRange(r), m = {
|
|
2128
2132
|
subUnitId: s,
|
|
2129
2133
|
unitId: o,
|
|
2130
|
-
rowsAutoHeightInfo:
|
|
2131
|
-
},
|
|
2134
|
+
rowsAutoHeightInfo: g
|
|
2135
|
+
}, f = hg(m, i);
|
|
2132
2136
|
return {
|
|
2133
2137
|
undos: [
|
|
2134
2138
|
{
|
|
2135
2139
|
id: yr.id,
|
|
2136
|
-
params:
|
|
2140
|
+
params: f
|
|
2137
2141
|
}
|
|
2138
2142
|
],
|
|
2139
2143
|
redos: [
|
|
2140
2144
|
{
|
|
2141
2145
|
id: yr.id,
|
|
2142
|
-
params:
|
|
2146
|
+
params: m
|
|
2143
2147
|
}
|
|
2144
2148
|
]
|
|
2145
2149
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ICellInfo, ICellWithCoord, IContextService, IDisposable, IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord, IStyleSheet, Nullable, Disposable, InterceptorManager, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IMouseEvent, IPointerEvent, IRenderModule, Scene, SpreadsheetSkeleton, Viewport, ScrollTimer, ScrollTimerType } from '@univerjs/engine-render';
|
|
3
|
+
import { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
|
|
3
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
5
|
import { Observable, Subscription, BehaviorSubject, Subject } from 'rxjs';
|
|
5
6
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
6
|
-
import { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
|
|
7
7
|
import { SelectionControl } from './selection-control';
|
|
8
8
|
export interface IControlFillConfig {
|
|
9
9
|
oldRange: IRange;
|