Appearance
Function: createPresentation() ​
createPresentation<
Fs>(opts?):Composed<Fs>
Compose a presentation from the construct families it needs, on the runtime-agnostic 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.
Type Parameters ​
| Type Parameter | Default type |
|---|---|
Fs extends readonly ConstructFamily[] | [] |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
opts? | ComposeOptions<Fs> | the families to compose in, from pptx-ts/families |
Returns ​
Composed<Fs>
Example ​
ts
import { createPresentation } from 'pptx-ts'
import { charts } from 'pptx-ts/families'
const pres = createPresentation({ use: [charts] })