Skip to content

Function: createPresentation() ​

createPresentation<Fs>(opts?): Composed<Fs>

Compose a presentation from the construct families it needs, on the browser adapter.

The counterpart to TsPptx, which is composed with every family there is. This one costs what it carries: the core tier (text, shapes, images, groups, speaker notes) plus whatever use names, and nothing else reaches the bundle. tableToSlides is one of those families (domTables), so a deck that wants it composes it.

Type Parameters ​

Type ParameterDefault type
Fs extends readonly ConstructFamily[][]

Parameters ​

ParameterTypeDescription
opts?ComposeOptions<Fs>the families to compose in, from pptx-ts/families

Returns ​

Composed<Fs>

Example ​

ts
import { createPresentation } from 'pptx-ts/browser'
import { charts, domTables } from 'pptx-ts/families'
const pres = createPresentation({ use: [charts, domTables] })