@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,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These utility methods help to process the data and to convert it to desired dimensions
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* processPathData method \
|
|
6
|
+
*
|
|
7
|
+
* @returns {Object[]} processPathData method .\
|
|
8
|
+
* @param { string } data - provide the data value.
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export declare function processPathData(data: string): Object[];
|
|
12
|
+
/**
|
|
13
|
+
* getPathString method \
|
|
14
|
+
*
|
|
15
|
+
* @returns {string} getPathString method .\
|
|
16
|
+
* @param { Object[]} arrayCollection - provide the val value.
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
export declare function getPathString(arrayCollection: Object[]): string;
|
|
20
|
+
/**
|
|
21
|
+
* getString method \
|
|
22
|
+
*
|
|
23
|
+
* @returns {string} getString method .\
|
|
24
|
+
* @param { PathSegment} arrayCollection - provide the val value.
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
export declare function getString(obj: PathSegment): string;
|
|
28
|
+
/**
|
|
29
|
+
* parsePathData method \
|
|
30
|
+
*
|
|
31
|
+
* @returns {Object[]} parsePathData method .\
|
|
32
|
+
* @param { string } data - provide the data value.
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
export declare function parsePathData(data: string): Object[];
|
|
36
|
+
/**
|
|
37
|
+
* splitArrayCollection method \
|
|
38
|
+
*
|
|
39
|
+
* @returns {Object[]} splitArrayCollection method .\
|
|
40
|
+
* @param { Object[]} arrayCollection - provide the val value.
|
|
41
|
+
* @private
|
|
42
|
+
*/
|
|
43
|
+
export declare function splitArrayCollection(arrayCollection: Object[]): Object[];
|
|
44
|
+
/**
|
|
45
|
+
* transformPath method \
|
|
46
|
+
*
|
|
47
|
+
* @returns {string} transformPath method .\
|
|
48
|
+
* @param { Object[]} arr - provide the collection value.
|
|
49
|
+
* @param { number} sX - provide the collection value.
|
|
50
|
+
* @param { number} sY - provide the collection value.
|
|
51
|
+
* @param { boolean} s - provide the collection value.
|
|
52
|
+
* @param {number} bX - provide the collection value.
|
|
53
|
+
* @param { number} bY - provide the collection value.
|
|
54
|
+
* @param { number} iX - provide the collection value.
|
|
55
|
+
* @param { number} iY - provide the collection value.
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
export declare function transformPath(arr: Object[], sX: number, sY: number, s: boolean, bX: number, bY: number, iX: number, iY: number): string;
|
|
59
|
+
/**
|
|
60
|
+
* updatedSegment method \
|
|
61
|
+
*
|
|
62
|
+
* @returns {string} updatedSegment method .\
|
|
63
|
+
* @param { PathSegment} segment - provide the collection value.
|
|
64
|
+
* @param { PathSegment} char - provide the collection value.
|
|
65
|
+
* @param { number} obj - provide the collection value.
|
|
66
|
+
* @param { boolean} isScale - provide the collection value.
|
|
67
|
+
* @param {number} sX - provide the collection value.
|
|
68
|
+
* @param { number} sY - provide the collection value.
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
export declare function updatedSegment(segment: PathSegment, char: string, obj: PathSegment, isScale: boolean, sX: number, sY: number): Object;
|
|
72
|
+
/**
|
|
73
|
+
* scalePathData method \
|
|
74
|
+
*
|
|
75
|
+
* @returns {string} scalePathData method .\
|
|
76
|
+
* @param { number} val - provide the val value.
|
|
77
|
+
* @param { number} scaleFactor - provide the scaleFactor value.
|
|
78
|
+
* @param { number} oldOffset - provide the oldOffset value.
|
|
79
|
+
* @param { number} newOffset - provide the newOffset value.
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
export declare function scalePathData(val: number, scaleFactor: number, oldOffset: number, newOffset: number): number;
|
|
83
|
+
/**
|
|
84
|
+
* pathSegmentCollection method \
|
|
85
|
+
*
|
|
86
|
+
* @returns {string} pathSegmentCollection method .\
|
|
87
|
+
* @param { Object[]} collection - provide the collection value.
|
|
88
|
+
* @private
|
|
89
|
+
*/
|
|
90
|
+
export declare function pathSegmentCollection(collection: Object[]): Object[];
|
|
91
|
+
/**
|
|
92
|
+
* @private
|
|
93
|
+
*/
|
|
94
|
+
export interface PathSegment {
|
|
95
|
+
command?: string;
|
|
96
|
+
angle?: number;
|
|
97
|
+
largeArc?: boolean;
|
|
98
|
+
x2?: number;
|
|
99
|
+
sweep?: boolean;
|
|
100
|
+
x1?: number;
|
|
101
|
+
y1?: number;
|
|
102
|
+
y2?: number;
|
|
103
|
+
x0?: number;
|
|
104
|
+
y0?: number;
|
|
105
|
+
x?: number;
|
|
106
|
+
y?: number;
|
|
107
|
+
r1?: number;
|
|
108
|
+
r2?: number;
|
|
109
|
+
centp?: {
|
|
110
|
+
x?: number;
|
|
111
|
+
y?: number;
|
|
112
|
+
};
|
|
113
|
+
xAxisRotation?: number;
|
|
114
|
+
rx?: number;
|
|
115
|
+
ry?: number;
|
|
116
|
+
a1?: number;
|
|
117
|
+
ad?: number;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Interface for a class Point
|
|
121
|
+
*/
|
|
122
|
+
export interface PointModel {
|
|
123
|
+
/**
|
|
124
|
+
* Sets the x-coordinate of a position
|
|
125
|
+
* @default 0
|
|
126
|
+
*/
|
|
127
|
+
x?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Sets the y-coordinate of a position
|
|
130
|
+
* @default 0
|
|
131
|
+
*/
|
|
132
|
+
y?: number;
|
|
133
|
+
}
|