Skip to content

Commit

Permalink
Added missing altText prop to ImageProps (Issue #848)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Jul 22, 2021
1 parent 9e6aab8 commit 56184ed
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1239,8 +1239,29 @@ declare namespace PptxGenJS {
export type MediaType = 'audio' | 'online' | 'video'

export interface ImageProps extends PositionProps, DataOrPathProps {
/**
* Alt Text value ("How would you describe this object and its contents to someone who is blind?")
* - PowerPoint: [right-click on an image] > "Edit Alt Text..."
*/
altText?: string
/**
* Flip horizontally?
* @default false
*/
flipH?: boolean
/**
* Flip vertical?
* @default false
*/
flipV?: boolean
hyperlink?: HyperlinkProps
placeholder?: string // 'body' | 'title' | etc.
/**
* Placeholder type
* - values: 'body' | 'header' | 'footer' | 'title' | et. al.
* @example 'body'
* @see https://docs.microsoft.com/en-us/office/vba/api/powerpoint.ppplaceholdertype
*/
placeholder?: string
/**
* Image rotation (degrees)
* - range: -360 to 360
Expand Down Expand Up @@ -1282,16 +1303,6 @@ declare namespace PptxGenJS {
*/
y?: number
}
/**
* Flip horizontally?
* @default false
*/
flipH?: boolean
/**
* Flip vertical?
* @default false
*/
flipV?: boolean
}
/**
* Add media (audio/video) to slide
Expand Down

0 comments on commit 56184ed

Please sign in to comment.