@univerjs/docs-ui 0.2.15 → 0.3.0-alpha.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.
@@ -1,4 +1,4 @@
1
- import { ILogService, RxDisposable, DocumentDataModel, Nullable } from '@univerjs/core';
1
+ import { ILogService, IUniverInstanceService, RxDisposable, DocumentDataModel, Nullable } from '@univerjs/core';
2
2
  import { DocSkeletonManagerService } from '@univerjs/docs';
3
3
  import { ILayoutService } from '@univerjs/ui';
4
4
  import { IDocSelectionInnerParam, IMouseEvent, INodePosition, IPointerEvent, IRenderContext, IRenderModule, ISuccinctDocRangeParam, ITextRangeWithStyle } from '@univerjs/engine-render';
@@ -13,13 +13,14 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
13
13
  private readonly _context;
14
14
  private readonly _layoutService;
15
15
  private readonly _logService;
16
+ private readonly _univerInstanceService;
16
17
  private readonly _docSkeletonManagerService;
17
18
  private readonly _onInputBefore$;
18
19
  readonly onInputBefore$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
19
20
  private readonly _onKeydown$;
20
- readonly onKeydown$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
21
+ readonly onKeydown$: import('rxjs').Observable<IEditorInputConfig>;
21
22
  private readonly _onInput$;
22
- readonly onInput$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
23
+ readonly onInput$: import('rxjs').Observable<IEditorInputConfig>;
23
24
  private readonly _onCompositionstart$;
24
25
  readonly onCompositionstart$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
25
26
  private readonly _onCompositionupdate$;
@@ -29,13 +30,13 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
29
30
  private readonly _onSelectionStart$;
30
31
  readonly onSelectionStart$: import('rxjs').Observable<Nullable<INodePosition>>;
31
32
  private readonly _onPaste$;
32
- readonly onPaste$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
33
+ readonly onPaste$: import('rxjs').Observable<IEditorInputConfig>;
33
34
  private readonly _textSelectionInner$;
34
35
  readonly textSelectionInner$: import('rxjs').Observable<Nullable<IDocSelectionInnerParam>>;
35
36
  private readonly _onFocus$;
36
- readonly onFocus$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
37
+ readonly onFocus$: import('rxjs').Observable<IEditorInputConfig>;
37
38
  private readonly _onBlur$;
38
- readonly onBlur$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
39
+ readonly onBlur$: import('rxjs').Observable<IEditorInputConfig>;
39
40
  private readonly _onPointerDown$;
40
41
  readonly onPointerDown$: import('rxjs').Observable<void>;
41
42
  private _container;
@@ -56,24 +57,39 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
56
57
  private _scenePointerMoveSubs;
57
58
  private _scenePointerUpSubs;
58
59
  private _editorFocusing;
59
- constructor(_context: IRenderContext<DocumentDataModel>, _layoutService: ILayoutService, _logService: ILogService, _docSkeletonManagerService: DocSkeletonManagerService);
60
+ private _reserveRanges;
61
+ constructor(_context: IRenderContext<DocumentDataModel>, _layoutService: ILayoutService, _logService: ILogService, _univerInstanceService: IUniverInstanceService, _docSkeletonManagerService: DocSkeletonManagerService);
62
+ private _listenCurrentUnitChange;
60
63
  get activeViewPort(): import('@univerjs/engine-render').Viewport;
61
64
  setSegment(id: string): void;
62
65
  getSegment(): string;
63
66
  setSegmentPage(pageIndex: number): void;
64
67
  getSegmentPage(): number;
68
+ setReserveRangesStatus(status: boolean): void;
65
69
  private _setRangeStyle;
66
70
  addDocRanges(ranges: ISuccinctDocRangeParam[], isEditing?: boolean, options?: {
67
71
  [key: string]: boolean;
68
72
  }): void;
69
73
  setCursorManually(evtOffsetX: number, evtOffsetY: number): void;
70
74
  sync(): void;
75
+ /**
76
+ * @deprecated
77
+ */
71
78
  activate(x: number, y: number, force?: boolean): void;
72
79
  hasFocus(): boolean;
73
80
  focus(): void;
74
81
  blur(): void;
82
+ /**
83
+ * @deprecated
84
+ */
75
85
  focusEditor(): void;
86
+ /**
87
+ * @deprecated
88
+ */
76
89
  blurEditor(): void;
90
+ /**
91
+ * @deprecated
92
+ */
77
93
  deactivate(): void;
78
94
  __handleDblClick(evt: IPointerEvent | IMouseEvent): void;
79
95
  __handleTripleClick(evt: IPointerEvent | IMouseEvent): void;
@@ -92,6 +108,7 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
92
108
  private _getNodePosition;
93
109
  private _interactTextRanges;
94
110
  private _interactRectRanges;
111
+ private _removeCollapsedTextRange;
95
112
  private _removeAllRanges;
96
113
  private _removeAllCacheRanges;
97
114
  private _removeAllTextRanges;