@univerjs/docs-ui 0.4.1 → 0.4.2
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 +10 -10
- package/lib/es/index.js +808 -656
- package/lib/locale/en-US.json +1 -0
- package/lib/locale/fa-IR.json +1 -0
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +2 -1
- package/lib/locale/zh-CN.json +1 -0
- package/lib/locale/zh-TW.json +2 -1
- package/lib/types/basics/paragraph.d.ts +85 -1
- package/lib/types/commands/commands/doc-header-footer.command.d.ts +4 -0
- package/lib/types/commands/commands/paragraph-align.command.d.ts +1 -1
- package/lib/types/commands/commands/switch-doc-mode.command.d.ts +4 -0
- package/lib/types/controllers/doc-header-footer.controller.d.ts +2 -0
- package/lib/types/controllers/menu/menu.d.ts +1 -0
- package/lib/types/controllers/render-controllers/doc-ime-input.controller.d.ts +5 -5
- package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +5 -3
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +2 -3
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +2 -2
- package/lib/types/index.d.ts +2 -2
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/services/doc-auto-format.service.d.ts +2 -2
- package/lib/types/services/doc-event-manager.service.d.ts +2 -2
- package/lib/types/services/doc-ime-input-manager.service.d.ts +1 -1
- package/lib/types/services/doc-menu-style.service.d.ts +12 -0
- package/lib/types/services/doc-state-change-manager.service.d.ts +10 -0
- package/lib/types/services/selection/text-range.d.ts +2 -2
- package/lib/types/views/doc-container/DocContainer.d.ts +1 -1
- package/lib/umd/index.js +9 -9
- package/package.json +9 -9
- /package/lib/types/commands/commands/{delete.command.d.ts → doc-delete.command.d.ts} +0 -0
package/lib/locale/en-US.json
CHANGED
package/lib/locale/fa-IR.json
CHANGED
package/lib/locale/ru-RU.json
CHANGED
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"alignRight": "Выровнять по правому краю",
|
|
33
33
|
"alignJustify": "Выровнять по ширине",
|
|
34
34
|
"headerFooter": "Header & Footer",
|
|
35
|
-
"checklist": "Task list"
|
|
35
|
+
"checklist": "Task list",
|
|
36
|
+
"documentFlavor": "Modern Mode"
|
|
36
37
|
},
|
|
37
38
|
"table": {
|
|
38
39
|
"insert": "Insert",
|
package/lib/locale/vi-VN.json
CHANGED
package/lib/locale/zh-CN.json
CHANGED
package/lib/locale/zh-TW.json
CHANGED
|
@@ -1,2 +1,86 @@
|
|
|
1
|
-
import { ICustomTable, IParagraph } from '@univerjs/core';
|
|
1
|
+
import { ICustomTable, IParagraph, ITextRun, ITextStyle, Nullable } from '@univerjs/core';
|
|
2
2
|
export declare function hasParagraphInTable(paragraph: IParagraph, tables: ICustomTable[]): boolean;
|
|
3
|
+
export declare function getTextRunAtPosition(textRuns: ITextRun[], position: number, cacheStyle?: Nullable<ITextStyle>): {
|
|
4
|
+
ts: {
|
|
5
|
+
sc?: number;
|
|
6
|
+
pos?: number;
|
|
7
|
+
sa?: number;
|
|
8
|
+
ff?: Nullable<string>;
|
|
9
|
+
fs?: number;
|
|
10
|
+
it?: import('@univerjs/core').BooleanNumber;
|
|
11
|
+
bl?: import('@univerjs/core').BooleanNumber;
|
|
12
|
+
ul?: import('@univerjs/core').ITextDecoration;
|
|
13
|
+
bbl?: import('@univerjs/core').ITextDecoration;
|
|
14
|
+
st?: import('@univerjs/core').ITextDecoration;
|
|
15
|
+
ol?: import('@univerjs/core').ITextDecoration;
|
|
16
|
+
bg?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
17
|
+
bd?: Nullable<import('@univerjs/core').IBorderData>;
|
|
18
|
+
cl?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
19
|
+
va?: Nullable<import('@univerjs/core').BaselineOffset>;
|
|
20
|
+
n?: Nullable<{
|
|
21
|
+
pattern: string;
|
|
22
|
+
}>;
|
|
23
|
+
} | {
|
|
24
|
+
sc?: number;
|
|
25
|
+
pos?: number;
|
|
26
|
+
sa?: number;
|
|
27
|
+
ff?: Nullable<string>;
|
|
28
|
+
fs?: number;
|
|
29
|
+
it?: import('@univerjs/core').BooleanNumber;
|
|
30
|
+
bl?: import('@univerjs/core').BooleanNumber;
|
|
31
|
+
ul?: import('@univerjs/core').ITextDecoration;
|
|
32
|
+
bbl?: import('@univerjs/core').ITextDecoration;
|
|
33
|
+
st?: import('@univerjs/core').ITextDecoration;
|
|
34
|
+
ol?: import('@univerjs/core').ITextDecoration;
|
|
35
|
+
bg?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
36
|
+
bd?: Nullable<import('@univerjs/core').IBorderData>;
|
|
37
|
+
cl?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
38
|
+
va?: Nullable<import('@univerjs/core').BaselineOffset>;
|
|
39
|
+
n?: Nullable<{
|
|
40
|
+
pattern: string;
|
|
41
|
+
}>;
|
|
42
|
+
} | {
|
|
43
|
+
sc?: number;
|
|
44
|
+
pos?: number;
|
|
45
|
+
sa?: number;
|
|
46
|
+
ff?: Nullable<string>;
|
|
47
|
+
fs?: number;
|
|
48
|
+
it?: import('@univerjs/core').BooleanNumber;
|
|
49
|
+
bl?: import('@univerjs/core').BooleanNumber;
|
|
50
|
+
ul?: import('@univerjs/core').ITextDecoration;
|
|
51
|
+
bbl?: import('@univerjs/core').ITextDecoration;
|
|
52
|
+
st?: import('@univerjs/core').ITextDecoration;
|
|
53
|
+
ol?: import('@univerjs/core').ITextDecoration;
|
|
54
|
+
bg?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
55
|
+
bd?: Nullable<import('@univerjs/core').IBorderData>;
|
|
56
|
+
cl?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
57
|
+
va?: Nullable<import('@univerjs/core').BaselineOffset>;
|
|
58
|
+
n?: Nullable<{
|
|
59
|
+
pattern: string;
|
|
60
|
+
}>;
|
|
61
|
+
} | {
|
|
62
|
+
sc?: number;
|
|
63
|
+
pos?: number;
|
|
64
|
+
sa?: number;
|
|
65
|
+
ff?: Nullable<string>;
|
|
66
|
+
fs?: number;
|
|
67
|
+
it?: import('@univerjs/core').BooleanNumber;
|
|
68
|
+
bl?: import('@univerjs/core').BooleanNumber;
|
|
69
|
+
ul?: import('@univerjs/core').ITextDecoration;
|
|
70
|
+
bbl?: import('@univerjs/core').ITextDecoration;
|
|
71
|
+
st?: import('@univerjs/core').ITextDecoration;
|
|
72
|
+
ol?: import('@univerjs/core').ITextDecoration;
|
|
73
|
+
bg?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
74
|
+
bd?: Nullable<import('@univerjs/core').IBorderData>;
|
|
75
|
+
cl?: Nullable<import('@univerjs/core').IColorStyle>;
|
|
76
|
+
va?: Nullable<import('@univerjs/core').BaselineOffset>;
|
|
77
|
+
n?: Nullable<{
|
|
78
|
+
pattern: string;
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
st: number;
|
|
82
|
+
ed: number;
|
|
83
|
+
sId?: string;
|
|
84
|
+
} | {
|
|
85
|
+
ts: ITextStyle;
|
|
86
|
+
} | null;
|
|
@@ -20,4 +20,8 @@ export declare const CoreHeaderFooterCommand: ICommand<ICoreHeaderFooterParams>;
|
|
|
20
20
|
interface IOpenHeaderFooterPanelParams {
|
|
21
21
|
}
|
|
22
22
|
export declare const OpenHeaderFooterPanelCommand: ICommand<IOpenHeaderFooterPanelParams>;
|
|
23
|
+
interface ICloseHeaderFooterParams {
|
|
24
|
+
unitId: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const CloseHeaderFooterCommand: ICommand<ICloseHeaderFooterParams>;
|
|
23
27
|
export {};
|
|
@@ -25,11 +25,13 @@ export declare class DocHeaderFooterController extends Disposable implements IRe
|
|
|
25
25
|
private _loadedMap;
|
|
26
26
|
constructor(_context: IRenderContext<DocumentDataModel>, _commandService: ICommandService, _editorService: IEditorService, _instanceSrv: IUniverInstanceService, _renderManagerService: IRenderManagerService, _docSkeletonManagerService: DocSkeletonManagerService, _docSelectionRenderService: DocSelectionRenderService, _localeService: LocaleService, _componentManager: ComponentManager);
|
|
27
27
|
private _initialize;
|
|
28
|
+
private _listenSwitchMode;
|
|
28
29
|
private _initCustomComponents;
|
|
29
30
|
private _init;
|
|
30
31
|
private _initialMain;
|
|
31
32
|
private _getTransformCoordForDocumentOffset;
|
|
32
33
|
private _drawHeaderFooterLabel;
|
|
33
34
|
private _isEditorReadOnly;
|
|
35
|
+
private _isTraditionalMode;
|
|
34
36
|
private _getDocDataModel;
|
|
35
37
|
}
|
|
@@ -21,5 +21,6 @@ export declare function AlignJustifyMenuItemFactory(accessor: IAccessor): IMenuB
|
|
|
21
21
|
export declare function OrderListMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<PresetListType, PresetListType>;
|
|
22
22
|
export declare function BulletListMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<PresetListType, PresetListType>;
|
|
23
23
|
export declare function CheckListMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
24
|
+
export declare function DocSwitchModeMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
24
25
|
export declare function ResetBackgroundColorMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
25
26
|
export declare function BackgroundColorSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Disposable, ICommandService
|
|
2
|
-
import {
|
|
1
|
+
import { DocumentDataModel, Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
3
4
|
import { DocIMEInputManagerService } from '../../services/doc-ime-input-manager.service';
|
|
4
5
|
import { DocSelectionRenderService } from '../../services/selection/doc-selection-render.service';
|
|
5
6
|
export declare class DocIMEInputController extends Disposable implements IRenderModule {
|
|
6
7
|
private readonly _context;
|
|
7
|
-
private readonly _univerInstanceService;
|
|
8
|
-
private readonly _renderManagerSrv;
|
|
9
8
|
private readonly _docSelectionRenderService;
|
|
10
9
|
private readonly _docImeInputManagerService;
|
|
10
|
+
private readonly _docSkeletonManagerService;
|
|
11
11
|
private readonly _commandService;
|
|
12
12
|
private _previousIMEContent;
|
|
13
13
|
private _isCompositionStart;
|
|
14
14
|
private _onStartSubscription;
|
|
15
15
|
private _onUpdateSubscription;
|
|
16
16
|
private _onEndSubscription;
|
|
17
|
-
constructor(_context: IRenderContext<DocumentDataModel>,
|
|
17
|
+
constructor(_context: IRenderContext<DocumentDataModel>, _docSelectionRenderService: DocSelectionRenderService, _docImeInputManagerService: DocIMEInputManagerService, _docSkeletonManagerService: DocSkeletonManagerService, _commandService: ICommandService);
|
|
18
18
|
dispose(): void;
|
|
19
19
|
private _initialize;
|
|
20
20
|
private _initialOnCompositionstart;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Disposable, ICommandService
|
|
2
|
-
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
1
|
+
import { DocumentDataModel, Disposable, ICommandService } from '@univerjs/core';
|
|
3
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
4
|
+
import { DocMenuStyleService } from '../../services/doc-menu-style.service';
|
|
4
5
|
import { DocSelectionRenderService } from '../../services/selection/doc-selection-render.service';
|
|
5
6
|
export declare class DocInputController extends Disposable implements IRenderModule {
|
|
6
7
|
private readonly _context;
|
|
7
8
|
private readonly _docSelectionRenderService;
|
|
8
9
|
private readonly _docSkeletonManagerService;
|
|
9
10
|
private readonly _commandService;
|
|
11
|
+
private readonly _docMenuStyleService;
|
|
10
12
|
private _onInputSubscription;
|
|
11
|
-
constructor(_context: IRenderContext<DocumentDataModel>, _docSelectionRenderService: DocSelectionRenderService, _docSkeletonManagerService: DocSkeletonManagerService, _commandService: ICommandService);
|
|
13
|
+
constructor(_context: IRenderContext<DocumentDataModel>, _docSelectionRenderService: DocSelectionRenderService, _docSkeletonManagerService: DocSkeletonManagerService, _commandService: ICommandService, _docMenuStyleService: DocMenuStyleService);
|
|
12
14
|
dispose(): void;
|
|
13
15
|
private _init;
|
|
14
16
|
private _initialNormalInput;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { DocumentDataModel, ICommandService,
|
|
1
|
+
import { DocumentDataModel, ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
4
4
|
import { IEditorService } from '../../services/editor/editor-manager.service';
|
|
5
5
|
import { DocSelectionRenderService } from '../../services/selection/doc-selection-render.service';
|
|
6
6
|
export declare class DocRenderController extends RxDisposable implements IRenderModule {
|
|
7
7
|
private readonly _context;
|
|
8
|
-
private readonly _contextService;
|
|
9
8
|
private readonly _commandService;
|
|
10
9
|
private readonly _docSelectionRenderService;
|
|
11
10
|
private readonly _docSkeletonManagerService;
|
|
12
11
|
private readonly _editorService;
|
|
13
12
|
private readonly _renderManagerService;
|
|
14
13
|
private readonly _univerInstanceService;
|
|
15
|
-
constructor(_context: IRenderContext<DocumentDataModel>,
|
|
14
|
+
constructor(_context: IRenderContext<DocumentDataModel>, _commandService: ICommandService, _docSelectionRenderService: DocSelectionRenderService, _docSkeletonManagerService: DocSkeletonManagerService, _editorService: IEditorService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
|
|
16
15
|
reRender(unitId: string): void;
|
|
17
16
|
private _addNewRender;
|
|
18
17
|
private _addComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IContextService, IUniverInstanceService
|
|
2
|
-
import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs';
|
|
1
|
+
import { DocumentDataModel, Disposable, ICommandService, IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
3
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs';
|
|
4
4
|
import { DocPageLayoutService } from '../../services/doc-page-layout.service';
|
|
5
5
|
import { IEditorService } from '../../services/editor/editor-manager.service';
|
|
6
6
|
export declare class DocZoomRenderController extends Disposable implements IRenderModule {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -60,8 +60,8 @@ export { CutContentCommand, InnerPasteCommand } from './commands/commands/clipbo
|
|
|
60
60
|
export type { IInnerCutCommandParams } from './commands/commands/clipboard.inner.command';
|
|
61
61
|
export { getCustomBlockIdsInSelections, getCutActionsFromDocRanges } from './commands/commands/clipboard.inner.command';
|
|
62
62
|
export { DeleteCommand, EditorInsertTextCommandId, type ICoverCommandParams, type IDeleteCommandParams, type IInsertCommandParams, InsertCommand, type IUpdateCommandParams, UpdateCommand, } from './commands/commands/core-editing.command';
|
|
63
|
-
export { DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, type IDeleteCustomBlockParams, MergeTwoParagraphCommand } from './commands/commands/delete.command';
|
|
64
|
-
export { getCursorWhenDelete } from './commands/commands/delete.command';
|
|
63
|
+
export { DeleteCustomBlockCommand, DeleteLeftCommand, DeleteRightCommand, type IDeleteCustomBlockParams, MergeTwoParagraphCommand } from './commands/commands/doc-delete.command';
|
|
64
|
+
export { getCursorWhenDelete } from './commands/commands/doc-delete.command';
|
|
65
65
|
export { IMEInputCommand } from './commands/commands/ime-input.command';
|
|
66
66
|
export { ResetInlineFormatTextBackgroundColorCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, } from './commands/commands/inline-format.command';
|
|
67
67
|
export { getParagraphsInRange, getParagraphsInRanges } from './commands/commands/list.command';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
1
|
+
import { DocumentDataModel, ICommandInfo, ICustomRange, IDisposable, IParagraphRange, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
2
|
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
4
4
|
export interface IAutoFormatContext {
|
|
5
5
|
unit: DocumentDataModel;
|
|
6
6
|
selection: ITextRangeWithStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
1
|
+
import { DocumentDataModel, ICustomRange, IParagraph, Nullable, Disposable } from '@univerjs/core';
|
|
3
2
|
import { Documents, DocumentSkeleton, IBoundRectNoAngle, IDocumentSkeletonGlyph, IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
4
4
|
export declare const calcDocGlyphPosition: (glyph: IDocumentSkeletonGlyph, documents: Documents, skeleton: DocumentSkeleton, pageIndex?: number) => IBoundRectNoAngle | undefined;
|
|
5
5
|
interface ICustomRangeActive {
|
|
6
6
|
range: ICustomRange;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DocumentDataModel, Nullable, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IRichTextEditingMutationParams } from '@univerjs/docs';
|
|
3
3
|
import { IRenderContext, IRenderModule, ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
4
4
|
interface ICacheParams {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ITextStyle, Nullable, Disposable } from '@univerjs/core';
|
|
2
|
+
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
3
|
+
export declare class DocMenuStyleService extends Disposable {
|
|
4
|
+
private readonly _textSelectionManagerService;
|
|
5
|
+
private _cacheStyle;
|
|
6
|
+
constructor(_textSelectionManagerService: DocSelectionManagerService);
|
|
7
|
+
private _init;
|
|
8
|
+
private _listenDocRangeChange;
|
|
9
|
+
getStyleCache(): Nullable<ITextStyle>;
|
|
10
|
+
setStyleCache(style: ITextStyle): void;
|
|
11
|
+
private _clearStyleCache;
|
|
12
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Nullable, ICommandService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { DocStateEmitService, IDocStateChangeParams } from '@univerjs/docs';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
interface IStateCache {
|
|
5
|
+
history: IDocStateChangeParams[];
|
|
6
|
+
collaboration: IDocStateChangeParams[];
|
|
7
|
+
}
|
|
4
8
|
export declare class DocStateChangeManagerService extends RxDisposable {
|
|
5
9
|
private _undoRedoService;
|
|
6
10
|
private readonly _commandService;
|
|
@@ -14,6 +18,11 @@ export declare class DocStateChangeManagerService extends RxDisposable {
|
|
|
14
18
|
private _historyTimer;
|
|
15
19
|
private _changeStateCacheTimer;
|
|
16
20
|
constructor(_undoRedoService: IUndoRedoService, _commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _docStateEmitService: DocStateEmitService, _renderManagerService: IRenderManagerService);
|
|
21
|
+
getStateCache(unitId: string): {
|
|
22
|
+
history: IDocStateChangeParams[];
|
|
23
|
+
collaboration: IDocStateChangeParams[];
|
|
24
|
+
};
|
|
25
|
+
setStateCache(unitId: string, cache: IStateCache): void;
|
|
17
26
|
private _setChangeState;
|
|
18
27
|
private _initialize;
|
|
19
28
|
private _listenDocStateChange;
|
|
@@ -21,3 +30,4 @@ export declare class DocStateChangeManagerService extends RxDisposable {
|
|
|
21
30
|
private _pushHistory;
|
|
22
31
|
private _emitChangeState;
|
|
23
32
|
}
|
|
33
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DOC_RANGE_TYPE, RANGE_DIRECTION
|
|
2
|
-
import {
|
|
1
|
+
import { Nullable, DOC_RANGE_TYPE, RANGE_DIRECTION } from '@univerjs/core';
|
|
2
|
+
import { Documents, DocumentSkeleton, INodePosition, IPoint, ISuccinctDocRangeParam, ITextSelectionStyle, Scene, ThinScene, Rect } from '@univerjs/engine-render';
|
|
3
3
|
import { IDocRange } from './range-interface';
|
|
4
4
|
export declare const TEXT_RANGE_LAYER_INDEX = 3;
|
|
5
5
|
export declare function cursorConvertToTextRange(scene: Scene, range: ISuccinctDocRangeParam, docSkeleton: DocumentSkeleton, document: Documents): Nullable<TextRange>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as React, Component } from 'react';
|
|
2
1
|
import { IUniverDocsUIConfig } from '../../controllers/config.schema';
|
|
2
|
+
import { default as React, Component } from 'react';
|
|
3
3
|
interface IBaseDocContainerProps {
|
|
4
4
|
config: IUniverDocsUIConfig;
|
|
5
5
|
changeLocale: (locale: string) => void;
|