@univerjs/docs 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +5928 -0
- package/lib/cjs/locale/en-US.js +26 -0
- package/lib/cjs/locale/zh-CN.js +26 -0
- package/lib/esm/index.js +5845 -0
- package/lib/esm/locale/en-US.js +5 -0
- package/lib/esm/locale/zh-CN.js +5 -0
- package/lib/types/basics/component-tools.d.ts +10 -0
- package/lib/types/basics/component-tools.d.ts.map +1 -0
- package/lib/types/basics/demo-data.d.ts +3 -0
- package/lib/types/basics/demo-data.d.ts.map +1 -0
- package/lib/types/basics/docs-view-key.d.ts +14 -0
- package/lib/types/basics/docs-view-key.d.ts.map +1 -0
- package/lib/types/basics/retain-delete-params.d.ts +3 -0
- package/lib/types/basics/retain-delete-params.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/clipboard.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/clipboard.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/core-editing.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/core-editing.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +16 -0
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/inline-format.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/inline-format.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/__tests__/replace-content.command.spec.d.ts +2 -0
- package/lib/types/commands/commands/__tests__/replace-content.command.spec.d.ts.map +1 -0
- package/lib/types/commands/commands/clipboard.command.d.ts +5 -0
- package/lib/types/commands/commands/clipboard.command.d.ts.map +1 -0
- package/lib/types/commands/commands/clipboard.inner.command.d.ts +14 -0
- package/lib/types/commands/commands/clipboard.inner.command.d.ts.map +1 -0
- package/lib/types/commands/commands/core-editing.command.d.ts +49 -0
- package/lib/types/commands/commands/core-editing.command.d.ts.map +1 -0
- package/lib/types/commands/commands/ime-input.command.d.ts +13 -0
- package/lib/types/commands/commands/ime-input.command.d.ts.map +1 -0
- package/lib/types/commands/commands/inline-format.command.d.ts +15 -0
- package/lib/types/commands/commands/inline-format.command.d.ts.map +1 -0
- package/lib/types/commands/commands/insert-floating-object.command.d.ts +3 -0
- package/lib/types/commands/commands/insert-floating-object.command.d.ts.map +1 -0
- package/lib/types/commands/commands/remove-floating-object.command.d.ts +3 -0
- package/lib/types/commands/commands/remove-floating-object.command.d.ts.map +1 -0
- package/lib/types/commands/commands/replace-content.command.d.ts +17 -0
- package/lib/types/commands/commands/replace-content.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts +7 -0
- package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts.map +1 -0
- package/lib/types/commands/commands/set-floating-object-transform.command.d.ts +15 -0
- package/lib/types/commands/commands/set-floating-object-transform.command.d.ts.map +1 -0
- package/lib/types/commands/mutations/core-editing.mutation.d.ts +11 -0
- package/lib/types/commands/mutations/core-editing.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/insert-floating-object.mutation.d.ts +7 -0
- package/lib/types/commands/mutations/insert-floating-object.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/remove-floating-object.mutation.d.ts +4 -0
- package/lib/types/commands/mutations/remove-floating-object.mutation.d.ts.map +1 -0
- package/lib/types/commands/mutations/set-floating-object.mutation.d.ts +32 -0
- package/lib/types/commands/mutations/set-floating-object.mutation.d.ts.map +1 -0
- package/lib/types/commands/operations/cursor.operation.d.ts +13 -0
- package/lib/types/commands/operations/cursor.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/select-all.operation.d.ts +6 -0
- package/lib/types/commands/operations/select-all.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts +9 -0
- package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts.map +1 -0
- package/lib/types/commands/operations/text-selection.operation.d.ts +9 -0
- package/lib/types/commands/operations/text-selection.operation.d.ts.map +1 -0
- package/lib/types/controllers/clipboard.controller.d.ts +19 -0
- package/lib/types/controllers/clipboard.controller.d.ts.map +1 -0
- package/lib/types/controllers/delete.controller.d.ts +16 -0
- package/lib/types/controllers/delete.controller.d.ts.map +1 -0
- package/lib/types/controllers/doc-render.controller.d.ts +14 -0
- package/lib/types/controllers/doc-render.controller.d.ts.map +1 -0
- package/lib/types/controllers/floating-object.controller.d.ts +19 -0
- package/lib/types/controllers/floating-object.controller.d.ts.map +1 -0
- package/lib/types/controllers/ime-input.controller.d.ts +29 -0
- package/lib/types/controllers/ime-input.controller.d.ts.map +1 -0
- package/lib/types/controllers/inline-format.controller.d.ts +18 -0
- package/lib/types/controllers/inline-format.controller.d.ts.map +1 -0
- package/lib/types/controllers/line-break-input.controller.d.ts +20 -0
- package/lib/types/controllers/line-break-input.controller.d.ts.map +1 -0
- package/lib/types/controllers/move-cursor.controller.d.ts +25 -0
- package/lib/types/controllers/move-cursor.controller.d.ts.map +1 -0
- package/lib/types/controllers/normal-input.controller.d.ts +20 -0
- package/lib/types/controllers/normal-input.controller.d.ts.map +1 -0
- package/lib/types/controllers/page-render.controller.d.ts +10 -0
- package/lib/types/controllers/page-render.controller.d.ts.map +1 -0
- package/lib/types/controllers/text-selection.controller.d.ts +28 -0
- package/lib/types/controllers/text-selection.controller.d.ts.map +1 -0
- package/lib/types/controllers/zoom.controller.d.ts +22 -0
- package/lib/types/controllers/zoom.controller.d.ts.map +1 -0
- package/lib/types/doc-plugin.d.ts +19 -0
- package/lib/types/doc-plugin.d.ts.map +1 -0
- package/lib/types/index.d.ts +15 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/clipboard/__test__/html-and-udm-convert.spec.d.ts +2 -0
- package/lib/types/services/clipboard/__test__/html-and-udm-convert.spec.d.ts.map +1 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +28 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts.map +1 -0
- package/lib/types/services/clipboard/copy-content-cache.d.ts +11 -0
- package/lib/types/services/clipboard/copy-content-cache.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +16 -0
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +3 -0
- package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts +2 -0
- package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +4 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +4 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +16 -0
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts.map +1 -0
- package/lib/types/services/clipboard/html-to-udm/utils.d.ts +4 -0
- package/lib/types/services/clipboard/html-to-udm/utils.d.ts.map +1 -0
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +5 -0
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts.map +1 -0
- package/lib/types/services/doc-skeleton-manager.service.d.ts +36 -0
- package/lib/types/services/doc-skeleton-manager.service.d.ts.map +1 -0
- package/lib/types/services/doc-view-model-manager.service.d.ts +25 -0
- package/lib/types/services/doc-view-model-manager.service.d.ts.map +1 -0
- package/lib/types/services/ime-input-manager.service.d.ts +19 -0
- package/lib/types/services/ime-input-manager.service.d.ts.map +1 -0
- package/lib/types/services/text-selection-manager.service.d.ts +48 -0
- package/lib/types/services/text-selection-manager.service.d.ts.map +1 -0
- package/lib/types/shortcuts/core-editing.shortcut.d.ts +5 -0
- package/lib/types/shortcuts/core-editing.shortcut.d.ts.map +1 -0
- package/lib/types/shortcuts/cursor.shortcut.d.ts +11 -0
- package/lib/types/shortcuts/cursor.shortcut.d.ts.map +1 -0
- package/lib/types/views/doc-canvas-view.d.ts +17 -0
- package/lib/types/views/doc-canvas-view.d.ts.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IUniverInstanceService, Nullable } from '@univerjs/core';
|
|
2
|
+
import type { Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';
|
|
3
|
+
export interface IDocObjectParam {
|
|
4
|
+
document: Documents;
|
|
5
|
+
scene: Scene;
|
|
6
|
+
engine: Engine;
|
|
7
|
+
}
|
|
8
|
+
export declare function getDocObject(univerInstanceService: IUniverInstanceService, renderManagerService: IRenderManagerService): Nullable<IDocObjectParam>;
|
|
9
|
+
export declare function getDocObjectById(unitId: string, renderManagerService: IRenderManagerService): Nullable<IDocObjectParam>;
|
|
10
|
+
//# sourceMappingURL=component-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-tools.d.ts","sourceRoot":"","sources":["../../../src/basics/component-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,YAAY,CACxB,qBAAqB,EAAE,sBAAsB,EAC7C,oBAAoB,EAAE,qBAAqB,GAC5C,QAAQ,CAAC,eAAe,CAAC,CAoB3B;AAED,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,qBAAqB,GAC5C,QAAQ,CAAC,eAAe,CAAC,CAgB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demo-data.d.ts","sourceRoot":"","sources":["../../../src/basics/demo-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAcpD,eAAO,MAAM,cAAc,EAAE,aA0P5B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum DOCS_VIEW_KEY {
|
|
2
|
+
MAIN = "__Document_Render_Main__"
|
|
3
|
+
}
|
|
4
|
+
export declare enum VIEWPORT_KEY {
|
|
5
|
+
VIEW_MAIN = "viewMain",
|
|
6
|
+
VIEW_TOP = "viewTop",
|
|
7
|
+
VIEW_LEFT = "viewLeft",
|
|
8
|
+
VIEW_LEFT_TOP = "viewLeftTop"
|
|
9
|
+
}
|
|
10
|
+
export declare const DOCS_COMPONENT_MAIN_LAYER_INDEX = 0;
|
|
11
|
+
export declare const DOCS_COMPONENT_HEADER_LAYER_INDEX = 2;
|
|
12
|
+
export declare const DOCS_COMPONENT_DEFAULT_Z_INDEX = 10;
|
|
13
|
+
export declare const NORMAL_TEXT_SELECTION_PLUGIN_NAME = "normalTextSelectionPluginName";
|
|
14
|
+
//# sourceMappingURL=docs-view-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-view-key.d.ts","sourceRoot":"","sources":["../../../src/basics/docs-view-key.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,IAAI,6BAA6B;CACpC;AAED,oBAAY,YAAY;IACpB,SAAS,aAAa;IACtB,QAAQ,YAAY;IACpB,SAAS,aAAa;IACtB,aAAa,gBAAgB;CAChC;AAED,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD,eAAO,MAAM,iCAAiC,IAAI,CAAC;AAEnD,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,eAAO,MAAM,iCAAiC,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IDeleteMutationParams, IRetainMutationParams, ITextRange } from '@univerjs/core';
|
|
2
|
+
export declare function getRetainAndDeleteFromReplace(range: ITextRange, segmentId?: string, memoryCursor?: number): Array<IRetainMutationParams | IDeleteMutationParams>;
|
|
3
|
+
//# sourceMappingURL=retain-delete-params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retain-delete-params.d.ts","sourceRoot":"","sources":["../../../src/basics/retain-delete-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE/F,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,UAAU,EACjB,SAAS,GAAE,MAAW,EACtB,YAAY,GAAE,MAAU,GACzB,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,CAuBtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/clipboard.command.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-editing.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/core-editing.command.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IDocumentData } from '@univerjs/core';
|
|
2
|
+
import { Univer } from '@univerjs/core';
|
|
3
|
+
import type { Dependency } from '@wendellhu/redi';
|
|
4
|
+
export declare function createCommandTestBed(workbookConfig?: IDocumentData, dependencies?: Dependency[]): {
|
|
5
|
+
univer: Univer;
|
|
6
|
+
get: {
|
|
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;
|
|
13
|
+
};
|
|
14
|
+
doc: import("@univerjs/core").DocumentDataModel;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=create-command-test-bed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-command-test-bed.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/create-command-test-bed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAA0E,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA6DlD,wBAAgB,oBAAoB,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,EAAE;;;;;;;;;;;EAuD/F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-format.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/inline-format.command.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-content.command.spec.d.ts","sourceRoot":"","sources":["../../../../../src/commands/commands/__tests__/replace-content.command.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/clipboard.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD,eAAO,MAAM,cAAc,EAAE,aAS5B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAS3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,aAS7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ICommand, IDocumentBody } from '@univerjs/core';
|
|
2
|
+
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
3
|
+
export interface IInnerPasteCommandParams {
|
|
4
|
+
segmentId: string;
|
|
5
|
+
body: IDocumentBody;
|
|
6
|
+
textRanges: ITextRangeWithStyle[];
|
|
7
|
+
}
|
|
8
|
+
export declare const InnerPasteCommand: ICommand<IInnerPasteCommandParams>;
|
|
9
|
+
export interface IInnerCutCommandParams {
|
|
10
|
+
segmentId: string;
|
|
11
|
+
textRanges: ITextRangeWithStyle[];
|
|
12
|
+
}
|
|
13
|
+
export declare const CutContentCommand: ICommand<IInnerCutCommandParams>;
|
|
14
|
+
//# sourceMappingURL=clipboard.inner.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.inner.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/clipboard.inner.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,QAAQ,EAER,aAAa,EAIhB,MAAM,gBAAgB,CAAC;AASxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,MAAM,WAAW,wBAAwB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACrC;AAGD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,wBAAwB,CA6FhE,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,sBAAsB,CA8F9D,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ICommand, IDocumentBody, IDocumentData, ITextRange, UpdateDocsAttributeType } from '@univerjs/core';
|
|
2
|
+
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
3
|
+
export declare const DeleteLeftCommand: ICommand;
|
|
4
|
+
export declare const DeleteRightCommand: ICommand;
|
|
5
|
+
export declare const BreakLineCommand: ICommand;
|
|
6
|
+
export interface IInsertCommandParams {
|
|
7
|
+
unitId: string;
|
|
8
|
+
body: IDocumentBody;
|
|
9
|
+
range: ITextRange;
|
|
10
|
+
textRanges: ITextRangeWithStyle[];
|
|
11
|
+
segmentId?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The command to insert text. The changed range could be non-collapsed.
|
|
15
|
+
*/
|
|
16
|
+
export declare const InsertCommand: ICommand<IInsertCommandParams>;
|
|
17
|
+
export declare enum DeleteDirection {
|
|
18
|
+
LEFT = 0,
|
|
19
|
+
RIGHT = 1
|
|
20
|
+
}
|
|
21
|
+
export interface IDeleteCommandParams {
|
|
22
|
+
unitId: string;
|
|
23
|
+
range: ITextRange;
|
|
24
|
+
direction: DeleteDirection;
|
|
25
|
+
textRanges: ITextRangeWithStyle[];
|
|
26
|
+
segmentId?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The command to delete text, mainly used in BACKSPACE and DELETE when collapsed is true.
|
|
30
|
+
*/
|
|
31
|
+
export declare const DeleteCommand: ICommand<IDeleteCommandParams>;
|
|
32
|
+
export interface IUpdateCommandParams {
|
|
33
|
+
unitId: string;
|
|
34
|
+
updateBody: IDocumentBody;
|
|
35
|
+
range: ITextRange;
|
|
36
|
+
coverType: UpdateDocsAttributeType;
|
|
37
|
+
textRanges: ITextRangeWithStyle[];
|
|
38
|
+
segmentId?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The command to update text properties, mainly used in BACKSPACE.
|
|
42
|
+
*/
|
|
43
|
+
export declare const UpdateCommand: ICommand<IUpdateCommandParams>;
|
|
44
|
+
export interface ICoverCommandParams {
|
|
45
|
+
unitId: string;
|
|
46
|
+
snapshot?: IDocumentData;
|
|
47
|
+
clearUndoRedoStack?: boolean;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=core-editing.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-editing.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/core-editing.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EAEb,UAAU,EACV,uBAAuB,EAC1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQnE,eAAO,MAAM,iBAAiB,EAAE,QAI/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,QAIhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,QAI9B,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAwExD,CAAC;AAEF,oBAAY,eAAe;IACvB,IAAI,IAAA;IACJ,KAAK,IAAA;CACR;AAED,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAwExD,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,aAAa,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,uBAAuB,CAAC;IACnC,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAoExD,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ICommand, ITextRange } from '@univerjs/core';
|
|
2
|
+
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
3
|
+
export interface IIMEInputCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
newText: string;
|
|
6
|
+
oldTextLen: number;
|
|
7
|
+
range: ITextRange;
|
|
8
|
+
textRanges: ITextRangeWithStyle[];
|
|
9
|
+
isCompositionEnd: boolean;
|
|
10
|
+
segmentId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const IMEInputCommand: ICommand<IIMEInputCommandParams>;
|
|
13
|
+
//# sourceMappingURL=ime-input.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ime-input.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/ime-input.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAgB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQnE,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,sBAAsB,CAgG5D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ICommand } from '@univerjs/core';
|
|
2
|
+
export interface ISetInlineFormatCommandParams {
|
|
3
|
+
segmentId: string;
|
|
4
|
+
preCommandId: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SetInlineFormatBoldCommand: ICommand;
|
|
8
|
+
export declare const SetInlineFormatItalicCommand: ICommand;
|
|
9
|
+
export declare const SetInlineFormatUnderlineCommand: ICommand;
|
|
10
|
+
export declare const SetInlineFormatStrikethroughCommand: ICommand;
|
|
11
|
+
export declare const SetInlineFormatFontSizeCommand: ICommand;
|
|
12
|
+
export declare const SetInlineFormatFontFamilyCommand: ICommand;
|
|
13
|
+
export declare const SetInlineFormatTextColorCommand: ICommand;
|
|
14
|
+
export declare const SetInlineFormatCommand: ICommand<ISetInlineFormatCommandParams>;
|
|
15
|
+
//# sourceMappingURL=inline-format.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-format.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/inline-format.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAuE,MAAM,gBAAgB,CAAC;AAiBpH,MAAM,WAAW,6BAA6B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,0BAA0B,EAAE,QAIxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,QAI1C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,QAI7C,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,QAIjD,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,QAI5C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,QAI9C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,QAI7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,6BAA6B,CAqK1E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-floating-object.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/insert-floating-object.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAQ/C,eAAO,MAAM,oBAAoB,EAAE,QA+ClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-floating-object.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/remove-floating-object.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAS/C,eAAO,MAAM,oBAAoB,EAAE,QA8ClC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ICommand, IDocumentBody } from '@univerjs/core';
|
|
2
|
+
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
3
|
+
interface IReplaceContentCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
body: IDocumentBody;
|
|
6
|
+
textRanges: ITextRangeWithStyle[];
|
|
7
|
+
segmentId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ReplaceContentCommand: ICommand<IReplaceContentCommandParams>;
|
|
10
|
+
interface ICoverContentCommandParams {
|
|
11
|
+
unitId: string;
|
|
12
|
+
body: IDocumentBody;
|
|
13
|
+
segmentId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const CoverContentCommand: ICommand<ICoverContentCommandParams>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=replace-content.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-content.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/replace-content.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAiB,MAAM,gBAAgB,CAAC;AAE7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAMnE,UAAU,4BAA4B;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,4BAA4B,CA0DxE,CAAC;AAEF,UAAU,0BAA0B;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,0BAA0B,CA4BpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-doc-zoom-ratio.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/set-doc-zoom-ratio.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAU/C,MAAM,WAAW,6BAA6B;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,sBAAsB,EAAE,QAuCpC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ICommand, ISize, ObjectPositionH, ObjectPositionV } from '@univerjs/core';
|
|
2
|
+
export interface ISetDrawingSizeCommandParams {
|
|
3
|
+
documentId: string;
|
|
4
|
+
objectId: string;
|
|
5
|
+
size: ISize;
|
|
6
|
+
}
|
|
7
|
+
export declare const SetDrawingSizeCommand: ICommand;
|
|
8
|
+
export interface ISetDrawingPositionCommandParams {
|
|
9
|
+
documentId: string;
|
|
10
|
+
objectId: string;
|
|
11
|
+
positionH: ObjectPositionH;
|
|
12
|
+
positionV: ObjectPositionV;
|
|
13
|
+
}
|
|
14
|
+
export declare const SetDrawingPositionCommand: ICommand;
|
|
15
|
+
//# sourceMappingURL=set-floating-object-transform.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-floating-object-transform.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/commands/set-floating-object-transform.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUxF,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,EAAE,QA2CnC,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,yBAAyB,EAAE,QA4CvC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DocMutationParams, type IMutation } from '@univerjs/core';
|
|
2
|
+
export interface IRichTextEditingMutationParams {
|
|
3
|
+
unitId: string;
|
|
4
|
+
mutations: DocMutationParams[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The core mutator to change rich text mutations. The execution result would be undo mutation params. Could be directly
|
|
8
|
+
* send to undo redo service (will be used by the triggering command).
|
|
9
|
+
*/
|
|
10
|
+
export declare const RichTextEditingMutation: IMutation<IRichTextEditingMutationParams, IRichTextEditingMutationParams>;
|
|
11
|
+
//# sourceMappingURL=core-editing.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-editing.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/core-editing.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAGjB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,CAAC,8BAA8B,EAAE,8BAA8B,CA2D7G,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDrawing, IMutation } from '@univerjs/core';
|
|
2
|
+
import type { ISeachDrawingMutation } from './set-floating-object.mutation';
|
|
3
|
+
export interface IInsertDrawingMutation extends ISeachDrawingMutation {
|
|
4
|
+
drawing: IDrawing;
|
|
5
|
+
}
|
|
6
|
+
export declare const InsertDrawingMutation: IMutation<IInsertDrawingMutation>;
|
|
7
|
+
//# sourceMappingURL=insert-floating-object.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-floating-object.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/insert-floating-object.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACjE,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,sBAAsB,CAuBnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-floating-object.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/remove-floating-object.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,qBAAqB,CAqBlE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BooleanNumber, IMutation, ISize, ObjectPositionH, ObjectPositionV, PositionedObjectLayoutType, WrapTextType } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISeachDrawingMutation {
|
|
4
|
+
documentId: string;
|
|
5
|
+
objectId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IDrawingTransformMutation extends ISeachDrawingMutation {
|
|
8
|
+
size?: ISize;
|
|
9
|
+
positionH?: ObjectPositionH;
|
|
10
|
+
positionV?: ObjectPositionV;
|
|
11
|
+
angle?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const SetDrawingTransformMutationFactory: (accessor: IAccessor, params: IDrawingTransformMutation) => IDrawingTransformMutation;
|
|
14
|
+
export declare const SetDrawingTransformMutation: IMutation<IDrawingTransformMutation>;
|
|
15
|
+
export interface IDrawingLayoutMutation extends ISeachDrawingMutation {
|
|
16
|
+
layoutType?: PositionedObjectLayoutType;
|
|
17
|
+
behindDoc?: BooleanNumber;
|
|
18
|
+
start?: number[];
|
|
19
|
+
lineTo?: number[][];
|
|
20
|
+
wrapText?: WrapTextType;
|
|
21
|
+
distL?: number;
|
|
22
|
+
distR?: number;
|
|
23
|
+
distT?: number;
|
|
24
|
+
distB?: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const SetDrawingLayoutMutation: IMutation<IDrawingLayoutMutation>;
|
|
27
|
+
export interface IDrawingInfoMutation extends ISeachDrawingMutation {
|
|
28
|
+
title?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const SetDrawingInfoMutation: IMutation<IDrawingInfoMutation>;
|
|
32
|
+
//# sourceMappingURL=set-floating-object.mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-floating-object.mutation.d.ts","sourceRoot":"","sources":["../../../../src/commands/mutations/set-floating-object.mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,SAAS,EACT,KAAK,EACL,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,YAAY,EACf,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB;IACpE,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kCAAkC,aACjC,SAAS,UACX,yBAAyB,KAClC,yBAiCF,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,SAAS,CAAC,yBAAyB,CAmC5E,CAAC;AAEF,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACjE,UAAU,CAAC,EAAE,0BAA0B,CAAC;IAExC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,sBAAsB,CA6CtE,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,oBAAoB,CA+BlE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Direction, IOperation } from '@univerjs/core';
|
|
2
|
+
export interface IMoveCursorOperationParams {
|
|
3
|
+
direction: Direction;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The operation to move cursor in the current document.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MoveCursorOperation: IOperation<IMoveCursorOperationParams>;
|
|
9
|
+
/**
|
|
10
|
+
* The operation to move selection in the current document.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MoveSelectionOperation: IOperation<IMoveCursorOperationParams>;
|
|
13
|
+
//# sourceMappingURL=cursor.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/cursor.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5D,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,SAAS,CAAC;CACxB;AAID;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,0BAA0B,CAYtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,0BAA0B,CAYzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-all.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/select-all.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAM/C,UAAU,yBAAyB;CAAG;AAEtC,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,yBAAyB,CA2BlE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IOperation } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
export interface ISetDocZoomRatioOperationParams {
|
|
4
|
+
zoomRatio: number;
|
|
5
|
+
unitId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SetDocZoomRatioUndoMutationFactory: (accessor: IAccessor, params: ISetDocZoomRatioOperationParams) => ISetDocZoomRatioOperationParams;
|
|
8
|
+
export declare const SetDocZoomRatioOperation: IOperation<ISetDocZoomRatioOperationParams>;
|
|
9
|
+
//# sourceMappingURL=set-doc-zoom-ratio.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-doc-zoom-ratio.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/set-doc-zoom-ratio.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,+BAA+B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kCAAkC,aACjC,SAAS,UACX,+BAA+B,KACxC,+BAOF,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,+BAA+B,CAsBhF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IOperation } from '@univerjs/core';
|
|
2
|
+
import type { TextRange } from '@univerjs/engine-render';
|
|
3
|
+
export interface ISetTextSelectionsOperationParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
pluginName: string;
|
|
6
|
+
ranges: TextRange[];
|
|
7
|
+
}
|
|
8
|
+
export declare const SetTextSelectionsOperation: IOperation<ISetTextSelectionsOperationParams>;
|
|
9
|
+
//# sourceMappingURL=text-selection.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-selection.operation.d.ts","sourceRoot":"","sources":["../../../../src/commands/operations/text-selection.operation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIzD,MAAM,WAAW,iCAAiC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,iCAAiC,CAYpF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IContextService, ILogService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
|
+
import { IDocClipboardService } from '../services/clipboard/clipboard.service';
|
|
4
|
+
export declare class DocClipboardController extends Disposable {
|
|
5
|
+
private readonly _logService;
|
|
6
|
+
private readonly _commandService;
|
|
7
|
+
private readonly _currentUniverService;
|
|
8
|
+
private readonly _docClipboardService;
|
|
9
|
+
private _textSelectionRenderManager;
|
|
10
|
+
private readonly _contextService;
|
|
11
|
+
constructor(_logService: ILogService, _commandService: ICommandService, _currentUniverService: IUniverInstanceService, _docClipboardService: IDocClipboardService, _textSelectionRenderManager: ITextSelectionRenderManager, _contextService: IContextService);
|
|
12
|
+
initialize(): void;
|
|
13
|
+
private _commandExecutedListener;
|
|
14
|
+
private _handlePaste;
|
|
15
|
+
private _getDocumentBodyInRanges;
|
|
16
|
+
private _handleCopy;
|
|
17
|
+
private _handleCut;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=clipboard.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/clipboard.controller.ts"],"names":[],"mappings":"AACA,OAAO,EACH,UAAU,EAGV,eAAe,EACf,eAAe,EACf,WAAW,EACX,sBAAsB,EAIzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,qBACa,sBAAuB,SAAQ,UAAU;IAEjC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACxB,OAAO,CAAC,QAAQ,CAAC,eAAe;IACzB,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACxC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAC9B,OAAO,CAAC,2BAA2B;IAC/C,OAAO,CAAC,QAAQ,CAAC,eAAe;gBALnB,WAAW,EAAE,WAAW,EACpB,eAAe,EAAE,eAAe,EACzB,qBAAqB,EAAE,sBAAsB,EAC/C,oBAAoB,EAAE,oBAAoB,EAC5C,2BAA2B,EAAE,2BAA2B,EAC3D,eAAe,EAAE,eAAe;IAOtE,UAAU;IASV,OAAO,CAAC,wBAAwB;YAuClB,YAAY;IAiD1B,OAAO,CAAC,wBAAwB;YAgFlB,WAAW;YAWX,UAAU;CA+C3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
|
+
export declare class DeleteController extends Disposable {
|
|
5
|
+
private readonly _docSkeletonManagerService;
|
|
6
|
+
private readonly _currentUniverService;
|
|
7
|
+
private readonly _textSelectionRenderManager;
|
|
8
|
+
private readonly _commandService;
|
|
9
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _textSelectionRenderManager: ITextSelectionRenderManager, _commandService: ICommandService);
|
|
10
|
+
private _initialize;
|
|
11
|
+
private _commandExecutedListener;
|
|
12
|
+
private _handleDeleteLeft;
|
|
13
|
+
private _handleDeleteRight;
|
|
14
|
+
private _getTextRangesWhenDelete;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=delete.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/delete.controller.ts"],"names":[],"mappings":"AACA,OAAO,EACH,UAAU,EACV,eAAe,EACf,sBAAsB,EAIzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAMH,2BAA2B,EAC9B,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAErF,qBACa,gBAAiB,SAAQ,UAAU;IAEL,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IACtD,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACjC,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IACxD,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAHG,0BAA0B,EAAE,yBAAyB,EAChE,qBAAqB,EAAE,sBAAsB,EACxC,2BAA2B,EAAE,2BAA2B,EACpE,eAAe,EAAE,eAAe;IAStE,OAAO,CAAC,WAAW;IAEnB,OAAO,CAAC,wBAAwB;IAwBhC,OAAO,CAAC,iBAAiB;IAwIzB,OAAO,CAAC,kBAAkB;IAiD1B,OAAO,CAAC,wBAAwB;CA6BnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
+
import type { DocumentSkeleton, IRender } from '@univerjs/engine-render';
|
|
3
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
5
|
+
export declare class DocRenderController extends Disposable {
|
|
6
|
+
private readonly _docSkeletonManagerService;
|
|
7
|
+
private readonly _renderManagerService;
|
|
8
|
+
private readonly _commandService;
|
|
9
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _renderManagerService: IRenderManagerService, _commandService: ICommandService);
|
|
10
|
+
private _initialRenderRefresh;
|
|
11
|
+
recalculateSizeBySkeleton(currentRender: IRender, skeleton: DocumentSkeleton): void;
|
|
12
|
+
private _commandExecutedListener;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=doc-render.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doc-render.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/doc-render.controller.ts"],"names":[],"mappings":"AACA,OAAO,EACH,UAAU,EAGV,eAAe,EAGlB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAa,gBAAgB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAkB,MAAM,yBAAyB,CAAC;AAKhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAErF,qBACa,mBAAoB,SAAQ,UAAU;IAER,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IACvD,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAFG,0BAA0B,EAAE,yBAAyB,EACjE,qBAAqB,EAAE,qBAAqB,EAClD,eAAe,EAAE,eAAe;IAStE,OAAO,CAAC,qBAAqB;IAsE7B,yBAAyB,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB;IAoC5E,OAAO,CAAC,wBAAwB;CAqCnC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IFloatingObjectManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
|
+
export declare class FloatingObjectController extends Disposable {
|
|
5
|
+
private readonly _docSkeletonManagerService;
|
|
6
|
+
private readonly _currentUniverService;
|
|
7
|
+
private readonly _renderManagerService;
|
|
8
|
+
private readonly _commandService;
|
|
9
|
+
private readonly _floatingObjectManagerService;
|
|
10
|
+
private _liquid;
|
|
11
|
+
private _pageMarginCache;
|
|
12
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _floatingObjectManagerService: IFloatingObjectManagerService);
|
|
13
|
+
private _initialize;
|
|
14
|
+
private _updateOnPluginChange;
|
|
15
|
+
private _initialRenderRefresh;
|
|
16
|
+
private _commandExecutedListener;
|
|
17
|
+
private _refreshFloatingObject;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=floating-object.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-object.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/floating-object.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,UAAU,EAGV,eAAe,EACf,6BAA6B,EAC7B,sBAAsB,EAGzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAU,MAAM,yBAAyB,CAAC;AAMxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAErF,qBACa,wBAAyB,SAAQ,UAAU;IAMb,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IACtD,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACvC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,eAAe;IAClB,OAAO,CAAC,QAAQ,CAAC,6BAA6B;IATjF,OAAO,CAAC,OAAO,CAAgB;IAE/B,OAAO,CAAC,gBAAgB,CAAgE;gBAGhC,0BAA0B,EAAE,yBAAyB,EAChE,qBAAqB,EAAE,sBAAsB,EAC9C,qBAAqB,EAAE,qBAAqB,EAClD,eAAe,EAAE,eAAe,EAClB,6BAA6B,EAAE,6BAA6B;IAShH,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,qBAAqB;IAgD7B,OAAO,CAAC,qBAAqB;IAwB7B,OAAO,CAAC,wBAAwB;IA0ChC,OAAO,CAAC,sBAAsB;CAiEjC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
|
+
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
|
+
import { IMEInputManagerService } from '../services/ime-input-manager.service';
|
|
5
|
+
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
6
|
+
export declare class IMEInputController extends Disposable {
|
|
7
|
+
private readonly _docSkeletonManagerService;
|
|
8
|
+
private readonly _currentUniverService;
|
|
9
|
+
private readonly _renderManagerService;
|
|
10
|
+
private readonly _textSelectionRenderManager;
|
|
11
|
+
private readonly _textSelectionManagerService;
|
|
12
|
+
private readonly _imeInputManagerService;
|
|
13
|
+
private readonly _commandService;
|
|
14
|
+
private _previousIMEContent;
|
|
15
|
+
private _previousIMERange;
|
|
16
|
+
private _onStartSubscription;
|
|
17
|
+
private _onUpdateSubscription;
|
|
18
|
+
private _onEndSubscription;
|
|
19
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _imeInputManagerService: IMEInputManagerService, _commandService: ICommandService);
|
|
20
|
+
dispose(): void;
|
|
21
|
+
private _initialize;
|
|
22
|
+
private _initialOnCompositionstart;
|
|
23
|
+
private _initialOnCompositionUpdate;
|
|
24
|
+
private _initialOnCompositionend;
|
|
25
|
+
private _updateContent;
|
|
26
|
+
private _resetIME;
|
|
27
|
+
private _getDocObject;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ime-input.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ime-input.controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/ime-input.controller.ts"],"names":[],"mappings":"AACA,OAAO,EACH,UAAU,EACV,eAAe,EACf,sBAAsB,EAIzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAM7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAEzF,qBACa,kBAAmB,SAAQ,UAAU;IAYP,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IACtD,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACvC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IACpC,OAAO,CAAC,QAAQ,CAAC,4BAA4B;IAClD,OAAO,CAAC,QAAQ,CAAC,uBAAuB;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAjBrD,OAAO,CAAC,mBAAmB,CAAc;IAEzC,OAAO,CAAC,iBAAiB,CAAgC;IAEzD,OAAO,CAAC,oBAAoB,CAAyB;IAErD,OAAO,CAAC,qBAAqB,CAAyB;IAEtD,OAAO,CAAC,kBAAkB,CAAyB;gBAGK,0BAA0B,EAAE,yBAAyB,EAChE,qBAAqB,EAAE,sBAAsB,EAC9C,qBAAqB,EAAE,qBAAqB,EACtC,2BAA2B,EAAE,2BAA2B,EAChD,4BAA4B,EAAE,2BAA2B,EAC9D,uBAAuB,EAAE,sBAAsB,EAC9D,eAAe,EAAE,eAAe;IAO7D,OAAO,IAAI,IAAI;IAMxB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,0BAA0B;IAoBlC,OAAO,CAAC,2BAA2B;IAMnC,OAAO,CAAC,wBAAwB;YAMlB,cAAc;IA2D5B,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,aAAa;CAGxB"}
|