@univerjs/sheets-ui 0.4.2 → 0.5.0-beta.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.
Files changed (88) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +18 -18
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/ru-RU.js +1 -0
  6. package/lib/cjs/locale/vi-VN.js +1 -0
  7. package/lib/cjs/locale/zh-CN.js +1 -0
  8. package/lib/cjs/locale/zh-TW.js +1 -0
  9. package/lib/es/facade.js +195 -0
  10. package/lib/es/index.js +15890 -16368
  11. package/lib/es/locale/en-US.js +604 -0
  12. package/lib/es/locale/fa-IR.js +604 -0
  13. package/lib/es/locale/ru-RU.js +602 -0
  14. package/lib/es/locale/vi-VN.js +602 -0
  15. package/lib/es/locale/zh-CN.js +603 -0
  16. package/lib/es/locale/zh-TW.js +603 -0
  17. package/lib/index.css +1 -1
  18. package/lib/types/commands/commands/range-protection.command.d.ts +0 -8
  19. package/lib/types/commands/commands/set-frozen.command.d.ts +0 -5
  20. package/lib/types/commands/commands/set-scroll.command.d.ts +2 -0
  21. package/lib/types/commands/commands/worksheet-protection.command.d.ts +0 -17
  22. package/lib/types/commands/operations/sheet-permission-open-panel.operation.d.ts +3 -0
  23. package/lib/types/common/keys.d.ts +1 -0
  24. package/lib/types/consts/permission.d.ts +2 -0
  25. package/lib/types/controllers/clipboard/utils.d.ts +2 -2
  26. package/lib/types/controllers/config.schema.d.ts +1 -0
  27. package/lib/types/controllers/editor/editing.render-controller.d.ts +3 -2
  28. package/lib/types/controllers/editor/utils/isEmbeddingFormulaEditor.d.ts +17 -0
  29. package/lib/types/controllers/editor/utils/isRangeSelector.d.ts +1 -1
  30. package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +10 -5
  31. package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +2 -2
  32. package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +1 -1
  33. package/lib/types/facade/f-permission.d.ts +28 -0
  34. package/lib/types/facade/f-range.d.ts +57 -0
  35. package/lib/types/facade/f-sheet-hooks.d.ts +32 -0
  36. package/lib/types/facade/f-univer.d.ts +73 -0
  37. package/lib/types/facade/f-workbook.d.ts +27 -0
  38. package/lib/types/facade/index.d.ts +20 -0
  39. package/lib/types/index.d.ts +13 -8
  40. package/lib/types/locale/zh-CN.d.ts +1 -0
  41. package/lib/types/services/canvas-pop-manager.service.d.ts +3 -2
  42. package/lib/types/services/clipboard/html-to-usm/utils.d.ts +13 -1
  43. package/lib/types/services/editor-bridge.service.d.ts +4 -22
  44. package/lib/types/services/mark-selection/mark-selection.service.d.ts +3 -1
  45. package/lib/types/services/permission/sheet-permission-panel.model.d.ts +4 -25
  46. package/lib/types/services/permission/sheet-permission-user-list.service.d.ts +1 -4
  47. package/lib/types/services/scroll-manager.service.d.ts +1 -1
  48. package/lib/types/services/selection/base-selection-render.service.d.ts +72 -59
  49. package/lib/types/services/selection/const.d.ts +3 -0
  50. package/lib/types/services/selection/mobile-selection-render.service.d.ts +7 -7
  51. package/lib/types/services/selection/mobile-selection-shape.d.ts +9 -4
  52. package/lib/types/services/selection/selection-control.d.ts +44 -22
  53. package/lib/types/services/selection/selection-render-model.d.ts +14 -7
  54. package/lib/types/services/selection/selection-render.service.d.ts +14 -3
  55. package/lib/types/services/selection/selection-shape-extension.d.ts +35 -13
  56. package/lib/types/services/selection/util.d.ts +18 -4
  57. package/lib/types/services/sheet-skeleton-manager.service.d.ts +5 -1
  58. package/lib/types/services/utils/doc-skeleton-util.d.ts +2 -2
  59. package/lib/types/services/utils/selection-util.d.ts +1 -1
  60. package/lib/types/views/permission/extensions/range-protection.render.d.ts +1 -1
  61. package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +1 -1
  62. package/lib/types/views/permission/index.d.ts +0 -2
  63. package/lib/types/views/permission/panel/index.d.ts +4 -1
  64. package/lib/types/views/permission/panel-detail/PermissionDetailFooterPart.d.ts +16 -0
  65. package/lib/types/views/permission/panel-detail/PermissionDetailMainPart.d.ts +14 -0
  66. package/lib/types/views/permission/panel-detail/PermissionDetailPanel.d.ts +9 -0
  67. package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +11 -0
  68. package/lib/types/views/permission/panel-list/index.d.ts +1 -1
  69. package/lib/types/views/permission/util.d.ts +17 -0
  70. package/lib/umd/facade.js +1 -0
  71. package/lib/umd/index.js +18 -18
  72. package/lib/umd/locale/en-US.js +1 -0
  73. package/lib/umd/locale/fa-IR.js +1 -0
  74. package/lib/umd/locale/ru-RU.js +1 -0
  75. package/lib/umd/locale/vi-VN.js +1 -0
  76. package/lib/umd/locale/zh-CN.js +1 -0
  77. package/lib/umd/locale/zh-TW.js +1 -0
  78. package/package.json +43 -27
  79. package/lib/locale/en-US.json +0 -616
  80. package/lib/locale/fa-IR.json +0 -616
  81. package/lib/locale/ru-RU.json +0 -616
  82. package/lib/locale/vi-VN.json +0 -616
  83. package/lib/locale/zh-CN.json +0 -616
  84. package/lib/locale/zh-TW.json +0 -616
  85. package/lib/types/views/permission/footer/index.d.ts +0 -4
  86. package/lib/types/views/permission/footer/permission-detail-footer.d.ts +0 -2
  87. package/lib/types/views/permission/footer/permission-list-footer.d.ts +0 -2
  88. package/lib/types/views/permission/panel-detail/index.d.ts +0 -4
@@ -47,11 +47,14 @@ export { EditorBridgeService, IEditorBridgeService, type IEditorBridgeServiceVis
47
47
  export { MarkSelectionService } from './services/mark-selection/mark-selection.service';
48
48
  export { IMarkSelectionService } from './services/mark-selection/mark-selection.service';
49
49
  export { SheetSelectionRenderService } from './services/selection/selection-render.service';
50
- export { getAllSelection, getTopLeftSelection } from './services/selection/base-selection-render.service';
50
+ export { genSelectionByRange, getTopLeftSelectionOfCurrSheet, selectionDataForSelectAll as getAllSelection } from './services/selection/base-selection-render.service';
51
51
  export { BaseSelectionRenderService, ISheetSelectionRenderService } from './services/selection/base-selection-render.service';
52
- export { SelectionControl as SelectionShape } from './services/selection/selection-control';
52
+ export { SelectionControl as SelectionShape, SelectionControl } from './services/selection/selection-control';
53
+ export { SelectionShapeExtension } from './services/selection/selection-shape-extension';
54
+ export { genNormalSelectionStyle } from './services/selection/const';
53
55
  export type { ISheetSkeletonManagerParam } from './services/sheet-skeleton-manager.service';
54
- export { attachRangeWithCoord, SheetSkeletonManagerService } from './services/sheet-skeleton-manager.service';
56
+ export { SheetSkeletonManagerService } from './services/sheet-skeleton-manager.service';
57
+ export { attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord } from './services/selection/util';
55
58
  export { UniverSheetsUIPlugin } from './plugin';
56
59
  export { SheetRenderController } from './controllers/render-controllers/sheet.render-controller';
57
60
  export { HoverManagerService } from './services/hover-manager.service';
@@ -59,7 +62,7 @@ export { DragManagerService } from './services/drag-manager.service';
59
62
  export { CellAlertManagerService, CellAlertType, type ICellAlert } from './services/cell-alert-manager.service';
60
63
  export { HoverRenderController } from './controllers/hover-render.controller';
61
64
  export { DragRenderController } from './controllers/drag-render.controller';
62
- export { RANGE_SELECTOR_COMPONENT_KEY, SHEET_VIEW_KEY } from './common/keys';
65
+ export { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY, SHEET_VIEW_KEY } from './common/keys';
63
66
  export { type ICanvasPopup, SheetCanvasPopManagerService } from './services/canvas-pop-manager.service';
64
67
  export { mergeSetRangeValues } from './services/clipboard/utils';
65
68
  export type { IAutoFillLocation } from './services/auto-fill/type';
@@ -90,9 +93,10 @@ export type { IFormatPainterBeforeApplyHookParams, IFormatPainterHook } from './
90
93
  export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
91
94
  export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT } from './components/font-family/interface';
92
95
  export { FONT_SIZE_COMPONENT } from './components/font-size/interface';
93
- export { attachPrimaryWithCoord, attachSelectionWithCoord } from './services/selection/util';
94
96
  export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
95
97
  export { isRangeSelector, RANGE_SELECTOR_SYMBOLS } from './controllers/editor/utils/isRangeSelector';
98
+ export { EMBEDDING_FORMULA_EDITOR, isEmbeddingFormulaEditor } from './controllers/editor/utils/isEmbeddingFormulaEditor';
99
+ export { SheetCellEditorResizeService } from './services/editor/cell-editor-resize.service';
96
100
  export { menuSchema } from './controllers/menu.schema';
97
101
  export { getCellRealRange } from './common/utils';
98
102
  export { AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand } from './commands/commands/add-worksheet-merge.command';
@@ -104,17 +108,17 @@ export { HideColConfirmCommand, HideRowConfirmCommand } from './commands/command
104
108
  export { ResetRangeTextColorCommand, SetRangeBoldCommand, SetRangeFontFamilyCommand, SetRangeFontSizeCommand, SetRangeItalicCommand, SetRangeStrickThroughCommand, SetRangeSubscriptCommand, SetRangeSuperscriptCommand, SetRangeTextColorCommand, SetRangeUnderlineCommand, } from './commands/commands/inline-format.command';
105
109
  export { InsertRangeMoveDownConfirmCommand } from './commands/commands/insert-range-move-down-confirm.command';
106
110
  export { InsertRangeMoveRightConfirmCommand } from './commands/commands/insert-range-move-right-confirm.command';
107
- export { AddRangeProtectionCommand, AddRangeProtectionFromContextMenuCommand, AddRangeProtectionFromSheetBarCommand, AddRangeProtectionFromToolbarCommand, DeleteRangeProtectionFromContextMenuCommand, DeleteRangeSelectionCommand, SetProtectionCommand, SetRangeProtectionCommand, SetRangeProtectionFromContextMenuCommand, ViewSheetPermissionFromContextMenuCommand, ViewSheetPermissionFromSheetBarCommand, } from './commands/commands/range-protection.command';
111
+ export { AddRangeProtectionFromContextMenuCommand, AddRangeProtectionFromSheetBarCommand, AddRangeProtectionFromToolbarCommand, DeleteRangeProtectionFromContextMenuCommand, SetRangeProtectionFromContextMenuCommand, ViewSheetPermissionFromContextMenuCommand, ViewSheetPermissionFromSheetBarCommand, } from './commands/commands/range-protection.command';
108
112
  export { RefillCommand } from './commands/commands/refill.command';
109
113
  export { RemoveColConfirmCommand, RemoveRowConfirmCommand } from './commands/commands/remove-row-col-confirm.command';
110
114
  export { RemoveSheetConfirmCommand } from './commands/commands/remove-sheet-confirm.command';
111
115
  export { ApplyFormatPainterCommand, SetInfiniteFormatPainterCommand, SetOnceFormatPainterCommand } from './commands/commands/set-format-painter.command';
112
- export { CancelFrozenCommand, SetColumnFrozenCommand, SetRowFrozenCommand, SetSelectionFrozenCommand } from './commands/commands/set-frozen.command';
116
+ export { SetColumnFrozenCommand, SetRowFrozenCommand, SetSelectionFrozenCommand } from './commands/commands/set-frozen.command';
113
117
  export { type IScrollCommandParams, type IScrollToCellCommandParams, type ISetScrollRelativeCommandParams, ResetScrollCommand, ScrollCommand, ScrollToCellCommand, SetScrollRelativeCommand, } from './commands/commands/set-scroll.command';
114
118
  export { ExpandSelectionCommand, JumpOver, MoveSelectionCommand, MoveSelectionEnterAndTabCommand, SelectAllCommand } from './commands/commands/set-selection.command';
115
119
  export { ChangeZoomRatioCommand, SetZoomRatioCommand } from './commands/commands/set-zoom-ratio.command';
116
120
  export { ShowMenuListCommand } from './commands/commands/unhide.command';
117
- export { AddWorksheetProtectionCommand, ChangeSheetProtectionFromSheetBarCommand, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionFormSheetBarCommand, SetWorksheetProtectionCommand, } from './commands/commands/worksheet-protection.command';
121
+ export { ChangeSheetProtectionFromSheetBarCommand, DeleteWorksheetProtectionFormSheetBarCommand, } from './commands/commands/worksheet-protection.command';
118
122
  export { SetActivateCellEditOperation } from './commands/operations/activate-cell-edit.operation';
119
123
  export { SetCellEditVisibleArrowOperation, SetCellEditVisibleOperation, SetCellEditVisibleWithF2Operation } from './commands/operations/cell-edit.operation';
120
124
  export { RenameSheetOperation } from './commands/operations/rename-sheet.operation';
@@ -125,3 +129,4 @@ export { SetZoomRatioOperation } from './commands/operations/set-zoom-ratio.oper
125
129
  export { SheetPermissionOpenDialogOperation } from './commands/operations/sheet-permission-open-dialog.operation';
126
130
  export { SheetPermissionOpenPanelOperation } from './commands/operations/sheet-permission-open-panel.operation';
127
131
  export { SidebarDefinedNameOperation } from './commands/operations/sidebar-defined-name.operation';
132
+ export { UNIVER_SHEET_PERMISSION_BACKGROUND, UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';
@@ -602,6 +602,7 @@ declare const locale: {
602
602
  setCellStyle: string;
603
603
  copy: string;
604
604
  alert: string;
605
+ search: string;
605
606
  alertContent: string;
606
607
  userEmpty: string;
607
608
  listEmpty: string;
@@ -1,7 +1,7 @@
1
1
  import { INeedCheckDisposable, Nullable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { BaseObject, IBoundRectNoAngle, Viewport, IRenderManagerService } from '@univerjs/engine-render';
3
+ import { ISheetLocationBase, RefRangeService } from '@univerjs/sheets';
3
4
  import { IPopup, ICanvasPopupService } from '@univerjs/ui';
4
- import { RefRangeService } from '@univerjs/sheets';
5
5
  export interface ICanvasPopup extends Omit<IPopup, 'anchorRect' | 'anchorRect$' | 'unitId' | 'subUnitId' | 'canvasElement'> {
6
6
  mask?: boolean;
7
7
  extraProps?: Record<string, any>;
@@ -13,6 +13,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
13
13
  private readonly _refRangeService;
14
14
  private readonly _commandService;
15
15
  constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _refRangeService: RefRangeService, _commandService: ICommandService);
16
+ private _createHiddenRectObserver;
16
17
  private _createPositionObserver;
17
18
  /**
18
19
  * attach a popup to canvas object
@@ -21,7 +22,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
21
22
  * @returns disposable
22
23
  */
23
24
  attachPopupToObject(targetObject: BaseObject, popup: ICanvasPopup): INeedCheckDisposable;
24
- attachPopupByPosition(bound: IBoundRectNoAngle, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string): Nullable<INeedCheckDisposable>;
25
+ attachPopupByPosition(bound: IBoundRectNoAngle, popup: ICanvasPopup, location: ISheetLocationBase): Nullable<INeedCheckDisposable>;
25
26
  attachPopupToAbsolutePosition(bound: IBoundRectNoAngle, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string): {
26
27
  dispose: () => void;
27
28
  canDispose: () => boolean;
@@ -1,4 +1,16 @@
1
- import { IParagraph, IParagraphStyle, Nullable } from '@univerjs/core';
1
+ import { IParagraph, IParagraphStyle, ITextRun, Nullable } from '@univerjs/core';
2
+ import { ICellDataWithSpanInfo } from '../type';
2
3
  export default function parseToDom(rawHtml: string): HTMLBodyElement;
3
4
  export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
4
5
  export declare function generateParagraphs(dataStream: string, prevParagraph?: IParagraph): IParagraph[];
6
+ export declare function convertToCellStyle(cell: ICellDataWithSpanInfo, dataStream: string, textRuns: ITextRun[] | undefined): ICellDataWithSpanInfo | {
7
+ s: import('@univerjs/core').ITextStyle | undefined;
8
+ p?: Nullable<import('@univerjs/core').IDocumentData>;
9
+ v?: Nullable<import('@univerjs/core').CellValue>;
10
+ t?: Nullable<import('@univerjs/core').CellValueType>;
11
+ f?: Nullable<string>;
12
+ si?: Nullable<string>;
13
+ custom?: import('@univerjs/core').CustomData;
14
+ rowSpan?: number;
15
+ colSpan?: number;
16
+ };
@@ -1,6 +1,6 @@
1
- import { ICellData, ICellDataForSheetInterceptor, IDisposable, IPosition, ISelectionCell, Nullable, Workbook, Worksheet, Disposable, IContextService, InterceptorManager, IUniverInstanceService, ThemeService } from '@univerjs/core';
1
+ import { IDisposable, IPosition, ISelectionCell, Nullable, Disposable, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
2
2
  import { Engine, IDocumentLayoutObject, Scene, DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
3
- import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
3
+ import { SheetsSelectionsService, SheetInterceptorService } from '@univerjs/sheets';
4
4
  import { KeyCode } from '@univerjs/ui';
5
5
  import { Observable } from 'rxjs';
6
6
  import { IEditorService } from '@univerjs/docs-ui';
@@ -37,22 +37,11 @@ export interface ICellEditorLayout {
37
37
  }
38
38
  export interface IEditorBridgeServiceParam extends ICellEditorState, ICellEditorLayout {
39
39
  }
40
- interface ISheetLocationForEditor extends ISheetLocation {
41
- origin: Nullable<ICellData>;
42
- }
43
- declare const BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
44
- declare const AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
45
- declare const AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>;
46
40
  export interface IEditorBridgeService {
47
41
  currentEditCellState$: Observable<Nullable<ICellEditorState>>;
48
42
  currentEditCellLayout$: Observable<Nullable<ICellEditorLayout>>;
49
43
  currentEditCell$: Observable<Nullable<IEditorBridgeServiceParam>>;
50
44
  visible$: Observable<IEditorBridgeServiceVisibleParam>;
51
- interceptor: InterceptorManager<{
52
- BEFORE_CELL_EDIT: typeof BEFORE_CELL_EDIT;
53
- AFTER_CELL_EDIT: typeof AFTER_CELL_EDIT;
54
- AFTER_CELL_EDIT_ASYNC: typeof AFTER_CELL_EDIT_ASYNC;
55
- }>;
56
45
  dispose(): void;
57
46
  refreshEditCellState(): void;
58
47
  refreshEditCellPosition(resetSizeOnly?: boolean): void;
@@ -69,9 +58,9 @@ export interface IEditorBridgeService {
69
58
  disableForceKeepVisible(): void;
70
59
  isForceKeepVisible(): boolean;
71
60
  getCurrentEditorId(): Nullable<string>;
72
- beforeSetRangeValue(workbook: Workbook, worksheet: Worksheet, row: number, column: number, cellData: ICellData): Promise<Nullable<ICellData>>;
73
61
  }
74
62
  export declare class EditorBridgeService extends Disposable implements IEditorBridgeService, IDisposable {
63
+ private readonly _sheetInterceptorService;
75
64
  private readonly _renderManagerService;
76
65
  private readonly _themeService;
77
66
  private readonly _univerInstanceService;
@@ -110,12 +99,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
110
99
  readonly visible$: Observable<IEditorBridgeServiceVisibleParam>;
111
100
  private readonly _afterVisible$;
112
101
  readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
113
- readonly interceptor: InterceptorManager<{
114
- BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
115
- AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
116
- AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>;
117
- }>;
118
- constructor(_renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _refSelectionsService: SheetsSelectionsService, _contextService: IContextService);
102
+ constructor(_sheetInterceptorService: SheetInterceptorService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _refSelectionsService: SheetsSelectionsService, _contextService: IContextService);
119
103
  refreshEditCellState(): void;
120
104
  refreshEditCellPosition(resetSizeOnly?: boolean): void;
121
105
  setEditCell(param: ICurrentEditCellParam): void;
@@ -152,7 +136,5 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
152
136
  isForceKeepVisible(): boolean;
153
137
  changeEditorDirty(dirtyStatus: boolean): void;
154
138
  getEditorDirty(): boolean;
155
- beforeSetRangeValue(workbook: Workbook, worksheet: Worksheet, row: number, column: number, cellData: ICellData): Promise<Nullable<ICellDataForSheetInterceptor>>;
156
139
  }
157
140
  export declare const IEditorBridgeService: import('@wendellhu/redi').IdentifierDecorator<EditorBridgeService>;
158
- export {};
@@ -19,7 +19,9 @@ interface IMarkSelectionInfo {
19
19
  }
20
20
  export declare const IMarkSelectionService: import('@wendellhu/redi').IdentifierDecorator<IMarkSelectionService>;
21
21
  /**
22
- * For condition format selection.
22
+ * For copy and cut selection.
23
+ * also for selection when hover on conditional format items in the cf panel on the right.
24
+ * but hover on panel if data validation, uses another method to draw selection.
23
25
  */
24
26
  export declare class MarkSelectionService extends Disposable implements IMarkSelectionService {
25
27
  private readonly _currentService;
@@ -1,35 +1,14 @@
1
- import { IRange, Nullable } from '@univerjs/core';
1
+ import { IRange } from '@univerjs/core';
2
2
  import { IRangeProtectionRule, IWorksheetProtectionRule } from '@univerjs/sheets';
3
- export declare enum viewState {
4
- othersCanView = "othersCanView",
5
- noOneElseCanView = "noOneElseCanView"
6
- }
7
- export declare enum editState {
8
- designedUserCanEdit = "designedUserCanEdit",
9
- onlyMe = "onlyMe"
10
- }
11
- type IPermissionPanelBaseRule = IRangeProtectionRule | IWorksheetProtectionRule;
12
- export type IPermissionPanelRule = IPermissionPanelBaseRule & {
13
- viewStatus?: viewState;
14
- editStatus?: editState;
3
+ export declare const DEFAULT_RANGE_RULE: IRangeProtectionRule;
4
+ export type IPermissionPanelRule = (IRangeProtectionRule | IWorksheetProtectionRule) & {
15
5
  ranges: IRange[];
6
+ id: string;
16
7
  };
17
8
  export declare class SheetPermissionPanelModel {
18
9
  private _rule;
19
- private _rule$;
20
- private _oldRule;
21
- private _rangeErrorMsg$;
22
10
  private _visible;
23
11
  setVisible(v: boolean): void;
24
12
  getVisible(): boolean;
25
- rangeErrorMsg$: import('rxjs').Observable<string | undefined>;
26
- setRangeErrorMsg(msg: string | undefined): void;
27
- rule$: import('rxjs').Observable<IPermissionPanelRule>;
28
- get rule(): IPermissionPanelRule;
29
- setRule(ruleObj: Partial<IPermissionPanelRule>): void;
30
- resetRule(): void;
31
13
  reset(): void;
32
- get oldRule(): Nullable<IPermissionPanelRule>;
33
- setOldRule(ruleObj: Nullable<IPermissionPanelRule>): void;
34
14
  }
35
- export {};
@@ -3,13 +3,10 @@ export declare class SheetPermissionUserManagerService {
3
3
  private _userList;
4
4
  private _oldCollaboratorList;
5
5
  private _selectUserList;
6
- private _allUserList;
7
6
  private _selectUserList$;
8
7
  selectUserList$: import('rxjs').Observable<ICollaborator[]>;
9
8
  get userList(): ICollaborator[];
10
- get allUserList(): ICollaborator[];
11
- setAllUserList(userList: ICollaborator[]): void;
12
- setUserList(userList: ICollaborator[]): void;
9
+ setCanEditUserList(userList: ICollaborator[]): void;
13
10
  reset(): void;
14
11
  get oldCollaboratorList(): ICollaborator[];
15
12
  setOldCollaboratorList(userList: ICollaborator[]): void;
@@ -1,6 +1,6 @@
1
- import { BehaviorSubject } from 'rxjs';
2
1
  import { Nullable, Workbook } from '@univerjs/core';
3
2
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { BehaviorSubject } from 'rxjs';
4
4
  import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
5
5
  export interface IScrollState {
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord, ISelectionCell, ISelectionCellWithMergeInfo, ISelectionWithCoord, Nullable, ThemeService, Disposable, InterceptorManager, RANGE_TYPE } from '@univerjs/core';
1
+ import { ICellInfo, ICellWithCoord, IDisposable, IFreeze, IInterceptor, Injector, IRange, IRangeWithCoord, Nullable, ThemeService, Disposable, InterceptorManager, RANGE_TYPE } from '@univerjs/core';
2
2
  import { IMouseEvent, IPointerEvent, IRenderModule, Scene, SpreadsheetSkeleton, Viewport, ScrollTimer, ScrollTimerType } from '@univerjs/engine-render';
3
- import { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
3
+ import { ISelectionStyle, ISelectionWithCoord, ISelectionWithStyle } from '@univerjs/sheets';
4
4
  import { IShortcutService } from '@univerjs/ui';
5
5
  import { Observable, Subscription, BehaviorSubject, Subject } from 'rxjs';
6
6
  import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
@@ -10,10 +10,10 @@ export interface IControlFillConfig {
10
10
  newRange: IRange;
11
11
  }
12
12
  export interface ISheetSelectionRenderService {
13
- readonly selectionMoveEnd$: Observable<ISelectionWithCoordAndStyle[]>;
13
+ readonly selectionMoveEnd$: Observable<ISelectionWithCoord[]>;
14
14
  readonly controlFillConfig$: Observable<IControlFillConfig | null>;
15
- readonly selectionMoving$: Observable<ISelectionWithCoordAndStyle[]>;
16
- readonly selectionMoveStart$: Observable<ISelectionWithCoordAndStyle[]>;
15
+ readonly selectionMoving$: Observable<ISelectionWithCoord[]>;
16
+ readonly selectionMoveStart$: Observable<ISelectionWithCoord[]>;
17
17
  get selectionMoving(): boolean;
18
18
  interceptor: InterceptorManager<{
19
19
  RANGE_MOVE_PERMISSION_CHECK: IInterceptor<boolean, null>;
@@ -29,10 +29,14 @@ export interface ISheetSelectionRenderService {
29
29
  getSkeleton(): SpreadsheetSkeleton;
30
30
  getSelectionControls(): SelectionControl[];
31
31
  /** @deprecated Use the function `attachSelectionWithCoord` instead. */
32
- attachSelectionWithCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
32
+ attachSelectionWithCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoord;
33
33
  /** @deprecated Use the function `attachPrimaryWithCoord` instead`. */
34
- attachPrimaryWithCoord(primary: Nullable<Partial<ISelectionCell>>): Nullable<ISelectionCellWithMergeInfo>;
35
- getSelectionCellByPosition(x: number, y: number): Nullable<ISelectionCellWithMergeInfo>;
34
+ attachPrimaryWithCoord(primary: Nullable<Partial<ICellInfo>>): Nullable<ICellWithCoord>;
35
+ /**
36
+ * @deprecated Please use `getCellWithCoordByOffset` instead.
37
+ */
38
+ getSelectionCellByPosition(x: number, y: number): ICellWithCoord;
39
+ getCellWithCoordByOffset(x: number, y: number): Nullable<ICellWithCoord>;
36
40
  setSingleSelectionEnabled(enabled: boolean): void;
37
41
  refreshSelectionMoveEnd(): void;
38
42
  }
@@ -65,8 +69,8 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
65
69
  private _cancelUpSubscription;
66
70
  protected _skeleton: SpreadsheetSkeleton;
67
71
  protected _scene: Scene;
68
- protected _isHeaderHighlight: boolean;
69
- protected _shouldDetectMergedCells: boolean;
72
+ protected _highlightHeader: boolean;
73
+ protected _rangeType: RANGE_TYPE;
70
74
  protected _selectionStyle: ISelectionStyle;
71
75
  protected _remainLastEnabled: boolean;
72
76
  protected _skipLastEnabled: boolean;
@@ -74,15 +78,15 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
74
78
  /**
75
79
  * Mainly emit by pointerup (pointerup is handled in _onPointerdown)
76
80
  */
77
- protected readonly _selectionMoveEnd$: BehaviorSubject<ISelectionWithCoordAndStyle[]>;
78
- readonly selectionMoveEnd$: Observable<ISelectionWithCoordAndStyle[]>;
79
- protected readonly _selectionMoving$: Subject<ISelectionWithCoordAndStyle[]>;
80
- readonly selectionMoving$: Observable<ISelectionWithCoordAndStyle[]>;
81
+ protected readonly _selectionMoveEnd$: BehaviorSubject<ISelectionWithCoord[]>;
82
+ readonly selectionMoveEnd$: Observable<ISelectionWithCoord[]>;
83
+ protected readonly _selectionMoving$: Subject<ISelectionWithCoord[]>;
84
+ readonly selectionMoving$: Observable<ISelectionWithCoord[]>;
81
85
  /**
82
86
  * Mainly emit by pointerdown
83
87
  */
84
- protected readonly _selectionMoveStart$: Subject<ISelectionWithCoordAndStyle[]>;
85
- readonly selectionMoveStart$: Observable<ISelectionWithCoordAndStyle[]>;
88
+ protected readonly _selectionMoveStart$: Subject<ISelectionWithCoord[]>;
89
+ readonly selectionMoveStart$: Observable<ISelectionWithCoord[]>;
86
90
  private _selectionMoving;
87
91
  get selectionMoving(): boolean;
88
92
  protected _activeViewport: Nullable<Viewport>;
@@ -95,8 +99,12 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
95
99
  scene: Scene;
96
100
  }>;
97
101
  }>;
98
- private _escapeShortcutDisposable;
102
+ protected _escapeShortcutDisposable: Nullable<IDisposable>;
99
103
  constructor(_injector: Injector, _themeService: ThemeService, _shortcutService: IShortcutService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
104
+ /**
105
+ * If true, the selector will respond to the range of merged cells and automatically extend the selected range. If false, it will ignore the merged cells.
106
+ */
107
+ private get _shouldDetectMergedCells();
100
108
  private _initMoving;
101
109
  protected _setSelectionStyle(style: ISelectionStyle): void;
102
110
  /**
@@ -106,29 +114,32 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
106
114
  /** @deprecated This should not be provided by the selection render service. */
107
115
  getViewPort(): Viewport;
108
116
  setSingleSelectionEnabled(enabled?: boolean): void;
109
- /**
110
- * Add a selection in spreadsheet, create a new SelectionControl and then update this control by range derives from selection.
111
- * @param {ISelectionWithCoordAndStyle} selection
112
- */
113
- protected _addSelectionControlBySelectionData(selection: ISelectionWithCoordAndStyle): void;
114
- newSelectionControl(scene: Scene, _rangeType: RANGE_TYPE, skeleton: SpreadsheetSkeleton): SelectionControl;
117
+ newSelectionControl(scene: Scene, skeleton: SpreadsheetSkeleton, selection: ISelectionWithStyle): SelectionControl;
115
118
  /**
116
119
  * Update the corresponding selectionControl based on selectionsData.
117
120
  * selectionData[i] syncs selectionControls[i]
118
- * @param selections
121
+ * @param selectionsWithCoord
119
122
  */
120
- updateControlForCurrentByRangeData(selections: ISelectionWithCoordAndStyle[]): void;
123
+ resetSelectionsByModelData(selectionsWithStyleList: readonly ISelectionWithStyle[]): void;
121
124
  refreshSelectionMoveStart(): void;
122
125
  refreshSelectionMoveEnd(): void;
123
126
  protected _changeRuntime(skeleton: SpreadsheetSkeleton, scene: Scene, viewport?: Viewport): void;
124
127
  getSkeleton(): SpreadsheetSkeleton;
125
128
  /**
126
129
  * Generate selectionData from this._selectionControls.model .
127
- * @returns {ISelectionWithCoordAndStyle[]} {range, primary, style}[]
130
+ * @returns {ISelectionWithCoord[]} {range, primary, style}[]
131
+ */
132
+ getSelectionDataWithStyle(): ISelectionWithCoord[];
133
+ /**
134
+ * @TODO lumixraku DO NOT expose private props.
128
135
  */
129
- getSelectionDataWithStyle(): ISelectionWithCoordAndStyle[];
130
136
  getSelectionControls(): SelectionControl[];
131
- protected _clearSelectionControls(): void;
137
+ /**
138
+ * Add a selection in spreadsheet, create a new SelectionControl and then update this control by range derives from selection.
139
+ * @param {ISelectionWithCoord} selectionWithStyle
140
+ */
141
+ protected _addSelectionControlByModelData(selectionWithStyle: ISelectionWithStyle): SelectionControl;
142
+ protected _clearAllSelectionControls(): void;
132
143
  protected _getFreeze(): Nullable<IFreeze>;
133
144
  protected _getViewportByCell(row?: number, column?: number): Nullable<Viewport>;
134
145
  /**
@@ -136,25 +147,15 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
136
147
  */
137
148
  getActiveRange(): Nullable<IRange>;
138
149
  /**
139
- * get active selection control
150
+ * get active(actually last) selection control
140
151
  * @returns T extends SelectionControl
141
152
  */
142
153
  getActiveSelectionControl<T extends SelectionControl = SelectionControl>(): Nullable<T>;
143
154
  endSelection(): void;
144
155
  /**
145
- * Clear existed selections.
156
+ * Clear existed selections by workbookSelections.selectionMoveEnd$
146
157
  */
147
158
  protected _reset(): void;
148
- resetAndEndSelection(): void;
149
- /**
150
- * Handle pointer down event, then trigger selectionMoveStart$.
151
- * @param evt
152
- * @param _zIndex
153
- * @param rangeType
154
- * @param viewport
155
- * @param scrollTimerType
156
- */
157
- protected _onPointerDown(evt: IPointerEvent | IMouseEvent, _zIndex: number | undefined, rangeType: RANGE_TYPE | undefined, viewport: Nullable<Viewport>, scrollTimerType?: ScrollTimerType): void;
158
159
  /**
159
160
  * Init pointer move listener in each pointer down, unbind in each pointer up.
160
161
  * Both cell selections and row-column selections are supported by this method.
@@ -167,34 +168,46 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
167
168
  */
168
169
  protected _setupPointerMoveListener(viewportMain: Nullable<Viewport>, activeSelectionControl: SelectionControl, rangeType: RANGE_TYPE, scrollTimerType: ScrollTimerType | undefined, moveStartPosX: number, moveStartPosY: number): void;
169
170
  /** @deprecated Use the function `attachSelectionWithCoord` instead`. */
170
- attachSelectionWithCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
171
+ attachSelectionWithCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoord;
171
172
  /** @deprecated Use the function `attachPrimaryWithCoord` instead`. */
172
- attachPrimaryWithCoord(primary: ISelectionCell): ISelectionCellWithMergeInfo;
173
- getSelectionCellByPosition(x: number, y: number): Nullable<ISelectionCellWithMergeInfo>;
173
+ attachPrimaryWithCoord(primary: ICellInfo): ICellWithCoord;
174
174
  /**
175
- * When mousedown and mouseup need to go to the coordination and undo stack, when mousemove does not need to go to the coordination and undo stack
175
+ * @deprecated Please use `getCellWithCoordByOffset` instead.
176
176
  */
177
- protected _movingHandler(offsetX: number, offsetY: number, activeSelectionControl: Nullable<SelectionControl>, rangeType: RANGE_TYPE): void;
177
+ getSelectionCellByPosition(x: number, y: number): ICellWithCoord;
178
+ getCellWithCoordByOffset(x: number, y: number): ICellWithCoord;
178
179
  /**
179
- * Update the selection control by range.
180
- * @param control
181
- * @param newSelectionRange
182
- * @param highlight
180
+ * When mousedown and mouseup need to go to the coordination and undo stack, when mousemove does not need to go to the coordination and undo stack
183
181
  */
184
- protected _updateSelectionControlByRange(control: SelectionControl, newSelectionRange: IRangeWithCoord, highlight: Nullable<ISelectionCellWithMergeInfo>): void;
182
+ protected _movingHandler(offsetX: number, offsetY: number, activeSelectionControl: Nullable<SelectionControl>, rangeType: RANGE_TYPE): void;
185
183
  protected _clearUpdatingListeners(): void;
186
184
  protected _addEndingListeners(): void;
187
- protected _getCellRangeByCursorPosition(offsetX: number, offsetY: number, scaleX: number, scaleY: number, scrollXY: {
185
+ /**
186
+ * Get visible selection range & coord by offset on viewport. Nearly same as skeleton.getCellWithCoordByOffset
187
+ * Returning selection is only one cell. primary and range are same cell.
188
+ *
189
+ * visible selection range means getCellWithCoordByOffset needs first matched row/col in rowHeightAccumulation & colWidthAccumulation.
190
+ * Original name: _getCellRangeByCursorPosition
191
+ *
192
+ * @param offsetX position X in viewport.
193
+ * @param offsetY
194
+ * @param scaleX
195
+ * @param scaleY
196
+ * @param scrollXY
197
+ * @returns {Nullable<ISelectionWithCoord>} selection range with coord.
198
+ */
199
+ protected _getSelectionWithCoordByOffset(offsetX: number, offsetY: number, scaleX: number, scaleY: number, scrollXY: {
188
200
  x: number;
189
201
  y: number;
190
202
  }): Nullable<ISelectionWithCoord>;
191
203
  protected _checkClearPreviousControls(evt: IPointerEvent | IMouseEvent): void;
192
- private _performSelectionByTwoCells;
193
- /**
194
- * Reset all this.selectionControls by selectionsData.
195
- * @param selectionsData
196
- */
197
- protected _refreshSelectionControl(selectionsData: readonly ISelectionWithStyle[]): void;
204
+ protected _makeSelectionByTwoCells(currentCell: ICellWithCoord, startSelectionRange: IRangeWithCoord, skeleton: SpreadsheetSkeleton, rangeType: RANGE_TYPE, activeControl: SelectionControl): void;
198
205
  }
199
- export declare function getAllSelection(skeleton: SpreadsheetSkeleton): ISelectionWithStyle;
200
- export declare function getTopLeftSelection(skeleton: SpreadsheetSkeleton): Nullable<ISelectionWithStyle>;
206
+ export declare function selectionDataForSelectAll(skeleton: SpreadsheetSkeleton): ISelectionWithStyle;
207
+ export declare function getTopLeftSelectionOfCurrSheet(skeleton: SpreadsheetSkeleton): ISelectionWithStyle;
208
+ /**
209
+ * @deprecated use `getTopLeftSelectionOfCurrSheet` instead
210
+ */
211
+ declare const getTopLeftSelection: typeof getTopLeftSelectionOfCurrSheet;
212
+ export { getTopLeftSelection };
213
+ export declare function genSelectionByRange(skeleton: SpreadsheetSkeleton, range: IRange): ISelectionWithStyle;
@@ -1,4 +1,6 @@
1
+ import { ThemeService } from '@univerjs/core';
1
2
  import { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
3
+ import { ISelectionStyle } from '@univerjs/sheets';
2
4
  export declare const RANGE_MOVE_PERMISSION_CHECK: import('@univerjs/core').IInterceptor<boolean, null>;
3
5
  export declare const RANGE_FILL_PERMISSION_CHECK: import('@univerjs/core').IInterceptor<boolean, {
4
6
  x: number;
@@ -10,3 +12,4 @@ export declare enum SELECTION_SHAPE_DEPTH {
10
12
  FORMULA_EDITOR_SHOW = 100,// see packages/sheets-formula/src/controllers/formula-editor-show.controller.ts
11
13
  MARK_SELECTION = 10000
12
14
  }
15
+ export declare function genNormalSelectionStyle(themeService: ThemeService): ISelectionStyle;
@@ -1,6 +1,6 @@
1
1
  import { Workbook, ICommandService, IContextService, ILogService, Injector, RANGE_TYPE, ThemeService } from '@univerjs/core';
2
- import { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, Scene, Viewport } from '@univerjs/engine-render';
3
- import { SheetsSelectionsService } from '@univerjs/sheets';
2
+ import { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, Scene, SpreadsheetSkeleton, Viewport } from '@univerjs/engine-render';
3
+ import { ISelectionWithStyle, SheetsSelectionsService } from '@univerjs/sheets';
4
4
  import { IShortcutService } from '@univerjs/ui';
5
5
  import { SheetScrollManagerService } from '../scroll-manager.service';
6
6
  import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
@@ -34,22 +34,22 @@ export declare class MobileSheetsSelectionRenderService extends BaseSelectionRen
34
34
  private _initUserActionSyncListener;
35
35
  private _updateSelections;
36
36
  /**
37
- * invoked when pointerup or longpress on spreadsheet, or pointerdown on row&col
37
+ * invoked when pointerup or long press on spreadsheet, or pointerdown on row&col
38
38
  * then move curr selection to cell at cursor
39
- * Main perpose to create a new selection, or update curr selection to a new range.
39
+ * Main purpose to create a new selection, or update curr selection to a new range.
40
40
  * @param evt
41
41
  * @param _zIndex
42
42
  * @param rangeType
43
43
  * @param viewport
44
44
  */
45
- createNewSelection(evt: IPointerEvent | IMouseEvent, _zIndex?: number, rangeType?: RANGE_TYPE, viewport?: Viewport): false | undefined;
45
+ createNewSelection(evt: IPointerEvent | IMouseEvent, _zIndex?: number, rangeType?: RANGE_TYPE, viewport?: Viewport): void;
46
46
  /**
47
47
  * Not same as PC version,
48
48
  * new selection control for mobile do one more thing: bind event for two control points.
49
49
  * @param scene
50
50
  * @param rangeType
51
51
  */
52
- newSelectionControl(scene: Scene, rangeType: RANGE_TYPE): MobileSelectionControl;
52
+ newSelectionControl(scene: Scene, skeleton: SpreadsheetSkeleton, selection: ISelectionWithStyle): MobileSelectionControl;
53
53
  private _getActiveViewport;
54
54
  private _getSheetObject;
55
55
  private _normalSelectionDisabled;
@@ -57,7 +57,7 @@ export declare class MobileSheetsSelectionRenderService extends BaseSelectionRen
57
57
  private _fillControlPointerDownHandler;
58
58
  private _changeCurrCellWhenControlPointerDown;
59
59
  /**
60
- * Not same as _moving in base selection render service
60
+ * Not same as _moving in PC (base selection render service)
61
61
  * The diff is
62
62
  * In base version, new selection is determined by the cursor cell and _startRangeWhenPointerDown
63
63
  *
@@ -5,9 +5,7 @@ import { SelectionControl } from './selection-control';
5
5
  export declare class MobileSelectionControl extends SelectionControl {
6
6
  protected _scene: Scene;
7
7
  protected _zIndex: number;
8
- protected _highlightHeader: boolean;
9
8
  protected readonly _themeService: ThemeService;
10
- protected _rangeType: RANGE_TYPE;
11
9
  /**
12
10
  * topLeft controlPointer, it is not visible, just transparent, for handling event.
13
11
  */
@@ -16,7 +14,14 @@ export declare class MobileSelectionControl extends SelectionControl {
16
14
  * bottomRight controlPointer, it is not visible, just transparent, for handling event.
17
15
  */
18
16
  private _fillControlBottomRight;
19
- constructor(_scene: Scene, _zIndex: number, _highlightHeader: boolean | undefined, _themeService: ThemeService, _rangeType?: RANGE_TYPE);
17
+ protected _rangeType: RANGE_TYPE;
18
+ constructor(_scene: Scene, _zIndex: number, _themeService: ThemeService, options?: {
19
+ highlightHeader?: boolean;
20
+ enableAutoFill?: boolean;
21
+ rowHeaderWidth: number;
22
+ columnHeaderHeight: number;
23
+ rangeType?: RANGE_TYPE;
24
+ });
20
25
  initControlPoints(): void;
21
26
  get fillControlTopLeft(): Rect<IRectProps> | null;
22
27
  set fillControlTopLeft(value: Rect);
@@ -25,7 +30,7 @@ export declare class MobileSelectionControl extends SelectionControl {
25
30
  get rangeType(): RANGE_TYPE;
26
31
  set rangeType(value: RANGE_TYPE);
27
32
  dispose(): void;
28
- protected _setSizeAndStyleForSelectionControl(style: ISelectionStyle): void;
33
+ protected _updateLayoutOfSelectionControl(style: ISelectionStyle): void;
29
34
  getViewportMainScrollInfo(): {
30
35
  viewportScrollX: number;
31
36
  viewportScrollY: number;