@univerjs/sheets-ui 0.15.1-insiders.20260117-8ce4a01 → 0.15.1

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.
@@ -1,4 +1,4 @@
1
- import { IRange, Workbook, Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
1
+ import { IRange, Workbook, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { SheetScrollManagerService } from '../../../services/scroll-manager.service';
@@ -14,8 +14,7 @@ export declare class MobileSheetsScrollRenderController extends Disposable imple
14
14
  private readonly _selectionManagerService;
15
15
  private readonly _scrollManagerService;
16
16
  protected readonly _univerInstanceService: IUniverInstanceService;
17
- private readonly _contextService;
18
- constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService: SheetScrollManagerService, _univerInstanceService: IUniverInstanceService, _contextService: IContextService);
17
+ constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService: SheetScrollManagerService, _univerInstanceService: IUniverInstanceService);
19
18
  scrollToRange(range: IRange): boolean;
20
19
  private _init;
21
20
  private _initCommandListener;
@@ -24,25 +23,12 @@ export declare class MobileSheetsScrollRenderController extends Disposable imple
24
23
  private _initScrollEventListener;
25
24
  private _initSkeletonListener;
26
25
  /**
27
- * for mobile - iOS-like smooth inertia scrolling
28
- * Uses native touch events for better mobile experience while keeping onPointerDown$ as trigger
29
- * to avoid interfering with header events
26
+ * for mobile
30
27
  */
31
28
  private _initPointerScrollEvent;
32
- /**
33
- * Create zoom indicator overlay element
34
- */
35
- private _createZoomIndicator;
36
- /**
37
- * Show zoom indicator with percentage
38
- */
39
- private _showZoomIndicator;
40
- /**
41
- * Hide zoom indicator with fade out
42
- */
43
- private _hideZoomIndicator;
44
29
  private _updateSceneSize;
45
30
  private _getSheetObject;
31
+ private _scrollToSelectionByDirection;
46
32
  private _scrollToSelection;
47
33
  private _getViewportBounding;
48
34
  private _scrollToCell;
@@ -5,5 +5,5 @@ export declare class USMToHtmlService {
5
5
  convert(matrix: ObjectMatrix<ICellData & {
6
6
  rowSpan?: number | undefined;
7
7
  colSpan?: number | undefined;
8
- }>, range: IDiscreteRange, hooks: ISheetClipboardHook[], copyId?: string): string;
8
+ }>, range: IDiscreteRange, hooks: ISheetClipboardHook[]): string;
9
9
  }
@@ -1,5 +1,5 @@
1
- import { Nullable, Workbook, ICommandService, IContextService, ILogService, Injector, RANGE_TYPE, ThemeService } from '@univerjs/core';
2
- import { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, Scene, SpreadsheetSkeleton, Viewport, ScrollTimerType } from '@univerjs/engine-render';
1
+ import { Workbook, ICommandService, IContextService, ILogService, Injector, RANGE_TYPE, ThemeService } from '@univerjs/core';
2
+ import { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, Scene, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
3
3
  import { ISelectionWithStyle, SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { IShortcutService } from '@univerjs/ui';
5
5
  import { SheetScrollManagerService } from '../scroll-manager.service';
@@ -25,7 +25,6 @@ export declare class MobileSheetsSelectionRenderService extends BaseSelectionRen
25
25
  _expandingSelection: boolean;
26
26
  protected _selectionControls: MobileSelectionControl[];
27
27
  expandingControlMode: ExpandingControl;
28
- private _anchorCellForExpanding;
29
28
  constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, selectionManagerService: SheetsSelectionsService, sheetSkeletonManagerService: SheetSkeletonManagerService, _logService: ILogService, _commandService: ICommandService, _contextService: IContextService, _scrollManagerService: SheetScrollManagerService);
30
29
  private _init;
31
30
  private _initSkeletonChangeListener;
@@ -57,11 +56,6 @@ export declare class MobileSheetsSelectionRenderService extends BaseSelectionRen
57
56
  getSelectionControls(): MobileSelectionControl[];
58
57
  private _fillControlPointerDownHandler;
59
58
  private _changeCurrCellWhenControlPointerDown;
60
- /**
61
- * Override base class method to add pinch zoom check.
62
- * When pinch zooming, we should not process pointer move events for selection.
63
- */
64
- protected _setupPointerMoveListener(viewportMain: Nullable<Viewport>, activeSelectionControl: MobileSelectionControl, rangeType: RANGE_TYPE, scrollTimerType: ScrollTimerType | undefined, moveStartPosX: number, moveStartPosY: number): void;
65
59
  /**
66
60
  * Not same as _moving in PC (base selection render service)
67
61
  * The diff is