@vervedoc/core 3.0.10 → 3.3.11
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/README.md +194 -71
- package/dist/assets/editor-worker-CG2Et0Mg.js +244 -0
- package/dist/assets/editor-worker-CG2Et0Mg.js.map +1 -0
- package/dist/assets/thumbnail-worker-BGjZ82h0.js +52 -0
- package/dist/assets/thumbnail-worker-BGjZ82h0.js.map +1 -0
- package/dist/command-chain.d.ts +40 -0
- package/dist/constants.d.ts +21 -0
- package/dist/core.js +16073 -3790
- package/dist/core.js.map +1 -1
- package/dist/core.umd.cjs +413 -134
- package/dist/core.umd.cjs.map +1 -1
- package/dist/docx-editor.d.ts +110 -0
- package/dist/index.d.ts +20 -23
- package/dist/shortcut.d.ts +60 -0
- package/dist/workers/compute.d.ts +17 -0
- package/dist/workers/thumbnail-manager.d.ts +19 -0
- package/dist/workers/worker-manager.d.ts +44 -0
- package/package.json +55 -60
- package/dist/DocxEditor.d.ts +0 -17
- package/dist/actuator/Actuator.d.ts +0 -22
- package/dist/assets/runtime.worker-BUGfHnel.js.map +0 -1
- package/dist/docxParser/constants.d.ts +0 -42
- package/dist/docxParser/docx.parser.d.ts +0 -13
- package/dist/docxParser/index.d.ts +0 -13
- package/dist/docxParser/types.d.ts +0 -170
- package/dist/docxParser/worker/builder/element.builder.d.ts +0 -6
- package/dist/docxParser/worker/numbering.resolver.d.ts +0 -29
- package/dist/docxParser/worker/parsers/chart.parser.d.ts +0 -16
- package/dist/docxParser/worker/parsers/comment.parser.d.ts +0 -5
- package/dist/docxParser/worker/parsers/hyperlink.parser.d.ts +0 -14
- package/dist/docxParser/worker/parsers/image.parser.d.ts +0 -12
- package/dist/docxParser/worker/parsers/list.parser.d.ts +0 -6
- package/dist/docxParser/worker/parsers/ooxml.chart.parser.d.ts +0 -4
- package/dist/docxParser/worker/parsers/paragraph.parser.d.ts +0 -10
- package/dist/docxParser/worker/parsers/run.parser.d.ts +0 -22
- package/dist/docxParser/worker/parsers/section.parser.d.ts +0 -20
- package/dist/docxParser/worker/parsers/table.parser.d.ts +0 -11
- package/dist/docxParser/worker/parsers/toc.parser.d.ts +0 -13
- package/dist/docxParser/worker/relationship.resolver.d.ts +0 -17
- package/dist/docxParser/worker/style.resolver.d.ts +0 -33
- package/dist/docxParser/worker/theme.resolver.d.ts +0 -21
- package/dist/docxParser/worker/xml.helper.d.ts +0 -36
- package/dist/export/ExportComponent.d.ts +0 -9
- package/dist/i18n/I18n.d.ts +0 -8
- package/dist/index-OrDfS8Mp.js +0 -16762
- package/dist/index-OrDfS8Mp.js.map +0 -1
- package/dist/table-contextmenu/TableContextMenu.d.ts +0 -48
- package/dist/table-contextmenu/TableContextMenuComponent.d.ts +0 -7
- package/dist/utils/clipboard.d.ts +0 -11
- package/dist/utils/print.d.ts +0 -7
- package/dist/worker/WorkerComponent.d.ts +0 -8
- package/dist/worker/WorkerManager.d.ts +0 -21
- package/dist/worker/WorkerMessage.d.ts +0 -21
- /package/dist/{docxParser/worker/docx.parse.worker.d.ts → workers/editor-worker.d.ts} +0 -0
- /package/dist/{worker/runtime.worker.d.ts → workers/thumbnail-worker.d.ts} +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { IElement } from '@vervedoc/docx-editor-schema';
|
|
2
|
-
import { Draw } from '@vervedoc/docx-editor-view';
|
|
3
|
-
export declare class TableContextMenu {
|
|
4
|
-
private draw;
|
|
5
|
-
private menuElement;
|
|
6
|
-
private _removeContextmenuHandler;
|
|
7
|
-
private subMenuElement;
|
|
8
|
-
private _hideSubMenuTimer;
|
|
9
|
-
private activeColorPanel;
|
|
10
|
-
private activePicker;
|
|
11
|
-
constructor(draw: Draw);
|
|
12
|
-
show(x: number, y: number, element: IElement): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
private _buildMenuItems;
|
|
15
|
-
private _createMenuElement;
|
|
16
|
-
private _createMenuItem;
|
|
17
|
-
private _showSubMenu;
|
|
18
|
-
private _delayHideSubMenu;
|
|
19
|
-
private _hideSubMenu;
|
|
20
|
-
private _bindGlobalEvents;
|
|
21
|
-
private _repeatAction;
|
|
22
|
-
private _getCurrentTd;
|
|
23
|
-
private _canCancelMerge;
|
|
24
|
-
private _getDefaultBorderColor;
|
|
25
|
-
private _deleteTable;
|
|
26
|
-
private _deleteRow;
|
|
27
|
-
private _deleteColumn;
|
|
28
|
-
private _selectAllTable;
|
|
29
|
-
private _setBorderType;
|
|
30
|
-
private _setBorderWidth;
|
|
31
|
-
private _setBorderExternalWidth;
|
|
32
|
-
private _isCellAlignActive;
|
|
33
|
-
private _getTdRowFlex;
|
|
34
|
-
private _getSelectedTds;
|
|
35
|
-
private _setCellAlign;
|
|
36
|
-
private _toggleTdBorderType;
|
|
37
|
-
private _toggleTdSlashType;
|
|
38
|
-
private _mergeTableCell;
|
|
39
|
-
private _cancelMergeTableCell;
|
|
40
|
-
private _splitVerticalTableCell;
|
|
41
|
-
private _splitHorizontalTableCell;
|
|
42
|
-
private _showBorderColorPicker;
|
|
43
|
-
private _showBackgroundColorPicker;
|
|
44
|
-
private _showColorPanel;
|
|
45
|
-
private _destroyActiveColorPanel;
|
|
46
|
-
private _positionColorPanel;
|
|
47
|
-
private _normalizeColorValue;
|
|
48
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DeepRequired, IEditorOption, IElement } from '@vervedoc/docx-editor-schema';
|
|
2
|
-
export interface IClipboardData {
|
|
3
|
-
text: string;
|
|
4
|
-
elementList: IElement[];
|
|
5
|
-
}
|
|
6
|
-
export declare function setClipboardData(data: IClipboardData): void;
|
|
7
|
-
export declare function getClipboardData(): IClipboardData | null;
|
|
8
|
-
export declare function removeClipboardData(): void;
|
|
9
|
-
export declare function writeClipboardItem(text: string, html: string, elementList: IElement[]): void;
|
|
10
|
-
export declare function writeElementList(elementList: IElement[], options: DeepRequired<IEditorOption>): void;
|
|
11
|
-
export declare function getIsClipboardContainFile(clipboardData: DataTransfer): boolean;
|
package/dist/utils/print.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PaperDirection } from '@vervedoc/docx-editor-schema';
|
|
2
|
-
export interface IPrintImageBase64Option {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
direction?: PaperDirection;
|
|
6
|
-
}
|
|
7
|
-
export declare function printImageBase64(base64List: string[], options: IPrintImageBase64Option): void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IEditorResult, IGetValueOption } from '@vervedoc/docx-editor-schema';
|
|
2
|
-
type Draw = any;
|
|
3
|
-
export declare class WorkerManager {
|
|
4
|
-
private readonly draw;
|
|
5
|
-
private worker;
|
|
6
|
-
private readonly pendingTaskMap;
|
|
7
|
-
private readonly warnedFallbackSet;
|
|
8
|
-
private requestSeed;
|
|
9
|
-
constructor(draw: Draw);
|
|
10
|
-
getValue(options?: IGetValueOption): Promise<IEditorResult>;
|
|
11
|
-
getGroupIds(): Promise<string[]>;
|
|
12
|
-
getWordCount(): Promise<number>;
|
|
13
|
-
terminate(): void;
|
|
14
|
-
private _initWorker;
|
|
15
|
-
private _handleMessage;
|
|
16
|
-
private _handleError;
|
|
17
|
-
private _runTask;
|
|
18
|
-
private _rejectPendingTasks;
|
|
19
|
-
private _warnFallback;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IEditorData, IEditorOption, IEditorResult, IGetValueOption } from '@vervedoc/docx-editor-schema';
|
|
2
|
-
export type WorkerRequestType = 'getValue' | 'getWordCount' | 'getGroupIds';
|
|
3
|
-
export interface IWorkerTaskPayload {
|
|
4
|
-
dataVersion: string;
|
|
5
|
-
schemaVersion?: string;
|
|
6
|
-
editorOptions?: IEditorOption;
|
|
7
|
-
valueOptions?: IGetValueOption;
|
|
8
|
-
originData?: Required<IEditorData>;
|
|
9
|
-
mainElementList?: any[];
|
|
10
|
-
}
|
|
11
|
-
export interface IWorkerRequest {
|
|
12
|
-
id: string;
|
|
13
|
-
type: WorkerRequestType;
|
|
14
|
-
payload: IWorkerTaskPayload;
|
|
15
|
-
}
|
|
16
|
-
export interface IWorkerResponse {
|
|
17
|
-
id: string;
|
|
18
|
-
success: boolean;
|
|
19
|
-
data?: IEditorResult | number | string[];
|
|
20
|
-
error?: string;
|
|
21
|
-
}
|
|
File without changes
|
|
File without changes
|