asposeslidescloud 24.8.0 → 24.12.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 +14 -0
- package/api.d.ts +40 -3
- package/api.js +108 -5
- package/internal/configuration.d.ts +5 -1
- package/internal/configuration.js +2 -1
- package/internal/requestHelper.js +4 -1
- package/model.d.ts +86 -4
- package/model.js +43 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,20 @@ 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.12
|
|
31
|
+
|
|
32
|
+
* Added **CompressImage** method. **DeletePictureCroppedAreas** method is deprecated and will be removed after 25.2 release.
|
|
33
|
+
* The **Paragraphs** property of **Shape** class is now a list of **Paragraph** objects instead of ResourceURIs.
|
|
34
|
+
* Added **TileScaleX**, **TileScaleY**, **TileOffsetX**, **TileOffsetY**, **TileAlignment** and **TileFlip** properties to **PictureFill** class.
|
|
35
|
+
* Added **DrawingGuides** property to **CommonSlideViewProperty** class.
|
|
36
|
+
* Added **DeleteEmbeddedBinaryObjects** boolean property to **ExportOptions** class.
|
|
37
|
+
* Added **IncludeOleData** boolean property to **PdfExportOptions** class.
|
|
38
|
+
* Added **GridSpacing** property to **ViewProperties** class.
|
|
39
|
+
|
|
40
|
+
## Enhancements in Version 24.9
|
|
41
|
+
|
|
42
|
+
* Added **Upload** and **Download** methods to async API. They are identical to **UploadFile** and **DownloadFile** methods of the regular API, but file size is not restricted for them.
|
|
43
|
+
|
|
30
44
|
## Enhancements in Version 24.8
|
|
31
45
|
|
|
32
46
|
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
package/api.d.ts
CHANGED
|
@@ -16,8 +16,9 @@ export declare class SlidesApi {
|
|
|
16
16
|
* @param authBaseUrl Base authentication Url.
|
|
17
17
|
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
18
18
|
* @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
|
|
19
|
+
* @param httpRequestTimeout Timeout (in seconds) for an HTTP request. Applies to the HTTP request, not to the Slides operation.
|
|
19
20
|
*/
|
|
20
|
-
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
|
|
21
|
+
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number, httpRequestTimeout?: number);
|
|
21
22
|
/**
|
|
22
23
|
* Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other.
|
|
23
24
|
* @param name Document name.
|
|
@@ -70,6 +71,20 @@ export declare class SlidesApi {
|
|
|
70
71
|
response: http.ServerResponse;
|
|
71
72
|
body: Buffer;
|
|
72
73
|
}>;
|
|
74
|
+
/**
|
|
75
|
+
* Deletes cropped areas of a pictire.
|
|
76
|
+
* @param name Document name.
|
|
77
|
+
* @param slideIndex Slide index.
|
|
78
|
+
* @param shapeIndex Shape index (must refer to a picture frame).
|
|
79
|
+
* @param resolution Target resolution in DPI.
|
|
80
|
+
* @param deletePictureCroppedAreas true to delete picture cropped areas.
|
|
81
|
+
* @param password Document password.
|
|
82
|
+
* @param folder Document folder.
|
|
83
|
+
* @param storage Presentation storage.
|
|
84
|
+
*/
|
|
85
|
+
compressImage(name: string, slideIndex: number, shapeIndex: number, resolution?: number, deletePictureCroppedAreas?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
86
|
+
response: http.ServerResponse;
|
|
87
|
+
}>;
|
|
73
88
|
/**
|
|
74
89
|
* Convert presentation from request content to format specified.
|
|
75
90
|
* @param document Document data.
|
|
@@ -895,6 +910,7 @@ export declare class SlidesApi {
|
|
|
895
910
|
body: model.Paragraphs;
|
|
896
911
|
}>;
|
|
897
912
|
/**
|
|
913
|
+
* @deprecated.
|
|
898
914
|
* Deletes cropped areas of a pictire.
|
|
899
915
|
* @param name Document name.
|
|
900
916
|
* @param slideIndex Slide index.
|
|
@@ -2117,7 +2133,7 @@ export declare class SlidesApi {
|
|
|
2117
2133
|
* @param folder Document folder.
|
|
2118
2134
|
* @param storage Document storage.
|
|
2119
2135
|
* @param shapeType Shape type.
|
|
2120
|
-
* @param subShape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2136
|
+
* @param subShape Sub-shape path (e.g. \"3\", \"3/shapes/2\").
|
|
2121
2137
|
*/
|
|
2122
2138
|
getShapes(name: string, slideIndex: number, password?: string, folder?: string, storage?: string, shapeType?: model.ShapeType, subShape?: string): Promise<{
|
|
2123
2139
|
response: http.ServerResponse;
|
|
@@ -3729,8 +3745,19 @@ export declare class SlidesAsyncApi {
|
|
|
3729
3745
|
* @param authBaseUrl Base authentication Url.
|
|
3730
3746
|
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
3731
3747
|
* @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
|
|
3748
|
+
* @param httpRequestTimeout Timeout (in seconds) for an HTTP request. Applies to the HTTP request, not to the Slides operation.
|
|
3732
3749
|
*/
|
|
3733
|
-
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
|
|
3750
|
+
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number, httpRequestTimeout?: number);
|
|
3751
|
+
/**
|
|
3752
|
+
*
|
|
3753
|
+
* @param path
|
|
3754
|
+
* @param storageName
|
|
3755
|
+
* @param versionId
|
|
3756
|
+
*/
|
|
3757
|
+
download(path?: string, storageName?: string, versionId?: string): Promise<{
|
|
3758
|
+
response: http.ServerResponse;
|
|
3759
|
+
body: Buffer;
|
|
3760
|
+
}>;
|
|
3734
3761
|
/**
|
|
3735
3762
|
*
|
|
3736
3763
|
* @param id
|
|
@@ -3865,4 +3892,14 @@ export declare class SlidesAsyncApi {
|
|
|
3865
3892
|
response: http.ServerResponse;
|
|
3866
3893
|
body: string;
|
|
3867
3894
|
}>;
|
|
3895
|
+
/**
|
|
3896
|
+
*
|
|
3897
|
+
* @param path
|
|
3898
|
+
* @param file File to upload
|
|
3899
|
+
* @param storageName
|
|
3900
|
+
*/
|
|
3901
|
+
upload(path: string, file: Readable, storageName?: string): Promise<{
|
|
3902
|
+
response: http.ServerResponse;
|
|
3903
|
+
body: model.FilesUploadResult;
|
|
3904
|
+
}>;
|
|
3868
3905
|
}
|
package/api.js
CHANGED
|
@@ -63,9 +63,10 @@ class SlidesApi {
|
|
|
63
63
|
* @param authBaseUrl Base authentication Url.
|
|
64
64
|
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
65
65
|
* @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
|
|
66
|
+
* @param httpRequestTimeout Timeout (in seconds) for an HTTP request. Applies to the HTTP request, not to the Slides operation.
|
|
66
67
|
*/
|
|
67
|
-
constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout) {
|
|
68
|
-
this._configuration = new configuration_1.Configuration(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout);
|
|
68
|
+
constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout, httpRequestTimeout) {
|
|
69
|
+
this._configuration = new configuration_1.Configuration(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout, httpRequestTimeout);
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
72
|
* Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other.
|
|
@@ -241,6 +242,51 @@ class SlidesApi {
|
|
|
241
242
|
return Promise.resolve({ body: result, response });
|
|
242
243
|
});
|
|
243
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Deletes cropped areas of a pictire.
|
|
247
|
+
* @param name Document name.
|
|
248
|
+
* @param slideIndex Slide index.
|
|
249
|
+
* @param shapeIndex Shape index (must refer to a picture frame).
|
|
250
|
+
* @param resolution Target resolution in DPI.
|
|
251
|
+
* @param deletePictureCroppedAreas true to delete picture cropped areas.
|
|
252
|
+
* @param password Document password.
|
|
253
|
+
* @param folder Document folder.
|
|
254
|
+
* @param storage Presentation storage.
|
|
255
|
+
*/
|
|
256
|
+
compressImage(name, slideIndex, shapeIndex, resolution = null, deletePictureCroppedAreas = null, password = null, folder = null, storage = null) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
// verify required parameter 'name' is not null or undefined
|
|
259
|
+
if (name === null || name === undefined) {
|
|
260
|
+
throw new Error('The required parameter "name" was null or undefined when calling compressImage.');
|
|
261
|
+
}
|
|
262
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
263
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
264
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling compressImage.');
|
|
265
|
+
}
|
|
266
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
267
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
268
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling compressImage.');
|
|
269
|
+
}
|
|
270
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/compressImage";
|
|
271
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
272
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
273
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
274
|
+
const queryParameters = {};
|
|
275
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "resolution", resolution);
|
|
276
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "deletePictureCroppedAreas", deletePictureCroppedAreas);
|
|
277
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
278
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
279
|
+
const requestOptions = {
|
|
280
|
+
method: "POST",
|
|
281
|
+
headers: {},
|
|
282
|
+
url: localVarPath,
|
|
283
|
+
params: queryParameters
|
|
284
|
+
};
|
|
285
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
286
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
287
|
+
return Promise.resolve({ response });
|
|
288
|
+
});
|
|
289
|
+
}
|
|
244
290
|
/**
|
|
245
291
|
* Convert presentation from request content to format specified.
|
|
246
292
|
* @param document Document data.
|
|
@@ -2899,6 +2945,7 @@ class SlidesApi {
|
|
|
2899
2945
|
});
|
|
2900
2946
|
}
|
|
2901
2947
|
/**
|
|
2948
|
+
* @deprecated.
|
|
2902
2949
|
* Deletes cropped areas of a pictire.
|
|
2903
2950
|
* @param name Document name.
|
|
2904
2951
|
* @param slideIndex Slide index.
|
|
@@ -6855,7 +6902,7 @@ class SlidesApi {
|
|
|
6855
6902
|
* @param folder Document folder.
|
|
6856
6903
|
* @param storage Document storage.
|
|
6857
6904
|
* @param shapeType Shape type.
|
|
6858
|
-
* @param subShape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
6905
|
+
* @param subShape Sub-shape path (e.g. \"3\", \"3/shapes/2\").
|
|
6859
6906
|
*/
|
|
6860
6907
|
getShapes(name, slideIndex, password = null, folder = null, storage = null, shapeType = null, subShape = null) {
|
|
6861
6908
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -12318,9 +12365,34 @@ class SlidesAsyncApi {
|
|
|
12318
12365
|
* @param authBaseUrl Base authentication Url.
|
|
12319
12366
|
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
12320
12367
|
* @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
|
|
12368
|
+
* @param httpRequestTimeout Timeout (in seconds) for an HTTP request. Applies to the HTTP request, not to the Slides operation.
|
|
12369
|
+
*/
|
|
12370
|
+
constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout, httpRequestTimeout) {
|
|
12371
|
+
this._configuration = new configuration_1.Configuration(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout, httpRequestTimeout);
|
|
12372
|
+
}
|
|
12373
|
+
/**
|
|
12374
|
+
*
|
|
12375
|
+
* @param path
|
|
12376
|
+
* @param storageName
|
|
12377
|
+
* @param versionId
|
|
12321
12378
|
*/
|
|
12322
|
-
|
|
12323
|
-
|
|
12379
|
+
download(path = null, storageName = null, versionId = null) {
|
|
12380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12381
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/storage/file/{path}";
|
|
12382
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
12383
|
+
const queryParameters = {};
|
|
12384
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storageName", storageName);
|
|
12385
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "versionId", versionId);
|
|
12386
|
+
const requestOptions = {
|
|
12387
|
+
method: "GET",
|
|
12388
|
+
url: localVarPath,
|
|
12389
|
+
responseType: 'arraybuffer',
|
|
12390
|
+
params: queryParameters
|
|
12391
|
+
};
|
|
12392
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12393
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
12394
|
+
return Promise.resolve({ body: result, response });
|
|
12395
|
+
});
|
|
12324
12396
|
}
|
|
12325
12397
|
/**
|
|
12326
12398
|
*
|
|
@@ -12739,5 +12811,36 @@ class SlidesAsyncApi {
|
|
|
12739
12811
|
return Promise.resolve({ body: result, response });
|
|
12740
12812
|
});
|
|
12741
12813
|
}
|
|
12814
|
+
/**
|
|
12815
|
+
*
|
|
12816
|
+
* @param path
|
|
12817
|
+
* @param file File to upload
|
|
12818
|
+
* @param storageName
|
|
12819
|
+
*/
|
|
12820
|
+
upload(path = null, file, storageName = null) {
|
|
12821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12822
|
+
// verify required parameter 'file' is not null or undefined
|
|
12823
|
+
if (file === null || file === undefined) {
|
|
12824
|
+
throw new Error('The required parameter "file" was null or undefined when calling upload.');
|
|
12825
|
+
}
|
|
12826
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/storage/file/{path}";
|
|
12827
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
12828
|
+
const queryParameters = {};
|
|
12829
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storageName", storageName);
|
|
12830
|
+
const requestOptions = {
|
|
12831
|
+
method: "PUT",
|
|
12832
|
+
url: localVarPath,
|
|
12833
|
+
params: queryParameters
|
|
12834
|
+
};
|
|
12835
|
+
let localVarFiles = [];
|
|
12836
|
+
if (file != null) {
|
|
12837
|
+
localVarFiles.push(file);
|
|
12838
|
+
}
|
|
12839
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
12840
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12841
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FilesUploadResult");
|
|
12842
|
+
return Promise.resolve({ body: result, response });
|
|
12843
|
+
});
|
|
12844
|
+
}
|
|
12742
12845
|
}
|
|
12743
12846
|
exports.SlidesAsyncApi = SlidesAsyncApi;
|
|
@@ -26,6 +26,10 @@ export declare class Configuration {
|
|
|
26
26
|
* Gets or sets slides operation timeout in seconds. 0 stands for no timeout. The timeout applies to the Slides operation, not to the HTTP request.
|
|
27
27
|
*/
|
|
28
28
|
timeout: number;
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets HTTP request timeout in seconds. 0 stands for no timeout. The timeout applies to the HTTP request, not to the Slides operation.
|
|
31
|
+
*/
|
|
32
|
+
httpRequestTimeout: number;
|
|
29
33
|
/**
|
|
30
34
|
* Gets or sets a value indicating whether debug mode is enabled. In debug mode all requests and responses are logged to console.
|
|
31
35
|
*/
|
|
@@ -40,7 +44,7 @@ export declare class Configuration {
|
|
|
40
44
|
* Gets or sets a value indicating whether insecure requests are allowed.
|
|
41
45
|
*/
|
|
42
46
|
allowInsecureRequests: boolean;
|
|
43
|
-
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
|
|
47
|
+
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number, httpRequestTimeout?: number);
|
|
44
48
|
/**
|
|
45
49
|
* Returns api base url
|
|
46
50
|
*/
|
|
@@ -29,7 +29,7 @@ const defaultBasePath = "https://api.aspose.cloud";
|
|
|
29
29
|
* Slides API configuration
|
|
30
30
|
*/
|
|
31
31
|
class Configuration {
|
|
32
|
-
constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout) {
|
|
32
|
+
constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout, httpRequestTimeout) {
|
|
33
33
|
/**
|
|
34
34
|
* Base Url.
|
|
35
35
|
*/
|
|
@@ -49,6 +49,7 @@ class Configuration {
|
|
|
49
49
|
this.appKey = appKey;
|
|
50
50
|
this.debugMode = debugMode;
|
|
51
51
|
this.timeout = timeout;
|
|
52
|
+
this.httpRequestTimeout = httpRequestTimeout;
|
|
52
53
|
this.customHeaders = {};
|
|
53
54
|
this.allowInsecureRequests = false;
|
|
54
55
|
}
|
|
@@ -169,10 +169,13 @@ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRe
|
|
|
169
169
|
if (!requestOptions.headers) {
|
|
170
170
|
requestOptions.headers = {};
|
|
171
171
|
}
|
|
172
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.
|
|
172
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.12.0";
|
|
173
173
|
if (configuration.timeout) {
|
|
174
174
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
175
175
|
}
|
|
176
|
+
if (configuration.httpRequestTimeout) {
|
|
177
|
+
requestOptions.timeout = configuration.httpRequestTimeout * 1000;
|
|
178
|
+
}
|
|
176
179
|
for (var key in configuration.customHeaders) {
|
|
177
180
|
requestOptions.headers[key] = configuration.customHeaders[key];
|
|
178
181
|
}
|
package/model.d.ts
CHANGED
|
@@ -471,7 +471,7 @@ export declare class ShapeBase extends ResourceBase {
|
|
|
471
471
|
/**
|
|
472
472
|
* Gets z-order position of shape
|
|
473
473
|
*/
|
|
474
|
-
zOrderPosition
|
|
474
|
+
zOrderPosition?: number;
|
|
475
475
|
/**
|
|
476
476
|
* Gets or sets the fill format.
|
|
477
477
|
*/
|
|
@@ -2145,6 +2145,10 @@ export declare class CommonSlideViewProperties {
|
|
|
2145
2145
|
* True if the view content should automatically scale to best fit the current window size.
|
|
2146
2146
|
*/
|
|
2147
2147
|
variableScale?: boolean;
|
|
2148
|
+
/**
|
|
2149
|
+
* Drawing guides
|
|
2150
|
+
*/
|
|
2151
|
+
drawingGuides?: Array<DrawingGuide>;
|
|
2148
2152
|
}
|
|
2149
2153
|
/**
|
|
2150
2154
|
* Represents Connector resource.
|
|
@@ -2340,6 +2344,25 @@ export declare class DocumentReplaceResult extends Document {
|
|
|
2340
2344
|
*/
|
|
2341
2345
|
matches: number;
|
|
2342
2346
|
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Drawing guide.
|
|
2349
|
+
*/
|
|
2350
|
+
export declare class DrawingGuide {
|
|
2351
|
+
/**
|
|
2352
|
+
* Last used view mode.
|
|
2353
|
+
*/
|
|
2354
|
+
orientation: DrawingGuide.OrientationEnum;
|
|
2355
|
+
/**
|
|
2356
|
+
* Horizontal bar state.
|
|
2357
|
+
*/
|
|
2358
|
+
position: number;
|
|
2359
|
+
}
|
|
2360
|
+
export declare namespace DrawingGuide {
|
|
2361
|
+
enum OrientationEnum {
|
|
2362
|
+
Horizontal,
|
|
2363
|
+
Vertical
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2343
2366
|
/**
|
|
2344
2367
|
* Represents a Duotone effect.
|
|
2345
2368
|
*/
|
|
@@ -2454,6 +2477,7 @@ export declare namespace Effect {
|
|
|
2454
2477
|
Appear,
|
|
2455
2478
|
CurveUpDown,
|
|
2456
2479
|
Ascend,
|
|
2480
|
+
FloatUp,
|
|
2457
2481
|
Blast,
|
|
2458
2482
|
Blinds,
|
|
2459
2483
|
Blink,
|
|
@@ -2486,6 +2510,7 @@ export declare namespace Effect {
|
|
|
2486
2510
|
Darken,
|
|
2487
2511
|
Desaturate,
|
|
2488
2512
|
Descend,
|
|
2513
|
+
Floatdown,
|
|
2489
2514
|
Diamond,
|
|
2490
2515
|
Dissolve,
|
|
2491
2516
|
EaseInOut,
|
|
@@ -2614,6 +2639,8 @@ export declare namespace Effect {
|
|
|
2614
2639
|
BottomLeft,
|
|
2615
2640
|
BottomRight,
|
|
2616
2641
|
Center,
|
|
2642
|
+
ObjectCenter,
|
|
2643
|
+
SlideCenter,
|
|
2617
2644
|
Clockwise,
|
|
2618
2645
|
CounterClockwise,
|
|
2619
2646
|
GradualAndCycleClockwise,
|
|
@@ -2792,6 +2819,10 @@ export declare class ExportOptions {
|
|
|
2792
2819
|
* Default regular font for rendering the presentation.
|
|
2793
2820
|
*/
|
|
2794
2821
|
defaultRegularFont?: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* True to delete delete all embedded binary objects.
|
|
2824
|
+
*/
|
|
2825
|
+
deleteEmbeddedBinaryObjects?: boolean;
|
|
2795
2826
|
/**
|
|
2796
2827
|
* Default regular font for rendering the presentation.
|
|
2797
2828
|
*/
|
|
@@ -5265,6 +5296,10 @@ export declare class PdfExportOptions extends ExportOptions {
|
|
|
5265
5296
|
* True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.
|
|
5266
5297
|
*/
|
|
5267
5298
|
rasterizeUnsupportedFontStyles?: boolean;
|
|
5299
|
+
/**
|
|
5300
|
+
* True to convert all OLE data from the presentation to embedded files in the resulting PDF.
|
|
5301
|
+
*/
|
|
5302
|
+
includeOleData?: boolean;
|
|
5268
5303
|
}
|
|
5269
5304
|
export declare namespace PdfExportOptions {
|
|
5270
5305
|
enum TextCompressionEnum {
|
|
@@ -5319,6 +5354,30 @@ export declare class PictureFill extends FillFormat {
|
|
|
5319
5354
|
* Picture resolution.
|
|
5320
5355
|
*/
|
|
5321
5356
|
dpi: number;
|
|
5357
|
+
/**
|
|
5358
|
+
* The horizontal offset of the texture from the shape's origin in points. A positive value moves the texture to the right, while a negative value moves it to the left.
|
|
5359
|
+
*/
|
|
5360
|
+
tileOffsetX?: number;
|
|
5361
|
+
/**
|
|
5362
|
+
* The vertical offset of the texture from the shape's origin in points. A positive value moves the texture down, while a negative value moves it up.
|
|
5363
|
+
*/
|
|
5364
|
+
tileOffsetY?: number;
|
|
5365
|
+
/**
|
|
5366
|
+
* The horizontal scale for the texture fill as a percentage.
|
|
5367
|
+
*/
|
|
5368
|
+
tileScaleX?: number;
|
|
5369
|
+
/**
|
|
5370
|
+
* The vertical scale for the texture fill as a percentage.
|
|
5371
|
+
*/
|
|
5372
|
+
tileScaleY?: number;
|
|
5373
|
+
/**
|
|
5374
|
+
* The way texture is aligned within the shape. This setting controls the starting point of the texture pattern and how it repeats across the shape.
|
|
5375
|
+
*/
|
|
5376
|
+
tileAlignment?: PictureFill.TileAlignmentEnum;
|
|
5377
|
+
/**
|
|
5378
|
+
* Flips the texture tile around its horizontal, vertical or both axis.
|
|
5379
|
+
*/
|
|
5380
|
+
tileFlip?: PictureFill.TileFlipEnum;
|
|
5322
5381
|
/**
|
|
5323
5382
|
* Internal image link.
|
|
5324
5383
|
*/
|
|
@@ -5341,6 +5400,25 @@ export declare class PictureFill extends FillFormat {
|
|
|
5341
5400
|
imageTransformList?: Array<ImageTransformEffect>;
|
|
5342
5401
|
}
|
|
5343
5402
|
export declare namespace PictureFill {
|
|
5403
|
+
enum TileAlignmentEnum {
|
|
5404
|
+
TopLeft,
|
|
5405
|
+
Top,
|
|
5406
|
+
TopRight,
|
|
5407
|
+
Left,
|
|
5408
|
+
Center,
|
|
5409
|
+
Right,
|
|
5410
|
+
BottomLeft,
|
|
5411
|
+
Bottom,
|
|
5412
|
+
BottomRight,
|
|
5413
|
+
NotDefined
|
|
5414
|
+
}
|
|
5415
|
+
enum TileFlipEnum {
|
|
5416
|
+
NoFlip,
|
|
5417
|
+
FlipX,
|
|
5418
|
+
FlipY,
|
|
5419
|
+
FlipBoth,
|
|
5420
|
+
NotDefined
|
|
5421
|
+
}
|
|
5344
5422
|
enum PictureFillModeEnum {
|
|
5345
5423
|
Tile,
|
|
5346
5424
|
Stretch
|
|
@@ -6567,7 +6645,7 @@ export declare class Shape extends GeometryShape {
|
|
|
6567
6645
|
/**
|
|
6568
6646
|
* Get or sets list to paragraphs list
|
|
6569
6647
|
*/
|
|
6570
|
-
paragraphs?:
|
|
6648
|
+
paragraphs?: Array<Paragraph>;
|
|
6571
6649
|
/**
|
|
6572
6650
|
* Returns TextFrame's formatting properties.
|
|
6573
6651
|
*/
|
|
@@ -8122,11 +8200,11 @@ export declare class TableRow {
|
|
|
8122
8200
|
/**
|
|
8123
8201
|
* Minimal height of the row.
|
|
8124
8202
|
*/
|
|
8125
|
-
minimalHeight
|
|
8203
|
+
minimalHeight?: number;
|
|
8126
8204
|
/**
|
|
8127
8205
|
* Height of the row.
|
|
8128
8206
|
*/
|
|
8129
|
-
height
|
|
8207
|
+
height?: number;
|
|
8130
8208
|
}
|
|
8131
8209
|
/**
|
|
8132
8210
|
* Represents text bounds within a paragraph or portion.
|
|
@@ -8740,6 +8818,10 @@ export declare class ViewProperties extends ResourceBase {
|
|
|
8740
8818
|
* True if the comments should be shown.
|
|
8741
8819
|
*/
|
|
8742
8820
|
showComments?: ViewProperties.ShowCommentsEnum;
|
|
8821
|
+
/**
|
|
8822
|
+
* The grid spacing that should be used for the grid underlying the presentation document, in points.
|
|
8823
|
+
*/
|
|
8824
|
+
gridSpacing?: number;
|
|
8743
8825
|
}
|
|
8744
8826
|
export declare namespace ViewProperties {
|
|
8745
8827
|
enum LastViewEnum {
|
package/model.js
CHANGED
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
*/
|
|
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
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = exports.VbaModule = void 0;
|
|
27
|
+
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.DrawingGuide = 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.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 = exports.GraphicalObject = void 0;
|
|
29
|
+
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 = exports.OperationError = exports.Operation = void 0;
|
|
30
|
+
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 = exports.ShapeExportFormat = exports.ShapeBevel = void 0;
|
|
31
|
+
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = exports.VbaModule = exports.UpdateShape = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* Math element.
|
|
34
34
|
*/
|
|
@@ -1408,6 +1408,19 @@ class DocumentReplaceResult extends Document {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
1410
|
exports.DocumentReplaceResult = DocumentReplaceResult;
|
|
1411
|
+
/**
|
|
1412
|
+
* Drawing guide.
|
|
1413
|
+
*/
|
|
1414
|
+
class DrawingGuide {
|
|
1415
|
+
}
|
|
1416
|
+
exports.DrawingGuide = DrawingGuide;
|
|
1417
|
+
(function (DrawingGuide) {
|
|
1418
|
+
let OrientationEnum;
|
|
1419
|
+
(function (OrientationEnum) {
|
|
1420
|
+
OrientationEnum[OrientationEnum["Horizontal"] = 'Horizontal'] = "Horizontal";
|
|
1421
|
+
OrientationEnum[OrientationEnum["Vertical"] = 'Vertical'] = "Vertical";
|
|
1422
|
+
})(OrientationEnum = DrawingGuide.OrientationEnum || (DrawingGuide.OrientationEnum = {}));
|
|
1423
|
+
})(DrawingGuide = exports.DrawingGuide || (exports.DrawingGuide = {}));
|
|
1411
1424
|
/**
|
|
1412
1425
|
* Represents a Duotone effect.
|
|
1413
1426
|
*/
|
|
@@ -1430,6 +1443,7 @@ exports.Effect = Effect;
|
|
|
1430
1443
|
TypeEnum[TypeEnum["Appear"] = 'Appear'] = "Appear";
|
|
1431
1444
|
TypeEnum[TypeEnum["CurveUpDown"] = 'CurveUpDown'] = "CurveUpDown";
|
|
1432
1445
|
TypeEnum[TypeEnum["Ascend"] = 'Ascend'] = "Ascend";
|
|
1446
|
+
TypeEnum[TypeEnum["FloatUp"] = 'FloatUp'] = "FloatUp";
|
|
1433
1447
|
TypeEnum[TypeEnum["Blast"] = 'Blast'] = "Blast";
|
|
1434
1448
|
TypeEnum[TypeEnum["Blinds"] = 'Blinds'] = "Blinds";
|
|
1435
1449
|
TypeEnum[TypeEnum["Blink"] = 'Blink'] = "Blink";
|
|
@@ -1462,6 +1476,7 @@ exports.Effect = Effect;
|
|
|
1462
1476
|
TypeEnum[TypeEnum["Darken"] = 'Darken'] = "Darken";
|
|
1463
1477
|
TypeEnum[TypeEnum["Desaturate"] = 'Desaturate'] = "Desaturate";
|
|
1464
1478
|
TypeEnum[TypeEnum["Descend"] = 'Descend'] = "Descend";
|
|
1479
|
+
TypeEnum[TypeEnum["Floatdown"] = 'Floatdown'] = "Floatdown";
|
|
1465
1480
|
TypeEnum[TypeEnum["Diamond"] = 'Diamond'] = "Diamond";
|
|
1466
1481
|
TypeEnum[TypeEnum["Dissolve"] = 'Dissolve'] = "Dissolve";
|
|
1467
1482
|
TypeEnum[TypeEnum["EaseInOut"] = 'EaseInOut'] = "EaseInOut";
|
|
@@ -1591,6 +1606,8 @@ exports.Effect = Effect;
|
|
|
1591
1606
|
SubtypeEnum[SubtypeEnum["BottomLeft"] = 'BottomLeft'] = "BottomLeft";
|
|
1592
1607
|
SubtypeEnum[SubtypeEnum["BottomRight"] = 'BottomRight'] = "BottomRight";
|
|
1593
1608
|
SubtypeEnum[SubtypeEnum["Center"] = 'Center'] = "Center";
|
|
1609
|
+
SubtypeEnum[SubtypeEnum["ObjectCenter"] = 'ObjectCenter'] = "ObjectCenter";
|
|
1610
|
+
SubtypeEnum[SubtypeEnum["SlideCenter"] = 'SlideCenter'] = "SlideCenter";
|
|
1594
1611
|
SubtypeEnum[SubtypeEnum["Clockwise"] = 'Clockwise'] = "Clockwise";
|
|
1595
1612
|
SubtypeEnum[SubtypeEnum["CounterClockwise"] = 'CounterClockwise'] = "CounterClockwise";
|
|
1596
1613
|
SubtypeEnum[SubtypeEnum["GradualAndCycleClockwise"] = 'GradualAndCycleClockwise'] = "GradualAndCycleClockwise";
|
|
@@ -3200,6 +3217,27 @@ class PictureFill extends FillFormat {
|
|
|
3200
3217
|
}
|
|
3201
3218
|
exports.PictureFill = PictureFill;
|
|
3202
3219
|
(function (PictureFill) {
|
|
3220
|
+
let TileAlignmentEnum;
|
|
3221
|
+
(function (TileAlignmentEnum) {
|
|
3222
|
+
TileAlignmentEnum[TileAlignmentEnum["TopLeft"] = 'TopLeft'] = "TopLeft";
|
|
3223
|
+
TileAlignmentEnum[TileAlignmentEnum["Top"] = 'Top'] = "Top";
|
|
3224
|
+
TileAlignmentEnum[TileAlignmentEnum["TopRight"] = 'TopRight'] = "TopRight";
|
|
3225
|
+
TileAlignmentEnum[TileAlignmentEnum["Left"] = 'Left'] = "Left";
|
|
3226
|
+
TileAlignmentEnum[TileAlignmentEnum["Center"] = 'Center'] = "Center";
|
|
3227
|
+
TileAlignmentEnum[TileAlignmentEnum["Right"] = 'Right'] = "Right";
|
|
3228
|
+
TileAlignmentEnum[TileAlignmentEnum["BottomLeft"] = 'BottomLeft'] = "BottomLeft";
|
|
3229
|
+
TileAlignmentEnum[TileAlignmentEnum["Bottom"] = 'Bottom'] = "Bottom";
|
|
3230
|
+
TileAlignmentEnum[TileAlignmentEnum["BottomRight"] = 'BottomRight'] = "BottomRight";
|
|
3231
|
+
TileAlignmentEnum[TileAlignmentEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
|
|
3232
|
+
})(TileAlignmentEnum = PictureFill.TileAlignmentEnum || (PictureFill.TileAlignmentEnum = {}));
|
|
3233
|
+
let TileFlipEnum;
|
|
3234
|
+
(function (TileFlipEnum) {
|
|
3235
|
+
TileFlipEnum[TileFlipEnum["NoFlip"] = 'NoFlip'] = "NoFlip";
|
|
3236
|
+
TileFlipEnum[TileFlipEnum["FlipX"] = 'FlipX'] = "FlipX";
|
|
3237
|
+
TileFlipEnum[TileFlipEnum["FlipY"] = 'FlipY'] = "FlipY";
|
|
3238
|
+
TileFlipEnum[TileFlipEnum["FlipBoth"] = 'FlipBoth'] = "FlipBoth";
|
|
3239
|
+
TileFlipEnum[TileFlipEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
|
|
3240
|
+
})(TileFlipEnum = PictureFill.TileFlipEnum || (PictureFill.TileFlipEnum = {}));
|
|
3203
3241
|
let PictureFillModeEnum;
|
|
3204
3242
|
(function (PictureFillModeEnum) {
|
|
3205
3243
|
PictureFillModeEnum[PictureFillModeEnum["Tile"] = 'Tile'] = "Tile";
|