pptx-ts/script
Turn an existing .pptx into a description of the write-API calls that would rebuild it.
Why this is its own subsystem. It depends on both halves of the library: it reads a deck through pptx-ts/read and targets the write API's option types. That rules out living inside either. src/read/ in particular is documented as isomorphic (bytes in, bytes out, no node:fs), and a converter whose output is source text rather than a package would quietly break that guarantee for everyone importing pptx-ts/read.
What it is not. This is not a lossless round-trip. Some of a deck cannot be expressed through the public write API, and some of it cannot even be seen through the public read API. Measurement against the fixture corpus found the read side is the tighter of the two. Rather than warn about that to a log, every loss is a FidelityNote attached to the IR, which makes the losses testable: a round-trip check excludes exactly the noted fields and treats any other difference as a defect. Read DeckIr.fidelity before trusting the output of a conversion.
Interfaces
- AssetIr
- AssetRef
- BackgroundIr
- CanonicalCall
- CanonicalChrome
- CanonicalDeck
- CanonicalSlide
- ChromeIr
- CommonPrintOptions
- DeckIr
- FidelityNote
- IrDifference
- MasterIr
- PrintedScript
- PrintScriptOptions
- RoundTripReport
- SlideIr
- SlideLayoutIr
- ThemeIr
- TransitionIr
- TransitionSoundIr
Type Aliases
- AssetMode
- CallIr
- CallMethod
- CallParameters
- Cause
- DeckPropKey
- DeckPropsIr
- DifferenceKind
- Disposition
- IrArg
- IrValue
- PrintStandaloneScriptOptions
- SlideSource
Variables
Functions
- canonicalDeckIr
- diffDeckIr
- irArgs
- isAssetRef
- isKnownNoteConstruct
- knownNoteConstructs
- printScript
- printStandaloneScript
- readModelToIr
References
Diagnostic
Re-exports Diagnostic
DiagnosticCode
Re-exports DiagnosticCode
DiagnosticHandler
Re-exports DiagnosticHandler
ErrorCode
Re-exports ErrorCode
InternalError
Re-exports InternalError
InternalErrorCode
Re-exports InternalErrorCode
InvalidOptionError
Re-exports InvalidOptionError
InvalidOptionErrorCode
Re-exports InvalidOptionErrorCode
MediaError
Re-exports MediaError
MediaErrorCode
Re-exports MediaErrorCode
PackageReadError
Re-exports PackageReadError
PackageReadErrorCode
Re-exports PackageReadErrorCode
PptxTsCode
Re-exports PptxTsCode
PptxTsError
Re-exports PptxTsError
PptxTsErrorOptions
Re-exports PptxTsErrorOptions
resetDiagnosticState
Re-exports resetDiagnosticState
setDiagnosticHandler
Re-exports setDiagnosticHandler
TsPptxCode
Re-exports TsPptxCode
TsPptxError
Re-exports TsPptxError
TsPptxErrorOptions
Re-exports TsPptxErrorOptions
UnsupportedFeatureError
Re-exports UnsupportedFeatureError
UnsupportedFeatureErrorCode
Re-exports UnsupportedFeatureErrorCode