asposeslidescloud 24.3.0 → 24.5.0
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 +12 -0
- package/api.d.ts +35 -2
- package/api.js +138 -10
- package/internal/requestHelper.js +5 -2
- package/model.d.ts +133 -2
- package/model.js +72 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,18 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
|
27
27
|
**Web:** HTML/HTML5
|
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
|
29
29
|
|
|
30
|
+
## Enhancements in Version 24.5
|
|
31
|
+
|
|
32
|
+
* Added **options** parameter to **ImportFromPdf** method. You can specify **options.DetectTables** property to control import behavior.
|
|
33
|
+
* Added **Title** property to **Axis** class for charts.
|
|
34
|
+
* Added **X**, **Y**, **Width**, **Height**, **Overlay**, **FillFormat**, **EffectFormat** and **LineFormat** properties to **ChartTitle** class.
|
|
35
|
+
* Added **HasTitle** property to **Chart** class; removed **HasTitle** property from **ChartTitle** class.
|
|
36
|
+
|
|
37
|
+
## Enhancements in Version 24.4
|
|
38
|
+
|
|
39
|
+
* Added **DownloadMathPortion** and **SaveMathPortion** methods to convert math portions to math markup formats (MathML or LaTeX). See [documentation](https://docs.aspose.cloud/slides/export-a-math-formula/) for more info. **DownloadPortionAsMathML** and **SavePortionAsMathML** methods are deprecated and will be removed after 24.6.
|
|
40
|
+
* Added **Marker** property to **DataPoint** class.
|
|
41
|
+
|
|
30
42
|
## Enhancements in Version 24.3
|
|
31
43
|
|
|
32
44
|
* Added Markdown (**Md**) to the list of allowed export formats.
|
package/api.d.ts
CHANGED
|
@@ -903,7 +903,7 @@ export declare class SlidesApi {
|
|
|
903
903
|
* @param folder Document folder.
|
|
904
904
|
* @param storage Presentation storage.
|
|
905
905
|
*/
|
|
906
|
-
deletePictureCroppedAreas(name: string, slideIndex: number, shapeIndex: number, password
|
|
906
|
+
deletePictureCroppedAreas(name: string, slideIndex: number, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
907
907
|
response: http.ServerResponse;
|
|
908
908
|
}>;
|
|
909
909
|
/**
|
|
@@ -1474,6 +1474,22 @@ export declare class SlidesApi {
|
|
|
1474
1474
|
response: http.ServerResponse;
|
|
1475
1475
|
body: Buffer;
|
|
1476
1476
|
}>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Convert Mathematical Text to MathML Format
|
|
1479
|
+
* @param name Document name.
|
|
1480
|
+
* @param slideIndex Slide index.
|
|
1481
|
+
* @param shapeIndex Shape index.
|
|
1482
|
+
* @param paragraphIndex Paragraph index.
|
|
1483
|
+
* @param portionIndex Portion index.
|
|
1484
|
+
* @param format Format.
|
|
1485
|
+
* @param password Document password.
|
|
1486
|
+
* @param folder Document folder.
|
|
1487
|
+
* @param storage Document storage.
|
|
1488
|
+
*/
|
|
1489
|
+
downloadMathPortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, format: model.MathFormat, password?: string, folder?: string, storage?: string): Promise<{
|
|
1490
|
+
response: http.ServerResponse;
|
|
1491
|
+
body: Buffer;
|
|
1492
|
+
}>;
|
|
1477
1493
|
/**
|
|
1478
1494
|
* Convert notes slide to the specified image format.
|
|
1479
1495
|
* @param name Document name.
|
|
@@ -2477,11 +2493,12 @@ export declare class SlidesApi {
|
|
|
2477
2493
|
* Create presentation document from pdf or append pdf to an existing presentation.
|
|
2478
2494
|
* @param name Document name.
|
|
2479
2495
|
* @param pdf PDF data.
|
|
2496
|
+
* @param options Import options.
|
|
2480
2497
|
* @param password Document password.
|
|
2481
2498
|
* @param folder Document folder.
|
|
2482
2499
|
* @param storage Document storage.
|
|
2483
2500
|
*/
|
|
2484
|
-
importFromPdf(name: string, pdf: Readable, password?: string, folder?: string, storage?: string): Promise<{
|
|
2501
|
+
importFromPdf(name: string, pdf: Readable, options?: model.PdfImportOptions, password?: string, folder?: string, storage?: string): Promise<{
|
|
2485
2502
|
response: http.ServerResponse;
|
|
2486
2503
|
body: model.Document;
|
|
2487
2504
|
}>;
|
|
@@ -2796,6 +2813,22 @@ export declare class SlidesApi {
|
|
|
2796
2813
|
response: http.ServerResponse;
|
|
2797
2814
|
body: Buffer;
|
|
2798
2815
|
}>;
|
|
2816
|
+
/**
|
|
2817
|
+
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
2818
|
+
* @param name Document name.
|
|
2819
|
+
* @param slideIndex Slide index.
|
|
2820
|
+
* @param shapeIndex Shape index.
|
|
2821
|
+
* @param paragraphIndex Paragraph index.
|
|
2822
|
+
* @param portionIndex Portion index.
|
|
2823
|
+
* @param format Format.
|
|
2824
|
+
* @param outPath Path to save result.
|
|
2825
|
+
* @param password Document password.
|
|
2826
|
+
* @param folder Presentation folder.
|
|
2827
|
+
* @param storage Presentation storage.
|
|
2828
|
+
*/
|
|
2829
|
+
saveMathPortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, format: model.MathFormat, outPath: string, password?: string, folder?: string, storage?: string): Promise<{
|
|
2830
|
+
response: http.ServerResponse;
|
|
2831
|
+
}>;
|
|
2799
2832
|
/**
|
|
2800
2833
|
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
2801
2834
|
* @param name Document name.
|
package/api.js
CHANGED
|
@@ -2907,7 +2907,7 @@ class SlidesApi {
|
|
|
2907
2907
|
* @param folder Document folder.
|
|
2908
2908
|
* @param storage Presentation storage.
|
|
2909
2909
|
*/
|
|
2910
|
-
deletePictureCroppedAreas(name, slideIndex, shapeIndex, password, folder, storage = null) {
|
|
2910
|
+
deletePictureCroppedAreas(name, slideIndex, shapeIndex, password = null, folder = null, storage = null) {
|
|
2911
2911
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2912
2912
|
// verify required parameter 'name' is not null or undefined
|
|
2913
2913
|
if (name === null || name === undefined) {
|
|
@@ -2921,14 +2921,6 @@ class SlidesApi {
|
|
|
2921
2921
|
if (shapeIndex === null || shapeIndex === undefined) {
|
|
2922
2922
|
throw new Error('The required parameter "shapeIndex" was null or undefined when calling deletePictureCroppedAreas.');
|
|
2923
2923
|
}
|
|
2924
|
-
// verify required parameter 'password' is not null or undefined
|
|
2925
|
-
if (password === null || password === undefined) {
|
|
2926
|
-
throw new Error('The required parameter "password" was null or undefined when calling deletePictureCroppedAreas.');
|
|
2927
|
-
}
|
|
2928
|
-
// verify required parameter 'folder' is not null or undefined
|
|
2929
|
-
if (folder === null || folder === undefined) {
|
|
2930
|
-
throw new Error('The required parameter "folder" was null or undefined when calling deletePictureCroppedAreas.');
|
|
2931
|
-
}
|
|
2932
2924
|
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/pictureCroppedAreas";
|
|
2933
2925
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
2934
2926
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
@@ -4853,6 +4845,71 @@ class SlidesApi {
|
|
|
4853
4845
|
return Promise.resolve({ body: result, response });
|
|
4854
4846
|
});
|
|
4855
4847
|
}
|
|
4848
|
+
/**
|
|
4849
|
+
* Convert Mathematical Text to MathML Format
|
|
4850
|
+
* @param name Document name.
|
|
4851
|
+
* @param slideIndex Slide index.
|
|
4852
|
+
* @param shapeIndex Shape index.
|
|
4853
|
+
* @param paragraphIndex Paragraph index.
|
|
4854
|
+
* @param portionIndex Portion index.
|
|
4855
|
+
* @param format Format.
|
|
4856
|
+
* @param password Document password.
|
|
4857
|
+
* @param folder Document folder.
|
|
4858
|
+
* @param storage Document storage.
|
|
4859
|
+
*/
|
|
4860
|
+
downloadMathPortion(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, format, password = null, folder = null, storage = null) {
|
|
4861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4862
|
+
// verify required parameter 'name' is not null or undefined
|
|
4863
|
+
if (name === null || name === undefined) {
|
|
4864
|
+
throw new Error('The required parameter "name" was null or undefined when calling downloadMathPortion.');
|
|
4865
|
+
}
|
|
4866
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
4867
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
4868
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling downloadMathPortion.');
|
|
4869
|
+
}
|
|
4870
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
4871
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
4872
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling downloadMathPortion.');
|
|
4873
|
+
}
|
|
4874
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
4875
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
4876
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling downloadMathPortion.');
|
|
4877
|
+
}
|
|
4878
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
4879
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
4880
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling downloadMathPortion.');
|
|
4881
|
+
}
|
|
4882
|
+
// verify required parameter 'format' is not null or undefined
|
|
4883
|
+
if (format === null || format === undefined) {
|
|
4884
|
+
throw new Error('The required parameter "format" was null or undefined when calling downloadMathPortion.');
|
|
4885
|
+
}
|
|
4886
|
+
// verify value of enum parameter 'format' is valid
|
|
4887
|
+
if (!Object.keys(model.MathFormat).filter(i => model.MathFormat[i].toLowerCase() == format.toString().toLowerCase()).length) {
|
|
4888
|
+
throw new Error('Invalid value for format: ' + format + '. Must be one of the following: ' + Object.keys(model.MathFormat).map(key => model.MathFormat[key]).join());
|
|
4889
|
+
}
|
|
4890
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/{format}";
|
|
4891
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
4892
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
4893
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
4894
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
4895
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
4896
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "format", objectSerializer_1.ObjectSerializer.toString(format));
|
|
4897
|
+
const queryParameters = {};
|
|
4898
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
4899
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
4900
|
+
const requestOptions = {
|
|
4901
|
+
method: "POST",
|
|
4902
|
+
headers: {},
|
|
4903
|
+
url: localVarPath,
|
|
4904
|
+
responseType: 'arraybuffer',
|
|
4905
|
+
params: queryParameters
|
|
4906
|
+
};
|
|
4907
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4908
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4909
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
4910
|
+
return Promise.resolve({ body: result, response });
|
|
4911
|
+
});
|
|
4912
|
+
}
|
|
4856
4913
|
/**
|
|
4857
4914
|
* Convert notes slide to the specified image format.
|
|
4858
4915
|
* @param name Document name.
|
|
@@ -8060,11 +8117,12 @@ class SlidesApi {
|
|
|
8060
8117
|
* Create presentation document from pdf or append pdf to an existing presentation.
|
|
8061
8118
|
* @param name Document name.
|
|
8062
8119
|
* @param pdf PDF data.
|
|
8120
|
+
* @param options Import options.
|
|
8063
8121
|
* @param password Document password.
|
|
8064
8122
|
* @param folder Document folder.
|
|
8065
8123
|
* @param storage Document storage.
|
|
8066
8124
|
*/
|
|
8067
|
-
importFromPdf(name, pdf, password = null, folder = null, storage = null) {
|
|
8125
|
+
importFromPdf(name, pdf, options = null, password = null, folder = null, storage = null) {
|
|
8068
8126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8069
8127
|
// verify required parameter 'name' is not null or undefined
|
|
8070
8128
|
if (name === null || name === undefined) {
|
|
@@ -8083,6 +8141,7 @@ class SlidesApi {
|
|
|
8083
8141
|
method: "POST",
|
|
8084
8142
|
headers: {},
|
|
8085
8143
|
url: localVarPath,
|
|
8144
|
+
data: options,
|
|
8086
8145
|
params: queryParameters
|
|
8087
8146
|
};
|
|
8088
8147
|
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
@@ -9105,6 +9164,75 @@ class SlidesApi {
|
|
|
9105
9164
|
return Promise.resolve({ body: result, response });
|
|
9106
9165
|
});
|
|
9107
9166
|
}
|
|
9167
|
+
/**
|
|
9168
|
+
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
9169
|
+
* @param name Document name.
|
|
9170
|
+
* @param slideIndex Slide index.
|
|
9171
|
+
* @param shapeIndex Shape index.
|
|
9172
|
+
* @param paragraphIndex Paragraph index.
|
|
9173
|
+
* @param portionIndex Portion index.
|
|
9174
|
+
* @param format Format.
|
|
9175
|
+
* @param outPath Path to save result.
|
|
9176
|
+
* @param password Document password.
|
|
9177
|
+
* @param folder Presentation folder.
|
|
9178
|
+
* @param storage Presentation storage.
|
|
9179
|
+
*/
|
|
9180
|
+
saveMathPortion(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, format, outPath, password = null, folder = null, storage = null) {
|
|
9181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9182
|
+
// verify required parameter 'name' is not null or undefined
|
|
9183
|
+
if (name === null || name === undefined) {
|
|
9184
|
+
throw new Error('The required parameter "name" was null or undefined when calling saveMathPortion.');
|
|
9185
|
+
}
|
|
9186
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
9187
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
9188
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling saveMathPortion.');
|
|
9189
|
+
}
|
|
9190
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
9191
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
9192
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling saveMathPortion.');
|
|
9193
|
+
}
|
|
9194
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
9195
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
9196
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling saveMathPortion.');
|
|
9197
|
+
}
|
|
9198
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
9199
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
9200
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling saveMathPortion.');
|
|
9201
|
+
}
|
|
9202
|
+
// verify required parameter 'format' is not null or undefined
|
|
9203
|
+
if (format === null || format === undefined) {
|
|
9204
|
+
throw new Error('The required parameter "format" was null or undefined when calling saveMathPortion.');
|
|
9205
|
+
}
|
|
9206
|
+
// verify value of enum parameter 'format' is valid
|
|
9207
|
+
if (!Object.keys(model.MathFormat).filter(i => model.MathFormat[i].toLowerCase() == format.toString().toLowerCase()).length) {
|
|
9208
|
+
throw new Error('Invalid value for format: ' + format + '. Must be one of the following: ' + Object.keys(model.MathFormat).map(key => model.MathFormat[key]).join());
|
|
9209
|
+
}
|
|
9210
|
+
// verify required parameter 'outPath' is not null or undefined
|
|
9211
|
+
if (outPath === null || outPath === undefined) {
|
|
9212
|
+
throw new Error('The required parameter "outPath" was null or undefined when calling saveMathPortion.');
|
|
9213
|
+
}
|
|
9214
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/{format}";
|
|
9215
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
9216
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
9217
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
9218
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
9219
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
9220
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "format", objectSerializer_1.ObjectSerializer.toString(format));
|
|
9221
|
+
const queryParameters = {};
|
|
9222
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "outPath", outPath);
|
|
9223
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
9224
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
9225
|
+
const requestOptions = {
|
|
9226
|
+
method: "PUT",
|
|
9227
|
+
headers: {},
|
|
9228
|
+
url: localVarPath,
|
|
9229
|
+
params: queryParameters
|
|
9230
|
+
};
|
|
9231
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
9232
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
9233
|
+
return Promise.resolve({ response });
|
|
9234
|
+
});
|
|
9235
|
+
}
|
|
9108
9236
|
/**
|
|
9109
9237
|
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
9110
9238
|
* @param name Document name.
|
|
@@ -34,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.addHeaderParameter = exports.addPathParameterToUrl = exports.addQueryParameterToUrl = exports.invokeApiMethod = exports.checkMultipartContent = void 0;
|
|
36
36
|
const axios_1 = require("axios");
|
|
37
|
+
const https = require('https');
|
|
37
38
|
axios_1.default.interceptors.request.use(request => {
|
|
38
39
|
if (request.debug) {
|
|
39
40
|
console.log('>> Request');
|
|
@@ -152,12 +153,14 @@ exports.addHeaderParameter = addHeaderParameter;
|
|
|
152
153
|
function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRequest) {
|
|
153
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
155
|
if (configuration.allowInsecureRequests) {
|
|
155
|
-
requestOptions.
|
|
156
|
+
requestOptions.httpsAgent = new https.Agent({
|
|
157
|
+
rejectUnauthorized: false
|
|
158
|
+
});
|
|
156
159
|
}
|
|
157
160
|
if (!requestOptions.headers) {
|
|
158
161
|
requestOptions.headers = {};
|
|
159
162
|
}
|
|
160
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.
|
|
163
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.5.0";
|
|
161
164
|
if (configuration.timeout) {
|
|
162
165
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
163
166
|
}
|
package/model.d.ts
CHANGED
|
@@ -828,6 +828,10 @@ export declare class Axis {
|
|
|
828
828
|
* True if the axis has a visible title
|
|
829
829
|
*/
|
|
830
830
|
hasTitle?: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* Axis title
|
|
833
|
+
*/
|
|
834
|
+
title?: ChartTitle;
|
|
831
835
|
/**
|
|
832
836
|
* Axis position
|
|
833
837
|
*/
|
|
@@ -1250,6 +1254,10 @@ export declare class DataPoint {
|
|
|
1250
1254
|
* Gets or sets the line format.
|
|
1251
1255
|
*/
|
|
1252
1256
|
lineFormat?: LineFormat;
|
|
1257
|
+
/**
|
|
1258
|
+
* Gets or sets the marker.
|
|
1259
|
+
*/
|
|
1260
|
+
marker?: SeriesMarker;
|
|
1253
1261
|
type?: DataPoint.TypeEnum;
|
|
1254
1262
|
}
|
|
1255
1263
|
export declare namespace DataPoint {
|
|
@@ -1617,6 +1625,10 @@ export declare class Chart extends ShapeBase {
|
|
|
1617
1625
|
* Data source type for categories.
|
|
1618
1626
|
*/
|
|
1619
1627
|
dataSourceForCategories?: DataSource;
|
|
1628
|
+
/**
|
|
1629
|
+
* True if the chart has a title.
|
|
1630
|
+
*/
|
|
1631
|
+
hasTitle?: boolean;
|
|
1620
1632
|
/**
|
|
1621
1633
|
* Gets or sets the title.
|
|
1622
1634
|
*/
|
|
@@ -1932,9 +1944,37 @@ export declare class ChartTitle {
|
|
|
1932
1944
|
*/
|
|
1933
1945
|
text?: string;
|
|
1934
1946
|
/**
|
|
1935
|
-
*
|
|
1947
|
+
* the X location
|
|
1948
|
+
*/
|
|
1949
|
+
x?: number;
|
|
1950
|
+
/**
|
|
1951
|
+
* the Y location
|
|
1952
|
+
*/
|
|
1953
|
+
y?: number;
|
|
1954
|
+
/**
|
|
1955
|
+
* Width
|
|
1956
|
+
*/
|
|
1957
|
+
width?: number;
|
|
1958
|
+
/**
|
|
1959
|
+
* Height
|
|
1960
|
+
*/
|
|
1961
|
+
height?: number;
|
|
1962
|
+
/**
|
|
1963
|
+
* true if other elements are allowed to overlay the legend
|
|
1964
|
+
*/
|
|
1965
|
+
overlay?: boolean;
|
|
1966
|
+
/**
|
|
1967
|
+
* Get or sets the fill format.
|
|
1968
|
+
*/
|
|
1969
|
+
fillFormat?: FillFormat;
|
|
1970
|
+
/**
|
|
1971
|
+
* Get or sets the effect format.
|
|
1972
|
+
*/
|
|
1973
|
+
effectFormat?: EffectFormat;
|
|
1974
|
+
/**
|
|
1975
|
+
* Get or sets the line format.
|
|
1936
1976
|
*/
|
|
1937
|
-
|
|
1977
|
+
lineFormat?: LineFormat;
|
|
1938
1978
|
}
|
|
1939
1979
|
/**
|
|
1940
1980
|
* Represents a chart wall
|
|
@@ -3980,6 +4020,78 @@ export declare class LuminanceEffect extends ImageTransformEffect {
|
|
|
3980
4020
|
}
|
|
3981
4021
|
export declare namespace LuminanceEffect {
|
|
3982
4022
|
}
|
|
4023
|
+
/**
|
|
4024
|
+
* Provides options that control how a presentation is saved in Html5 format.
|
|
4025
|
+
*/
|
|
4026
|
+
export declare class MarkdownExportOptions extends ExportOptions {
|
|
4027
|
+
constructor();
|
|
4028
|
+
/**
|
|
4029
|
+
* Specifies markdown specification to convert presentation. Default is TextOnly.
|
|
4030
|
+
*/
|
|
4031
|
+
exportType?: MarkdownExportOptions.ExportTypeEnum;
|
|
4032
|
+
/**
|
|
4033
|
+
* Specifies markdown specification to convert presentation. Default is MultiMarkdown.
|
|
4034
|
+
*/
|
|
4035
|
+
flavor?: MarkdownExportOptions.FlavorEnum;
|
|
4036
|
+
/**
|
|
4037
|
+
* Specifies whether the generated document should have new lines of \\\\r(Macintosh), \\\\n(Unix) or \\\\r\\\\n(Windows). Default is Unix.
|
|
4038
|
+
*/
|
|
4039
|
+
newLineType?: MarkdownExportOptions.NewLineTypeEnum;
|
|
4040
|
+
/**
|
|
4041
|
+
* Specifies folder name to save images. Default is Images.
|
|
4042
|
+
*/
|
|
4043
|
+
imagesSaveFolderName?: string;
|
|
4044
|
+
/**
|
|
4045
|
+
* Specifies whether the generated document should include slide number. Default is false.
|
|
4046
|
+
*/
|
|
4047
|
+
showSlideNumber?: boolean;
|
|
4048
|
+
/**
|
|
4049
|
+
* Specifies whether the generated document should include comments. Default is false.
|
|
4050
|
+
*/
|
|
4051
|
+
showComments?: boolean;
|
|
4052
|
+
/**
|
|
4053
|
+
* Specifies whether the generated document should include hidden slides. Default is false.
|
|
4054
|
+
*/
|
|
4055
|
+
showHiddenSlides?: boolean;
|
|
4056
|
+
}
|
|
4057
|
+
export declare namespace MarkdownExportOptions {
|
|
4058
|
+
enum ExportTypeEnum {
|
|
4059
|
+
Sequential,
|
|
4060
|
+
TextOnly,
|
|
4061
|
+
Visual
|
|
4062
|
+
}
|
|
4063
|
+
enum FlavorEnum {
|
|
4064
|
+
Github,
|
|
4065
|
+
Gruber,
|
|
4066
|
+
MultiMarkdown,
|
|
4067
|
+
CommonMark,
|
|
4068
|
+
MarkdownExtra,
|
|
4069
|
+
Pandoc,
|
|
4070
|
+
Kramdown,
|
|
4071
|
+
Markua,
|
|
4072
|
+
Maruku,
|
|
4073
|
+
Markdown2,
|
|
4074
|
+
Remarkable,
|
|
4075
|
+
Showdown,
|
|
4076
|
+
Ghost,
|
|
4077
|
+
GitLab,
|
|
4078
|
+
Haroopad,
|
|
4079
|
+
IaWriter,
|
|
4080
|
+
Redcarpet,
|
|
4081
|
+
ScholarlyMarkdown,
|
|
4082
|
+
Taiga,
|
|
4083
|
+
Trello,
|
|
4084
|
+
S9ETextFormatter,
|
|
4085
|
+
XWiki,
|
|
4086
|
+
StackOverflow,
|
|
4087
|
+
Default
|
|
4088
|
+
}
|
|
4089
|
+
enum NewLineTypeEnum {
|
|
4090
|
+
Windows,
|
|
4091
|
+
Unix,
|
|
4092
|
+
Mac
|
|
4093
|
+
}
|
|
4094
|
+
}
|
|
3983
4095
|
/**
|
|
3984
4096
|
* Master slide.
|
|
3985
4097
|
*/
|
|
@@ -4008,6 +4120,16 @@ export declare class MasterSlides extends ResourceBase {
|
|
|
4008
4120
|
*/
|
|
4009
4121
|
slideList?: Array<ResourceUri>;
|
|
4010
4122
|
}
|
|
4123
|
+
/**
|
|
4124
|
+
* Mathematical paragraph that is a container for mathematical blocks
|
|
4125
|
+
*/
|
|
4126
|
+
/**
|
|
4127
|
+
* Mathematical paragraph that is a container for mathematical blocks
|
|
4128
|
+
*/
|
|
4129
|
+
export declare enum MathFormat {
|
|
4130
|
+
'MathML',
|
|
4131
|
+
'LaTeX'
|
|
4132
|
+
}
|
|
4011
4133
|
/**
|
|
4012
4134
|
* Mathematical paragraph that is a container for mathematical blocks
|
|
4013
4135
|
*/
|
|
@@ -5121,6 +5243,15 @@ export declare namespace PdfExportOptions {
|
|
|
5121
5243
|
PdfA2u
|
|
5122
5244
|
}
|
|
5123
5245
|
}
|
|
5246
|
+
/**
|
|
5247
|
+
* PDF import options.
|
|
5248
|
+
*/
|
|
5249
|
+
export declare class PdfImportOptions {
|
|
5250
|
+
/**
|
|
5251
|
+
* True to detect tables.
|
|
5252
|
+
*/
|
|
5253
|
+
detectTables: boolean;
|
|
5254
|
+
}
|
|
5124
5255
|
/**
|
|
5125
5256
|
* Picture fill.
|
|
5126
5257
|
*/
|
package/model.js
CHANGED
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ChartWall = exports.ChartTitle = exports.ChartSeriesGroup = exports.ChartLinesFormat = exports.ChartCategory = exports.Chart = exports.Camera = exports.BubbleSeries = exports.XYSeries = exports.Series = exports.BubbleChartDataPoint = exports.ScatterChartDataPoint = exports.DataPoint = exports.BoxElement = exports.BorderBoxElement = exports.BlurImageEffect = exports.BlurEffect = exports.BlockElement = exports.BiLevelEffect = exports.Base64InputFile = exports.InputFile = exports.BarElement = exports.AxisType = exports.Axis = exports.Axes = exports.AudioFrame = exports.GeometryShape = exports.ShapeBase = exports.ResourceBase = exports.ArrowHeadProperties = exports.ArrayElement = exports.ArcToPathSegment = exports.PathSegment = exports.ApiInfo = exports.AlphaReplaceEffect = exports.AlphaModulateFixedEffect = exports.AlphaModulateEffect = exports.AlphaInverseEffect = exports.AlphaFloorEffect = exports.AlphaCeilingEffect = exports.AlphaBiLevelEffect = exports.ImageTransformEffect = exports.AddSlide = exports.AddShape = exports.AddMasterSlide = exports.AddLayoutSlide = exports.Task = exports.AccessPermissions = exports.AccentElement = exports.MathElement = void 0;
|
|
27
27
|
exports.GraphicalObject = exports.GradientFillStop = exports.GradientFill = exports.GlowEffect = exports.GifExportOptions = exports.ImageExportOptionsBase = exports.GeometryPaths = exports.GeometryPath = exports.FunctionElement = exports.FractionElement = exports.FormatScheme = exports.FontsData = exports.FontSubstRule = exports.FontSet = exports.FontScheme = exports.FontFallbackRule = exports.FontData = exports.FillOverlayImageEffect = exports.FillOverlayEffect = exports.FillFormat = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.FileVersion = exports.StorageFile = exports.ExportOptions = exports.ExportFormat = exports.ErrorDetails = exports.EntityExists = exports.EffectFormat = exports.Effect = exports.DuotoneEffect = exports.DocumentReplaceResult = exports.DocumentProperty = exports.DocumentProperties = exports.Document = exports.DiscUsage = exports.DelimiterElement = exports.DataSource = exports.CustomDashPattern = exports.CubicBezierToPathSegment = exports.Connector = exports.CommonSlideViewProperties = exports.CommentAuthors = exports.CommentAuthor = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.ChartWallType = void 0;
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = void 0;
|
|
28
|
+
exports.Operation = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.OleObjectFrame = exports.ObjectExist = exports.NotesSlideHeaderFooter = exports.NotesSlideExportFormat = exports.NotesSlide = exports.NotesCommentsLayoutingOptions = exports.NormalViewRestoredProperties = exports.NoFill = exports.NaryOperatorElement = exports.MoveToPathSegment = exports.ModelError = exports.MergingSource = exports.Merge = exports.MatrixElement = exports.MathParagraph = exports.MathFormat = exports.MasterSlides = exports.MasterSlide = exports.MarkdownExportOptions = exports.LuminanceEffect = exports.Literals = exports.LineToPathSegment = exports.LineFormat = exports.LimitElement = exports.LightRig = exports.Legend = exports.LeftSubSuperscriptElement = exports.LayoutSlides = exports.LayoutSlide = exports.InteractiveSequence = exports.Input = exports.InnerShadowEffect = exports.Images = exports.ImageExportOptions = exports.ImageExportFormat = exports.Image = exports.IShapeExportOptions = exports.Hyperlink = exports.HtmlExportOptions = exports.Html5ExportOptions = exports.HslEffect = exports.HeaderFooter = exports.HandoutLayoutingOptions = exports.SlidesLayoutOptions = exports.GroupingCharacterElement = exports.GroupShape = exports.GrayScaleEffect = void 0;
|
|
29
|
+
exports.ShapeExportFormat = exports.ShapeBevel = exports.Shape = exports.SeriesMarker = exports.Sections = exports.SectionZoomFrame = exports.ZoomObject = exports.Section = exports.ScatterSeries = exports.SaveSlide = exports.SaveShape = exports.Save = exports.RightSubSuperscriptElement = exports.ResponseOutputFile = exports.ResourceUri = exports.ResetSlide = exports.RequestInputFile = exports.ReplaceText = exports.ReorderSlide = exports.RemoveSlide = exports.RemoveShape = exports.ReflectionEffect = exports.RadicalElement = exports.QuadraticBezierToPathSegment = exports.ProtectionProperties = exports.PresetShadowEffect = exports.PresentationsMergeRequest = exports.PresentationToMerge = exports.PptxExportOptions = exports.Portions = exports.PortionFormat = exports.Portion = exports.PlotArea = exports.Placeholders = exports.Placeholder = exports.Pipeline = exports.PictureFrame = exports.PictureFill = exports.PdfImportOptions = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = exports.PathInputFile = exports.Paragraphs = exports.ParagraphFormat = exports.Paragraph = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.OperationProgress = void 0;
|
|
30
|
+
exports.VbaModule = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.TiffExportOptions = exports.ThreeDFormat = exports.Theme = exports.TextItems = exports.TextItem = exports.TextFrameFormat = exports.TextElement = exports.TextBounds = exports.TableRow = exports.TableColumn = exports.TableCellSplitType = exports.TableCellMergeOptions = exports.TableCell = exports.Table = exports.SwfExportOptions = exports.SvgExportOptions = exports.SuperscriptElement = exports.SummaryZoomSection = exports.SummaryZoomFrame = exports.SubscriptElement = exports.StorageExist = exports.SplitDocumentResult = exports.SpecialSlideType = exports.SolidFill = exports.SoftEdgeEffect = exports.SmartArtShape = exports.SmartArtNode = exports.SmartArt = exports.Slides = exports.SlideShowTransition = exports.SlideShowProperties = exports.SlideReplaceResult = exports.SlideProperties = exports.SlideModernComment = exports.SlideExportFormat = exports.SlideComments = exports.SlideComment = exports.SlideCommentBase = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.ShapesAlignmentType = exports.Shapes = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = void 0;
|
|
31
|
+
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* Math element.
|
|
34
34
|
*/
|
|
@@ -2461,6 +2461,57 @@ class LuminanceEffect extends ImageTransformEffect {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
2463
|
exports.LuminanceEffect = LuminanceEffect;
|
|
2464
|
+
/**
|
|
2465
|
+
* Provides options that control how a presentation is saved in Html5 format.
|
|
2466
|
+
*/
|
|
2467
|
+
class MarkdownExportOptions extends ExportOptions {
|
|
2468
|
+
constructor() {
|
|
2469
|
+
super();
|
|
2470
|
+
this.format = 'md';
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
exports.MarkdownExportOptions = MarkdownExportOptions;
|
|
2474
|
+
(function (MarkdownExportOptions) {
|
|
2475
|
+
let ExportTypeEnum;
|
|
2476
|
+
(function (ExportTypeEnum) {
|
|
2477
|
+
ExportTypeEnum[ExportTypeEnum["Sequential"] = 'Sequential'] = "Sequential";
|
|
2478
|
+
ExportTypeEnum[ExportTypeEnum["TextOnly"] = 'TextOnly'] = "TextOnly";
|
|
2479
|
+
ExportTypeEnum[ExportTypeEnum["Visual"] = 'Visual'] = "Visual";
|
|
2480
|
+
})(ExportTypeEnum = MarkdownExportOptions.ExportTypeEnum || (MarkdownExportOptions.ExportTypeEnum = {}));
|
|
2481
|
+
let FlavorEnum;
|
|
2482
|
+
(function (FlavorEnum) {
|
|
2483
|
+
FlavorEnum[FlavorEnum["Github"] = 'Github'] = "Github";
|
|
2484
|
+
FlavorEnum[FlavorEnum["Gruber"] = 'Gruber'] = "Gruber";
|
|
2485
|
+
FlavorEnum[FlavorEnum["MultiMarkdown"] = 'MultiMarkdown'] = "MultiMarkdown";
|
|
2486
|
+
FlavorEnum[FlavorEnum["CommonMark"] = 'CommonMark'] = "CommonMark";
|
|
2487
|
+
FlavorEnum[FlavorEnum["MarkdownExtra"] = 'MarkdownExtra'] = "MarkdownExtra";
|
|
2488
|
+
FlavorEnum[FlavorEnum["Pandoc"] = 'Pandoc'] = "Pandoc";
|
|
2489
|
+
FlavorEnum[FlavorEnum["Kramdown"] = 'Kramdown'] = "Kramdown";
|
|
2490
|
+
FlavorEnum[FlavorEnum["Markua"] = 'Markua'] = "Markua";
|
|
2491
|
+
FlavorEnum[FlavorEnum["Maruku"] = 'Maruku'] = "Maruku";
|
|
2492
|
+
FlavorEnum[FlavorEnum["Markdown2"] = 'Markdown2'] = "Markdown2";
|
|
2493
|
+
FlavorEnum[FlavorEnum["Remarkable"] = 'Remarkable'] = "Remarkable";
|
|
2494
|
+
FlavorEnum[FlavorEnum["Showdown"] = 'Showdown'] = "Showdown";
|
|
2495
|
+
FlavorEnum[FlavorEnum["Ghost"] = 'Ghost'] = "Ghost";
|
|
2496
|
+
FlavorEnum[FlavorEnum["GitLab"] = 'GitLab'] = "GitLab";
|
|
2497
|
+
FlavorEnum[FlavorEnum["Haroopad"] = 'Haroopad'] = "Haroopad";
|
|
2498
|
+
FlavorEnum[FlavorEnum["IaWriter"] = 'IaWriter'] = "IaWriter";
|
|
2499
|
+
FlavorEnum[FlavorEnum["Redcarpet"] = 'Redcarpet'] = "Redcarpet";
|
|
2500
|
+
FlavorEnum[FlavorEnum["ScholarlyMarkdown"] = 'ScholarlyMarkdown'] = "ScholarlyMarkdown";
|
|
2501
|
+
FlavorEnum[FlavorEnum["Taiga"] = 'Taiga'] = "Taiga";
|
|
2502
|
+
FlavorEnum[FlavorEnum["Trello"] = 'Trello'] = "Trello";
|
|
2503
|
+
FlavorEnum[FlavorEnum["S9ETextFormatter"] = 'S9ETextFormatter'] = "S9ETextFormatter";
|
|
2504
|
+
FlavorEnum[FlavorEnum["XWiki"] = 'XWiki'] = "XWiki";
|
|
2505
|
+
FlavorEnum[FlavorEnum["StackOverflow"] = 'StackOverflow'] = "StackOverflow";
|
|
2506
|
+
FlavorEnum[FlavorEnum["Default"] = 'Default'] = "Default";
|
|
2507
|
+
})(FlavorEnum = MarkdownExportOptions.FlavorEnum || (MarkdownExportOptions.FlavorEnum = {}));
|
|
2508
|
+
let NewLineTypeEnum;
|
|
2509
|
+
(function (NewLineTypeEnum) {
|
|
2510
|
+
NewLineTypeEnum[NewLineTypeEnum["Windows"] = 'Windows'] = "Windows";
|
|
2511
|
+
NewLineTypeEnum[NewLineTypeEnum["Unix"] = 'Unix'] = "Unix";
|
|
2512
|
+
NewLineTypeEnum[NewLineTypeEnum["Mac"] = 'Mac'] = "Mac";
|
|
2513
|
+
})(NewLineTypeEnum = MarkdownExportOptions.NewLineTypeEnum || (MarkdownExportOptions.NewLineTypeEnum = {}));
|
|
2514
|
+
})(MarkdownExportOptions = exports.MarkdownExportOptions || (exports.MarkdownExportOptions = {}));
|
|
2464
2515
|
/**
|
|
2465
2516
|
* Master slide.
|
|
2466
2517
|
*/
|
|
@@ -2479,6 +2530,17 @@ class MasterSlides extends ResourceBase {
|
|
|
2479
2530
|
}
|
|
2480
2531
|
}
|
|
2481
2532
|
exports.MasterSlides = MasterSlides;
|
|
2533
|
+
/**
|
|
2534
|
+
* Mathematical paragraph that is a container for mathematical blocks
|
|
2535
|
+
*/
|
|
2536
|
+
/**
|
|
2537
|
+
* Mathematical paragraph that is a container for mathematical blocks
|
|
2538
|
+
*/
|
|
2539
|
+
var MathFormat;
|
|
2540
|
+
(function (MathFormat) {
|
|
2541
|
+
MathFormat[MathFormat["MathML"] = 'MathML'] = "MathML";
|
|
2542
|
+
MathFormat[MathFormat["LaTeX"] = 'LaTeX'] = "LaTeX";
|
|
2543
|
+
})(MathFormat = exports.MathFormat || (exports.MathFormat = {}));
|
|
2482
2544
|
/**
|
|
2483
2545
|
* Mathematical paragraph that is a container for mathematical blocks
|
|
2484
2546
|
*/
|
|
@@ -3108,6 +3170,12 @@ exports.PdfExportOptions = PdfExportOptions;
|
|
|
3108
3170
|
ComplianceEnum[ComplianceEnum["PdfA2u"] = 'PdfA2u'] = "PdfA2u";
|
|
3109
3171
|
})(ComplianceEnum = PdfExportOptions.ComplianceEnum || (PdfExportOptions.ComplianceEnum = {}));
|
|
3110
3172
|
})(PdfExportOptions = exports.PdfExportOptions || (exports.PdfExportOptions = {}));
|
|
3173
|
+
/**
|
|
3174
|
+
* PDF import options.
|
|
3175
|
+
*/
|
|
3176
|
+
class PdfImportOptions {
|
|
3177
|
+
}
|
|
3178
|
+
exports.PdfImportOptions = PdfImportOptions;
|
|
3111
3179
|
/**
|
|
3112
3180
|
* Picture fill.
|
|
3113
3181
|
*/
|