-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.ts
166 lines (156 loc) · 4.49 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
import Automizer from './automizer';
import ModifyHelper, { CmToDxa, DxaToCm } from './helper/modify-helper';
import ModifyShapeHelper from './helper/modify-shape-helper';
import ModifyTableHelper from './helper/modify-table-helper';
import ModifyChartHelper from './helper/modify-chart-helper';
import { TemplateInfo, XmlDocument, XmlElement } from './types/xml-types';
import {
AutomizerParams,
AutomizerSummary,
ShapeModificationCallback,
StatusTracker,
} from './types/types';
import {
ModifyTableParams,
TableData,
TableRow,
TableRowStyle,
} from './types/table-types';
import {
ChartBubble,
ChartCategory,
ChartData,
ChartSeries,
ChartValueStyle,
} from './types/chart-types';
import {
Border,
Color,
ImageStyle,
ReplaceText,
TextStyle,
} from './types/modify-types';
import { ShapeCoordinates, ShapeValueStyle } from './types/shape-types';
import { XmlHelper } from './helper/xml-helper';
import ModifyTextHelper from './helper/modify-text-helper';
import ModifyColorHelper from './helper/modify-color-helper';
import { ITemplate } from './interfaces/itemplate';
import { IMaster } from './interfaces/imaster';
import { ISlide } from './interfaces/islide';
import ModifyImageHelper from './helper/modify-image-helper';
import { LabelPosition } from './enums/chart-type';
const dump = ModifyHelper.dump;
const dumpChart = ModifyHelper.dumpChart;
const setAttribute = ModifyHelper.setAttribute;
const setSolidFill = ModifyShapeHelper.setSolidFill;
const setText = ModifyShapeHelper.setText;
const setBulletList = ModifyShapeHelper.setBulletList;
const replaceText = ModifyShapeHelper.replaceText;
const setPosition = ModifyShapeHelper.setPosition;
const updatePosition = ModifyShapeHelper.updatePosition;
const rotateShape = ModifyShapeHelper.rotate;
const setTableData = ModifyTableHelper.setTableData;
const adjustHeight = ModifyTableHelper.adjustHeight;
const adjustWidth = ModifyTableHelper.adjustWidth;
const setTable = ModifyTableHelper.setTable;
const updateColumnWidth = ModifyTableHelper.updateColumnWidth;
const updateRowHeight = ModifyTableHelper.updateRowHeight;
const setRelationTarget = ModifyImageHelper.setRelationTarget;
const setDuotoneFill = ModifyImageHelper.setDuotoneFill;
const setChartData = ModifyChartHelper.setChartData;
const setExtendedChartData = ModifyChartHelper.setExtendedChartData;
const setChartVerticalLines = ModifyChartHelper.setChartVerticalLines;
const setChartScatter = ModifyChartHelper.setChartScatter;
const setChartBubbles = ModifyChartHelper.setChartBubbles;
const setChartCombo = ModifyChartHelper.setChartCombo;
const setAxisRange = ModifyChartHelper.setAxisRange;
const setPlotArea = ModifyChartHelper.setPlotArea;
const setLegendPosition = ModifyChartHelper.setLegendPosition;
const removeChartLegend = ModifyChartHelper.removeChartLegend;
const minimizeChartLegend = ModifyChartHelper.minimizeChartLegend;
const setWaterFallColumnTotalToLast =
ModifyChartHelper.setWaterFallColumnTotalToLast;
const setChartTitle = ModifyChartHelper.setChartTitle;
const setDataLabelAttributes = ModifyChartHelper.setDataLabelAttributes;
const readWorkbookData = ModifyChartHelper.readWorkbookData;
const readChartInfo = ModifyChartHelper.readChartInfo;
export type {
ChartBubble,
ChartCategory,
ChartSeries,
TableData,
TableRow,
TextStyle,
ImageStyle,
ModifyTableParams,
TableRowStyle,
ChartData,
ChartValueStyle,
Color,
Border,
ShapeValueStyle,
ShapeCoordinates,
ReplaceText,
};
export {
Automizer,
XmlHelper,
ModifyHelper,
ModifyShapeHelper,
ModifyTableHelper,
ModifyChartHelper,
ModifyTextHelper,
ModifyColorHelper,
ModifyImageHelper,
LabelPosition,
};
export const modify = {
dump,
dumpChart,
setAttribute,
setSolidFill,
setText,
setBulletList,
replaceText,
setPosition,
updatePosition,
rotateShape,
setTableData,
adjustHeight,
adjustWidth,
updateColumnWidth,
updateRowHeight,
setTable,
setRelationTarget,
setDuotoneFill,
setChartData,
setAxisRange,
setExtendedChartData,
setChartVerticalLines,
setChartScatter,
setChartCombo,
setChartBubbles,
setPlotArea,
setLegendPosition,
removeChartLegend,
minimizeChartLegend,
setWaterFallColumnTotalToLast,
setChartTitle,
setDataLabelAttributes,
};
export const read = {
readWorkbookData,
readChartInfo,
};
export { CmToDxa, DxaToCm };
export type {
AutomizerParams,
AutomizerSummary,
TemplateInfo,
StatusTracker,
ShapeModificationCallback,
XmlElement,
XmlDocument,
};
export { ITemplate, IMaster, ISlide };
export default Automizer;