Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / PresSlideInternal

Interface: PresSlideInternal

Defined in: core-interfaces.ts:2985

Extends

Properties

_bkgdImgRid?

optional _bkgdImgRid?: number

Defined in: core-interfaces.ts:2898

Inherited from

SlideBaseProps._bkgdImgRid


_margin?

optional _margin?: Margin

Defined in: core-interfaces.ts:2899

Inherited from

SlideBaseProps._margin


_name?

optional _name?: string

Defined in: core-interfaces.ts:2900

Inherited from

SlideBaseProps._name


_presLayout

_presLayout: PresLayout

Defined in: core-interfaces.ts:2901

Inherited from

SlideBaseProps._presLayout


_rels

_rels: ISlideRel[]

Defined in: core-interfaces.ts:2902

Inherited from

SlideBaseProps._rels


_relsChart

_relsChart: ISlideRelChart[]

Defined in: core-interfaces.ts:2903

Inherited from

SlideBaseProps._relsChart


_relsMedia

_relsMedia: ISlideRelMedia[]

Defined in: core-interfaces.ts:2904

Inherited from

SlideBaseProps._relsMedia


_relsNotes?

optional _relsNotes?: ISlideRel[]

Defined in: core-interfaces.ts:2905

Inherited from

SlideBaseProps._relsNotes


_rId

_rId: number

Defined in: core-interfaces.ts:2986


_slideId

_slideId: number

Defined in: core-interfaces.ts:2988


_slideLayout

_slideLayout: SlideLayoutInternal

Defined in: core-interfaces.ts:2987


_slideNum

_slideNum: number

Defined in: core-interfaces.ts:2906

Inherited from

SlideBaseProps._slideNum


_slideNumberProps?

optional _slideNumberProps?: SlideNumberProps

Defined in: core-interfaces.ts:2907

Inherited from

SlideBaseProps._slideNumberProps


_slideObjects

_slideObjects: ISlideObject[]

Defined in: core-interfaces.ts:2908

Inherited from

SlideBaseProps._slideObjects


addConnector

addConnector: (options) => PresSlide

Defined in: core-interfaces.ts:2934

Parameters

options

ConnectorProps

Returns

PresSlide

Inherited from

PresSlide.addConnector


addImage

addImage: (options) => PresSlide

Defined in: core-interfaces.ts:2935

Parameters

options

ImageProps

Returns

PresSlide

Inherited from

PresSlide.addImage


addMedia

addMedia: (options) => PresSlide

Defined in: core-interfaces.ts:2936

Parameters

options

MediaProps

Returns

PresSlide

Inherited from

PresSlide.addMedia


addNotes

addNotes: (notes) => PresSlide

Defined in: core-interfaces.ts:2937

Parameters

notes

string | NotesProps | NotesProps[]

Returns

PresSlide

Inherited from

PresSlide.addNotes


addShape

addShape: (shapeName, options?) => PresSlide

Defined in: core-interfaces.ts:2938

Parameters

shapeName

SHAPE_NAME

options?

ShapeProps

Returns

PresSlide

Inherited from

PresSlide.addShape


addTable

addTable: (tableRows, options?) => PresSlide

Defined in: core-interfaces.ts:2939

Parameters

tableRows

TableRow[]

options?

TableProps

Returns

PresSlide

Inherited from

PresSlide.addTable


addText

addText: (text, options?) => PresSlide

Defined in: core-interfaces.ts:2940

Parameters

text

string | number | TextProps[]

options?

TextPropsOptions

Returns

PresSlide

Inherited from

PresSlide.addText


background?

optional background?: BackgroundProps

Defined in: core-interfaces.ts:2910

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/gitbrent/images/myimg.png` } - retrieve image via local path
	 * @example { data: 'image/png;base64,iVtDaDrF[...]=' } - base64 string
	 * @since v3.3.0

Inherited from

SlideBaseProps.background


bkgd?

optional bkgd?: string | BackgroundProps

Defined in: core-interfaces.ts:2914

Deprecated

v3.3.0 - use background

Inherited from

SlideBaseProps.bkgd


color?

optional color?: string

Defined in: core-interfaces.ts:2974

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:2953

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

Inherited from

PresSlide.height


hidden?

optional hidden?: boolean

Defined in: core-interfaces.ts:2979

Whether slide is hidden

Default

ts
false

Inherited from

PresSlide.hidden


newAutoPagedSlides?

readonly optional newAutoPagedSlides?: PresSlide[]

Defined in: core-interfaces.ts:2942

Inherited from

PresSlide.newAutoPagedSlides


slideNumber?

optional slideNumber?: SlideNumberProps

Defined in: core-interfaces.ts:2983

Slide number options

Inherited from

PresSlide.slideNumber


width?

readonly optional width?: number

Defined in: core-interfaces.ts:2949

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(type, data, options?): PresSlide

Defined in: core-interfaces.ts:2932

Parameters
type

CHART_NAME

data

OptsChartData[]

options?

IChartOpts

Returns

PresSlide

Inherited from

PresSlide.addChart

Call Signature

addChart(type, options?): PresSlide

Defined in: core-interfaces.ts:2933

Parameters
type

IChartMulti[]

options?

IChartOpts

Returns

PresSlide

Inherited from

PresSlide.addChart