@univerjs/sheets-ui 0.1.6 → 0.1.8
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/cjs/index.js +14 -13
- package/lib/es/index.js +8117 -7448
- package/lib/index.css +1 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +1 -1
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +2 -2
- package/lib/types/commands/operations/cell-edit.operation.d.ts +1 -0
- package/lib/types/controllers/cell-custom-render.controller.d.ts +3 -0
- package/lib/types/controllers/clipboard/utils.d.ts +10 -9
- package/lib/types/controllers/contextmenu/contextmenu.controller.d.ts +4 -2
- package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +1 -1
- package/lib/types/controllers/editor/editing.controller.d.ts +2 -2
- package/lib/types/controllers/editor/end-edit.controller.d.ts +3 -3
- package/lib/types/controllers/editor/start-edit.controller.d.ts +2 -2
- package/lib/types/controllers/editor-bridge.controller.d.ts +2 -2
- package/lib/types/controllers/force-string-alert.controller.d.ts +13 -0
- package/lib/types/controllers/force-string-render.controller.d.ts +15 -0
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts +2 -2
- package/lib/types/controllers/{freeze.controller.d.ts → freeze.render-controller.d.ts} +5 -8
- package/lib/types/controllers/header-menu.controller.d.ts +2 -2
- package/lib/types/controllers/header-move.controller.d.ts +2 -2
- package/lib/types/controllers/{header-resize.controller.d.ts → header-resize.render-controller.d.ts} +6 -7
- package/lib/types/controllers/header-unhide.render-controller.d.ts +20 -0
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +8 -1
- package/lib/types/controllers/menu/menu-util.d.ts +9 -0
- package/lib/types/controllers/scroll.controller.d.ts +2 -2
- package/lib/types/controllers/selection.controller.d.ts +3 -2
- package/lib/types/controllers/sheet-render.controller.d.ts +14 -4
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +1 -0
- package/lib/types/controllers/shortcuts/utils.d.ts +1 -0
- package/lib/types/controllers/utils/__tests__/cell-tools.spec.d.ts +16 -0
- package/lib/types/controllers/utils/cell-tools.d.ts +17 -0
- package/lib/types/controllers/utils/component-tools.d.ts +3 -3
- package/lib/types/controllers/utils/range-tools.d.ts +17 -0
- package/lib/types/controllers/zoom.controller.d.ts +2 -2
- package/lib/types/index.d.ts +6 -1
- package/lib/types/locale/zh-CN.d.ts +9 -0
- package/lib/types/services/auto-fill/tools.d.ts +1 -0
- package/lib/types/services/auto-fill/type.d.ts +4 -3
- package/lib/types/services/canvas-pop-manager.service.d.ts +9 -7
- package/lib/types/services/cell-alert-manager.service.d.ts +11 -4
- package/lib/types/services/clipboard/__tests__/clipboard-paste-alignment.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-paste-border.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-paste-font.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-paste-form-excel.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-paste-from-google.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-paste-rotate.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +1 -1
- package/lib/types/services/clipboard/__tests__/constant.d.ts +27 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +8 -4
- package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -2
- package/lib/types/services/clipboard/html-to-usm/parse-node-style.d.ts +1 -1
- package/lib/types/services/clipboard/type.d.ts +24 -8
- package/lib/types/services/clipboard/utils.d.ts +3 -0
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor-bridge.service.d.ts +2 -2
- package/lib/types/services/hover-manager.service.d.ts +4 -5
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +3 -5
- package/lib/types/services/selection/__test__/create-service-test-bed.d.ts +1 -1
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +6 -3
- package/lib/types/services/shortcut-experience.service.d.ts +2 -2
- package/lib/types/sheets-ui-plugin.d.ts +8 -4
- package/lib/types/views/cell-alert/CellAlertPopup.d.ts +4 -1
- package/lib/types/views/header-unhide-shape.d.ts +1 -1
- package/lib/types/views/sheet-canvas-view.d.ts +6 -5
- package/lib/types/views/sheet-container/SheetContainer.d.ts +3 -3
- package/lib/umd/index.js +14 -13
- package/package.json +28 -28
- package/lib/types/controllers/header-unhide.controller.d.ts +0 -21
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
2
|
+
import { ICellData, IDocumentData, IMutationInfo, IRange, ObjectMatrix } from '@univerjs/core';
|
|
2
3
|
|
|
3
4
|
export declare enum COPY_TYPE {
|
|
4
5
|
COPY = "COPY",
|
|
@@ -17,13 +18,23 @@ export interface IParsedCellValue {
|
|
|
17
18
|
properties?: IClipboardPropertyItem;
|
|
18
19
|
content: string;
|
|
19
20
|
}
|
|
21
|
+
export interface IParsedCellValueByClipboard {
|
|
22
|
+
rowSpan?: number;
|
|
23
|
+
colSpan?: number;
|
|
24
|
+
style?: string;
|
|
25
|
+
content?: string;
|
|
26
|
+
richTextParma?: {
|
|
27
|
+
p?: IDocumentData;
|
|
28
|
+
v?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
20
31
|
export interface IUniverSheetCopyDataModel {
|
|
21
32
|
rowProperties?: IClipboardPropertyItem[];
|
|
22
33
|
colProperties?: IClipboardPropertyItem[] | null;
|
|
23
34
|
cellMatrix: ObjectMatrix<ICellDataWithSpanInfo>;
|
|
24
35
|
}
|
|
25
36
|
export interface IPasteTarget {
|
|
26
|
-
pastedRange:
|
|
37
|
+
pastedRange: IDiscreteRange;
|
|
27
38
|
subUnitId: string;
|
|
28
39
|
unitId: string;
|
|
29
40
|
}
|
|
@@ -37,6 +48,11 @@ export interface ISheetRangeLocation {
|
|
|
37
48
|
subUnitId: string;
|
|
38
49
|
unitId: string;
|
|
39
50
|
}
|
|
51
|
+
export interface ISheetDiscreteRangeLocation {
|
|
52
|
+
range: IDiscreteRange;
|
|
53
|
+
subUnitId: string;
|
|
54
|
+
unitId: string;
|
|
55
|
+
}
|
|
40
56
|
export interface ISpecialPasteInfo {
|
|
41
57
|
label: string;
|
|
42
58
|
icon?: string;
|
|
@@ -93,25 +109,25 @@ export interface ISheetClipboardHook {
|
|
|
93
109
|
*
|
|
94
110
|
* @returns if it block copying it should return false
|
|
95
111
|
*/
|
|
96
|
-
onBeforePaste?(pasteTo:
|
|
112
|
+
onBeforePaste?(pasteTo: ISheetDiscreteRangeLocation): boolean;
|
|
97
113
|
/**
|
|
98
114
|
*
|
|
99
115
|
* @param row
|
|
100
116
|
* @param col
|
|
101
117
|
*/
|
|
102
|
-
onPasteCells?(pasteFrom:
|
|
118
|
+
onPasteCells?(pasteFrom: ISheetDiscreteRangeLocation | null, pasteTo: ISheetDiscreteRangeLocation, data: ObjectMatrix<ICellDataWithSpanInfo>, payload: ICopyPastePayload): {
|
|
103
119
|
undos: IMutationInfo[];
|
|
104
120
|
redos: IMutationInfo[];
|
|
105
121
|
};
|
|
106
|
-
onPasteRows?(pasteTo:
|
|
122
|
+
onPasteRows?(pasteTo: ISheetDiscreteRangeLocation, rowProperties: IClipboardPropertyItem[], payload: ICopyPastePayload): {
|
|
107
123
|
undos: IMutationInfo[];
|
|
108
124
|
redos: IMutationInfo[];
|
|
109
125
|
};
|
|
110
|
-
onPasteColumns?(pasteTo:
|
|
126
|
+
onPasteColumns?(pasteTo: ISheetDiscreteRangeLocation, colProperties: IClipboardPropertyItem[], payload: ICopyPastePayload): {
|
|
111
127
|
undos: IMutationInfo[];
|
|
112
128
|
redos: IMutationInfo[];
|
|
113
129
|
};
|
|
114
|
-
onPastePlainText?(pasteTo:
|
|
130
|
+
onPastePlainText?(pasteTo: ISheetDiscreteRangeLocation, text: string, payload: ICopyPastePayload): {
|
|
115
131
|
undos: IMutationInfo[];
|
|
116
132
|
redos: IMutationInfo[];
|
|
117
133
|
};
|
|
@@ -120,5 +136,5 @@ export interface ISheetClipboardHook {
|
|
|
120
136
|
* The callback would be called before the clipboard service decides what region need to be copied from or pasted to.
|
|
121
137
|
* It would jump over these filtered rows when copying or pasting.
|
|
122
138
|
*/
|
|
123
|
-
getFilteredOutRows?(): number[];
|
|
139
|
+
getFilteredOutRows?(range: IRange): number[];
|
|
124
140
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
1
2
|
import { ISetRangeValuesMutationParams } from '@univerjs/sheets';
|
|
2
3
|
import { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
3
4
|
|
|
@@ -17,3 +18,5 @@ export declare function clipboardItemIsFromExcel(html: string): Promise<boolean>
|
|
|
17
18
|
export declare function mergeCellValues(...cellValues: IObjectMatrixPrimitiveType<Nullable<ICellData>>[]): IObjectMatrixPrimitiveType<Nullable<ICellData>> | IObjectMatrixPrimitiveType<IObjectMatrixPrimitiveType<Nullable<ICellData>>>;
|
|
18
19
|
export declare function getRangeValuesMergeable(m1: IMutationInfo<ISetRangeValuesMutationParams>, m2: IMutationInfo<ISetRangeValuesMutationParams>): boolean;
|
|
19
20
|
export declare function mergeSetRangeValues(mutations: IMutationInfo[]): IMutationInfo<object>[];
|
|
21
|
+
export declare function rangeIntersectWithDiscreteRange(range: IRange, discrete: IDiscreteRange): true | undefined;
|
|
22
|
+
export declare function discreteRangeContainsRange(discrete: IDiscreteRange, range: IRange): boolean;
|
|
@@ -25,11 +25,11 @@ export interface ICellEditorManagerService {
|
|
|
25
25
|
export declare class CellEditorManagerService implements ICellEditorManagerService, IDisposable {
|
|
26
26
|
private _state;
|
|
27
27
|
private _rect;
|
|
28
|
-
private _focus;
|
|
29
28
|
private readonly _state$;
|
|
30
29
|
readonly state$: Observable<Nullable<ICellEditorManagerParam>>;
|
|
31
30
|
private readonly _rect$;
|
|
32
31
|
readonly rect$: Observable<Nullable<ICellEditorBoundingClientRect>>;
|
|
32
|
+
private _focus;
|
|
33
33
|
private readonly _focus$;
|
|
34
34
|
readonly focus$: Observable<boolean>;
|
|
35
35
|
dispose(): void;
|
|
@@ -64,7 +64,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
64
64
|
private readonly _sheetSkeletonManagerService;
|
|
65
65
|
private readonly _selectionRenderService;
|
|
66
66
|
private readonly _themeService;
|
|
67
|
-
private readonly
|
|
67
|
+
private readonly _univerInstanceService;
|
|
68
68
|
private readonly _editorService;
|
|
69
69
|
private _editorUnitId;
|
|
70
70
|
private _isForceKeepVisible;
|
|
@@ -83,7 +83,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
83
83
|
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
84
84
|
AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocation>;
|
|
85
85
|
}>;
|
|
86
|
-
constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionRenderService: ISelectionRenderService, _themeService: ThemeService,
|
|
86
|
+
constructor(_sheetSkeletonManagerService: SheetSkeletonManagerService, _selectionRenderService: ISelectionRenderService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService);
|
|
87
87
|
refreshEditCellState(): void;
|
|
88
88
|
setEditCell(param: ICurrentEditCellParam): void;
|
|
89
89
|
getEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
2
2
|
import { ScrollManagerService } from './scroll-manager.service';
|
|
3
|
-
import { ISelectionRenderService } from '..';
|
|
4
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
4
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
6
|
-
import { IPosition, Nullable, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
import { IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
7
6
|
|
|
8
7
|
export interface IHoverCellPosition {
|
|
9
8
|
position: IPosition;
|
|
10
9
|
location: ISheetLocation;
|
|
11
10
|
}
|
|
12
|
-
export declare class HoverManagerService {
|
|
11
|
+
export declare class HoverManagerService extends Disposable {
|
|
13
12
|
private readonly _univerInstanceService;
|
|
14
13
|
private readonly _scrollManagerService;
|
|
15
14
|
private readonly _sheetSkeletonManagerService;
|
|
16
15
|
private readonly _renderManagerService;
|
|
17
|
-
private readonly _selectionRenderService;
|
|
18
16
|
private _currentCell$;
|
|
19
17
|
currentCell$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
20
18
|
private _lastPosition;
|
|
21
|
-
constructor(_univerInstanceService: IUniverInstanceService, _scrollManagerService: ScrollManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService
|
|
19
|
+
constructor(_univerInstanceService: IUniverInstanceService, _scrollManagerService: ScrollManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService);
|
|
20
|
+
private _initCellDisposableListener;
|
|
22
21
|
private _calcActiveCell;
|
|
23
22
|
onMouseMove(offsetX: number, offsetY: number): void;
|
|
24
23
|
onScrollStart(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
2
2
|
import { SelectionShape } from '../selection/selection-shape';
|
|
3
3
|
import { ISelectionRenderService } from '../selection/selection-render.service';
|
|
4
|
-
import { ISelectionWithStyle
|
|
4
|
+
import { ISelectionWithStyle } from '@univerjs/sheets';
|
|
5
5
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
-
import { Disposable,
|
|
6
|
+
import { Disposable, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
7
7
|
|
|
8
8
|
export interface IMarkSelectionService {
|
|
9
9
|
addShape(selection: ISelectionWithStyle, exits?: string[], zIndex?: number): string | null;
|
|
@@ -25,12 +25,10 @@ export declare class MarkSelectionService extends Disposable implements IMarkSel
|
|
|
25
25
|
private readonly _currentService;
|
|
26
26
|
private readonly _renderManagerService;
|
|
27
27
|
private readonly _selectionRenderService;
|
|
28
|
-
private readonly _commandService;
|
|
29
28
|
private readonly _sheetSkeletonManagerService;
|
|
30
29
|
private readonly _themeService;
|
|
31
|
-
private readonly _selectionManagerService;
|
|
32
30
|
private _shapeMap;
|
|
33
|
-
constructor(_currentService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService,
|
|
31
|
+
constructor(_currentService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _selectionRenderService: ISelectionRenderService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _themeService: ThemeService);
|
|
34
32
|
addShape(selection: ISelectionWithStyle, exits?: string[], zIndex?: number): string | null;
|
|
35
33
|
refreshShapes(): void;
|
|
36
34
|
getShapeMap(): Map<string, IMarkSelectionInfo>;
|
|
@@ -6,4 +6,4 @@ export interface ITestBed {
|
|
|
6
6
|
get: Injector['get'];
|
|
7
7
|
sheet: Workbook;
|
|
8
8
|
}
|
|
9
|
-
export declare function createCommandTestBed(
|
|
9
|
+
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
|
|
@@ -22,7 +22,7 @@ export interface ISheetSkeletonManagerSearch {
|
|
|
22
22
|
* so it is managed uniformly through the service.
|
|
23
23
|
*/
|
|
24
24
|
export declare class SheetSkeletonManagerService implements IDisposable {
|
|
25
|
-
private readonly
|
|
25
|
+
private readonly _univerInstanceService;
|
|
26
26
|
private readonly _injector;
|
|
27
27
|
private readonly _localeService;
|
|
28
28
|
private _currentSkeleton;
|
|
@@ -34,10 +34,13 @@ export declare class SheetSkeletonManagerService implements IDisposable {
|
|
|
34
34
|
*/
|
|
35
35
|
private readonly _currentSkeletonBefore$;
|
|
36
36
|
readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<ISheetSkeletonManagerParam>>;
|
|
37
|
-
constructor(
|
|
37
|
+
constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector, _localeService: LocaleService);
|
|
38
38
|
dispose(): void;
|
|
39
|
+
/** @deprecated */
|
|
39
40
|
getCurrent(): Nullable<ISheetSkeletonManagerParam>;
|
|
41
|
+
getUnitSkeleton(unitId: string, sheetId: string): Nullable<ISheetSkeletonManagerParam>;
|
|
40
42
|
setCurrent(searchParam: ISheetSkeletonManagerSearch): Nullable<ISheetSkeletonManagerParam>;
|
|
43
|
+
removeSkeleton(searchParam: Pick<ISheetSkeletonManagerSearch, 'unitId'>): void;
|
|
41
44
|
private _compareSearch;
|
|
42
45
|
private _setCurrent;
|
|
43
46
|
reCalculate(): void;
|
|
@@ -45,6 +48,6 @@ export declare class SheetSkeletonManagerService implements IDisposable {
|
|
|
45
48
|
makeDirtyCurrent(state?: boolean): void;
|
|
46
49
|
makeDirty(searchParm: ISheetSkeletonManagerSearch, state?: boolean): void;
|
|
47
50
|
getOrCreateSkeleton(searchParam: ISheetSkeletonManagerSearch): SpreadsheetSkeleton | undefined;
|
|
48
|
-
private
|
|
51
|
+
private _getSkeleton;
|
|
49
52
|
private _buildSkeleton;
|
|
50
53
|
}
|
|
@@ -16,11 +16,11 @@ export interface IShortcutExperienceParam extends IShortcutExperienceSearch {
|
|
|
16
16
|
* including the combined use of enter and tab, the highlighting experience of formulas in the editor, and so on.
|
|
17
17
|
*/
|
|
18
18
|
export declare class ShortcutExperienceService implements IDisposable {
|
|
19
|
-
private readonly
|
|
19
|
+
private readonly _univerInstanceService;
|
|
20
20
|
private readonly _localeService;
|
|
21
21
|
private _current;
|
|
22
22
|
private _shortcutParam;
|
|
23
|
-
constructor(
|
|
23
|
+
constructor(_univerInstanceService: IUniverInstanceService, _localeService: LocaleService);
|
|
24
24
|
dispose(): void;
|
|
25
25
|
getCurrentBySearch(searchParm: Nullable<IShortcutExperienceSearch>): Nullable<IShortcutExperienceParam>;
|
|
26
26
|
getCurrent(): Nullable<IShortcutExperienceParam>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
1
2
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
-
import { IUniverInstanceService, LocaleService, Plugin,
|
|
3
|
+
import { IUniverInstanceService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
4
|
|
|
4
5
|
export declare class UniverSheetsUIPlugin extends Plugin {
|
|
5
6
|
readonly _injector: Injector;
|
|
6
7
|
private readonly _localeService;
|
|
7
|
-
private readonly
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
private readonly _renderManagerService;
|
|
9
|
+
private readonly _univerInstanceService;
|
|
10
|
+
static pluginName: string;
|
|
11
|
+
static type: UniverInstanceType;
|
|
12
|
+
constructor(_config: undefined, _injector: Injector, _localeService: LocaleService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
|
|
10
13
|
onStarting(injector: Injector): void;
|
|
11
14
|
onReady(): void;
|
|
15
|
+
private _registerRenderControllers;
|
|
12
16
|
private _markSheetAsFocused;
|
|
13
17
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ICanvasPopup } from '../../services/canvas-pop-manager.service';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
|
|
3
|
-
export declare function CellAlert(
|
|
4
|
+
export declare function CellAlert({ popup }: {
|
|
5
|
+
popup: ICanvasPopup;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
2
|
-
import { ISelectionRenderService } from '../services/selection/selection-render.service';
|
|
3
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
3
|
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
5
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @todo RenderUnit
|
|
7
|
+
*/
|
|
6
8
|
export declare class SheetCanvasView extends RxDisposable {
|
|
7
|
-
private readonly
|
|
9
|
+
private readonly _univerInstanceService;
|
|
8
10
|
private readonly _commandService;
|
|
9
11
|
private readonly _renderManagerService;
|
|
10
|
-
private readonly _selectionRenderService;
|
|
11
12
|
private readonly _sheetSkeletonManagerService;
|
|
12
13
|
private _scene;
|
|
13
|
-
private _currentWorkbook;
|
|
14
14
|
private readonly _fps$;
|
|
15
15
|
readonly fps$: import('rxjs').Observable<string>;
|
|
16
|
-
constructor(
|
|
16
|
+
constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
17
17
|
private _initialize;
|
|
18
18
|
dispose(): void;
|
|
19
19
|
private _init;
|
|
20
|
+
private _dispose;
|
|
20
21
|
private _create;
|
|
21
22
|
private _addNewRender;
|
|
22
23
|
private _addComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare function RenderSheetFooter(): React.JSX.Element;
|
|
4
|
-
export declare function RenderSheetHeader(): React.JSX.Element;
|
|
5
|
-
export declare function RenderSheetContent(): React.JSX.Element;
|
|
3
|
+
export declare function RenderSheetFooter(): React.JSX.Element | null;
|
|
4
|
+
export declare function RenderSheetHeader(): React.JSX.Element | null;
|
|
5
|
+
export declare function RenderSheetContent(): React.JSX.Element | null;
|