@univerjs/docs 0.1.3 → 0.1.5
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 +1 -1
- package/lib/es/index.js +888 -768
- package/lib/types/basics/component-tools.d.ts +3 -17
- package/lib/types/basics/retain-delete-params.d.ts +2 -16
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +10 -25
- package/lib/types/commands/commands/__tests__/mock-text-selection-render-manager.d.ts +5 -19
- package/lib/types/commands/commands/break-line.command.d.ts +2 -16
- package/lib/types/commands/commands/clipboard.inner.command.d.ts +3 -17
- package/lib/types/commands/commands/core-editing.command.d.ts +3 -17
- package/lib/types/commands/commands/delete.command.d.ts +3 -17
- package/lib/types/commands/commands/ime-input.command.d.ts +2 -16
- package/lib/types/commands/commands/inline-format.command.d.ts +2 -16
- package/lib/types/commands/commands/insert-floating-object.command.d.ts +2 -16
- package/lib/types/commands/commands/list.command.d.ts +4 -17
- package/lib/types/commands/commands/paragraph-align.command.d.ts +19 -0
- package/lib/types/commands/commands/remove-floating-object.command.d.ts +2 -16
- package/lib/types/commands/commands/replace-content.command.d.ts +3 -17
- package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts +2 -16
- package/lib/types/commands/commands/set-floating-object-transform.command.d.ts +2 -16
- package/lib/types/commands/mutations/core-editing.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/insert-floating-object.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/remove-floating-object.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-floating-object.mutation.d.ts +3 -17
- package/lib/types/commands/operations/cursor.operation.d.ts +2 -16
- package/lib/types/commands/operations/select-all.operation.d.ts +2 -16
- package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts +3 -17
- package/lib/types/commands/operations/text-selection.operation.d.ts +3 -17
- package/lib/types/controllers/ime-input.controller.d.ts +4 -18
- package/lib/types/controllers/move-cursor.controller.d.ts +4 -18
- package/lib/types/controllers/normal-input.controller.d.ts +3 -17
- package/lib/types/doc-plugin.d.ts +3 -20
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/doc-skeleton-manager.service.d.ts +5 -20
- package/lib/types/services/doc-state-change-manager.service.d.ts +4 -19
- package/lib/types/services/doc-view-model-manager.service.d.ts +3 -18
- package/lib/types/services/ime-input-manager.service.d.ts +5 -19
- package/lib/types/services/text-selection-manager.service.d.ts +4 -20
- package/lib/umd/index.js +1 -1
- package/package.json +12 -11
- package/lib/types/controllers/inline-format.controller.d.ts +0 -29
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IUniverInstanceService, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';
|
|
1
|
+
import { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';
|
|
2
|
+
import { IUniverInstanceService, Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IDocObjectParam {
|
|
19
5
|
document: Documents;
|
|
20
6
|
scene: Scene;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 IDeleteAction, type IRetainAction, type ITextRange } from '@univerjs/core';
|
|
1
|
+
import { IDeleteAction, IRetainAction, ITextRange } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function getRetainAndDeleteFromReplace(range: ITextRange, segmentId?: string, memoryCursor?: number): Array<IRetainAction | IDeleteAction>;
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IDocumentData } from '@univerjs/core';
|
|
17
|
-
import { Univer } from '@univerjs/core';
|
|
18
|
-
import type { Dependency } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency } from '@wendellhu/redi';
|
|
2
|
+
import { IDocumentData, Univer } from '@univerjs/core';
|
|
3
|
+
|
|
19
4
|
export declare function createCommandTestBed(workbookConfig?: IDocumentData, dependencies?: Dependency[]): {
|
|
20
5
|
univer: Univer;
|
|
21
6
|
get: {
|
|
22
|
-
<T>(id: import(
|
|
23
|
-
<T_1>(id: import(
|
|
24
|
-
<T_2>(id: import(
|
|
25
|
-
<T_3>(id: import(
|
|
26
|
-
<T_4>(id: import(
|
|
27
|
-
<T_5>(id: import(
|
|
7
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
|
|
8
|
+
<T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
|
|
9
|
+
<T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
|
|
10
|
+
<T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
|
|
11
|
+
<T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
|
|
12
|
+
<T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
|
|
28
13
|
};
|
|
29
|
-
doc: import(
|
|
14
|
+
doc: import('@univerjs/core').DocumentDataModel;
|
|
30
15
|
};
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ITextSelectionInnerParam } from '@univerjs/engine-render';
|
|
2
|
+
import { Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare class TextSelectionRenderManager {
|
|
19
5
|
private readonly _textSelectionInner$;
|
|
20
|
-
readonly textSelectionInner$: import(
|
|
6
|
+
readonly textSelectionInner$: import('rxjs').Observable<Nullable<ITextSelectionInnerParam>>;
|
|
21
7
|
removeAllTextRanges(): void;
|
|
22
8
|
addTextRanges(): void;
|
|
23
9
|
}
|
|
24
|
-
export declare const ITextSelectionRenderManager: import(
|
|
10
|
+
export declare const ITextSelectionRenderManager: import('@wendellhu/redi').IdentifierDecorator<TextSelectionRenderManager>;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const BreakLineCommand: ICommand;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, IDocumentBody } from '@univerjs/core';
|
|
17
|
-
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
1
|
+
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
2
|
+
import { ICommand, IDocumentBody } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IInnerPasteCommandParams {
|
|
19
5
|
segmentId: string;
|
|
20
6
|
body: IDocumentBody;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, IDocumentBody, IDocumentData, ITextRange, UpdateDocsAttributeType } from '@univerjs/core';
|
|
17
|
-
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
1
|
+
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
2
|
+
import { ICommand, IDocumentBody, IDocumentData, ITextRange, UpdateDocsAttributeType } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IInsertCommandParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
body: IDocumentBody;
|
|
@@ -1,21 +1,7 @@
|
|
|
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
1
|
import { DeleteDirection } from './core-editing.command';
|
|
2
|
+
import { IActiveTextRange } from '@univerjs/engine-render';
|
|
3
|
+
import { ICommand } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare const DeleteLeftCommand: ICommand;
|
|
20
6
|
export declare const DeleteRightCommand: ICommand;
|
|
21
7
|
interface IMergeTwoParagraphParams {
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IIMEInputCommandParams {
|
|
18
4
|
unitId: string;
|
|
19
5
|
newText: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ISetInlineFormatCommandParams {
|
|
18
4
|
segmentId: string;
|
|
19
5
|
preCommandId: string;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const InsertDrawingCommand: ICommand;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { IActiveTextRange } from '@univerjs/engine-render';
|
|
2
|
+
import { ICommand, IParagraph, PresetListType } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
interface IListOperationCommandParams {
|
|
19
5
|
listType: PresetListType;
|
|
20
6
|
}
|
|
@@ -25,4 +11,5 @@ export declare const BulletListCommand: ICommand<IBulletListCommandParams>;
|
|
|
25
11
|
interface IOrderListCommandParams {
|
|
26
12
|
}
|
|
27
13
|
export declare const OrderListCommand: ICommand<IOrderListCommandParams>;
|
|
14
|
+
export declare function getParagraphsInRange(activeRange: IActiveTextRange, paragraphs: IParagraph[]): IParagraph[];
|
|
28
15
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICommand, HorizontalAlign } from '@univerjs/core';
|
|
2
|
+
|
|
3
|
+
interface IAlignOperationCommandParams {
|
|
4
|
+
alignType: HorizontalAlign;
|
|
5
|
+
}
|
|
6
|
+
export declare const AlignOperationCommand: ICommand<IAlignOperationCommandParams>;
|
|
7
|
+
interface IAlignLeftCommandParams {
|
|
8
|
+
}
|
|
9
|
+
export declare const AlignLeftCommand: ICommand<IAlignLeftCommandParams>;
|
|
10
|
+
interface IAlignCenterCommandParams {
|
|
11
|
+
}
|
|
12
|
+
export declare const AlignCenterCommand: ICommand<IAlignCenterCommandParams>;
|
|
13
|
+
interface IAlignRightCommandParams {
|
|
14
|
+
}
|
|
15
|
+
export declare const AlignRightCommand: ICommand<IAlignRightCommandParams>;
|
|
16
|
+
interface IAlignJustifyCommandParams {
|
|
17
|
+
}
|
|
18
|
+
export declare const AlignJustifyCommand: ICommand<IAlignJustifyCommandParams>;
|
|
19
|
+
export {};
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare const RemoveDrawingCommand: ICommand;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, IDocumentBody } from '@univerjs/core';
|
|
17
|
-
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
1
|
+
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
2
|
+
import { ICommand, IDocumentBody } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
interface IReplaceContentCommandParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
body: IDocumentBody;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ISetDocZoomRatioCommandParams {
|
|
18
4
|
zoomRatio?: number;
|
|
19
5
|
documentId?: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, ISize, ObjectPositionH, ObjectPositionV } from '@univerjs/core';
|
|
1
|
+
import { ICommand, ISize, ObjectPositionH, ObjectPositionV } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface ISetDrawingSizeCommandParams {
|
|
18
4
|
documentId: string;
|
|
19
5
|
objectId: string;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IMutation, IMutationCommonParams, Nullable, TextXAction } from '@univerjs/core';
|
|
17
|
-
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
1
|
+
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
2
|
+
import { IMutation, IMutationCommonParams, Nullable, TextXAction } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IRichTextEditingMutationParams extends IMutationCommonParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
actions: TextXAction[];
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IDrawing, IMutation } from '@univerjs/core';
|
|
17
|
-
import type { ISeachDrawingMutation } from './set-floating-object.mutation';
|
|
1
|
+
import { ISeachDrawingMutation } from './set-floating-object.mutation';
|
|
2
|
+
import { IDrawing, IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface IInsertDrawingMutation extends ISeachDrawingMutation {
|
|
19
5
|
drawing: IDrawing;
|
|
20
6
|
}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IMutation } from '@univerjs/core';
|
|
17
|
-
import type { ISeachDrawingMutation } from './set-floating-object.mutation';
|
|
1
|
+
import { ISeachDrawingMutation } from './set-floating-object.mutation';
|
|
2
|
+
import { IMutation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare const RemoveDrawingMutation: IMutation<ISeachDrawingMutation>;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { BooleanNumber, IMutation, ISize, ObjectPositionH, ObjectPositionV, PositionedObjectLayoutType, WrapTextType } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { BooleanNumber, IMutation, ISize, ObjectPositionH, ObjectPositionV, PositionedObjectLayoutType, WrapTextType } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISeachDrawingMutation {
|
|
19
5
|
documentId: string;
|
|
20
6
|
objectId: string;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Direction, IOperation } from '@univerjs/core';
|
|
1
|
+
import { Direction, IOperation } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export interface IMoveCursorOperationParams {
|
|
18
4
|
direction: Direction;
|
|
19
5
|
}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
interface ISelectAllOperationParams {
|
|
18
4
|
}
|
|
19
5
|
export declare const SelectAllOperation: ICommand<ISelectAllOperationParams>;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IOperation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetDocZoomRatioOperationParams {
|
|
19
5
|
zoomRatio: number;
|
|
20
6
|
unitId: string;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IOperation } from '@univerjs/core';
|
|
17
|
-
import type { ITextRangeWithStyle, ITextSelectionStyle } from '@univerjs/engine-render';
|
|
1
|
+
import { ITextRangeWithStyle, ITextSelectionStyle } from '@univerjs/engine-render';
|
|
2
|
+
import { IOperation } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export interface ISetTextSelectionsOperationParams {
|
|
19
5
|
unitId: string;
|
|
20
6
|
subUnitId: string;
|