@univerjs/docs 0.1.0-alpha.2 → 0.1.0-alpha.3

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { Nullable } from '@univerjs/core';
17
+ import type { ITextSelectionInnerParam } from '@univerjs/engine-render';
18
+ export declare class TextSelectionRenderManager {
19
+ private readonly _textSelectionInner$;
20
+ readonly textSelectionInner$: import("rxjs").Observable<Nullable<ITextSelectionInnerParam>>;
21
+ removeAllTextRanges(): void;
22
+ addTextRanges(): void;
23
+ }
24
+ export declare const ITextSelectionRenderManager: import("@wendellhu/redi").IdentifierDecorator<TextSelectionRenderManager>;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IDocumentData } from '@univerjs/core';
17
- export declare const DOCS_DEMO_DATA: IDocumentData;
16
+ import type { ICommand } from '@univerjs/core';
17
+ export declare const BreakLineCommand: ICommand;
@@ -15,9 +15,6 @@
15
15
  */
16
16
  import type { ICommand, IDocumentBody, IDocumentData, ITextRange, UpdateDocsAttributeType } from '@univerjs/core';
17
17
  import type { ITextRangeWithStyle } from '@univerjs/engine-render';
18
- export declare const DeleteLeftCommand: ICommand;
19
- export declare const DeleteRightCommand: ICommand;
20
- export declare const BreakLineCommand: ICommand;
21
18
  export interface IInsertCommandParams {
22
19
  unitId: string;
23
20
  body: IDocumentBody;
@@ -26,7 +23,7 @@ export interface IInsertCommandParams {
26
23
  segmentId?: string;
27
24
  }
28
25
  /**
29
- * The command to insert text. The changed range could be non-collapsed.
26
+ * The command to insert text. The changed range could be non-collapsed, mainly use in line break and normal input.
30
27
  */
31
28
  export declare const InsertCommand: ICommand<IInsertCommandParams>;
32
29
  export declare enum DeleteDirection {
@@ -42,7 +39,7 @@ export interface IDeleteCommandParams {
42
39
  segmentId?: string;
43
40
  }
44
41
  /**
45
- * The command to delete text, mainly used in BACKSPACE and DELETE when collapsed is true.
42
+ * The command to delete text, mainly used in BACKSPACE and DELETE when collapsed is true. ONLY handle collapsed range!!!
46
43
  */
47
44
  export declare const DeleteCommand: ICommand<IDeleteCommandParams>;
48
45
  export interface IUpdateCommandParams {
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand } from '@univerjs/core';
17
+ import type { IActiveTextRange } from '@univerjs/engine-render';
18
+ import { DeleteDirection } from './core-editing.command';
19
+ export declare const DeleteLeftCommand: ICommand;
20
+ export declare const DeleteRightCommand: ICommand;
21
+ interface IMergeTwoParagraphParams {
22
+ direction: DeleteDirection;
23
+ range: IActiveTextRange;
24
+ }
25
+ export declare const MergeTwoParagraphCommand: ICommand<IMergeTwoParagraphParams>;
26
+ export {};
@@ -23,6 +23,8 @@ export declare const SetInlineFormatBoldCommand: ICommand;
23
23
  export declare const SetInlineFormatItalicCommand: ICommand;
24
24
  export declare const SetInlineFormatUnderlineCommand: ICommand;
25
25
  export declare const SetInlineFormatStrikethroughCommand: ICommand;
26
+ export declare const SetInlineFormatSubscriptCommand: ICommand;
27
+ export declare const SetInlineFormatSuperscriptCommand: ICommand;
26
28
  export declare const SetInlineFormatFontSizeCommand: ICommand;
27
29
  export declare const SetInlineFormatFontFamilyCommand: ICommand;
28
30
  export declare const SetInlineFormatTextColorCommand: ICommand;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ICommand } from '@univerjs/core';
17
+ import { PresetListType } from '@univerjs/core';
18
+ interface IBulletListCommandParams {
19
+ }
20
+ export declare const BulletListCommand: ICommand<IBulletListCommandParams>;
21
+ interface IOrderListCommandParams {
22
+ }
23
+ export declare const OrderListCommand: ICommand<IOrderListCommandParams>;
24
+ interface IListOperationCommandParams {
25
+ listType: PresetListType;
26
+ }
27
+ export declare const ListOperationCommand: ICommand<IListOperationCommandParams>;
28
+ export {};
@@ -14,10 +14,12 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IOperation } from '@univerjs/core';
17
- import type { TextRange } from '@univerjs/engine-render';
17
+ import type { ITextSelectionStyle, TextRange } from '@univerjs/engine-render';
18
18
  export interface ISetTextSelectionsOperationParams {
19
19
  unitId: string;
20
- pluginName: string;
20
+ subUnitId: string;
21
+ segmentId: string;
22
+ style: ITextSelectionStyle;
21
23
  ranges: TextRange[];
22
24
  }
23
25
  export declare const SetTextSelectionsOperation: IOperation<ISetTextSelectionsOperationParams>;
@@ -14,16 +14,16 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, ICommandService, IContextService, ILogService, IUniverInstanceService } from '@univerjs/core';
17
- import { ITextSelectionRenderManager } from '@univerjs/engine-render';
18
17
  import { IDocClipboardService } from '../services/clipboard/clipboard.service';
18
+ import { TextSelectionManagerService } from '../services/text-selection-manager.service';
19
19
  export declare class DocClipboardController extends Disposable {
20
20
  private readonly _logService;
21
21
  private readonly _commandService;
22
22
  private readonly _currentUniverService;
23
23
  private readonly _docClipboardService;
24
- private _textSelectionRenderManager;
24
+ private readonly _textSelectionManagerService;
25
25
  private readonly _contextService;
26
- constructor(_logService: ILogService, _commandService: ICommandService, _currentUniverService: IUniverInstanceService, _docClipboardService: IDocClipboardService, _textSelectionRenderManager: ITextSelectionRenderManager, _contextService: IContextService);
26
+ constructor(_logService: ILogService, _commandService: ICommandService, _currentUniverService: IUniverInstanceService, _docClipboardService: IDocClipboardService, _textSelectionManagerService: TextSelectionManagerService, _contextService: IContextService);
27
27
  initialize(): void;
28
28
  private _commandExecutedListener;
29
29
  private _handlePaste;
@@ -17,13 +17,11 @@ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/c
17
17
  import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
18
18
  import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
19
19
  import { IMEInputManagerService } from '../services/ime-input-manager.service';
20
- import { TextSelectionManagerService } from '../services/text-selection-manager.service';
21
20
  export declare class IMEInputController extends Disposable {
22
21
  private readonly _docSkeletonManagerService;
23
22
  private readonly _currentUniverService;
24
23
  private readonly _renderManagerService;
25
24
  private readonly _textSelectionRenderManager;
26
- private readonly _textSelectionManagerService;
27
25
  private readonly _imeInputManagerService;
28
26
  private readonly _commandService;
29
27
  private _previousIMEContent;
@@ -31,7 +29,7 @@ export declare class IMEInputController extends Disposable {
31
29
  private _onStartSubscription;
32
30
  private _onUpdateSubscription;
33
31
  private _onEndSubscription;
34
- constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _imeInputManagerService: IMEInputManagerService, _commandService: ICommandService);
32
+ constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _imeInputManagerService: IMEInputManagerService, _commandService: ICommandService);
35
33
  dispose(): void;
36
34
  private _initialize;
37
35
  private _initialOnCompositionstart;
@@ -13,8 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { ITextSelectionRenderManager } from '@univerjs/engine-render';
16
+ import { Disposable, ICommandService } from '@univerjs/core';
18
17
  import { TextSelectionManagerService } from '../services/text-selection-manager.service';
19
18
  /**
20
19
  * Used to manage the addition and removal of inline styles,
@@ -22,11 +21,9 @@ import { TextSelectionManagerService } from '../services/text-selection-manager.
22
21
  * some of the logic may be moved to the command, as the command is testable.
23
22
  */
24
23
  export declare class InlineFormatController extends Disposable {
25
- private readonly _currentUniverService;
26
- private readonly _textSelectionRenderManager;
27
24
  private readonly _textSelectionManagerService;
28
25
  private readonly _commandService;
29
- constructor(_currentUniverService: IUniverInstanceService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
26
+ constructor(_textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
30
27
  private _commandExecutedListener;
31
28
  private _handleInlineFormat;
32
29
  }
@@ -14,18 +14,17 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
17
+ import { IRenderManagerService } from '@univerjs/engine-render';
18
18
  import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
19
19
  import { TextSelectionManagerService } from '../services/text-selection-manager.service';
20
20
  export declare class MoveCursorController extends Disposable {
21
21
  private readonly _docSkeletonManagerService;
22
22
  private readonly _currentUniverService;
23
23
  private readonly _renderManagerService;
24
- private readonly _textSelectionRenderManager;
25
24
  private readonly _textSelectionManagerService;
26
25
  private readonly _commandService;
27
26
  private _onInputSubscription;
28
- constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
27
+ constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
29
28
  dispose(): void;
30
29
  private _initialize;
31
30
  private _commandExecutedListener;
@@ -16,16 +16,14 @@
16
16
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
17
  import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
18
18
  import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
19
- import { TextSelectionManagerService } from '../services/text-selection-manager.service';
20
19
  export declare class NormalInputController extends Disposable {
21
20
  private readonly _docSkeletonManagerService;
22
21
  private readonly _currentUniverService;
23
22
  private readonly _renderManagerService;
24
23
  private readonly _textSelectionRenderManager;
25
- private readonly _textSelectionManagerService;
26
24
  private readonly _commandService;
27
25
  private _onInputSubscription;
28
- constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
26
+ constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _commandService: ICommandService);
29
27
  dispose(): void;
30
28
  private _initialize;
31
29
  private _initialNormalInput;
@@ -13,11 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Disposable } from '@univerjs/core';
16
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
17
17
  import { IRenderManagerService } from '@univerjs/engine-render';
18
18
  export declare class PageRenderController extends Disposable {
19
19
  private readonly _renderManagerService;
20
- constructor(_renderManagerService: IRenderManagerService);
20
+ private readonly _currentUniverService;
21
+ constructor(_renderManagerService: IRenderManagerService, _currentUniverService: IUniverInstanceService);
21
22
  private _initialize;
22
23
  private _initialRenderRefresh;
23
24
  private _commandExecutedListener;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
17
  import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
18
+ import { LayoutService } from '@univerjs/ui';
18
19
  import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
19
20
  import { TextSelectionManagerService } from '../services/text-selection-manager.service';
20
21
  export declare class TextSelectionController extends Disposable {
@@ -24,19 +25,18 @@ export declare class TextSelectionController extends Disposable {
24
25
  private readonly _renderManagerService;
25
26
  private readonly _textSelectionRenderManager;
26
27
  private readonly _textSelectionManagerService;
28
+ private readonly _layoutService?;
27
29
  private _moveInObserver;
28
30
  private _moveOutObserver;
29
31
  private _downObserver;
30
32
  private _dblClickObserver;
31
33
  private _tripleClickObserver;
32
34
  private _loadedMap;
33
- constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService);
34
- dispose(): void;
35
+ constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _layoutService?: LayoutService | undefined);
35
36
  private _initialize;
37
+ dispose(): void;
36
38
  private _initialMain;
37
- private _onChangeListener;
38
- private _userActionSyncListener;
39
- private _getDocObjectById;
40
39
  private _commandExecutedListener;
41
40
  private _skeletonListener;
41
+ private _getDocObjectById;
42
42
  }
@@ -15,10 +15,13 @@
15
15
  */
16
16
  export { getDocObject } from './basics/component-tools';
17
17
  export * from './basics/docs-view-key';
18
+ export { BreakLineCommand } from './commands/commands/break-line.command';
18
19
  export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';
19
- export { BreakLineCommand, DeleteCommand, DeleteLeftCommand, type ICoverCommandParams, type IDeleteCommandParams, type IInsertCommandParams, InsertCommand, type IUpdateCommandParams, UpdateCommand, } from './commands/commands/core-editing.command';
20
+ export { DeleteCommand, type ICoverCommandParams, type IDeleteCommandParams, type IInsertCommandParams, InsertCommand, type IUpdateCommandParams, UpdateCommand, } from './commands/commands/core-editing.command';
21
+ export { DeleteLeftCommand, DeleteRightCommand } from './commands/commands/delete.command';
20
22
  export { type IIMEInputCommandParams, IMEInputCommand } from './commands/commands/ime-input.command';
21
- export { SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, } from './commands/commands/inline-format.command';
23
+ export { SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, } from './commands/commands/inline-format.command';
24
+ export { BulletListCommand, OrderListCommand } from './commands/commands/list.command';
22
25
  export { CoverContentCommand, ReplaceContentCommand } from './commands/commands/replace-content.command';
23
26
  export { type IRichTextEditingMutationParams, RichTextEditingMutation, } from './commands/mutations/core-editing.mutation';
24
27
  export { MoveCursorOperation, MoveSelectionOperation } from './commands/operations/cursor.operation';
@@ -27,3 +30,4 @@ export { type IUniverDocsConfig, UniverDocsPlugin } from './doc-plugin';
27
30
  export { DocSkeletonManagerService } from './services/doc-skeleton-manager.service';
28
31
  export { DocViewModelManagerService } from './services/doc-view-model-manager.service';
29
32
  export { TextSelectionManagerService } from './services/text-selection-manager.service';
33
+ export { DocCanvasView } from './views/doc-canvas-view';
@@ -13,50 +13,52 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { ISelectionCell, Nullable } from '@univerjs/core';
17
- import type { ITextRangeWithStyle, TextRange } from '@univerjs/engine-render';
18
- import type { IDisposable } from '@wendellhu/redi';
19
- export interface ITextSelectionManagerSearchParam {
20
- pluginName: string;
16
+ import type { Nullable } from '@univerjs/core';
17
+ import { ICommandService, RxDisposable } from '@univerjs/core';
18
+ import type { INodePosition, ISuccinctTextRangeParam, ITextSelectionInnerParam, ITextSelectionStyle, RANGE_DIRECTION, TextRange } from '@univerjs/engine-render';
19
+ import { ITextSelectionRenderManager } from '@univerjs/engine-render';
20
+ interface ITextSelectionManagerSearchParam {
21
21
  unitId: string;
22
+ subUnitId: string;
22
23
  }
23
- export interface ITextSelectionManagerInsertParam extends ITextSelectionManagerSearchParam {
24
- textRanges: TextRange[];
24
+ export interface ITextActiveRange {
25
+ startOffset: number;
26
+ endOffset: number;
27
+ collapsed: boolean;
28
+ startNodePosition: Nullable<INodePosition>;
29
+ endNodePosition: Nullable<INodePosition>;
30
+ direction: RANGE_DIRECTION;
31
+ segmentId: string;
32
+ style: ITextSelectionStyle;
33
+ }
34
+ interface ITextSelectionManagerInsertParam extends ITextSelectionManagerSearchParam, ITextSelectionInnerParam {
25
35
  }
26
- export type ITextSelectionInfo = Map<string, Map<string, TextRange[]>>;
27
36
  /**
28
- * This service is for selection.
37
+ * This service is for text selection.
29
38
  */
30
- export declare class TextSelectionManagerService implements IDisposable {
31
- private readonly _textSelectionInfo;
39
+ export declare class TextSelectionManagerService extends RxDisposable {
40
+ private _textSelectionRenderManager;
41
+ private readonly _commandService;
32
42
  private _currentSelection;
33
- private readonly _textSelectionInfo$;
34
- readonly textSelectionInfo$: import("rxjs").Observable<Nullable<ITextRangeWithStyle[]>>;
43
+ private readonly _textSelectionInfo;
44
+ private readonly _textSelection$;
45
+ readonly textSelection$: import("rxjs").Observable<Nullable<ITextSelectionManagerInsertParam>>;
46
+ constructor(_textSelectionRenderManager: ITextSelectionRenderManager, _commandService: ICommandService);
35
47
  getCurrentSelection(): Nullable<ITextSelectionManagerSearchParam>;
48
+ getCurrentSelectionInfo(): ITextSelectionInnerParam | undefined;
36
49
  dispose(): void;
37
50
  refreshSelection(): void;
38
51
  setCurrentSelection(param: ITextSelectionManagerSearchParam): void;
39
52
  setCurrentSelectionNotRefresh(param: ITextSelectionManagerSearchParam): void;
40
- getTextSelectionInfo(): Readonly<ITextSelectionInfo>;
41
- getTextRangesByParam(param: Nullable<ITextSelectionManagerSearchParam>): Readonly<Nullable<TextRange[]>>;
42
53
  getSelections(): Readonly<Nullable<TextRange[]>>;
43
- getFirst(): Readonly<Nullable<TextRange>>;
44
- getLast(): Readonly<Nullable<TextRange & {
45
- primary: ISelectionCell;
46
- }>>;
47
- add(textRanges: ITextRangeWithStyle[]): void;
48
- replaceTextRanges(textRanges: ITextRangeWithStyle[]): void;
49
- replaceTextRangesWithNoRefresh(textRanges: TextRange[]): void;
50
- private _addByParam;
51
- private _clear;
52
- private _remove;
53
- private _reset;
54
- private _resetPlugin;
54
+ getActiveRange(): Nullable<ITextActiveRange>;
55
+ add(textRanges: ISuccinctTextRangeParam[]): void;
56
+ replaceTextRanges(textRanges: ISuccinctTextRangeParam[]): void;
57
+ private _syncSelectionFromRenderService;
58
+ private _replaceTextRangesWithNoRefresh;
55
59
  private _getTextRanges;
56
60
  private _refresh;
57
- private _getFirstByParam;
58
- private _getLastByParam;
59
61
  private _replaceByParam;
60
- private _clearByParam;
61
- private _removeByParam;
62
+ private _addByParam;
62
63
  }
64
+ export {};
@@ -13,10 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { IConfigService, IUniverInstanceService } from '@univerjs/core';
16
+ import { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
17
  import type { RenderManagerService } from '@univerjs/engine-render';
18
18
  import { DocViewModelManagerService } from '../services/doc-view-model-manager.service';
19
- export declare class DocCanvasView {
19
+ export declare class DocCanvasView extends RxDisposable {
20
20
  private readonly _renderManagerService;
21
21
  private readonly _configService;
22
22
  private readonly _currentUniverService;
@@ -24,8 +24,11 @@ export declare class DocCanvasView {
24
24
  private _scene;
25
25
  private _currentDocumentModel;
26
26
  private _loadedMap;
27
+ private readonly _fps$;
28
+ readonly fps$: import("rxjs").Observable<string>;
27
29
  constructor(_renderManagerService: RenderManagerService, _configService: IConfigService, _currentUniverService: IUniverInstanceService, _docViewModelManagerService: DocViewModelManagerService);
28
30
  private _initialize;
31
+ dispose(): void;
29
32
  private _addNewRender;
30
33
  private _addComponent;
31
34
  }