@univerjs/sheets-ui 0.1.9 → 0.1.11

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 (101) hide show
  1. package/lib/cjs/index.js +12 -12
  2. package/lib/es/index.js +6921 -6577
  3. package/lib/types/basics/editor/get-editor-object.d.ts +2 -1
  4. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +1 -1
  5. package/lib/types/commands/commands/auto-fill.command.d.ts +2 -0
  6. package/lib/types/commands/commands/set-format-painter.command.d.ts +1 -1
  7. package/lib/types/commands/commands/set-selection.command.d.ts +1 -1
  8. package/lib/types/commands/operations/activate-cell-edit.operation.d.ts +1 -1
  9. package/lib/types/commands/operations/cell-edit.operation.d.ts +1 -1
  10. package/lib/types/commands/operations/scroll.operation.d.ts +1 -1
  11. package/lib/types/commands/operations/set-format-painter.operation.d.ts +1 -1
  12. package/lib/types/commands/operations/set-zoom-ratio.operation.d.ts +1 -1
  13. package/lib/types/common/utils.d.ts +2 -2
  14. package/lib/types/components/border-panel/BorderPanel.d.ts +1 -1
  15. package/lib/types/components/border-panel/border-line/BorderLine.d.ts +1 -1
  16. package/lib/types/components/border-panel/interface.d.ts +1 -1
  17. package/lib/types/components/hook.d.ts +4 -0
  18. package/lib/types/components/menu-item-input/MenuItemInput.d.ts +1 -1
  19. package/lib/types/controllers/auto-fill.controller.d.ts +9 -7
  20. package/lib/types/controllers/auto-height.controller.d.ts +14 -5
  21. package/lib/types/controllers/cell-alert.controller.d.ts +5 -3
  22. package/lib/types/controllers/cell-custom-render.controller.d.ts +5 -4
  23. package/lib/types/controllers/clipboard/clipboard.controller.d.ts +6 -7
  24. package/lib/types/controllers/clipboard/utils.d.ts +3 -3
  25. package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +1 -1
  26. package/lib/types/controllers/editor/editing.controller.d.ts +1 -5
  27. package/lib/types/controllers/editor/end-edit.controller.d.ts +6 -6
  28. package/lib/types/controllers/editor/formula-editor.controller.d.ts +6 -4
  29. package/lib/types/controllers/editor/start-edit.controller.d.ts +5 -5
  30. package/lib/types/controllers/force-string-alert-render.controller.d.ts +15 -0
  31. package/lib/types/controllers/force-string-render.controller.d.ts +6 -5
  32. package/lib/types/controllers/format-painter/format-painter.controller.d.ts +3 -7
  33. package/lib/types/controllers/hover-render.controller.d.ts +13 -0
  34. package/lib/types/controllers/mark-selection.controller.d.ts +6 -4
  35. package/lib/types/controllers/menu/border.menu.d.ts +2 -2
  36. package/lib/types/controllers/menu/insert.menu.d.ts +1 -1
  37. package/lib/types/controllers/menu/menu-util.d.ts +1 -1
  38. package/lib/types/controllers/menu/menu.d.ts +2 -2
  39. package/lib/types/controllers/menu/merge.menu.d.ts +1 -1
  40. package/lib/types/controllers/menu/sheet.menu.d.ts +1 -1
  41. package/lib/types/controllers/move-range.controller.d.ts +2 -2
  42. package/lib/types/controllers/{contextmenu/contextmenu.controller.d.ts → render-controllers/contextmenu.render-controller.d.ts} +7 -8
  43. package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +35 -0
  44. package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +11 -0
  45. package/lib/types/controllers/{freeze.render-controller.d.ts → render-controllers/freeze.render-controller.d.ts} +5 -5
  46. package/lib/types/controllers/render-controllers/header-menu.render-controller.d.ts +27 -0
  47. package/lib/types/controllers/{header-move.controller.d.ts → render-controllers/header-move.render-controller.d.ts} +7 -10
  48. package/lib/types/controllers/{header-resize.render-controller.d.ts → render-controllers/header-resize.render-controller.d.ts} +4 -5
  49. package/lib/types/controllers/{header-unhide.render-controller.d.ts → render-controllers/header-unhide.render-controller.d.ts} +2 -2
  50. package/lib/types/controllers/{scroll.controller.d.ts → render-controllers/scroll.render-controller.d.ts} +7 -6
  51. package/lib/types/controllers/{selection.controller.d.ts → render-controllers/selection.render-controller.d.ts} +10 -10
  52. package/lib/types/controllers/render-controllers/sheet.render-controller.d.ts +15 -0
  53. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +15 -0
  54. package/lib/types/controllers/sheet-render.controller.d.ts +5 -4
  55. package/lib/types/controllers/sheet-ui.controller.d.ts +2 -2
  56. package/lib/types/controllers/shortcuts/selection.shortcut.d.ts +1 -1
  57. package/lib/types/controllers/status-bar.controller.d.ts +4 -4
  58. package/lib/types/controllers/utils/component-tools.d.ts +9 -2
  59. package/lib/types/controllers/utils/range-tools.d.ts +1 -1
  60. package/lib/types/index.d.ts +6 -3
  61. package/lib/types/locale/index.d.ts +1 -0
  62. package/lib/types/locale/ru-RU.d.ts +4 -0
  63. package/lib/types/services/auto-fill/auto-fill.service.d.ts +9 -6
  64. package/lib/types/services/auto-fill/type.d.ts +2 -1
  65. package/lib/types/services/canvas-pop-manager.service.d.ts +5 -5
  66. package/lib/types/services/cell-alert-manager.service.d.ts +3 -3
  67. package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +1 -1
  68. package/lib/types/services/clipboard/clipboard.service.d.ts +18 -7
  69. package/lib/types/services/clipboard/copy-content-cache.d.ts +2 -2
  70. package/lib/types/services/clipboard/html-to-usm/converter.d.ts +3 -3
  71. package/lib/types/services/clipboard/type.d.ts +1 -1
  72. package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +1 -1
  73. package/lib/types/services/clipboard/utils.d.ts +2 -2
  74. package/lib/types/services/editor/cell-editor-manager.service.d.ts +2 -2
  75. package/lib/types/services/editor/formula-editor-manager.service.d.ts +2 -2
  76. package/lib/types/services/editor-bridge.service.d.ts +7 -7
  77. package/lib/types/services/format-painter/format-painter.service.d.ts +3 -3
  78. package/lib/types/services/hover-manager.service.d.ts +4 -4
  79. package/lib/types/services/mark-selection/mark-selection.service.d.ts +5 -5
  80. package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +1 -1
  81. package/lib/types/services/selection/selection-render.service.d.ts +24 -11
  82. package/lib/types/services/selection/selection-shape-extension.d.ts +3 -3
  83. package/lib/types/services/selection/selection-shape.d.ts +4 -4
  84. package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +3 -3
  85. package/lib/types/services/sheet-skeleton-manager.service.d.ts +5 -4
  86. package/lib/types/services/shortcut-experience.service.d.ts +2 -2
  87. package/lib/types/services/status-bar.service.d.ts +3 -3
  88. package/lib/types/sheets-ui-plugin.d.ts +2 -2
  89. package/lib/types/views/cell-alert/CellAlertPopup.d.ts +1 -1
  90. package/lib/types/views/defined-name/DefinedNameInput.d.ts +1 -1
  91. package/lib/types/views/operate-container/AutoFillPopupMenu.d.ts +1 -1
  92. package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +1 -1
  93. package/lib/types/views/sheet-canvas-view.d.ts +5 -13
  94. package/lib/types/views/status-bar/CopyableStatisticItem.d.ts +1 -1
  95. package/lib/umd/index.js +11 -11
  96. package/package.json +23 -23
  97. package/lib/types/controllers/editor-bridge.controller.d.ts +0 -39
  98. package/lib/types/controllers/force-string-alert.controller.d.ts +0 -13
  99. package/lib/types/controllers/header-menu.controller.d.ts +0 -29
  100. package/lib/types/controllers/hover.controller.d.ts +0 -12
  101. package/lib/types/controllers/zoom.controller.d.ts +0 -24
@@ -1,9 +1,9 @@
1
- import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
2
- import { SelectionShape } from '../selection/selection-shape';
3
- import { ISelectionRenderService } from '../selection/selection-render.service';
4
- import { ISelectionWithStyle } from '@univerjs/sheets';
5
- import { IRenderManagerService } from '@univerjs/engine-render';
6
1
  import { Disposable, IUniverInstanceService, ThemeService } from '@univerjs/core';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { ISelectionWithStyle } from '@univerjs/sheets';
4
+ import { ISelectionRenderService } from '../selection/selection-render.service';
5
+ import { SelectionShape } from '../selection/selection-shape';
6
+ import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
7
7
 
8
8
  export interface IMarkSelectionService {
9
9
  addShape(selection: ISelectionWithStyle, exits?: string[], zIndex?: number): string | null;
@@ -1,5 +1,5 @@
1
- import { Dependency, Injector } from '@wendellhu/redi';
2
1
  import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
2
+ import { Dependency, Injector } from '@wendellhu/redi';
3
3
 
4
4
  export interface ITestBed {
5
5
  univer: Univer;
@@ -1,11 +1,11 @@
1
- import { SelectionShape } from './selection-shape';
2
- import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
3
- import { Observable } from 'rxjs';
4
- import { Injector } from '@wendellhu/redi';
5
- import { IShortcutService } from '@univerjs/ui';
6
- import { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
7
- import { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton, Viewport, ScrollTimerType } from '@univerjs/engine-render';
8
1
  import { IRange, IRangeWithCoord, ISelection, ISelectionCell, ISelectionCellWithCoord, Nullable, RANGE_TYPE, ThemeService } from '@univerjs/core';
2
+ import { IMouseEvent, IPointerEvent, Scene, SpreadsheetSkeleton, Viewport, ScrollTimerType } from '@univerjs/engine-render';
3
+ import { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
4
+ import { IShortcutService } from '@univerjs/ui';
5
+ import { Injector } from '@wendellhu/redi';
6
+ import { Observable } from 'rxjs';
7
+ import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
8
+ import { SelectionShape } from './selection-shape';
9
9
 
10
10
  export interface IControlFillConfig {
11
11
  oldRange: IRange;
@@ -16,6 +16,7 @@ export interface ISelectionRenderService {
16
16
  readonly controlFillConfig$: Observable<IControlFillConfig | null>;
17
17
  readonly selectionMoving$: Observable<ISelectionWithCoordAndStyle[]>;
18
18
  readonly selectionMoveStart$: Observable<ISelectionWithCoordAndStyle[]>;
19
+ readonly usable$: Observable<boolean>;
19
20
  enableHeaderHighlight(): void;
20
21
  disableHeaderHighlight(): void;
21
22
  enableDetectMergedCell(): void;
@@ -32,14 +33,15 @@ export interface ISelectionRenderService {
32
33
  disableSkipRemainLast(): void;
33
34
  addControlToCurrentByRangeData(data: ISelectionWithCoordAndStyle): void;
34
35
  updateControlForCurrentByRangeData(selections: ISelectionWithCoordAndStyle[]): void;
35
- changeRuntime(skeleton: SpreadsheetSkeleton, scene: Scene, viewport?: Viewport): void;
36
+ changeRuntime(skeleton: Nullable<SpreadsheetSkeleton>, scene: Nullable<Scene>, viewport?: Viewport): void;
37
+ /** @deprecated This should not be provided by the selection render service. */
36
38
  getViewPort(): Viewport;
37
39
  getCurrentControls(): SelectionShape[];
38
40
  getActiveSelections(): Nullable<ISelection[]>;
39
41
  getActiveRange(): Nullable<IRange>;
40
42
  getActiveSelection(): Nullable<SelectionShape>;
41
43
  getSelectionDataWithStyle(): ISelectionWithCoordAndStyle[];
42
- convertSelectionRangeToData(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
44
+ convertSelectionToCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
43
45
  convertRangeDataToSelection(range: IRange): Nullable<IRangeWithCoord>;
44
46
  convertCellRangeToInfo(primary: Nullable<ISelectionCell>): Nullable<ISelectionCellWithCoord>;
45
47
  eventTrigger(evt: IPointerEvent | IMouseEvent, zIndex: number, rangeType: RANGE_TYPE, viewport?: Viewport, scrollTimerType?: ScrollTimerType): void;
@@ -58,6 +60,8 @@ export interface ISelectionRenderService {
58
60
  * you can adjust the style and performance of each selection area.
59
61
  * This service is used in conjunction with the SelectionManagerService
60
62
  * to implement functions related to the selection area in univer.
63
+ *
64
+ * @todo Refactor it to RenderController.
61
65
  */
62
66
  export declare class SelectionRenderService implements ISelectionRenderService {
63
67
  private readonly _themeService;
@@ -100,6 +104,12 @@ export declare class SelectionRenderService implements ISelectionRenderService {
100
104
  */
101
105
  readonly selectionMoveStart$: Observable<ISelectionWithCoordAndStyle[]>;
102
106
  private _activeViewport;
107
+ /**
108
+ * This service relies on the scene and skeleton to work
109
+ * Use usable$ to check if this service works
110
+ */
111
+ private readonly _usable$;
112
+ readonly usable$: Observable<boolean>;
103
113
  constructor(_themeService: ThemeService, _shortcutService: IShortcutService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _injector: Injector);
104
114
  enableHeaderHighlight(): void;
105
115
  disableHeaderHighlight(): void;
@@ -132,7 +142,7 @@ export declare class SelectionRenderService implements ISelectionRenderService {
132
142
  */
133
143
  updateControlForCurrentByRangeData(selections: ISelectionWithCoordAndStyle[]): void;
134
144
  refreshSelectionMoveStart(): void;
135
- changeRuntime(skeleton: SpreadsheetSkeleton, scene: Scene, viewport?: Viewport): void;
145
+ changeRuntime(skeleton: Nullable<SpreadsheetSkeleton>, scene: Nullable<Scene>, viewport?: Viewport): void;
136
146
  getSelectionDataWithStyle(): ISelectionWithCoordAndStyle[];
137
147
  getCurrentControls(): SelectionShape[];
138
148
  private _clearSelectionControls;
@@ -168,7 +178,7 @@ export declare class SelectionRenderService implements ISelectionRenderService {
168
178
  * @returns
169
179
  */
170
180
  eventTrigger(evt: IPointerEvent | IMouseEvent, zIndex?: number, rangeType?: RANGE_TYPE, viewport?: Viewport, scrollTimerType?: ScrollTimerType): false | undefined;
171
- convertSelectionRangeToData(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
181
+ convertSelectionToCoord(selectionWithStyle: ISelectionWithStyle): ISelectionWithCoordAndStyle;
172
182
  convertRangeDataToSelection(range: IRange): Nullable<IRangeWithCoord>;
173
183
  convertCellRangeToInfo(primary: Nullable<ISelectionCell>): Nullable<ISelectionCellWithCoord>;
174
184
  /**
@@ -179,4 +189,7 @@ export declare class SelectionRenderService implements ISelectionRenderService {
179
189
  private _addCancelObserver;
180
190
  private _getSelectedRangeWithMerge;
181
191
  }
192
+ /**
193
+ * @deprecated Should be refactored to RenderUnit.
194
+ */
182
195
  export declare const ISelectionRenderService: import('@wendellhu/redi').IdentifierDecorator<SelectionRenderService>;
@@ -1,7 +1,7 @@
1
- import { SelectionShape } from './selection-shape';
2
- import { Injector } from '@wendellhu/redi';
3
- import { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
4
1
  import { IRangeWithCoord, ThemeService } from '@univerjs/core';
2
+ import { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
3
+ import { Injector } from '@wendellhu/redi';
4
+ import { SelectionShape } from './selection-shape';
5
5
 
6
6
  export interface ISelectionShapeTargetSelection {
7
7
  originControl: SelectionShape;
@@ -1,8 +1,8 @@
1
- import { SelectionRenderModel } from './selection-render-model';
2
- import { Subject } from 'rxjs';
3
- import { ISelectionStyle, ISelectionWithCoordAndStyle } from '@univerjs/sheets';
4
- import { Scene, Group, Rect } from '@univerjs/engine-render';
5
1
  import { IRangeWithCoord, ISelectionCellWithCoord, Nullable, ThemeService, Disposable } from '@univerjs/core';
2
+ import { Scene, Group, Rect } from '@univerjs/engine-render';
3
+ import { ISelectionStyle, ISelectionWithCoordAndStyle } from '@univerjs/sheets';
4
+ import { Subject } from 'rxjs';
5
+ import { SelectionRenderModel } from './selection-render-model';
6
6
 
7
7
  /**
8
8
  * The main selection canvas component
@@ -1,7 +1,7 @@
1
- import { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';
2
- import { Observable } from 'rxjs';
3
- import { IDisposable } from '@wendellhu/redi';
4
1
  import { Disposable } from '@univerjs/core';
2
+ import { IDisposable } from '@wendellhu/redi';
3
+ import { Observable } from 'rxjs';
4
+ import { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';
5
5
 
6
6
  export interface ISheetBarMenuHandler {
7
7
  handleSheetBarMenu(): void;
@@ -1,6 +1,6 @@
1
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Nullable, IUniverInstanceService } from '@univerjs/core';
2
2
  import { SpreadsheetSkeleton } from '@univerjs/engine-render';
3
- import { Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
3
+ import { IDisposable, Injector } from '@wendellhu/redi';
4
4
 
5
5
  export interface ISheetSkeletonManagerParam {
6
6
  unitId: string;
@@ -20,11 +20,12 @@ export interface ISheetSkeletonManagerSearch {
20
20
  * Each application and sub-table has its own viewModel (skeleton).
21
21
  * The viewModel is also a temporary storage variable, which does not need to be persisted,
22
22
  * so it is managed uniformly through the service.
23
+ *
24
+ * @todo RenderUnit - We should move this to RenderUnit as well after all dependents have been moved.
23
25
  */
24
26
  export declare class SheetSkeletonManagerService implements IDisposable {
25
27
  private readonly _univerInstanceService;
26
28
  private readonly _injector;
27
- private readonly _localeService;
28
29
  private _currentSkeleton;
29
30
  private _sheetSkeletonParam;
30
31
  private readonly _currentSkeleton$;
@@ -34,7 +35,7 @@ export declare class SheetSkeletonManagerService implements IDisposable {
34
35
  */
35
36
  private readonly _currentSkeletonBefore$;
36
37
  readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<ISheetSkeletonManagerParam>>;
37
- constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector, _localeService: LocaleService);
38
+ constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector);
38
39
  dispose(): void;
39
40
  /** @deprecated */
40
41
  getCurrent(): Nullable<ISheetSkeletonManagerParam>;
@@ -1,6 +1,6 @@
1
- import { IDisposable } from '@wendellhu/redi';
2
- import { KeyCode } from '@univerjs/ui';
3
1
  import { ISelection, ITextRangeParam, Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
+ import { KeyCode } from '@univerjs/ui';
3
+ import { IDisposable } from '@wendellhu/redi';
4
4
 
5
5
  export interface IShortcutExperienceSearch {
6
6
  unitId: string;
@@ -1,7 +1,7 @@
1
- import { Observable } from 'rxjs';
2
- import { IDisposable } from '@wendellhu/redi';
3
- import { IFunctionNames } from '@univerjs/engine-formula';
4
1
  import { Nullable } from '@univerjs/core';
2
+ import { IFunctionNames } from '@univerjs/engine-formula';
3
+ import { IDisposable } from '@wendellhu/redi';
4
+ import { Observable } from 'rxjs';
5
5
 
6
6
  export interface IStatusBarService {
7
7
  state$: Observable<Nullable<IStatusBarServiceStatus>>;
@@ -1,6 +1,6 @@
1
- import { IRenderManagerService } from '@univerjs/engine-render';
2
- import { Injector } from '@wendellhu/redi';
3
1
  import { IUniverInstanceService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { IRenderManagerService } from '@univerjs/engine-render';
4
4
 
5
5
  export declare class UniverSheetsUIPlugin extends Plugin {
6
6
  readonly _injector: Injector;
@@ -1,5 +1,5 @@
1
- import { ICanvasPopup } from '../../services/canvas-pop-manager.service';
2
1
  import { default as React } from 'react';
2
+ import { ICanvasPopup } from '../../services/canvas-pop-manager.service';
3
3
 
4
4
  export declare function CellAlert({ popup }: {
5
5
  popup: ICanvasPopup;
@@ -1,5 +1,5 @@
1
- import { IDefinedNamesServiceParam } from '@univerjs/engine-formula';
2
1
  import { default as React } from 'react';
2
+ import { IDefinedNamesServiceParam } from '@univerjs/engine-formula';
3
3
 
4
4
  export interface IDefinedNameInputProps extends Omit<IDefinedNamesServiceParam, 'id'> {
5
5
  inputId: string;
@@ -1,5 +1,5 @@
1
- import { APPLY_TYPE } from '../../services/auto-fill/type';
2
1
  import { default as React } from 'react';
2
+ import { APPLY_TYPE } from '../../services/auto-fill/type';
3
3
 
4
4
  export interface IAnchorPoint {
5
5
  row: number;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { BooleanNumber } from '@univerjs/core';
2
+ import { default as React } from 'react';
3
3
 
4
4
  export interface IBaseSheetBarProps {
5
5
  label?: string;
@@ -1,24 +1,16 @@
1
+ import { Workbook, ICommandService, RxDisposable } from '@univerjs/core';
2
+ import { IRenderContext, IRenderController, IRenderManagerService } from '@univerjs/engine-render';
1
3
  import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
2
- import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
4
4
 
5
- /**
6
- * @todo RenderUnit
7
- */
8
- export declare class SheetCanvasView extends RxDisposable {
9
- private readonly _univerInstanceService;
5
+ export declare class SheetCanvasView extends RxDisposable implements IRenderController {
6
+ private readonly _context;
10
7
  private readonly _commandService;
11
8
  private readonly _renderManagerService;
12
9
  private readonly _sheetSkeletonManagerService;
13
- private _scene;
14
10
  private readonly _fps$;
15
11
  readonly fps$: import('rxjs').Observable<string>;
16
- constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
17
- private _initialize;
12
+ constructor(_context: IRenderContext<Workbook>, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
18
13
  dispose(): void;
19
- private _init;
20
- private _dispose;
21
- private _create;
22
14
  private _addNewRender;
23
15
  private _addComponent;
24
16
  private _addViewport;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { IFunctionNames } from '@univerjs/engine-formula';
2
+ import { default as React } from 'react';
3
3
 
4
4
  export interface IStatisticItem {
5
5
  name: IFunctionNames;