Skip to content

Commit 56184ed

Browse files
committed
Added missing altText prop to ImageProps (Issue #848)
1 parent 9e6aab8 commit 56184ed

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

types/index.d.ts

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,29 @@ declare namespace PptxGenJS {
12391239
export type MediaType = 'audio' | 'online' | 'video'
12401240

12411241
export interface ImageProps extends PositionProps, DataOrPathProps {
1242+
/**
1243+
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
1244+
* - PowerPoint: [right-click on an image] > "Edit Alt Text..."
1245+
*/
1246+
altText?: string
1247+
/**
1248+
* Flip horizontally?
1249+
* @default false
1250+
*/
1251+
flipH?: boolean
1252+
/**
1253+
* Flip vertical?
1254+
* @default false
1255+
*/
1256+
flipV?: boolean
12421257
hyperlink?: HyperlinkProps
1243-
placeholder?: string // 'body' | 'title' | etc.
1258+
/**
1259+
* Placeholder type
1260+
* - values: 'body' | 'header' | 'footer' | 'title' | et. al.
1261+
* @example 'body'
1262+
* @see https://docs.microsoft.com/en-us/office/vba/api/powerpoint.ppplaceholdertype
1263+
*/
1264+
placeholder?: string
12441265
/**
12451266
* Image rotation (degrees)
12461267
* - range: -360 to 360
@@ -1282,16 +1303,6 @@ declare namespace PptxGenJS {
12821303
*/
12831304
y?: number
12841305
}
1285-
/**
1286-
* Flip horizontally?
1287-
* @default false
1288-
*/
1289-
flipH?: boolean
1290-
/**
1291-
* Flip vertical?
1292-
* @default false
1293-
*/
1294-
flipV?: boolean
12951306
}
12961307
/**
12971308
* Add media (audio/video) to slide

0 commit comments

Comments
 (0)