Skip to content

@shbernal/pptxgenjs


@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

SlideBaseProps._bkgdImgRid


_comments?

optional _comments?: SlideComment[]

Defined in: core-interfaces.ts:3211

Inherited from

SlideBaseProps._comments


_margin?

optional _margin?: Margin

Defined in: core-interfaces.ts:3204

Inherited from

SlideBaseProps._margin


_name?

optional _name?: string

Defined in: core-interfaces.ts:3205

Inherited from

SlideBaseProps._name


_presLayout

_presLayout: PresLayout

Defined in: core-interfaces.ts:3206

Inherited from

SlideBaseProps._presLayout


_rels

_rels: SlideRel[]

Defined in: core-interfaces.ts:3207

Inherited from

SlideBaseProps._rels


_relsChart

_relsChart: SlideRelChart[]

Defined in: core-interfaces.ts:3208

Inherited from

SlideBaseProps._relsChart


_relsMedia

_relsMedia: SlideRelMedia[]

Defined in: core-interfaces.ts:3209

Inherited from

SlideBaseProps._relsMedia


_relsNotes?

optional _relsNotes?: SlideRel[]

Defined in: core-interfaces.ts:3210

Inherited from

SlideBaseProps._relsNotes


_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

SlideBaseProps._slideNum


_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

SlideBaseProps._slideObjects


_txStyles?

optional _txStyles?: MasterTextStyleProps

Defined in: core-interfaces.ts:3212

Inherited from

SlideBaseProps._txStyles


addAnimation

addAnimation: (options) => PresSlide

Defined in: core-interfaces.ts:3353

Parameters

options

AnimationProps

Returns

PresSlide

Inherited from

PresSlide.addAnimation


addComment

addComment: (options) => PresSlide

Defined in: core-interfaces.ts:3348

Parameters

options

CommentProps

Returns

PresSlide

Inherited from

PresSlide.addComment


addConnector

addConnector: (options) => PresSlide

Defined in: core-interfaces.ts:3345

Parameters

options

ConnectorProps

Returns

PresSlide

Inherited from

PresSlide.addConnector


addImage

addImage: (options) => PresSlide

Defined in: core-interfaces.ts:3346

Parameters

options

ImageProps

Returns

PresSlide

Inherited from

PresSlide.addImage


addMedia

addMedia: (options) => PresSlide

Defined in: core-interfaces.ts:3347

Parameters

options

MediaProps

Returns

PresSlide

Inherited from

PresSlide.addMedia


addNotes

addNotes: (notes) => PresSlide

Defined in: core-interfaces.ts:3349

Parameters

notes

string | NotesProps | NotesProps[]

Returns

PresSlide

Inherited from

PresSlide.addNotes


addShape

addShape: (shapeName, options?) => PresSlide

Defined in: core-interfaces.ts:3350

Parameters

shapeName

SHAPE_NAME

options?

ShapeProps

Returns

PresSlide

Inherited from

PresSlide.addShape


addTable

addTable: (tableRows, options?) => PresSlide

Defined in: core-interfaces.ts:3351

Parameters

tableRows

TableRow[]

options?

TableProps

Returns

PresSlide

Inherited from

PresSlide.addTable


addText

addText: (text, options?) => PresSlide

Defined in: core-interfaces.ts:3352

Parameters

text

string | number | TextProps[]

options?

TextPropsOptions

Returns

PresSlide

Inherited from

PresSlide.addText


background?

optional background?: BackgroundProps

Defined in: core-interfaces.ts:3217

Background color or image (color | path | data)

Examples

ts
{ color: 'FF3399' } - hex color
ts
{ color: 'FF3399', transparency:50 } - hex color with 50% transparency
ts
{ 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 string

Inherited from

SlideBaseProps.background


color?

optional color?: string

Defined in: core-interfaces.ts:3388

Default text color (hex format)

Example

ts
'FF3399'

Default

ts
'000000' (DEF_FONT_COLOR)

Inherited from

PresSlide.color


height?

readonly optional height?: number

Defined in: core-interfaces.ts:3372

Slide height in inches, resolved from the active presentation layout.

Inherited from

PresSlide.height


hidden?

optional hidden?: boolean

Defined in: core-interfaces.ts:3393

Whether slide is hidden

Default

ts
false

Inherited from

PresSlide.hidden


newAutoPagedSlides?

readonly optional newAutoPagedSlides?: PresSlide[]

Defined in: core-interfaces.ts:3355

Inherited from

PresSlide.newAutoPagedSlides


slideNumber?

optional slideNumber?: SlideNumberProps

Defined in: core-interfaces.ts:3397

Slide number options

Inherited from

PresSlide.slideNumber


transition?

optional transition?: 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

PresSlide.transition


width?

readonly optional width?: 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

PresSlide.width

Methods

addChart()

Call Signature

addChart(data, options): PresSlide

Defined in: core-interfaces.ts:3341

Parameters
data

OptsChartData[]

options

ChartOpts & object

Returns

PresSlide

Inherited from

PresSlide.addChart

Call Signature

addChart(charts, options?): PresSlide

Defined in: core-interfaces.ts:3342

Parameters
charts

ChartMulti[]

options?

ChartOpts

Returns

PresSlide

Inherited from

PresSlide.addChart

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

OptsChartData[]

options?

ChartOpts

Returns

PresSlide

Deprecated

Pass type on the options object: addChart(data, { type, ...options }).

Inherited from

PresSlide.addChart