@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,539 @@
|
|
|
1
|
+
import { LineWidget, ElementBox, BodyWidget, ParagraphWidget, TextElementBox, Widget, ShapeBase } from '../page';
|
|
2
|
+
import { WCharacterFormat, WParagraphFormat, WBorder, WBorders } from '../format';
|
|
3
|
+
import { HighlightColor, TextFormFieldType, CheckBoxSizeType, BaselineAlignment, Underline, Strikethrough, BiDirectionalOverride, LineStyle, TextAlignment, LineSpacingType, OutlineLevel, FontHintType } from '../base/types';
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
7
|
+
export declare class LayoutHelperMethods {
|
|
8
|
+
/**
|
|
9
|
+
* Check if the line widget has image with underline
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
* @param {LineWidget} lineWidget input line widget to check if it has image with underline
|
|
13
|
+
* @returns {boolean} weather line widget has image with underline or not
|
|
14
|
+
*/
|
|
15
|
+
static containsUnderlinedImage(lineWidget: LineWidget): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Check given string is a valid either roman or arabic number
|
|
18
|
+
*
|
|
19
|
+
* @private
|
|
20
|
+
* @param {string} input input string value to check if it is a number
|
|
21
|
+
* @returns {boolean} weather given string is a number or not
|
|
22
|
+
*/
|
|
23
|
+
static checkTextFormat(input: string): boolean;
|
|
24
|
+
static convertRgbToHex(value: number): string;
|
|
25
|
+
static getHighlightColorCode(highlightColor: HighlightColor): string;
|
|
26
|
+
static isVeryDark(backColor: string): boolean;
|
|
27
|
+
static getColor(color: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* @returns {any} returns any type
|
|
30
|
+
* Get the SFDT document from the optimized SFDT.
|
|
31
|
+
* @param {any} json accepts a json file
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
static getSfdtDocument(json: any): any;
|
|
35
|
+
static indexOfAny(text: string, wordSplitCharacter: string[]): any;
|
|
36
|
+
static convertHexToRgb(colorCode: string): any;
|
|
37
|
+
static convertPointToPixel(point?: number): number;
|
|
38
|
+
static convertPixelToPoint(pixel?: number): number;
|
|
39
|
+
static isLinkedFieldCharacter(inline: ElementBox): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Removes white space in a string.
|
|
42
|
+
*
|
|
43
|
+
* @private
|
|
44
|
+
* @param {string} text - Specifies text to trim.
|
|
45
|
+
* @returns {string} - Returns modified text.
|
|
46
|
+
*/
|
|
47
|
+
static removeSpace(text: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Trims white space at start of the string.
|
|
50
|
+
*
|
|
51
|
+
* @private
|
|
52
|
+
* @param {string} text - Specifies text to trim.
|
|
53
|
+
* @returns {string} - Returns modified text.
|
|
54
|
+
*/
|
|
55
|
+
static trimStart(text: string): string;
|
|
56
|
+
/**
|
|
57
|
+
* Trims white space at end of the string.
|
|
58
|
+
*
|
|
59
|
+
* @private
|
|
60
|
+
* @param {string} text - Specifies text to trim.
|
|
61
|
+
* @returns {string} - Returns modified text.
|
|
62
|
+
*/
|
|
63
|
+
static trimEnd(text: string): string;
|
|
64
|
+
/**
|
|
65
|
+
* Checks whether string ends with whitespace.
|
|
66
|
+
*
|
|
67
|
+
* @private
|
|
68
|
+
* @param {string} text - Specifies the text.
|
|
69
|
+
* @returns {boolean} - Returns true if text ends with specified text.
|
|
70
|
+
*/
|
|
71
|
+
static endsWith(text: string): boolean;
|
|
72
|
+
static addSpace(length: number): string;
|
|
73
|
+
static getBoolValue(value: boolean): number;
|
|
74
|
+
static getBoolInfo(value: boolean, keywordIndex: number): any;
|
|
75
|
+
static parseBoolValue(value: any): boolean;
|
|
76
|
+
static getBaselineAlignmentEnumValue(baselineAlignment: BaselineAlignment): number;
|
|
77
|
+
static getFontHintTypeEnumValue(fontHintType: FontHintType): number;
|
|
78
|
+
static getUnderlineEnumValue(underline: Underline): number;
|
|
79
|
+
static getStrikeThroughEnumValue(strikethrough: Strikethrough): number;
|
|
80
|
+
static getHighlightColorEnumValue(highlightColor: HighlightColor | string): number | string;
|
|
81
|
+
static getBiDirectionalOverride(biDirectionalOverride: BiDirectionalOverride): number;
|
|
82
|
+
static getOutlineLevelEnumValue(outlineLevel: OutlineLevel): number;
|
|
83
|
+
static getTextAlignmentEnumValue(textAlignment: TextAlignment): number;
|
|
84
|
+
static getLineStyleEnumValue(lineStyle: LineStyle): number;
|
|
85
|
+
static getLineSpacingTypeEnumValue(lineSpacing: LineSpacingType): number;
|
|
86
|
+
static writeBorder(wBorder: WBorder, keywordIndex: number): any;
|
|
87
|
+
static writeBorders(wBorders: WBorders, keywordIndex: number): any;
|
|
88
|
+
static writeParagraphFormat(paragraphFormat: WParagraphFormat, isInline: boolean, format: WParagraphFormat, keywordIndex?: number): void;
|
|
89
|
+
static writeCharacterFormat(characterFormat: any, isInline: boolean, format: WCharacterFormat, keywordIndex?: number, isWriteAllValues?: boolean): void;
|
|
90
|
+
static isThemeFont(fontName: string): boolean;
|
|
91
|
+
static toWriteInline(format: WCharacterFormat, propertyName: string): any;
|
|
92
|
+
static round(value: number, decimalDigits: number): number;
|
|
93
|
+
static reverseString(text: string): string;
|
|
94
|
+
static formatClippedString(base64ImageString: string): ImageFormatInfo;
|
|
95
|
+
/**
|
|
96
|
+
* @private
|
|
97
|
+
* @param {string} sourceString - Source string.
|
|
98
|
+
* @param {string} startString - String to check.
|
|
99
|
+
* @returns {boolean} Returns true if the source string starts with the specified string.
|
|
100
|
+
*/
|
|
101
|
+
static startsWith(sourceString: string, startString: string): boolean;
|
|
102
|
+
static getUtcDate(dateTime?: Date): string;
|
|
103
|
+
/**
|
|
104
|
+
* @private
|
|
105
|
+
* @param element - element to be splitted of space
|
|
106
|
+
* @param fromStart - weather to removed space from start or end
|
|
107
|
+
* @returns {Boolean} - is the input element is splitted
|
|
108
|
+
*/
|
|
109
|
+
static splitSpaceInTextElementBox(element: TextElementBox, fromStart: boolean): void;
|
|
110
|
+
private static getTextIndexAfterWhitespace;
|
|
111
|
+
/**
|
|
112
|
+
* @private
|
|
113
|
+
* @param {TextElementBox} textElementBox text element box to split the text based on max text length.
|
|
114
|
+
* @param {LineWidget} lineWidget line widget to add the splitted text element box.
|
|
115
|
+
* @returns {void}
|
|
116
|
+
*/
|
|
117
|
+
static splitWordByMaxLength(textElementBox: TextElementBox, lineWidget: LineWidget, isInitialParsing?: boolean): void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
export declare class Point {
|
|
123
|
+
private xIn;
|
|
124
|
+
private yIn;
|
|
125
|
+
x: number;
|
|
126
|
+
y: number;
|
|
127
|
+
constructor(xPosition: number, yPosition: number);
|
|
128
|
+
copy(point: Point): void;
|
|
129
|
+
/**
|
|
130
|
+
* Destroys the internal objects maintained.
|
|
131
|
+
*
|
|
132
|
+
* @returns {void}
|
|
133
|
+
*/
|
|
134
|
+
destroy(): void;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* ListSearchResultInfo
|
|
138
|
+
*/
|
|
139
|
+
export interface ListSearchResultInfo {
|
|
140
|
+
paragraph: ParagraphWidget;
|
|
141
|
+
listId: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @private
|
|
145
|
+
*/
|
|
146
|
+
export interface SubWidthInfo {
|
|
147
|
+
trimmedSpaceWidth: number;
|
|
148
|
+
subWidth: number;
|
|
149
|
+
spaceCount: number;
|
|
150
|
+
totalSpaceCount: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @private
|
|
154
|
+
*/
|
|
155
|
+
export interface LineElementInfo {
|
|
156
|
+
topMargin: number;
|
|
157
|
+
bottomMargin: number;
|
|
158
|
+
addSubWidth: boolean;
|
|
159
|
+
whiteSpaceCount: number;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
export interface SizeInfo {
|
|
165
|
+
width: number;
|
|
166
|
+
height: number;
|
|
167
|
+
topMargin: number;
|
|
168
|
+
bottomMargin: number;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @private
|
|
172
|
+
*/
|
|
173
|
+
export interface IndexInfo {
|
|
174
|
+
index: string;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @private
|
|
178
|
+
*/
|
|
179
|
+
export interface ImagePointInfo {
|
|
180
|
+
selectedElement: HTMLElement;
|
|
181
|
+
resizePosition: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @private
|
|
185
|
+
*/
|
|
186
|
+
export interface BodyWidgetInfo {
|
|
187
|
+
bodyWidget: BodyWidget;
|
|
188
|
+
index: number;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @private
|
|
192
|
+
*/
|
|
193
|
+
export interface ParagraphInfo {
|
|
194
|
+
paragraph: ParagraphWidget;
|
|
195
|
+
offset: number;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @private
|
|
199
|
+
*/
|
|
200
|
+
export interface ElementInfo {
|
|
201
|
+
element: ElementBox;
|
|
202
|
+
index: number;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @private
|
|
206
|
+
*/
|
|
207
|
+
export interface CharacterFormatProperties {
|
|
208
|
+
bold?: boolean;
|
|
209
|
+
italic?: boolean;
|
|
210
|
+
fontSize?: number;
|
|
211
|
+
fontFamily?: string;
|
|
212
|
+
underline?: string;
|
|
213
|
+
strikethrough?: string;
|
|
214
|
+
baselineAlignment?: string;
|
|
215
|
+
fontColor?: string;
|
|
216
|
+
highlightColor?: string;
|
|
217
|
+
bidi?: boolean;
|
|
218
|
+
allCaps?: boolean;
|
|
219
|
+
[key: string]: Object;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @private
|
|
223
|
+
*/
|
|
224
|
+
export interface ParagraphFormatProperties {
|
|
225
|
+
leftIndent?: number;
|
|
226
|
+
rightIndent?: number;
|
|
227
|
+
firstLineIndent?: number;
|
|
228
|
+
textAlignment?: string;
|
|
229
|
+
afterSpacing?: number;
|
|
230
|
+
beforeSpacing?: number;
|
|
231
|
+
lineSpacing?: number;
|
|
232
|
+
lineSpacingType?: string;
|
|
233
|
+
outlineLevel?: string;
|
|
234
|
+
bidi?: boolean;
|
|
235
|
+
[key: string]: Object;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @private
|
|
239
|
+
*/
|
|
240
|
+
/**
|
|
241
|
+
* @private
|
|
242
|
+
*/
|
|
243
|
+
export interface ParagraphFormatInfo {
|
|
244
|
+
docParagraphFormat: WParagraphFormat;
|
|
245
|
+
isPaste: boolean;
|
|
246
|
+
editorFormat: ParagraphFormatProperties | Object;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @private
|
|
250
|
+
*/
|
|
251
|
+
export interface CharacterFormatInfo {
|
|
252
|
+
editorFormat: CharacterFormatProperties | Object;
|
|
253
|
+
documentFormat: WCharacterFormat;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @private
|
|
257
|
+
*/
|
|
258
|
+
export interface TextPositionInfo {
|
|
259
|
+
element: ElementBox;
|
|
260
|
+
index: number;
|
|
261
|
+
caretPosition: Point;
|
|
262
|
+
isImageSelected: boolean;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @private
|
|
266
|
+
*/
|
|
267
|
+
export interface BlockInfo {
|
|
268
|
+
node: Widget;
|
|
269
|
+
position: IndexInfo;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* @private
|
|
273
|
+
*/
|
|
274
|
+
export interface WidthInfo {
|
|
275
|
+
minimumWordWidth: number;
|
|
276
|
+
maximumWordWidth: number;
|
|
277
|
+
maxParaWidth: number;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* @private
|
|
281
|
+
*/
|
|
282
|
+
export interface RtlInfo {
|
|
283
|
+
isRtl: boolean;
|
|
284
|
+
id: number;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @private
|
|
288
|
+
*/
|
|
289
|
+
export interface ImageFormatInfo {
|
|
290
|
+
extension: string;
|
|
291
|
+
formatClippedString: string;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @private
|
|
295
|
+
*/
|
|
296
|
+
export interface BorderRenderInfo {
|
|
297
|
+
skipTopBorder: boolean;
|
|
298
|
+
skipBottomBorder: boolean;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* @private
|
|
302
|
+
*/
|
|
303
|
+
export interface LineCountInfo {
|
|
304
|
+
lineWidget: LineWidget;
|
|
305
|
+
lineCount: number;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Text form field info
|
|
309
|
+
*/
|
|
310
|
+
export interface TextFormFieldInfo {
|
|
311
|
+
/**
|
|
312
|
+
* Specifies text form field type.
|
|
313
|
+
*/
|
|
314
|
+
type: TextFormFieldType;
|
|
315
|
+
/**
|
|
316
|
+
* Text form field default value.
|
|
317
|
+
*/
|
|
318
|
+
defaultValue: string;
|
|
319
|
+
/**
|
|
320
|
+
* Text form field format
|
|
321
|
+
*/
|
|
322
|
+
format: string;
|
|
323
|
+
/**
|
|
324
|
+
* Maximum text length.
|
|
325
|
+
*/
|
|
326
|
+
maxLength: number;
|
|
327
|
+
/**
|
|
328
|
+
* Enable or disable form field.
|
|
329
|
+
*/
|
|
330
|
+
enabled: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Tooltip text.
|
|
333
|
+
*/
|
|
334
|
+
helpText: string;
|
|
335
|
+
/**
|
|
336
|
+
* Specifies the name of the form field.
|
|
337
|
+
*
|
|
338
|
+
* > If a form field already exists in the document with the new name specified, the old form field name property will be cleared and it will not be accessible. Ensure the new name is unique.
|
|
339
|
+
*/
|
|
340
|
+
name?: string;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* CheckBox form field info
|
|
344
|
+
*/
|
|
345
|
+
export interface CheckBoxFormFieldInfo {
|
|
346
|
+
/**
|
|
347
|
+
* CheckBox form field size type.
|
|
348
|
+
*/
|
|
349
|
+
sizeType: CheckBoxSizeType;
|
|
350
|
+
/**
|
|
351
|
+
* CheckBox form field size.
|
|
352
|
+
*/
|
|
353
|
+
size: number;
|
|
354
|
+
/**
|
|
355
|
+
* CheckBox form field default value.
|
|
356
|
+
*/
|
|
357
|
+
defaultValue: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Enable or disable form field.
|
|
360
|
+
*/
|
|
361
|
+
enabled: boolean;
|
|
362
|
+
/**
|
|
363
|
+
* Tooltip text.
|
|
364
|
+
*/
|
|
365
|
+
helpText: string;
|
|
366
|
+
/**
|
|
367
|
+
* Specifies the name of the form field.
|
|
368
|
+
*
|
|
369
|
+
* > If a form field already exists in the document with the new name specified, the old form field name property will be cleared and it will not be accessible. Ensure the new name is unique.
|
|
370
|
+
*/
|
|
371
|
+
name?: string;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* DropDown form field info
|
|
375
|
+
*/
|
|
376
|
+
export interface DropDownFormFieldInfo {
|
|
377
|
+
/**
|
|
378
|
+
* DropDown items
|
|
379
|
+
*/
|
|
380
|
+
dropdownItems: string[];
|
|
381
|
+
/**
|
|
382
|
+
* Enable or disable form field.
|
|
383
|
+
*/
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Tooltip text.
|
|
387
|
+
*/
|
|
388
|
+
helpText: string;
|
|
389
|
+
/**
|
|
390
|
+
* Specifies the name of the form field.
|
|
391
|
+
*
|
|
392
|
+
* > If a form field already exists in the document with the new name specified, the old form field name property will be cleared and it will not be accessible. Ensure the new name is unique.
|
|
393
|
+
*/
|
|
394
|
+
name?: string;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* @private
|
|
398
|
+
*/
|
|
399
|
+
export interface BorderInfo {
|
|
400
|
+
border: WBorder;
|
|
401
|
+
width: number;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @private
|
|
405
|
+
*/
|
|
406
|
+
export interface LtrRtlTextInfo {
|
|
407
|
+
value?: boolean;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @private
|
|
411
|
+
*/
|
|
412
|
+
export interface FootNoteWidgetsInfo {
|
|
413
|
+
footNoteWidgets: BodyWidget[];
|
|
414
|
+
toBodyWidget: BodyWidget;
|
|
415
|
+
fromBodyWidget: BodyWidget;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* @private
|
|
419
|
+
*/
|
|
420
|
+
export interface ListCounterInfo {
|
|
421
|
+
/**
|
|
422
|
+
* Specifies the first counter
|
|
423
|
+
*
|
|
424
|
+
* @private
|
|
425
|
+
*/
|
|
426
|
+
first: number;
|
|
427
|
+
/**
|
|
428
|
+
* Specifies the second counter
|
|
429
|
+
*
|
|
430
|
+
* @private
|
|
431
|
+
*/
|
|
432
|
+
second: number;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @private
|
|
436
|
+
*/
|
|
437
|
+
export declare class WrapPosition {
|
|
438
|
+
x: number;
|
|
439
|
+
width: number;
|
|
440
|
+
readonly right: number;
|
|
441
|
+
constructor(x: number, width: number);
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Specifies the External font information.
|
|
445
|
+
*
|
|
446
|
+
* @private
|
|
447
|
+
*/
|
|
448
|
+
export interface ExternalFontInfo {
|
|
449
|
+
/**
|
|
450
|
+
* Specifies the font url.
|
|
451
|
+
*/
|
|
452
|
+
fontFamily: string;
|
|
453
|
+
/**
|
|
454
|
+
* Specifies the font name.
|
|
455
|
+
*/
|
|
456
|
+
src: string;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @private
|
|
460
|
+
*/
|
|
461
|
+
export declare class SelectionWidgetInfo {
|
|
462
|
+
private leftIn;
|
|
463
|
+
private widthIn;
|
|
464
|
+
/**
|
|
465
|
+
* @private
|
|
466
|
+
*/
|
|
467
|
+
color: string;
|
|
468
|
+
/**
|
|
469
|
+
* @private
|
|
470
|
+
* @returns {number} number
|
|
471
|
+
*/
|
|
472
|
+
floatingItems: ShapeBase[];
|
|
473
|
+
/**
|
|
474
|
+
* @private
|
|
475
|
+
* @returns {number} number
|
|
476
|
+
*/
|
|
477
|
+
/**
|
|
478
|
+
* @private
|
|
479
|
+
* @param {number} value - value
|
|
480
|
+
*/
|
|
481
|
+
left: number;
|
|
482
|
+
/**
|
|
483
|
+
* @private
|
|
484
|
+
* @returns {number} number
|
|
485
|
+
*/
|
|
486
|
+
/**
|
|
487
|
+
* @private
|
|
488
|
+
* @param {number} value - value
|
|
489
|
+
*/
|
|
490
|
+
width: number;
|
|
491
|
+
/**
|
|
492
|
+
* @private
|
|
493
|
+
* @param {number} left - left
|
|
494
|
+
* @param {number} width - width
|
|
495
|
+
*/
|
|
496
|
+
constructor(left: number, width: number);
|
|
497
|
+
/**
|
|
498
|
+
* @private
|
|
499
|
+
* @returns {void}
|
|
500
|
+
*/
|
|
501
|
+
destroy(): void;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* @private
|
|
505
|
+
*/
|
|
506
|
+
export declare class SearchWidgetInfo {
|
|
507
|
+
/**
|
|
508
|
+
* @private
|
|
509
|
+
*/
|
|
510
|
+
leftInternal: number;
|
|
511
|
+
/**
|
|
512
|
+
* @private
|
|
513
|
+
*/
|
|
514
|
+
widthInternal: number;
|
|
515
|
+
/**
|
|
516
|
+
* @private
|
|
517
|
+
* @returns {number} number
|
|
518
|
+
*/
|
|
519
|
+
/**
|
|
520
|
+
* @private
|
|
521
|
+
* @param {number} value - value
|
|
522
|
+
*/
|
|
523
|
+
left: number;
|
|
524
|
+
/**
|
|
525
|
+
* @private
|
|
526
|
+
* @returns {number} number
|
|
527
|
+
*/
|
|
528
|
+
/**
|
|
529
|
+
* @private
|
|
530
|
+
* @param {number} value - value
|
|
531
|
+
*/
|
|
532
|
+
width: number;
|
|
533
|
+
/**
|
|
534
|
+
* @private
|
|
535
|
+
* @param {number} left - left
|
|
536
|
+
* @param {number} width - width
|
|
537
|
+
*/
|
|
538
|
+
constructor(left: number, width: number);
|
|
539
|
+
}
|