asposeslidescloud 21.12.0 → 22.1.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  # Nodejs REST API to Process Presentation in Cloud
4
4
  This repository contains Aspose.Slides Cloud SDK for Nodejs source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/nodejs) using Aspose.slides Cloud REST APIs in your Nodejs applications.
5
5
 
6
- You may want to check out Aspose free [PowerPoint to Word Converter](https://products.aspose.app/slides/conversion/ppt-to-word) because it is a live implementation of one of the most popular conversion processes.
6
+ You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/slides/conversion), [PPT to Word](https://products.aspose.app/slides/conversion/ppt-to-word), and [PPT to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg) converters because they are live implementations of popular conversion processes.
7
7
 
8
8
  ## Presentation Processing Features
9
9
 
@@ -26,44 +26,14 @@ You may want to check out Aspose free [PowerPoint to Word Converter](https://pro
26
26
  **Web:** HTML/HTML5
27
27
  **Other:** SWF (export whole presentations)
28
28
 
29
- ## Enhancements in Version 21.12
30
- * New **ThreeDFormat**, **Camera**, **LightRig** and **ShapeBevel** classes allow to get and set 3D effects for shapes. New **ThreeDFormat** property of **ShapeBase** class allows to access those objects.
31
- * The declaration of **GetAnimation** and **GetSpecialSlideAnimation** methods is changed. New **paragraphIndex** parameter allows to get effects for a specific paragraph. New **ParagraphIndex** property of **Effect** class allows to set effects for a specific paragraph.
32
- * You can now use **Html5** value for **format** parameter in conversion methods and export presentations to HTML5 format.
33
- * New **Width** and **Height** parameters were added to **ExportOptions** class. You can now set custom size when convertion your documents.
34
-
35
- ## Enhancements in Version 21.9
36
- * New **options** parameter for **Convert**, **ConvertAndSave**, **DownloadSlideOnline**, **SaveSlideOnline**, **DownloadShapeOnline** and **SaveShapeOnline** methods that allows to specify options when converting presentations from request body.
37
- * New methods to manage shapes and animation for special slide types: master, layout and notes slides. The new methods are **GetSpecialSlideShapes**, **GetSpecialSlideSubshapes, **GetSpecialSlideShape**, **GetSpecialSlideSubshape**, **GetSpecialSlideParagraphs**, **GetSpecialSlideSubshapeParagraphs**, **GetSpecialSlideParagraph**, **GetSpecialSlideSubshapeParagraph**, **GetSpecialSlidePortions**, **GetSpecialSlideSubshapePortions**, **GetSpecialSlidePortion**, **GetSpecialSlideSubshapePortion**, **CreateSpecialSlideShape**, **CreateSpecialSlideSubshape**, **CreateSpecialSlideParagraph**, **CreateSpecialSlideSubshapeParagraph**, **CreateSpecialSlidePortion**, **CreateSpecialSlideSubshapePortion**, **UpdateSpecialSlideShape**, **UpdateSpecialSlideSubshape**, **UpdateSpecialSlideParagraph**, **UpdateSpecialSlideSubshapeParagraph**, **UpdateSpecialSlidePortion**, **UpdateSpecialSlideSubshapePortion**, **DeleteSpecialSlideShapes**, **DeleteSpecialSlideSubshapes**, **DeleteSpecialSlideShape**, **DeleteSpecialSlideSubshape**, **DeleteSpecialSlideParagraphs**, **DeleteSpecialSlideSubshapeParagraphs**, **DeleteSpecialSlideParagraph**, **DeleteSpecialSlideSubshapeParagraph**, **DeleteSpecialSlidePortions**, **DeleteSpecialSlideSubshapePortions**, **DeleteSpecialSlidePortion**, **DeleteSpecialSlideSubshapePortion**, **DownloadSpecialSlideShape**, **DownloadSpecialSlideSubshape**, **SaveSpecialSlideShape**, **SaveSpecialSlideSubshape**, **AlignSpecialSlideShapes**, **GetSpecialSlideAnimation**, **SetSpecialSlideAnimation**, **CreateSpecialSlideAnimationInteractiveSequence**, **CreateSpecialSlideAnimationEffect**, **CreateSpecialSlideAnimationInteractiveSequenceEffect**, **UpdateSpecialSlideAnimationEffect**, **UpdateSpecialSlideAnimationInteractiveSequenceEffect**, **DeleteSpecialSlideAnimation**, **DeleteSpecialSlideAnimationMainSequence**, **DeleteSpecialSlideAnimationInteractiveSequences**, **DeleteSpecialSlideAnimationInteractiveSequence**, **DeleteSpecialSlideAnimationEffect**, **DeleteSpecialSlideAnimationInteractiveSequenceEffect**.
38
-
39
- ## Enhancements in Version 21.8
40
- * New **slides** parameter for **Convert**, **ConvertAndSave**, **DownloadPresentation** and **SavePresentation** methods that allows to convert a specified set of slides in the presentation.
41
-
42
- ## Enhancements in Version 21.6
43
- * New **CreateComment**, **CreateCommentOnline**, **DeleteComments**, **DeleteCommentsOnline**, **DeleteSlideComments** and **DeleteSlideCommentsOnline** methods to add or delete comments in presentations.
44
-
45
- ## Enhancements in Version 21.4
46
- * New **CreateWatermark**, **CreateWatermarkOnline**, **CreateImageWatermark**, **CreateImageWatermarkOnline**, **DeleteWatermark** and **DeleteWatermarkOnline** methods to add or delete and remove watermark in presentations.
47
- * New **SetProtection**, **DeleteProtection**, **SetProtectionOnline** and **DeleteProtectionOnline** methods to set or clear presentation protection properties like read/write password, readonly flag.
48
-
49
- ## Enhancements in Version 21.3
50
- * New **MergeOnline** and **MergeAndSaveOnline** methods to merge presentations from multipart request body.
51
- * New **SplitOnline** and **SplitAndSaveOnline** methods to split presentation from request body.
52
- * New **DownloadSlideOnline**, **DownloadShapeOnline**, **DownloadImageDefaultFormatOnline**, **DownloadImageOnline**, **SaveSlideOnline** and **SaveShapeOnline** methods to convert slides, shapes and images to spefified format using presentation from request body.
53
- * New **DownloadImagesDefaultFormat**, **DownloadImages**, **DownloadImagesDefaultFormatOnline** and **DownloadImagesDefaultFormatOnline** methods to download all images from presentation as a ZIP archive.
54
- * New **ReplacePresentationTextOnline** and **ReplaceSlideTextOnline** methods to replace text in presentation from request body.
55
- * New **AlignShapes** method to align shapes in a slide.
56
- * Simplified method declarations. See the [Release notes](https://docs.aspose.cloud/slides/aspose-slides-cloud-21-3-release-notes/) for details. Old method declarations are deprecated and will be deleted in 21.6 release.
57
-
58
- ## Enhancements in Version 21.2
59
- * New **Map** value of **ChartTypeEnum** type to manage map charts.
60
- * New **SketchFromat** property of **LineFormat** class.
61
-
62
- ## Enhancements in Version 21.1
63
- * New **PostSlidesDocumentFromPdf** method allows creating presentations or adding slides to it using a PDF file as a source.
64
- * New **GetSlidesSlideProperties**, **GetSlidesProtectionProperties**, **PutSlidesSlideProperties**, **PutSlidesProtectionProperties** allow to get/set presentaion properties like slide size, orientaion, read-only etc.
65
- * **PutSlidesDocumentFromHtml** method is deprecated and will be deleted in 21.4 release. Use **PostSlidesDocumentFromHtml** method instead.
66
- * **PutSlidesSlideSize** method is deprecated and will be deleted in 21.4 release. Use **PutSlidesProtectionProperties** method instead.
29
+ ## Enhancements in Version 22.1
30
+ * New **MathParagraph** property of **Portion** class allows to get and set math formulas. A set of **MathElement** subclasses allows to specify complex mathematical expressions.
31
+ * New **DownloadPortionAsMathMl** and **SavePortionAsMathMl** methods allow to export math formulas to MathML format.
32
+ * New **HyperlinkClick** and **HyperlinkMouseOver** methods of **ShapeBase** and **Portion** classes enable creation and manipulating hyperlinks for shapes and portions.
33
+ * New methods **GetShapeGeometryPath** and **SetShapeGeometryPath** can be used to get or set geometry paths for shapes. You can use lines, arcs and curves to specify custom shape boundaries.
34
+ * New **AlignSubshapes** method enables aligning shapes within a shape group.
35
+ * New **PlayAcrossSlides** and **RewindAudio** properties are added to **AudioFrame** class.
36
+ * Added **InClickSequence** to the list of allowable values for **AudioPlayModePreset** and **AudioPlayModePreset** enum types.
67
37
 
68
38
  ## Licensing
69
39
  All Aspose.Slides Cloud SDKs are licensed under MIT License.
package/api.js CHANGED
@@ -166,6 +166,59 @@ class SlidesApi {
166
166
  return Promise.resolve({ body: result, response });
167
167
  });
168
168
  }
169
+ /**
170
+ * 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 (for group shapes only).
171
+ * @param name Document name.
172
+ * @param slideIndex Slide index.
173
+ * @param path Shape path (for smart art and group shapes).
174
+ * @param alignmentType Alignment type that will be applied to the shapes.
175
+ * @param alignToSlide If true, shapes will be aligned relative to the slide edges.
176
+ * @param shapes Shapes indexes.
177
+ * @param password Document password.
178
+ * @param folder Document folder.
179
+ * @param storage Document storage.
180
+ */
181
+ alignSubshapes(name, slideIndex, path = null, alignmentType, alignToSlide = null, shapes = null, password = null, folder = null, storage = null) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ // verify required parameter 'name' is not null or undefined
184
+ if (name === null || name === undefined) {
185
+ throw new Error('The required parameter "name" was null or undefined when calling alignSubshapes.');
186
+ }
187
+ // verify required parameter 'slideIndex' is not null or undefined
188
+ if (slideIndex === null || slideIndex === undefined) {
189
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling alignSubshapes.');
190
+ }
191
+ // verify required parameter 'alignmentType' is not null or undefined
192
+ if (alignmentType === null || alignmentType === undefined) {
193
+ throw new Error('The required parameter "alignmentType" was null or undefined when calling alignSubshapes.');
194
+ }
195
+ // verify value of enum parameter 'alignmentType' is valid
196
+ if (!Object.keys(model.ShapesAlignmentType).filter(i => model.ShapesAlignmentType[i].toLowerCase() == alignmentType.toString().toLowerCase()).length) {
197
+ throw new Error('Invalid value for alignmentType: ' + alignmentType + '. Must be one of the following: ' + Object.keys(model.ShapesAlignmentType).map(key => model.ShapesAlignmentType[key]).join());
198
+ }
199
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/align/{alignmentType}";
200
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
201
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
202
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
203
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "alignmentType", objectSerializer_1.ObjectSerializer.toString(alignmentType));
204
+ const queryParameters = {};
205
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "alignToSlide", alignToSlide);
206
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "shapes", shapes);
207
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "folder", folder);
208
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "storage", storage);
209
+ const requestOptions = {
210
+ method: "POST",
211
+ qs: queryParameters,
212
+ headers: {},
213
+ uri: localVarPath,
214
+ json: true
215
+ };
216
+ requestHelper_1.addHeaderParameter(requestOptions.headers, "password", password);
217
+ const response = yield requestHelper_1.invokeApiMethod(requestOptions, this.configuration);
218
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Shapes");
219
+ return Promise.resolve({ body: result, response });
220
+ });
221
+ }
169
222
  /**
170
223
  * Convert presentation from request content to format specified.
171
224
  * @param document Document data.
@@ -2792,7 +2845,7 @@ class SlidesApi {
2792
2845
  * @param name Document name.
2793
2846
  * @param slideIndex Slide index.
2794
2847
  * @param shapeIndex Shape index.
2795
- * @param paragraphs The indices of the shapes to be deleted; delete all by default.
2848
+ * @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
2796
2849
  * @param password Document password.
2797
2850
  * @param folder Document folder.
2798
2851
  * @param storage Document storage.
@@ -2893,7 +2946,7 @@ class SlidesApi {
2893
2946
  * @param slideIndex Slide index.
2894
2947
  * @param shapeIndex Shape index.
2895
2948
  * @param paragraphIndex Paragraph index.
2896
- * @param portions The indices of the shapes to be deleted; delete all by default.
2949
+ * @param portions The indices of the portions to be deleted; delete all by default.
2897
2950
  * @param password Document password.
2898
2951
  * @param folder Document folder.
2899
2952
  * @param storage Document storage.
@@ -4412,7 +4465,7 @@ class SlidesApi {
4412
4465
  * @param slideIndex Slide index.
4413
4466
  * @param path Shape path.
4414
4467
  * @param shapeIndex Shape index.
4415
- * @param paragraphs The indices of the shapes to be deleted; delete all by default.
4468
+ * @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
4416
4469
  * @param password Document password.
4417
4470
  * @param folder Document folder.
4418
4471
  * @param storage Document storage.
@@ -4517,7 +4570,7 @@ class SlidesApi {
4517
4570
  * @param path Shape path.
4518
4571
  * @param shapeIndex Shape index.
4519
4572
  * @param paragraphIndex Paragraph index.
4520
- * @param portions The indices of the shapes to be deleted; delete all by default.
4573
+ * @param portions The indices of the portions to be deleted; delete all by default.
4521
4574
  * @param password Document password.
4522
4575
  * @param folder Document folder.
4523
4576
  * @param storage Document storage.
@@ -5111,6 +5164,61 @@ class SlidesApi {
5111
5164
  return Promise.resolve({ body: result, response });
5112
5165
  });
5113
5166
  }
5167
+ /**
5168
+ * Convert Mathematical Text to MathML Format
5169
+ * @param name Document name.
5170
+ * @param slideIndex Slide index.
5171
+ * @param shapeIndex Shape index.
5172
+ * @param paragraphIndex Paragraph index.
5173
+ * @param portionIndex Portion index.
5174
+ * @param password Document password.
5175
+ * @param folder Document folder.
5176
+ * @param storage Document storage.
5177
+ */
5178
+ downloadPortionAsMathMl(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
5179
+ return __awaiter(this, void 0, void 0, function* () {
5180
+ // verify required parameter 'name' is not null or undefined
5181
+ if (name === null || name === undefined) {
5182
+ throw new Error('The required parameter "name" was null or undefined when calling downloadPortionAsMathMl.');
5183
+ }
5184
+ // verify required parameter 'slideIndex' is not null or undefined
5185
+ if (slideIndex === null || slideIndex === undefined) {
5186
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling downloadPortionAsMathMl.');
5187
+ }
5188
+ // verify required parameter 'shapeIndex' is not null or undefined
5189
+ if (shapeIndex === null || shapeIndex === undefined) {
5190
+ throw new Error('The required parameter "shapeIndex" was null or undefined when calling downloadPortionAsMathMl.');
5191
+ }
5192
+ // verify required parameter 'paragraphIndex' is not null or undefined
5193
+ if (paragraphIndex === null || paragraphIndex === undefined) {
5194
+ throw new Error('The required parameter "paragraphIndex" was null or undefined when calling downloadPortionAsMathMl.');
5195
+ }
5196
+ // verify required parameter 'portionIndex' is not null or undefined
5197
+ if (portionIndex === null || portionIndex === undefined) {
5198
+ throw new Error('The required parameter "portionIndex" was null or undefined when calling downloadPortionAsMathMl.');
5199
+ }
5200
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml";
5201
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
5202
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
5203
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
5204
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
5205
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
5206
+ const queryParameters = {};
5207
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "folder", folder);
5208
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "storage", storage);
5209
+ const requestOptions = {
5210
+ method: "POST",
5211
+ qs: queryParameters,
5212
+ headers: {},
5213
+ uri: localVarPath,
5214
+ encoding: null
5215
+ };
5216
+ requestHelper_1.addHeaderParameter(requestOptions.headers, "password", password);
5217
+ const response = yield requestHelper_1.invokeApiMethod(requestOptions, this.configuration);
5218
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
5219
+ return Promise.resolve({ body: result, response });
5220
+ });
5221
+ }
5114
5222
  /**
5115
5223
  * Save a presentation to a specified format.
5116
5224
  * @param name Document name.
@@ -6693,6 +6801,49 @@ class SlidesApi {
6693
6801
  return Promise.resolve({ body: result, response });
6694
6802
  });
6695
6803
  }
6804
+ /**
6805
+ * Returns geometry path of the shape
6806
+ * @param name Document name.
6807
+ * @param slideIndex Slide index.
6808
+ * @param shapeIndex Shape index.
6809
+ * @param password Document password.
6810
+ * @param folder Document folder.
6811
+ * @param storage Document storage.
6812
+ */
6813
+ getShapeGeometryPath(name, slideIndex, shapeIndex, password = null, folder = null, storage = null) {
6814
+ return __awaiter(this, void 0, void 0, function* () {
6815
+ // verify required parameter 'name' is not null or undefined
6816
+ if (name === null || name === undefined) {
6817
+ throw new Error('The required parameter "name" was null or undefined when calling getShapeGeometryPath.');
6818
+ }
6819
+ // verify required parameter 'slideIndex' is not null or undefined
6820
+ if (slideIndex === null || slideIndex === undefined) {
6821
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling getShapeGeometryPath.');
6822
+ }
6823
+ // verify required parameter 'shapeIndex' is not null or undefined
6824
+ if (shapeIndex === null || shapeIndex === undefined) {
6825
+ throw new Error('The required parameter "shapeIndex" was null or undefined when calling getShapeGeometryPath.');
6826
+ }
6827
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/geometryPath";
6828
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
6829
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
6830
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
6831
+ const queryParameters = {};
6832
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "folder", folder);
6833
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "storage", storage);
6834
+ const requestOptions = {
6835
+ method: "GET",
6836
+ qs: queryParameters,
6837
+ headers: {},
6838
+ uri: localVarPath,
6839
+ json: true
6840
+ };
6841
+ requestHelper_1.addHeaderParameter(requestOptions.headers, "password", password);
6842
+ const response = yield requestHelper_1.invokeApiMethod(requestOptions, this.configuration);
6843
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "GeometryPaths");
6844
+ return Promise.resolve({ body: result, response });
6845
+ });
6846
+ }
6696
6847
  /**
6697
6848
  * Read slide shapes info.
6698
6849
  * @param name Document name.
@@ -8781,6 +8932,66 @@ class SlidesApi {
8781
8932
  return Promise.resolve({ body: result, response });
8782
8933
  });
8783
8934
  }
8935
+ /**
8936
+ * Convert Mathematical Text to MathML Format and saves result to the storage
8937
+ * @param name Document name.
8938
+ * @param slideIndex Slide index.
8939
+ * @param shapeIndex Shape index.
8940
+ * @param paragraphIndex Paragraph index.
8941
+ * @param portionIndex Portion index.
8942
+ * @param outPath Path to save result.
8943
+ * @param password Document password.
8944
+ * @param folder Presentation folder.
8945
+ * @param storage Presentation storage.
8946
+ */
8947
+ savePortionAsMathMl(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, outPath, password = null, folder = null, storage = null) {
8948
+ return __awaiter(this, void 0, void 0, function* () {
8949
+ // verify required parameter 'name' is not null or undefined
8950
+ if (name === null || name === undefined) {
8951
+ throw new Error('The required parameter "name" was null or undefined when calling savePortionAsMathMl.');
8952
+ }
8953
+ // verify required parameter 'slideIndex' is not null or undefined
8954
+ if (slideIndex === null || slideIndex === undefined) {
8955
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling savePortionAsMathMl.');
8956
+ }
8957
+ // verify required parameter 'shapeIndex' is not null or undefined
8958
+ if (shapeIndex === null || shapeIndex === undefined) {
8959
+ throw new Error('The required parameter "shapeIndex" was null or undefined when calling savePortionAsMathMl.');
8960
+ }
8961
+ // verify required parameter 'paragraphIndex' is not null or undefined
8962
+ if (paragraphIndex === null || paragraphIndex === undefined) {
8963
+ throw new Error('The required parameter "paragraphIndex" was null or undefined when calling savePortionAsMathMl.');
8964
+ }
8965
+ // verify required parameter 'portionIndex' is not null or undefined
8966
+ if (portionIndex === null || portionIndex === undefined) {
8967
+ throw new Error('The required parameter "portionIndex" was null or undefined when calling savePortionAsMathMl.');
8968
+ }
8969
+ // verify required parameter 'outPath' is not null or undefined
8970
+ if (outPath === null || outPath === undefined) {
8971
+ throw new Error('The required parameter "outPath" was null or undefined when calling savePortionAsMathMl.');
8972
+ }
8973
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml";
8974
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
8975
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
8976
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
8977
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
8978
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
8979
+ const queryParameters = {};
8980
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "outPath", outPath);
8981
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "folder", folder);
8982
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "storage", storage);
8983
+ const requestOptions = {
8984
+ method: "PUT",
8985
+ qs: queryParameters,
8986
+ headers: {},
8987
+ uri: localVarPath,
8988
+ json: true
8989
+ };
8990
+ requestHelper_1.addHeaderParameter(requestOptions.headers, "password", password);
8991
+ const response = yield requestHelper_1.invokeApiMethod(requestOptions, this.configuration);
8992
+ return Promise.resolve({ response });
8993
+ });
8994
+ }
8784
8995
  /**
8785
8996
  * Save a presentation to a specified format.
8786
8997
  * @param name Document name.
@@ -9725,6 +9936,54 @@ class SlidesApi {
9725
9936
  return Promise.resolve({ body: result, response });
9726
9937
  });
9727
9938
  }
9939
+ /**
9940
+ * Sets geometry path to the shape
9941
+ * @param name Document name.
9942
+ * @param slideIndex Slide index.
9943
+ * @param shapeIndex Shape index.
9944
+ * @param dto Geometry paths DTO.
9945
+ * @param password Document password.
9946
+ * @param folder Document folder.
9947
+ * @param storage Document storage.
9948
+ */
9949
+ setShapeGeometryPath(name, slideIndex, shapeIndex, dto, password = null, folder = null, storage = null) {
9950
+ return __awaiter(this, void 0, void 0, function* () {
9951
+ // verify required parameter 'name' is not null or undefined
9952
+ if (name === null || name === undefined) {
9953
+ throw new Error('The required parameter "name" was null or undefined when calling setShapeGeometryPath.');
9954
+ }
9955
+ // verify required parameter 'slideIndex' is not null or undefined
9956
+ if (slideIndex === null || slideIndex === undefined) {
9957
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling setShapeGeometryPath.');
9958
+ }
9959
+ // verify required parameter 'shapeIndex' is not null or undefined
9960
+ if (shapeIndex === null || shapeIndex === undefined) {
9961
+ throw new Error('The required parameter "shapeIndex" was null or undefined when calling setShapeGeometryPath.');
9962
+ }
9963
+ // verify required parameter 'dto' is not null or undefined
9964
+ if (dto === null || dto === undefined) {
9965
+ throw new Error('The required parameter "dto" was null or undefined when calling setShapeGeometryPath.');
9966
+ }
9967
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/geometryPath";
9968
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
9969
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
9970
+ localVarPath = requestHelper_1.addPathParameterToUrl(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
9971
+ const queryParameters = {};
9972
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "folder", folder);
9973
+ localVarPath = requestHelper_1.addQueryParameterToUrl(localVarPath, queryParameters, "storage", storage);
9974
+ const requestOptions = {
9975
+ method: "POST",
9976
+ qs: queryParameters,
9977
+ headers: {},
9978
+ uri: localVarPath,
9979
+ json: dto
9980
+ };
9981
+ requestHelper_1.addHeaderParameter(requestOptions.headers, "password", password);
9982
+ const response = yield requestHelper_1.invokeApiMethod(requestOptions, this.configuration);
9983
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "ShapeBase");
9984
+ return Promise.resolve({ body: result, response });
9985
+ });
9986
+ }
9728
9987
  /**
9729
9988
  * Set footer the slide.
9730
9989
  * @param name Document name.
@@ -144,7 +144,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
144
144
  if (!requestOptions.headers) {
145
145
  requestOptions.headers = {};
146
146
  }
147
- requestOptions.headers["x-aspose-client"] = "nodejs sdk v21.12.0";
147
+ requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.1.0";
148
148
  if (confguration.timeout) {
149
149
  requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
150
150
  }
package/model.js CHANGED
@@ -567,6 +567,7 @@ var ExportFormat;
567
567
  ExportFormat[ExportFormat["Gif"] = 'Gif'] = "Gif";
568
568
  ExportFormat[ExportFormat["Bmp"] = 'Bmp'] = "Bmp";
569
569
  ExportFormat[ExportFormat["Fodp"] = 'Fodp'] = "Fodp";
570
+ ExportFormat[ExportFormat["Xaml"] = 'Xaml'] = "Xaml";
570
571
  })(ExportFormat = exports.ExportFormat || (exports.ExportFormat = {}));
571
572
  /**
572
573
  * Represents export options for whole presentation.
@@ -631,6 +632,29 @@ exports.FillOverlayEffect = FillOverlayEffect;
631
632
  class FontSet {
632
633
  }
633
634
  exports.FontSet = FontSet;
635
+ /**
636
+ * Represents GeometryPath of the shape
637
+ */
638
+ class GeometryPath {
639
+ }
640
+ exports.GeometryPath = GeometryPath;
641
+ (function (GeometryPath) {
642
+ let FillModeEnum;
643
+ (function (FillModeEnum) {
644
+ FillModeEnum[FillModeEnum["None"] = 'None'] = "None";
645
+ FillModeEnum[FillModeEnum["Normal"] = 'Normal'] = "Normal";
646
+ FillModeEnum[FillModeEnum["Lighten"] = 'Lighten'] = "Lighten";
647
+ FillModeEnum[FillModeEnum["LightenLess"] = 'LightenLess'] = "LightenLess";
648
+ FillModeEnum[FillModeEnum["Darken"] = 'Darken'] = "Darken";
649
+ FillModeEnum[FillModeEnum["DarkenLess"] = 'DarkenLess'] = "DarkenLess";
650
+ })(FillModeEnum = GeometryPath.FillModeEnum || (GeometryPath.FillModeEnum = {}));
651
+ })(GeometryPath = exports.GeometryPath || (exports.GeometryPath = {}));
652
+ /**
653
+ * Represents container for GeometryPath objects
654
+ */
655
+ class GeometryPaths {
656
+ }
657
+ exports.GeometryPaths = GeometryPaths;
634
658
  /**
635
659
  * Represents glow effect
636
660
  */
@@ -643,6 +667,38 @@ exports.GlowEffect = GlowEffect;
643
667
  class GradientFillStop {
644
668
  }
645
669
  exports.GradientFillStop = GradientFillStop;
670
+ /**
671
+ * Hyperlink
672
+ */
673
+ class Hyperlink {
674
+ }
675
+ exports.Hyperlink = Hyperlink;
676
+ (function (Hyperlink) {
677
+ let ActionTypeEnum;
678
+ (function (ActionTypeEnum) {
679
+ ActionTypeEnum[ActionTypeEnum["NoAction"] = 'NoAction'] = "NoAction";
680
+ ActionTypeEnum[ActionTypeEnum["Hyperlink"] = 'Hyperlink'] = "Hyperlink";
681
+ ActionTypeEnum[ActionTypeEnum["JumpFirstSlide"] = 'JumpFirstSlide'] = "JumpFirstSlide";
682
+ ActionTypeEnum[ActionTypeEnum["JumpPreviousSlide"] = 'JumpPreviousSlide'] = "JumpPreviousSlide";
683
+ ActionTypeEnum[ActionTypeEnum["JumpNextSlide"] = 'JumpNextSlide'] = "JumpNextSlide";
684
+ ActionTypeEnum[ActionTypeEnum["JumpLastSlide"] = 'JumpLastSlide'] = "JumpLastSlide";
685
+ ActionTypeEnum[ActionTypeEnum["JumpEndShow"] = 'JumpEndShow'] = "JumpEndShow";
686
+ ActionTypeEnum[ActionTypeEnum["JumpLastViewedSlide"] = 'JumpLastViewedSlide'] = "JumpLastViewedSlide";
687
+ ActionTypeEnum[ActionTypeEnum["JumpSpecificSlide"] = 'JumpSpecificSlide'] = "JumpSpecificSlide";
688
+ ActionTypeEnum[ActionTypeEnum["StartCustomSlideShow"] = 'StartCustomSlideShow'] = "StartCustomSlideShow";
689
+ ActionTypeEnum[ActionTypeEnum["OpenFile"] = 'OpenFile'] = "OpenFile";
690
+ ActionTypeEnum[ActionTypeEnum["OpenPresentation"] = 'OpenPresentation'] = "OpenPresentation";
691
+ ActionTypeEnum[ActionTypeEnum["StartStopMedia"] = 'StartStopMedia'] = "StartStopMedia";
692
+ ActionTypeEnum[ActionTypeEnum["StartMacro"] = 'StartMacro'] = "StartMacro";
693
+ ActionTypeEnum[ActionTypeEnum["StartProgram"] = 'StartProgram'] = "StartProgram";
694
+ ActionTypeEnum[ActionTypeEnum["Unknown"] = 'Unknown'] = "Unknown";
695
+ })(ActionTypeEnum = Hyperlink.ActionTypeEnum || (Hyperlink.ActionTypeEnum = {}));
696
+ let ColorSourceEnum;
697
+ (function (ColorSourceEnum) {
698
+ ColorSourceEnum[ColorSourceEnum["Styles"] = 'Styles'] = "Styles";
699
+ ColorSourceEnum[ColorSourceEnum["PortionFormat"] = 'PortionFormat'] = "PortionFormat";
700
+ })(ColorSourceEnum = Hyperlink.ColorSourceEnum || (Hyperlink.ColorSourceEnum = {}));
701
+ })(Hyperlink = exports.Hyperlink || (exports.Hyperlink = {}));
646
702
  /**
647
703
  * Represents export options for whole presentation.
648
704
  */
@@ -823,6 +879,51 @@ exports.LineFormat = LineFormat;
823
879
  SketchTypeEnum[SketchTypeEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
824
880
  })(SketchTypeEnum = LineFormat.SketchTypeEnum || (LineFormat.SketchTypeEnum = {}));
825
881
  })(LineFormat = exports.LineFormat || (exports.LineFormat = {}));
882
+ /**
883
+ * Math element.
884
+ */
885
+ class MathElement {
886
+ }
887
+ exports.MathElement = MathElement;
888
+ (function (MathElement) {
889
+ let TypeEnum;
890
+ (function (TypeEnum) {
891
+ TypeEnum[TypeEnum["Accent"] = 'Accent'] = "Accent";
892
+ TypeEnum[TypeEnum["Array"] = 'Array'] = "Array";
893
+ TypeEnum[TypeEnum["Bar"] = 'Bar'] = "Bar";
894
+ TypeEnum[TypeEnum["Block"] = 'Block'] = "Block";
895
+ TypeEnum[TypeEnum["BorderBox"] = 'BorderBox'] = "BorderBox";
896
+ TypeEnum[TypeEnum["Box"] = 'Box'] = "Box";
897
+ TypeEnum[TypeEnum["Delimiter"] = 'Delimiter'] = "Delimiter";
898
+ TypeEnum[TypeEnum["Text"] = 'Text'] = "Text";
899
+ TypeEnum[TypeEnum["Fraction"] = 'Fraction'] = "Fraction";
900
+ TypeEnum[TypeEnum["Function"] = 'Function'] = "Function";
901
+ TypeEnum[TypeEnum["GroupingCharacter"] = 'GroupingCharacter'] = "GroupingCharacter";
902
+ TypeEnum[TypeEnum["LeftSubSuperscriptElement"] = 'LeftSubSuperscriptElement'] = "LeftSubSuperscriptElement";
903
+ TypeEnum[TypeEnum["Limit"] = 'Limit'] = "Limit";
904
+ TypeEnum[TypeEnum["Matrix"] = 'Matrix'] = "Matrix";
905
+ TypeEnum[TypeEnum["NaryOperator"] = 'NaryOperator'] = "NaryOperator";
906
+ TypeEnum[TypeEnum["Radical"] = 'Radical'] = "Radical";
907
+ TypeEnum[TypeEnum["RightSubSuperscriptElement"] = 'RightSubSuperscriptElement'] = "RightSubSuperscriptElement";
908
+ TypeEnum[TypeEnum["SubscriptElement"] = 'SubscriptElement'] = "SubscriptElement";
909
+ TypeEnum[TypeEnum["SuperscriptElement"] = 'SuperscriptElement'] = "SuperscriptElement";
910
+ })(TypeEnum = MathElement.TypeEnum || (MathElement.TypeEnum = {}));
911
+ })(MathElement = exports.MathElement || (exports.MathElement = {}));
912
+ /**
913
+ * Mathematical paragraph that is a container for mathematical blocks
914
+ */
915
+ class MathParagraph {
916
+ }
917
+ exports.MathParagraph = MathParagraph;
918
+ (function (MathParagraph) {
919
+ let JustificationEnum;
920
+ (function (JustificationEnum) {
921
+ JustificationEnum[JustificationEnum["LeftJustified"] = 'LeftJustified'] = "LeftJustified";
922
+ JustificationEnum[JustificationEnum["RightJustified"] = 'RightJustified'] = "RightJustified";
923
+ JustificationEnum[JustificationEnum["Centered"] = 'Centered'] = "Centered";
924
+ JustificationEnum[JustificationEnum["CenteredAsGroup"] = 'CenteredAsGroup'] = "CenteredAsGroup";
925
+ })(JustificationEnum = MathParagraph.JustificationEnum || (MathParagraph.JustificationEnum = {}));
926
+ })(MathParagraph = exports.MathParagraph || (exports.MathParagraph = {}));
826
927
  /**
827
928
  * Merging source.
828
929
  */
@@ -886,6 +987,23 @@ exports.OutputFile = OutputFile;
886
987
  TypeEnum[TypeEnum["Response"] = 'Response'] = "Response";
887
988
  })(TypeEnum = OutputFile.TypeEnum || (OutputFile.TypeEnum = {}));
888
989
  })(OutputFile = exports.OutputFile || (exports.OutputFile = {}));
990
+ /**
991
+ * Represents segment of geometry path
992
+ */
993
+ class PathSegment {
994
+ }
995
+ exports.PathSegment = PathSegment;
996
+ (function (PathSegment) {
997
+ let TypeEnum;
998
+ (function (TypeEnum) {
999
+ TypeEnum[TypeEnum["Close"] = 'Close'] = "Close";
1000
+ TypeEnum[TypeEnum["MoveTo"] = 'MoveTo'] = "MoveTo";
1001
+ TypeEnum[TypeEnum["LineTo"] = 'LineTo'] = "LineTo";
1002
+ TypeEnum[TypeEnum["ArcTo"] = 'ArcTo'] = "ArcTo";
1003
+ TypeEnum[TypeEnum["QuadBezierTo"] = 'QuadBezierTo'] = "QuadBezierTo";
1004
+ TypeEnum[TypeEnum["CubicBezierTo"] = 'CubicBezierTo'] = "CubicBezierTo";
1005
+ })(TypeEnum = PathSegment.TypeEnum || (PathSegment.TypeEnum = {}));
1006
+ })(PathSegment = exports.PathSegment || (exports.PathSegment = {}));
889
1007
  /**
890
1008
  * Represents pipeline for one input document.
891
1009
  */
@@ -1227,6 +1345,7 @@ var SlideExportFormat;
1227
1345
  SlideExportFormat[SlideExportFormat["Potm"] = 'Potm'] = "Potm";
1228
1346
  SlideExportFormat[SlideExportFormat["Svg"] = 'Svg'] = "Svg";
1229
1347
  SlideExportFormat[SlideExportFormat["Fodp"] = 'Fodp'] = "Fodp";
1348
+ SlideExportFormat[SlideExportFormat["Xaml"] = 'Xaml'] = "Xaml";
1230
1349
  })(SlideExportFormat = exports.SlideExportFormat || (exports.SlideExportFormat = {}));
1231
1350
  /**
1232
1351
  * Smart art node.
@@ -1373,6 +1492,16 @@ exports.ThreeDFormat = ThreeDFormat;
1373
1492
  MaterialEnum[MaterialEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
1374
1493
  })(MaterialEnum = ThreeDFormat.MaterialEnum || (ThreeDFormat.MaterialEnum = {}));
1375
1494
  })(ThreeDFormat = exports.ThreeDFormat || (exports.ThreeDFormat = {}));
1495
+ /**
1496
+ * Specifies the accent function, consisting of a base and a combining diacritical mark
1497
+ */
1498
+ class AccentElement extends MathElement {
1499
+ constructor() {
1500
+ super();
1501
+ this.type = AccentElement.TypeEnum.Accent;
1502
+ }
1503
+ }
1504
+ exports.AccentElement = AccentElement;
1376
1505
  /**
1377
1506
  * Add layout slide task.
1378
1507
  */
@@ -1413,6 +1542,61 @@ class AddSlide extends Task {
1413
1542
  }
1414
1543
  }
1415
1544
  exports.AddSlide = AddSlide;
1545
+ /**
1546
+ * Arc segment of the geometry path
1547
+ */
1548
+ class ArcToPathSegment extends PathSegment {
1549
+ constructor() {
1550
+ super();
1551
+ this.type = ArcToPathSegment.TypeEnum.ArcTo;
1552
+ }
1553
+ }
1554
+ exports.ArcToPathSegment = ArcToPathSegment;
1555
+ /**
1556
+ * An array of elements.
1557
+ */
1558
+ class ArrayElement extends MathElement {
1559
+ constructor() {
1560
+ super();
1561
+ this.type = ArrayElement.TypeEnum.Array;
1562
+ }
1563
+ }
1564
+ exports.ArrayElement = ArrayElement;
1565
+ (function (ArrayElement) {
1566
+ let BaseJustificationEnum;
1567
+ (function (BaseJustificationEnum) {
1568
+ BaseJustificationEnum[BaseJustificationEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
1569
+ BaseJustificationEnum[BaseJustificationEnum["Top"] = 'Top'] = "Top";
1570
+ BaseJustificationEnum[BaseJustificationEnum["Center"] = 'Center'] = "Center";
1571
+ BaseJustificationEnum[BaseJustificationEnum["Bottom"] = 'Bottom'] = "Bottom";
1572
+ })(BaseJustificationEnum = ArrayElement.BaseJustificationEnum || (ArrayElement.BaseJustificationEnum = {}));
1573
+ let RowSpacingRuleEnum;
1574
+ (function (RowSpacingRuleEnum) {
1575
+ RowSpacingRuleEnum[RowSpacingRuleEnum["SingleLineGap"] = 'SingleLineGap'] = "SingleLineGap";
1576
+ RowSpacingRuleEnum[RowSpacingRuleEnum["OneAndAHalfLineGap"] = 'OneAndAHalfLineGap'] = "OneAndAHalfLineGap";
1577
+ RowSpacingRuleEnum[RowSpacingRuleEnum["TwoLineGap"] = 'TwoLineGap'] = "TwoLineGap";
1578
+ RowSpacingRuleEnum[RowSpacingRuleEnum["Exactly"] = 'Exactly'] = "Exactly";
1579
+ RowSpacingRuleEnum[RowSpacingRuleEnum["Multiple"] = 'Multiple'] = "Multiple";
1580
+ })(RowSpacingRuleEnum = ArrayElement.RowSpacingRuleEnum || (ArrayElement.RowSpacingRuleEnum = {}));
1581
+ })(ArrayElement = exports.ArrayElement || (exports.ArrayElement = {}));
1582
+ /**
1583
+ * Specifies the bar function, consisting of a base argument and an overbar or underbar
1584
+ */
1585
+ class BarElement extends MathElement {
1586
+ constructor() {
1587
+ super();
1588
+ this.type = BarElement.TypeEnum.Bar;
1589
+ }
1590
+ }
1591
+ exports.BarElement = BarElement;
1592
+ (function (BarElement) {
1593
+ let PositionEnum;
1594
+ (function (PositionEnum) {
1595
+ PositionEnum[PositionEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
1596
+ PositionEnum[PositionEnum["Top"] = 'Top'] = "Top";
1597
+ PositionEnum[PositionEnum["Bottom"] = 'Bottom'] = "Bottom";
1598
+ })(PositionEnum = BarElement.PositionEnum || (BarElement.PositionEnum = {}));
1599
+ })(BarElement = exports.BarElement || (exports.BarElement = {}));
1416
1600
  /**
1417
1601
  * Represents base64 inline encoded file.
1418
1602
  */
@@ -1423,6 +1607,36 @@ class Base64InputFile extends InputFile {
1423
1607
  }
1424
1608
  }
1425
1609
  exports.Base64InputFile = Base64InputFile;
1610
+ /**
1611
+ * Specifies an instance of mathematical text that contained within a MathParagraph and starts on its own line.
1612
+ */
1613
+ class BlockElement extends MathElement {
1614
+ constructor() {
1615
+ super();
1616
+ this.type = BlockElement.TypeEnum.Block;
1617
+ }
1618
+ }
1619
+ exports.BlockElement = BlockElement;
1620
+ /**
1621
+ * Rectangular or some other border around the MathElement.
1622
+ */
1623
+ class BorderBoxElement extends MathElement {
1624
+ constructor() {
1625
+ super();
1626
+ this.type = BorderBoxElement.TypeEnum.BorderBox;
1627
+ }
1628
+ }
1629
+ exports.BorderBoxElement = BorderBoxElement;
1630
+ /**
1631
+ * Box element.
1632
+ */
1633
+ class BoxElement extends MathElement {
1634
+ constructor() {
1635
+ super();
1636
+ this.type = BoxElement.TypeEnum.Box;
1637
+ }
1638
+ }
1639
+ exports.BoxElement = BoxElement;
1426
1640
  /**
1427
1641
  * A bubble series.
1428
1642
  */
@@ -1433,6 +1647,16 @@ class BubbleSeries extends Series {
1433
1647
  }
1434
1648
  }
1435
1649
  exports.BubbleSeries = BubbleSeries;
1650
+ /**
1651
+ * Close path segment of the geometry path
1652
+ */
1653
+ class ClosePathSegment extends PathSegment {
1654
+ constructor() {
1655
+ super();
1656
+ this.type = ClosePathSegment.TypeEnum.Close;
1657
+ }
1658
+ }
1659
+ exports.ClosePathSegment = ClosePathSegment;
1436
1660
  /**
1437
1661
  * Slide's color scheme DTO
1438
1662
  */
@@ -1442,6 +1666,33 @@ class ColorScheme extends ResourceBase {
1442
1666
  }
1443
1667
  }
1444
1668
  exports.ColorScheme = ColorScheme;
1669
+ /**
1670
+ * Cubic Bezier curve segment of the geometry path
1671
+ */
1672
+ class CubicBezierToPathSegment extends PathSegment {
1673
+ constructor() {
1674
+ super();
1675
+ this.type = CubicBezierToPathSegment.TypeEnum.CubicBezierTo;
1676
+ }
1677
+ }
1678
+ exports.CubicBezierToPathSegment = CubicBezierToPathSegment;
1679
+ /**
1680
+ * Delimiter element
1681
+ */
1682
+ class DelimiterElement extends MathElement {
1683
+ constructor() {
1684
+ super();
1685
+ this.type = DelimiterElement.TypeEnum.Delimiter;
1686
+ }
1687
+ }
1688
+ exports.DelimiterElement = DelimiterElement;
1689
+ (function (DelimiterElement) {
1690
+ let DelimiterShapeEnum;
1691
+ (function (DelimiterShapeEnum) {
1692
+ DelimiterShapeEnum[DelimiterShapeEnum["Centered"] = 'Centered'] = "Centered";
1693
+ DelimiterShapeEnum[DelimiterShapeEnum["Match"] = 'Match'] = "Match";
1694
+ })(DelimiterShapeEnum = DelimiterElement.DelimiterShapeEnum || (DelimiterElement.DelimiterShapeEnum = {}));
1695
+ })(DelimiterElement = exports.DelimiterElement || (exports.DelimiterElement = {}));
1445
1696
  /**
1446
1697
  * Represents document DTO.
1447
1698
  */
@@ -1496,6 +1747,45 @@ class FormatScheme extends ResourceBase {
1496
1747
  }
1497
1748
  }
1498
1749
  exports.FormatScheme = FormatScheme;
1750
+ /**
1751
+ * Specifies the fraction object, consisting of a numerator and denominator separated by a fraction bar.
1752
+ */
1753
+ class FractionElement extends MathElement {
1754
+ constructor() {
1755
+ super();
1756
+ this.type = FractionElement.TypeEnum.Fraction;
1757
+ }
1758
+ }
1759
+ exports.FractionElement = FractionElement;
1760
+ (function (FractionElement) {
1761
+ let FractionTypeEnum;
1762
+ (function (FractionTypeEnum) {
1763
+ FractionTypeEnum[FractionTypeEnum["Bar"] = 'Bar'] = "Bar";
1764
+ FractionTypeEnum[FractionTypeEnum["Skewed"] = 'Skewed'] = "Skewed";
1765
+ FractionTypeEnum[FractionTypeEnum["Linear"] = 'Linear'] = "Linear";
1766
+ FractionTypeEnum[FractionTypeEnum["NoBar"] = 'NoBar'] = "NoBar";
1767
+ })(FractionTypeEnum = FractionElement.FractionTypeEnum || (FractionElement.FractionTypeEnum = {}));
1768
+ })(FractionElement = exports.FractionElement || (exports.FractionElement = {}));
1769
+ /**
1770
+ * Specifies a function of an argument.
1771
+ */
1772
+ class FunctionElement extends MathElement {
1773
+ constructor() {
1774
+ super();
1775
+ this.type = FunctionElement.TypeEnum.Function;
1776
+ }
1777
+ }
1778
+ exports.FunctionElement = FunctionElement;
1779
+ /**
1780
+ * Provides options that control how a presentation is saved in Gif format.
1781
+ */
1782
+ class GifExportOptions extends ExportOptions {
1783
+ constructor() {
1784
+ super();
1785
+ this.format = 'gif';
1786
+ }
1787
+ }
1788
+ exports.GifExportOptions = GifExportOptions;
1499
1789
  /**
1500
1790
  * Represents gradient fill format
1501
1791
  */
@@ -1533,6 +1823,30 @@ exports.GradientFill = GradientFill;
1533
1823
  TileFlipEnum[TileFlipEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
1534
1824
  })(TileFlipEnum = GradientFill.TileFlipEnum || (GradientFill.TileFlipEnum = {}));
1535
1825
  })(GradientFill = exports.GradientFill || (exports.GradientFill = {}));
1826
+ /**
1827
+ * Specifies a grouping symbol above or below an expression, usually to highlight the relationship between elements
1828
+ */
1829
+ class GroupingCharacterElement extends MathElement {
1830
+ constructor() {
1831
+ super();
1832
+ this.type = GroupingCharacterElement.TypeEnum.GroupingCharacter;
1833
+ }
1834
+ }
1835
+ exports.GroupingCharacterElement = GroupingCharacterElement;
1836
+ (function (GroupingCharacterElement) {
1837
+ let PositionEnum;
1838
+ (function (PositionEnum) {
1839
+ PositionEnum[PositionEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
1840
+ PositionEnum[PositionEnum["Top"] = 'Top'] = "Top";
1841
+ PositionEnum[PositionEnum["Bottom"] = 'Bottom'] = "Bottom";
1842
+ })(PositionEnum = GroupingCharacterElement.PositionEnum || (GroupingCharacterElement.PositionEnum = {}));
1843
+ let VerticalJustificationEnum;
1844
+ (function (VerticalJustificationEnum) {
1845
+ VerticalJustificationEnum[VerticalJustificationEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
1846
+ VerticalJustificationEnum[VerticalJustificationEnum["Top"] = 'Top'] = "Top";
1847
+ VerticalJustificationEnum[VerticalJustificationEnum["Bottom"] = 'Bottom'] = "Bottom";
1848
+ })(VerticalJustificationEnum = GroupingCharacterElement.VerticalJustificationEnum || (GroupingCharacterElement.VerticalJustificationEnum = {}));
1849
+ })(GroupingCharacterElement = exports.GroupingCharacterElement || (exports.GroupingCharacterElement = {}));
1536
1850
  /**
1537
1851
  * Represents header/footer info of slide
1538
1852
  */
@@ -1542,6 +1856,16 @@ class HeaderFooter extends ResourceBase {
1542
1856
  }
1543
1857
  }
1544
1858
  exports.HeaderFooter = HeaderFooter;
1859
+ /**
1860
+ * Provides options that control how a presentation is saved in Html5 format.
1861
+ */
1862
+ class Html5ExportOptions extends ExportOptions {
1863
+ constructor() {
1864
+ super();
1865
+ this.format = 'html5';
1866
+ }
1867
+ }
1868
+ exports.Html5ExportOptions = Html5ExportOptions;
1545
1869
  /**
1546
1870
  * Provides options that control how a presentation is saved in Html format.
1547
1871
  */
@@ -1676,6 +2000,36 @@ class LayoutSlides extends ResourceBase {
1676
2000
  }
1677
2001
  }
1678
2002
  exports.LayoutSlides = LayoutSlides;
2003
+ /**
2004
+ * Specifies the Sub-Superscript object
2005
+ */
2006
+ class LeftSubSuperscriptElement extends MathElement {
2007
+ constructor() {
2008
+ super();
2009
+ this.type = LeftSubSuperscriptElement.TypeEnum.LeftSubSuperscriptElement;
2010
+ }
2011
+ }
2012
+ exports.LeftSubSuperscriptElement = LeftSubSuperscriptElement;
2013
+ /**
2014
+ * Specifies the Limit object
2015
+ */
2016
+ class LimitElement extends MathElement {
2017
+ constructor() {
2018
+ super();
2019
+ this.type = LimitElement.TypeEnum.Limit;
2020
+ }
2021
+ }
2022
+ exports.LimitElement = LimitElement;
2023
+ /**
2024
+ * Line segment of the geometry path
2025
+ */
2026
+ class LineToPathSegment extends PathSegment {
2027
+ constructor() {
2028
+ super();
2029
+ this.type = LineToPathSegment.TypeEnum.LineTo;
2030
+ }
2031
+ }
2032
+ exports.LineToPathSegment = LineToPathSegment;
1679
2033
  /**
1680
2034
  * Master slide.
1681
2035
  */
@@ -1694,6 +2048,41 @@ class MasterSlides extends ResourceBase {
1694
2048
  }
1695
2049
  }
1696
2050
  exports.MasterSlides = MasterSlides;
2051
+ /**
2052
+ * Specifies the Matrix object,
2053
+ */
2054
+ class MatrixElement extends MathElement {
2055
+ constructor() {
2056
+ super();
2057
+ this.type = MatrixElement.TypeEnum.Matrix;
2058
+ }
2059
+ }
2060
+ exports.MatrixElement = MatrixElement;
2061
+ (function (MatrixElement) {
2062
+ let BaseJustificationEnum;
2063
+ (function (BaseJustificationEnum) {
2064
+ BaseJustificationEnum[BaseJustificationEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
2065
+ BaseJustificationEnum[BaseJustificationEnum["Top"] = 'Top'] = "Top";
2066
+ BaseJustificationEnum[BaseJustificationEnum["Center"] = 'Center'] = "Center";
2067
+ BaseJustificationEnum[BaseJustificationEnum["Bottom"] = 'Bottom'] = "Bottom";
2068
+ })(BaseJustificationEnum = MatrixElement.BaseJustificationEnum || (MatrixElement.BaseJustificationEnum = {}));
2069
+ let ColumnGapRuleEnum;
2070
+ (function (ColumnGapRuleEnum) {
2071
+ ColumnGapRuleEnum[ColumnGapRuleEnum["SingleSpacingGap"] = 'SingleSpacingGap'] = "SingleSpacingGap";
2072
+ ColumnGapRuleEnum[ColumnGapRuleEnum["OneAndHalfSpacingGap"] = 'OneAndHalfSpacingGap'] = "OneAndHalfSpacingGap";
2073
+ ColumnGapRuleEnum[ColumnGapRuleEnum["DoubleSpacingGap"] = 'DoubleSpacingGap'] = "DoubleSpacingGap";
2074
+ ColumnGapRuleEnum[ColumnGapRuleEnum["Exactly"] = 'Exactly'] = "Exactly";
2075
+ ColumnGapRuleEnum[ColumnGapRuleEnum["Multiple"] = 'Multiple'] = "Multiple";
2076
+ })(ColumnGapRuleEnum = MatrixElement.ColumnGapRuleEnum || (MatrixElement.ColumnGapRuleEnum = {}));
2077
+ let RowGapRuleEnum;
2078
+ (function (RowGapRuleEnum) {
2079
+ RowGapRuleEnum[RowGapRuleEnum["SingleSpacingGap"] = 'SingleSpacingGap'] = "SingleSpacingGap";
2080
+ RowGapRuleEnum[RowGapRuleEnum["OneAndHalfSpacingGap"] = 'OneAndHalfSpacingGap'] = "OneAndHalfSpacingGap";
2081
+ RowGapRuleEnum[RowGapRuleEnum["DoubleSpacingGap"] = 'DoubleSpacingGap'] = "DoubleSpacingGap";
2082
+ RowGapRuleEnum[RowGapRuleEnum["Exactly"] = 'Exactly'] = "Exactly";
2083
+ RowGapRuleEnum[RowGapRuleEnum["Multiple"] = 'Multiple'] = "Multiple";
2084
+ })(RowGapRuleEnum = MatrixElement.RowGapRuleEnum || (MatrixElement.RowGapRuleEnum = {}));
2085
+ })(MatrixElement = exports.MatrixElement || (exports.MatrixElement = {}));
1697
2086
  /**
1698
2087
  * Merge presentations task.
1699
2088
  */
@@ -1704,6 +2093,34 @@ class Merge extends Task {
1704
2093
  }
1705
2094
  }
1706
2095
  exports.Merge = Merge;
2096
+ /**
2097
+ * MoveTo segment of the geometry path
2098
+ */
2099
+ class MoveToPathSegment extends PathSegment {
2100
+ constructor() {
2101
+ super();
2102
+ this.type = MoveToPathSegment.TypeEnum.MoveTo;
2103
+ }
2104
+ }
2105
+ exports.MoveToPathSegment = MoveToPathSegment;
2106
+ /**
2107
+ * Specifies an N-ary mathematical object, such as Summation and Integral.
2108
+ */
2109
+ class NaryOperatorElement extends MathElement {
2110
+ constructor() {
2111
+ super();
2112
+ this.type = NaryOperatorElement.TypeEnum.NaryOperator;
2113
+ }
2114
+ }
2115
+ exports.NaryOperatorElement = NaryOperatorElement;
2116
+ (function (NaryOperatorElement) {
2117
+ let LimitLocationEnum;
2118
+ (function (LimitLocationEnum) {
2119
+ LimitLocationEnum[LimitLocationEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
2120
+ LimitLocationEnum[LimitLocationEnum["UnderOver"] = 'UnderOver'] = "UnderOver";
2121
+ LimitLocationEnum[LimitLocationEnum["SubscriptSuperscript"] = 'SubscriptSuperscript'] = "SubscriptSuperscript";
2122
+ })(LimitLocationEnum = NaryOperatorElement.LimitLocationEnum || (NaryOperatorElement.LimitLocationEnum = {}));
2123
+ })(NaryOperatorElement = exports.NaryOperatorElement || (exports.NaryOperatorElement = {}));
1707
2124
  /**
1708
2125
  * Represents empty fill
1709
2126
  */
@@ -2198,6 +2615,26 @@ class ProtectionProperties extends ResourceBase {
2198
2615
  }
2199
2616
  }
2200
2617
  exports.ProtectionProperties = ProtectionProperties;
2618
+ /**
2619
+ * Quadratic Bezier curve segment of the geometry path
2620
+ */
2621
+ class QuadraticBezierToPathSegment extends PathSegment {
2622
+ constructor() {
2623
+ super();
2624
+ this.type = QuadraticBezierToPathSegment.TypeEnum.QuadBezierTo;
2625
+ }
2626
+ }
2627
+ exports.QuadraticBezierToPathSegment = QuadraticBezierToPathSegment;
2628
+ /**
2629
+ * Radical function
2630
+ */
2631
+ class RadicalElement extends MathElement {
2632
+ constructor() {
2633
+ super();
2634
+ this.type = RadicalElement.TypeEnum.Radical;
2635
+ }
2636
+ }
2637
+ exports.RadicalElement = RadicalElement;
2201
2638
  /**
2202
2639
  * Remove shape task.
2203
2640
  */
@@ -2268,6 +2705,16 @@ class ResponseOutputFile extends OutputFile {
2268
2705
  }
2269
2706
  }
2270
2707
  exports.ResponseOutputFile = ResponseOutputFile;
2708
+ /**
2709
+ * Specifies the Sub-Superscript object
2710
+ */
2711
+ class RightSubSuperscriptElement extends MathElement {
2712
+ constructor() {
2713
+ super();
2714
+ this.type = RightSubSuperscriptElement.TypeEnum.RightSubSuperscriptElement;
2715
+ }
2716
+ }
2717
+ exports.RightSubSuperscriptElement = RightSubSuperscriptElement;
2271
2718
  /**
2272
2719
  * Save slide task.
2273
2720
  */
@@ -2304,6 +2751,7 @@ exports.Save = Save;
2304
2751
  FormatEnum[FormatEnum["Gif"] = 'Gif'] = "Gif";
2305
2752
  FormatEnum[FormatEnum["Bmp"] = 'Bmp'] = "Bmp";
2306
2753
  FormatEnum[FormatEnum["Fodp"] = 'Fodp'] = "Fodp";
2754
+ FormatEnum[FormatEnum["Xaml"] = 'Xaml'] = "Xaml";
2307
2755
  })(FormatEnum = Save.FormatEnum || (Save.FormatEnum = {}));
2308
2756
  })(Save = exports.Save || (exports.Save = {}));
2309
2757
  /**
@@ -2361,6 +2809,7 @@ exports.SaveSlide = SaveSlide;
2361
2809
  FormatEnum[FormatEnum["Potm"] = 'Potm'] = "Potm";
2362
2810
  FormatEnum[FormatEnum["Svg"] = 'Svg'] = "Svg";
2363
2811
  FormatEnum[FormatEnum["Fodp"] = 'Fodp'] = "Fodp";
2812
+ FormatEnum[FormatEnum["Xaml"] = 'Xaml'] = "Xaml";
2364
2813
  })(FormatEnum = SaveSlide.FormatEnum || (SaveSlide.FormatEnum = {}));
2365
2814
  })(SaveSlide = exports.SaveSlide || (exports.SaveSlide = {}));
2366
2815
  /**
@@ -2552,6 +3001,26 @@ class SplitDocumentResult extends ResourceBase {
2552
3001
  }
2553
3002
  }
2554
3003
  exports.SplitDocumentResult = SplitDocumentResult;
3004
+ /**
3005
+ * Subscript object
3006
+ */
3007
+ class SubscriptElement extends MathElement {
3008
+ constructor() {
3009
+ super();
3010
+ this.type = SubscriptElement.TypeEnum.SubscriptElement;
3011
+ }
3012
+ }
3013
+ exports.SubscriptElement = SubscriptElement;
3014
+ /**
3015
+ * Subscript object
3016
+ */
3017
+ class SuperscriptElement extends MathElement {
3018
+ constructor() {
3019
+ super();
3020
+ this.type = SuperscriptElement.TypeEnum.SuperscriptElement;
3021
+ }
3022
+ }
3023
+ exports.SuperscriptElement = SuperscriptElement;
2555
3024
  /**
2556
3025
  * Provides options that control how a presentation is saved in SVG format.
2557
3026
  */
@@ -2603,6 +3072,16 @@ exports.SwfExportOptions = SwfExportOptions;
2603
3072
  CommentsPositionEnum[CommentsPositionEnum["Right"] = 'Right'] = "Right";
2604
3073
  })(CommentsPositionEnum = SwfExportOptions.CommentsPositionEnum || (SwfExportOptions.CommentsPositionEnum = {}));
2605
3074
  })(SwfExportOptions = exports.SwfExportOptions || (exports.SwfExportOptions = {}));
3075
+ /**
3076
+ * Mathematical text
3077
+ */
3078
+ class TextElement extends MathElement {
3079
+ constructor() {
3080
+ super();
3081
+ this.type = TextElement.TypeEnum.Text;
3082
+ }
3083
+ }
3084
+ exports.TextElement = TextElement;
2606
3085
  /**
2607
3086
  * Represents text of resource
2608
3087
  */
@@ -2723,6 +3202,16 @@ exports.ViewProperties = ViewProperties;
2723
3202
  ShowCommentsEnum[ShowCommentsEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
2724
3203
  })(ShowCommentsEnum = ViewProperties.ShowCommentsEnum || (ViewProperties.ShowCommentsEnum = {}));
2725
3204
  })(ViewProperties = exports.ViewProperties || (exports.ViewProperties = {}));
3205
+ /**
3206
+ * Provides options that control how a presentation is saved in XAML format.
3207
+ */
3208
+ class XamlExportOptions extends ExportOptions {
3209
+ constructor() {
3210
+ super();
3211
+ this.format = 'xaml';
3212
+ }
3213
+ }
3214
+ exports.XamlExportOptions = XamlExportOptions;
2726
3215
  /**
2727
3216
  * Provides options that control how a presentation is saved in XPS format.
2728
3217
  */
@@ -3442,6 +3931,7 @@ exports.AudioFrame = AudioFrame;
3442
3931
  PlayModeEnum[PlayModeEnum["Auto"] = 'Auto'] = "Auto";
3443
3932
  PlayModeEnum[PlayModeEnum["OnClick"] = 'OnClick'] = "OnClick";
3444
3933
  PlayModeEnum[PlayModeEnum["AllSlides"] = 'AllSlides'] = "AllSlides";
3934
+ PlayModeEnum[PlayModeEnum["InClickSequence"] = 'InClickSequence'] = "InClickSequence";
3445
3935
  PlayModeEnum[PlayModeEnum["Mixed"] = 'Mixed'] = "Mixed";
3446
3936
  })(PlayModeEnum = AudioFrame.PlayModeEnum || (AudioFrame.PlayModeEnum = {}));
3447
3937
  let VolumeEnum;
@@ -3509,6 +3999,7 @@ exports.VideoFrame = VideoFrame;
3509
3999
  PlayModeEnum[PlayModeEnum["Auto"] = 'Auto'] = "Auto";
3510
4000
  PlayModeEnum[PlayModeEnum["OnClick"] = 'OnClick'] = "OnClick";
3511
4001
  PlayModeEnum[PlayModeEnum["AllSlides"] = 'AllSlides'] = "AllSlides";
4002
+ PlayModeEnum[PlayModeEnum["InClickSequence"] = 'InClickSequence'] = "InClickSequence";
3512
4003
  PlayModeEnum[PlayModeEnum["Mixed"] = 'Mixed'] = "Mixed";
3513
4004
  })(PlayModeEnum = VideoFrame.PlayModeEnum || (VideoFrame.PlayModeEnum = {}));
3514
4005
  let VolumeEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asposeslidescloud",
3
- "version": "21.12.0",
3
+ "version": "22.1.0",
4
4
  "description": "Aspose.Slides Cloud SDK for Node.js",
5
5
  "homepage": "https://products.aspose.cloud/slides/cloud",
6
6
  "author": {