Appearance
@shbernal/pptxgenjs / index / PresSlide
Interface: PresSlide
Defined in: core-interfaces.ts:3340
Extended by
Properties
addAnimation
addAnimation: (
options) =>PresSlide
Defined in: core-interfaces.ts:3353
Parameters
options
Returns
PresSlide
addComment
addComment: (
options) =>PresSlide
Defined in: core-interfaces.ts:3348
Parameters
options
Returns
PresSlide
addConnector
addConnector: (
options) =>PresSlide
Defined in: core-interfaces.ts:3345
Parameters
options
Returns
PresSlide
addImage
addImage: (
options) =>PresSlide
Defined in: core-interfaces.ts:3346
Parameters
options
Returns
PresSlide
addMedia
addMedia: (
options) =>PresSlide
Defined in: core-interfaces.ts:3347
Parameters
options
Returns
PresSlide
addNotes
addNotes: (
notes) =>PresSlide
Defined in: core-interfaces.ts:3349
Parameters
notes
string | NotesProps | NotesProps[]
Returns
PresSlide
addShape
addShape: (
shapeName,options?) =>PresSlide
Defined in: core-interfaces.ts:3350
Parameters
shapeName
options?
Returns
PresSlide
addTable
addTable: (
tableRows,options?) =>PresSlide
Defined in: core-interfaces.ts:3351
Parameters
tableRows
TableRow[]
options?
Returns
PresSlide
addText
addText: (
text,options?) =>PresSlide
Defined in: core-interfaces.ts:3352
Parameters
text
string | number | TextProps[]
options?
Returns
PresSlide
background?
optionalbackground?:BackgroundProps
Defined in: core-interfaces.ts:3382
Background color or image (color | path | data)
Examples
ts
{ color: 'FF3399' } - hex colorts
{ color: 'FF3399', transparency:50 } - hex color with 50% transparencyts
{ path: 'https://onedrives.com/myimg.png` } - retrieve image via URL
* @example { path: '/home/user/images/myimg.png` } - retrieve image via local path
* @example { data: 'image/png;base64,iVtDaDrF[...]=' } - base64 stringcolor?
optionalcolor?:string
Defined in: core-interfaces.ts:3388
Default text color (hex format)
Example
ts
'FF3399'Default
ts
'000000' (DEF_FONT_COLOR)height?
readonlyoptionalheight?:number
Defined in: core-interfaces.ts:3372
Slide height in inches, resolved from the active presentation layout.
hidden?
optionalhidden?:boolean
Defined in: core-interfaces.ts:3393
Whether slide is hidden
Default
ts
falsenewAutoPagedSlides?
readonlyoptionalnewAutoPagedSlides?:PresSlide[]
Defined in: core-interfaces.ts:3355
slideNumber?
optionalslideNumber?:SlideNumberProps
Defined in: core-interfaces.ts:3397
Slide number options
transition?
optionaltransition?:TransitionProps
Defined in: core-interfaces.ts:3361
Slide-show transition played when advancing to this slide (p:transition).
Example
ts
slide.transition = { type: 'fade', durationMs: 1500 }width?
readonlyoptionalwidth?:number
Defined in: core-interfaces.ts:3368
Slide width in inches, resolved from the active presentation layout. Use for coordinate math instead of hard-coding layout dimensions.
Example
ts
slide.addText('Centered', { x: 0, w: slide.width, align: 'center' })Methods
addChart()
Call Signature
addChart(
data,options):PresSlide
Defined in: core-interfaces.ts:3341
Parameters
data
options
ChartOpts & object
Returns
PresSlide
Call Signature
addChart(
charts,options?):PresSlide
Defined in: core-interfaces.ts:3342
Parameters
charts
options?
Returns
PresSlide
Call Signature
addChart(
type,data,options?):PresSlide
Defined in: core-interfaces.ts:3344
Parameters
type
"area" | "line" | "pie" | "bar" | "bar3D" | "bubble" | "bubble3D" | "doughnut" | "radar" | "scatter"
data
options?
Returns
PresSlide
Deprecated
Pass type on the options object: addChart(data, { type, ...options }).