@syncfusion/ej2-docx-renderer 0.0.0-stage → 35.2.15
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 +2 -2
- package/base.d.ts +4 -0
- package/base.js +4 -0
- package/dist/ej2-docx-renderer.umd.min.js +2 -0
- package/dist/ej2-docx-renderer.umd.min.js.map +1 -0
- package/dist/es6/ej2-docx-renderer.es2015.js +52432 -0
- package/dist/es6/ej2-docx-renderer.es2015.js.map +1 -0
- package/dist/es6/ej2-docx-renderer.es5.js +54425 -0
- package/dist/es6/ej2-docx-renderer.es5.js.map +1 -0
- package/dist/global/ej2-docx-renderer.min.js +2 -0
- package/dist/global/ej2-docx-renderer.min.js.map +1 -0
- package/dist/global/index.d.ts +5 -0
- package/format.d.ts +4 -0
- package/format.js +4 -0
- package/helper.d.ts +4 -0
- package/helper.js +4 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/license +10 -0
- package/list.d.ts +4 -0
- package/list.js +4 -0
- package/package.json +26 -4
- package/parser.d.ts +4 -0
- package/parser.js +4 -0
- package/src/base/constants.d.ts +2 -0
- package/src/base/constants.js +2 -0
- package/src/base/dictionary.d.ts +52 -0
- package/src/base/dictionary.js +137 -0
- package/src/base/index.d.ts +9 -0
- package/src/base/index.js +9 -0
- package/src/base/keywords.d.ts +422 -0
- package/src/base/keywords.js +422 -0
- package/src/base/types.d.ts +2590 -0
- package/src/base/types.js +1056 -0
- package/src/base/unique-format.d.ts +87 -0
- package/src/base/unique-format.js +858 -0
- package/src/base/unique-formats.d.ts +32 -0
- package/src/base/unique-formats.js +87 -0
- package/src/document-canvas.d.ts +61 -0
- package/src/document-canvas.js +221 -0
- package/src/docx-renderer.d.ts +941 -0
- package/src/docx-renderer.js +2251 -0
- package/src/format/border.d.ts +53 -0
- package/src/format/border.js +600 -0
- package/src/format/borders.d.ts +44 -0
- package/src/format/borders.js +314 -0
- package/src/format/cell-format.d.ts +42 -0
- package/src/format/cell-format.js +309 -0
- package/src/format/character-format.d.ts +152 -0
- package/src/format/character-format.js +1224 -0
- package/src/format/index.d.ts +14 -0
- package/src/format/index.js +14 -0
- package/src/format/list-format.d.ts +32 -0
- package/src/format/list-format.js +238 -0
- package/src/format/paragraph-format.d.ts +103 -0
- package/src/format/paragraph-format.js +854 -0
- package/src/format/row-format.d.ts +119 -0
- package/src/format/row-format.js +545 -0
- package/src/format/section-format.d.ts +89 -0
- package/src/format/section-format.js +689 -0
- package/src/format/shading.d.ts +24 -0
- package/src/format/shading.js +137 -0
- package/src/format/style.d.ts +106 -0
- package/src/format/style.js +286 -0
- package/src/format/table-format.d.ts +51 -0
- package/src/format/table-format.js +395 -0
- package/src/global.js +1 -0
- package/src/helper/document-editor-helper.d.ts +515 -0
- package/src/helper/document-editor-helper.js +1302 -0
- package/src/helper/document-editor-settings.d.ts +293 -0
- package/src/helper/document-editor-settings.js +94 -0
- package/src/helper/index.d.ts +5 -0
- package/src/helper/index.js +5 -0
- package/src/helper/layout-helper-methods.d.ts +539 -0
- package/src/helper/layout-helper-methods.js +1065 -0
- package/src/helper/renderer-hooks.d.ts +74 -0
- package/src/helper/renderer-hooks.js +14 -0
- package/src/helper/revision-helper-methods.d.ts +199 -0
- package/src/helper/revision-helper-methods.js +362 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +18 -0
- package/src/layout-helper.d.ts +190 -0
- package/src/layout-helper.js +1368 -0
- package/src/layout.d.ts +779 -0
- package/src/layout.js +17232 -0
- package/src/list/abstract-list.d.ts +25 -0
- package/src/list/abstract-list.js +67 -0
- package/src/list/index.d.ts +7 -0
- package/src/list/index.js +7 -0
- package/src/list/level-override.d.ts +22 -0
- package/src/list/level-override.js +43 -0
- package/src/list/list-level.d.ts +57 -0
- package/src/list/list-level.js +249 -0
- package/src/list/list.d.ts +30 -0
- package/src/list/list.js +100 -0
- package/src/page.d.ts +4155 -0
- package/src/page.js +11342 -0
- package/src/parser/index.d.ts +1 -0
- package/src/parser/index.js +1 -0
- package/src/parser/sfdt-reader.d.ts +254 -0
- package/src/parser/sfdt-reader.js +4569 -0
- package/src/render.d.ts +226 -0
- package/src/render.js +4222 -0
- package/src/text-helper.d.ts +144 -0
- package/src/text-helper.js +1079 -0
- package/src/text-helpers/index.d.ts +2 -0
- package/src/text-helpers/index.js +2 -0
- package/src/text-helpers/optimized.d.ts +45 -0
- package/src/text-helpers/optimized.js +121 -0
- package/src/text-helpers/regular.d.ts +37 -0
- package/src/text-helpers/regular.js +93 -0
- package/src/themes/font-scheme.d.ts +28 -0
- package/src/themes/font-scheme.js +107 -0
- package/src/themes/index.d.ts +6 -0
- package/src/themes/index.js +6 -0
- package/src/themes/major-minor-font-scheme.d.ts +14 -0
- package/src/themes/major-minor-font-scheme.js +45 -0
- package/src/themes/themes.d.ts +11 -0
- package/src/themes/themes.js +31 -0
- package/src/utility/index.d.ts +1 -0
- package/src/utility/index.js +1 -0
- package/src/utility/path-util.d.ts +133 -0
- package/src/utility/path-util.js +639 -0
- package/text-helpers.d.ts +4 -0
- package/text-helpers.js +4 -0
- package/themes.d.ts +4 -0
- package/themes.js +4 -0
- package/utility.d.ts +4 -0
- package/utility.js +4 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { WSectionFormat, WColumnFormat } from './format/index';
|
|
2
|
+
import { Page, Rect, Widget, ParagraphWidget, HeaderFooterWidget, Padding, ShapeElementBox, FootNoteWidget } from './page';
|
|
3
|
+
import { BodyWidget, TableWidget, TableRowWidget, TableCellWidget, BlockWidget } from './page';
|
|
4
|
+
import { DocxRenderer } from './docx-renderer';
|
|
5
|
+
import { HeaderFooterType, FootnoteType } from './base/types';
|
|
6
|
+
/**
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class LayoutHelper {
|
|
10
|
+
visiblePages: Page[];
|
|
11
|
+
documentHelper: DocxRenderer;
|
|
12
|
+
constructor(owner: DocxRenderer);
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
padding: Padding;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
clientActiveArea: Rect;
|
|
21
|
+
/**
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
clientArea: Rect;
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
columnLayoutArea: ColumnLayout;
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
textWrap: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
containerTop: number;
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
containerWidth: number;
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
containerLeft: number;
|
|
45
|
+
/**
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
isWebPrinting: boolean;
|
|
49
|
+
updateClientArea(bodyWidget: BodyWidget, page: Page, isReLayout?: boolean): void;
|
|
50
|
+
setClientArea(bodyWidget: BodyWidget, clientArea: Rect): void;
|
|
51
|
+
updateClientAreaTopOrLeft(tableWidget: TableWidget, beforeLayout: boolean): void;
|
|
52
|
+
updateClientAreaForTable(tableWidget: TableWidget): void;
|
|
53
|
+
updateClientAreaForRow(row: TableRowWidget, beforeLayout: boolean): void;
|
|
54
|
+
updateClientAreaForCell(cell: TableCellWidget, beforeLayout: boolean): void;
|
|
55
|
+
updateClientAreaForTextBoxShape(textBox: ShapeElementBox, beforeLayout: boolean, shiftNextWidget?: boolean): void;
|
|
56
|
+
updateClientAreaByWidgetFootNote(widget: FootNoteWidget): void;
|
|
57
|
+
/**
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
updateClientAreaForTextWrap(area: Rect): void;
|
|
61
|
+
private updateBoundsBasedOnTextWrap;
|
|
62
|
+
private updateBoundsBasedOnTextWrapTable;
|
|
63
|
+
updateClientAreaByWidget(widget: ParagraphWidget): void;
|
|
64
|
+
updateClientAreaLocation(widget: Widget, area: Rect): void;
|
|
65
|
+
updateClientAreaForBlock(block: BlockWidget, beforeLayout: boolean, tableCollection?: TableWidget[], updateYPosition?: boolean, updateXPosition?: boolean): void;
|
|
66
|
+
private updateParagraphYPositionBasedonTextWrap;
|
|
67
|
+
/**
|
|
68
|
+
* @private
|
|
69
|
+
*/
|
|
70
|
+
updateParagraphXPositionBasedOnTextWrap(block: BlockWidget): void;
|
|
71
|
+
/**
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
updateTableXPositionBasedOnTextWrap(block: TableWidget): void;
|
|
75
|
+
private isFloatingItemIntersect;
|
|
76
|
+
private getIntersectingItemBounds;
|
|
77
|
+
private getMinBottomFloatingItem;
|
|
78
|
+
private getIntersectingFloatingItems;
|
|
79
|
+
private getTextWrappingBound;
|
|
80
|
+
private tableAlignmentForBidi;
|
|
81
|
+
cutFromLeft(x: number): void;
|
|
82
|
+
cutFromTop(y: number): void;
|
|
83
|
+
updateClientWidth(width: number): void;
|
|
84
|
+
/**
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
abstract readonly pageGap: number;
|
|
88
|
+
/**
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
abstract createNewPage(section: BodyWidget, index?: number): Page;
|
|
92
|
+
destroy(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Disposes the internal objects which are maintained.
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
componentDestroy(): void;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
export declare class PageLayoutHelper extends LayoutHelper {
|
|
103
|
+
private pageLeft;
|
|
104
|
+
private owner;
|
|
105
|
+
/**
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
108
|
+
readonly pageGap: number;
|
|
109
|
+
/**
|
|
110
|
+
* Initialize the constructor of PageLayoutHelper
|
|
111
|
+
*/
|
|
112
|
+
constructor(owner: DocxRenderer);
|
|
113
|
+
createNewPage(section: BodyWidget, index?: number): Page;
|
|
114
|
+
updatePageBoundingRectangle(section: BodyWidget, page: Page, yPosition: number): void;
|
|
115
|
+
getCurrentPageHeaderFooter(section: BodyWidget, isHeader: boolean): HeaderFooterWidget;
|
|
116
|
+
/**
|
|
117
|
+
* A page that follows the page where the section already started (continuous section) is not its first page.
|
|
118
|
+
*/
|
|
119
|
+
private isFirstPageOfSection;
|
|
120
|
+
getHeaderFooterType(section: BodyWidget, isHeader: boolean): HeaderFooterType;
|
|
121
|
+
getCurrentHeaderFooter(type: HeaderFooterType, sectionIndex: number): HeaderFooterWidget;
|
|
122
|
+
private createHeaderFooterWidget;
|
|
123
|
+
getHeaderFooter(type: HeaderFooterType): number;
|
|
124
|
+
updateHFClientArea(sectionFormat: WSectionFormat, isHeader: boolean): void;
|
|
125
|
+
updateHeaderFooterClientAreaWithTop(sectionFormat: WSectionFormat, isHeader: boolean, page: Page): void;
|
|
126
|
+
updateFootnoteClientArea(sectionFormat: WSectionFormat, footnote: FootNoteWidget, footNoteType?: FootnoteType, para?: ParagraphWidget): void;
|
|
127
|
+
}
|
|
128
|
+
export declare class WebLayoutHelper extends LayoutHelper {
|
|
129
|
+
constructor(owner: DocxRenderer);
|
|
130
|
+
/**
|
|
131
|
+
* @private
|
|
132
|
+
*/
|
|
133
|
+
readonly pageGap: number;
|
|
134
|
+
/**
|
|
135
|
+
* Creates new page.
|
|
136
|
+
* @private
|
|
137
|
+
*/
|
|
138
|
+
createNewPage(section: BodyWidget, index?: number): Page;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @private
|
|
142
|
+
*/
|
|
143
|
+
export declare class ColumnLayout {
|
|
144
|
+
private currentIndexIn;
|
|
145
|
+
private numberOfColumnsIn;
|
|
146
|
+
private columnIn;
|
|
147
|
+
private layoutHelperIn;
|
|
148
|
+
private defaultSpaceIn;
|
|
149
|
+
private pageWidth;
|
|
150
|
+
currentIndex: number;
|
|
151
|
+
/**
|
|
152
|
+
* Initialize the constructor of Column Layout Settings
|
|
153
|
+
*/
|
|
154
|
+
constructor(layoutHelper: LayoutHelper);
|
|
155
|
+
private readonly columnCount;
|
|
156
|
+
/**
|
|
157
|
+
* @private
|
|
158
|
+
* @param sectionFormat
|
|
159
|
+
*/
|
|
160
|
+
setColumns(sectionFormat: WSectionFormat): void;
|
|
161
|
+
/**
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
clear(): void;
|
|
165
|
+
reset(): void;
|
|
166
|
+
/**
|
|
167
|
+
* @private
|
|
168
|
+
* @param bodyWidget
|
|
169
|
+
* @param clientArea
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
getColumnBounds(bodyWidget: BodyWidget, clientArea: Rect): Rect;
|
|
173
|
+
/**
|
|
174
|
+
* @private
|
|
175
|
+
* @param bodyWidget
|
|
176
|
+
* @param clientArea
|
|
177
|
+
* @returns
|
|
178
|
+
*/
|
|
179
|
+
getColumnBoundsByBodyWidget(bodyWidget: BodyWidget, clientArea: Rect): Rect;
|
|
180
|
+
/**
|
|
181
|
+
* @private
|
|
182
|
+
* @param bodyWidget
|
|
183
|
+
* @param clientArea
|
|
184
|
+
* @returns
|
|
185
|
+
*/
|
|
186
|
+
getNextColumnByBodyWidget(bodyWidget: BodyWidget): WColumnFormat;
|
|
187
|
+
private getColumnByIndex;
|
|
188
|
+
private getColumnObj;
|
|
189
|
+
private getColumnBoundsByIndex;
|
|
190
|
+
}
|