@@ -20,11 +20,11 @@ export class Group {
2020 }
2121
2222 /**
23- * Add chart to Slide
23+ * Add chart to Group
2424 * @param {CHART_NAME|IChartMulti[] } type - chart type
2525 * @param {object[] } data - data object
2626 * @param {IChartOpts } options - chart options
27- * @return {Slide } this Slide
27+ * @return {Group } this Group
2828 */
2929 addChart ( type : CHART_NAME | IChartMulti [ ] , data : any [ ] , options ?: IChartOpts ) : Group {
3030 // FUTURE: TODO-VERSION-4: Remove first arg - only take data and opts, with "type" required on opts
@@ -36,30 +36,30 @@ export class Group {
3636 }
3737
3838 /**
39- * Add image to Slide
39+ * Add image to Group
4040 * @param {ImageProps } options - image options
41- * @return {Slide } this Slide
41+ * @return {Group } this Group
4242 */
4343 addImage ( options : ImageProps ) : Group {
4444 genObj . addImageDefinition ( this , this . _slide , options )
4545 return this
4646 }
4747
4848 /**
49- * Add media (audio/video) to Slide
49+ * Add media (audio/video) to Group
5050 * @param {MediaProps } options - media options
51- * @return {Slide } this Slide
51+ * @return {Group } this Group
5252 */
5353 addMedia ( options : MediaProps ) : Group {
5454 genObj . addMediaDefinition ( this , this . _slide , options )
5555 return this
5656 }
5757
5858 /**
59- * Add shape to Slide
59+ * Add shape to Group
6060 * @param {SHAPE_NAME } shapeName - shape name
6161 * @param {ShapeProps } options - shape options
62- * @return {Slide } this Slide
62+ * @return {Group } this Group
6363 */
6464 addShape ( shapeName : SHAPE_NAME , options ?: ShapeProps ) : Group {
6565 // NOTE: As of v3.1.0, <script> users are passing the old shape object from the shapes file (orig to the project)
@@ -72,10 +72,10 @@ export class Group {
7272 }
7373
7474 /**
75- * Add table to Slide
75+ * Add table to Group
7676 * @param {TableRow[] } tableRows - table rows
7777 * @param {TableProps } options - table options
78- * @return {Slide } this Slide
78+ * @return {Group } this Group
7979 */
8080 addTable ( tableRows : TableRow [ ] , options ?: TableProps ) : Group {
8181 // FUTURE: we pass `this` - we dont need to pass layouts - they can be read from this!
@@ -84,10 +84,10 @@ export class Group {
8484 }
8585
8686 /**
87- * Add text to Slide
87+ * Add text to Group
8888 * @param {string|TextProps[] } text - text string or complex object
8989 * @param {TextPropsOptions } options - text options
90- * @return {Slide } this Slide
90+ * @return {Group } this Group
9191 */
9292 addText ( text : string | TextProps [ ] , options ?: TextPropsOptions ) : Group {
9393 let textParam = typeof text === 'string' || typeof text === 'number' ? [ { text : text , options : options } as TextProps ] : text
0 commit comments