@univerjs/sheets-ui 0.19.0 → 0.20.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.
@@ -16,8 +16,7 @@
16
16
  import type { IPosition, IRange, Workbook, Worksheet } from '@univerjs/core';
17
17
  import type { IBoundRectNoAngle, IRender, Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
18
18
  import type { ICollaborator } from '@univerjs/protocol';
19
- import type { ISheetLocation } from '@univerjs/sheets';
20
- import type { ISheetSkeletonManagerParam } from '../services/sheet-skeleton-manager.service';
19
+ import type { ISheetLocation, ISheetSkeletonManagerParam } from '@univerjs/sheets';
21
20
  export declare function getUserListEqual(userList1: ICollaborator[], userList2: ICollaborator[]): boolean;
22
21
  export declare function checkCellContentInRanges(worksheet: Worksheet, ranges: IRange[]): boolean;
23
22
  export declare function checkCellContentInRange(worksheet: Worksheet, range: IRange): boolean;
@@ -13,21 +13,19 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IRange, ObjectMatrix } from '@univerjs/core';
17
- import type { RenderManagerService } from '@univerjs/engine-render';
18
- import { Disposable, IConfigService, IUniverInstanceService } from '@univerjs/core';
19
- import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
16
+ import type { IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
17
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
18
+ import { IRenderManagerService } from '@univerjs/engine-render';
19
+ import { SheetInterceptorService } from '@univerjs/sheets';
20
20
  export declare class AutoHeightController extends Disposable {
21
21
  private readonly _renderManagerService;
22
22
  private readonly _sheetInterceptorService;
23
- private readonly _selectionManagerService;
24
23
  private readonly _univerInstanceService;
25
- private readonly _configService;
26
- constructor(_renderManagerService: RenderManagerService, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService);
24
+ constructor(_renderManagerService: IRenderManagerService, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService);
27
25
  private _processLazyAutoHeight;
28
26
  getUndoRedoParamsOfAutoHeight(ranges: IRange[], subUnitIdParam?: string, currentCellHeights?: ObjectMatrix<number>): {
29
- redos: any[];
30
- undos: any[];
27
+ redos: IMutationInfo[];
28
+ undos: IMutationInfo[];
31
29
  };
32
30
  private _initialize;
33
31
  }
@@ -55,7 +55,6 @@ export declare class SheetsScrollRenderController extends Disposable implements
55
55
  private _initCommandListener;
56
56
  private _scrollToSelectionForExpand;
57
57
  private _getFreeze;
58
- private _updateSceneSize;
59
58
  private _getSheetObject;
60
59
  private _scrollToSelectionByDirection;
61
60
  private _scrollToSelection;
@@ -13,21 +13,22 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { FEnum } from '@univerjs/core/facade';
16
17
  import { SHEET_VIEWPORT_KEY } from '@univerjs/engine-render';
17
18
  /**
18
19
  * @ignore
19
20
  */
20
- export interface IFSheetsUIEnum {
21
+ export interface IFSheetsUIEnumMixin {
21
22
  /**
22
23
  * Sheet value change command types. These commands affect the content or style of cells.
23
24
  * Includes operations like setting cell values, moving ranges, merging cells, and applying styles.
24
25
  */
25
26
  SHEET_VIEWPORT_KEY: typeof SHEET_VIEWPORT_KEY;
26
27
  }
27
- export declare class FSheetsUIEnum implements IFSheetsUIEnum {
28
+ export declare class FSheetsUIEnumMixin extends FEnum implements IFSheetsUIEnumMixin {
28
29
  get SHEET_VIEWPORT_KEY(): typeof SHEET_VIEWPORT_KEY;
29
30
  }
30
31
  declare module '@univerjs/core/facade' {
31
- interface FEnum extends IFSheetsUIEnum {
32
+ interface FEnum extends IFSheetsUIEnumMixin {
32
33
  }
33
34
  }