Appearance
@shbernal/pptxgenjs / index / PresSlideInternal
Interface: PresSlideInternal
Defined in: core-interfaces.ts:3399
Extends
Properties
_animations
_animations:
AnimationProps[]
Defined in: core-interfaces.ts:3404
Preset build animations on this slide, in play order (see PresSlide.addAnimation).
_bkgdImgRid?
optional_bkgdImgRid?:number
Defined in: core-interfaces.ts:3203
Inherited from
_comments?
optional_comments?:SlideComment[]
Defined in: core-interfaces.ts:3211
Inherited from
_margin?
optional_margin?:Margin
Defined in: core-interfaces.ts:3204
Inherited from
_name?
optional_name?:string
Defined in: core-interfaces.ts:3205
Inherited from
_presLayout
_presLayout:
PresLayout
Defined in: core-interfaces.ts:3206
Inherited from
_rels
_rels:
SlideRel[]
Defined in: core-interfaces.ts:3207
Inherited from
_relsChart
_relsChart:
SlideRelChart[]
Defined in: core-interfaces.ts:3208
Inherited from
_relsMedia
_relsMedia:
SlideRelMedia[]
Defined in: core-interfaces.ts:3209
Inherited from
_relsNotes?
optional_relsNotes?:SlideRel[]
Defined in: core-interfaces.ts:3210
Inherited from
_rId
_rId:
number
Defined in: core-interfaces.ts:3400
_slideId
_slideId:
number
Defined in: core-interfaces.ts:3402
_slideLayout
_slideLayout:
SlideLayoutInternal|null
Defined in: core-interfaces.ts:3401
_slideNum
_slideNum:
number
Defined in: core-interfaces.ts:3213
Inherited from
_slideNumberProps?
optional_slideNumberProps?:SlideNumberProps|null
Defined in: core-interfaces.ts:3214
Inherited from
SlideBaseProps._slideNumberProps
_slideObjects
_slideObjects:
SlideObject[]
Defined in: core-interfaces.ts:3215
Inherited from
_txStyles?
optional_txStyles?:MasterTextStyleProps
Defined in: core-interfaces.ts:3212
Inherited from
addAnimation
addAnimation: (
options) =>PresSlide
Defined in: core-interfaces.ts:3353
Parameters
options
Returns
Inherited from
addComment
addComment: (
options) =>PresSlide
Defined in: core-interfaces.ts:3348
Parameters
options
Returns
Inherited from
addConnector
addConnector: (
options) =>PresSlide
Defined in: core-interfaces.ts:3345
Parameters
options
Returns
Inherited from
addImage
addImage: (
options) =>PresSlide
Defined in: core-interfaces.ts:3346
Parameters
options
Returns
Inherited from
addMedia
addMedia: (
options) =>PresSlide
Defined in: core-interfaces.ts:3347
Parameters
options
Returns
Inherited from
addNotes
addNotes: (
notes) =>PresSlide
Defined in: core-interfaces.ts:3349
Parameters
notes
string | NotesProps | NotesProps[]
Returns
Inherited from
addShape
addShape: (
shapeName,options?) =>PresSlide
Defined in: core-interfaces.ts:3350
Parameters
shapeName
options?
Returns
Inherited from
addTable
addTable: (
tableRows,options?) =>PresSlide
Defined in: core-interfaces.ts:3351
Parameters
tableRows
TableRow[]
options?
Returns
Inherited from
addText
addText: (
text,options?) =>PresSlide
Defined in: core-interfaces.ts:3352
Parameters
text
string | number | TextProps[]
options?
Returns
Inherited from
background?
optionalbackground?:BackgroundProps
Defined in: core-interfaces.ts:3217
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 stringInherited from
color?
optionalcolor?:string
Defined in: core-interfaces.ts:3388
Default text color (hex format)
Example
ts
'FF3399'Default
ts
'000000' (DEF_FONT_COLOR)Inherited from
height?
readonlyoptionalheight?:number
Defined in: core-interfaces.ts:3372
Slide height in inches, resolved from the active presentation layout.
Inherited from
hidden?
optionalhidden?:boolean
Defined in: core-interfaces.ts:3393
Whether slide is hidden
Default
ts
falseInherited from
newAutoPagedSlides?
readonlyoptionalnewAutoPagedSlides?:PresSlide[]
Defined in: core-interfaces.ts:3355
Inherited from
slideNumber?
optionalslideNumber?:SlideNumberProps
Defined in: core-interfaces.ts:3397
Slide number options
Inherited from
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 }Inherited from
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' })Inherited from
Methods
addChart()
Call Signature
addChart(
data,options):PresSlide
Defined in: core-interfaces.ts:3341
Parameters
data
options
ChartOpts & object
Returns
Inherited from
Call Signature
addChart(
charts,options?):PresSlide
Defined in: core-interfaces.ts:3342
Parameters
charts
options?
Returns
Inherited from
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
Deprecated
Pass type on the options object: addChart(data, { type, ...options }).