pptx-ts/inspect
A cheap, flat snapshot of what a .pptx contains: every element on every slide, with its slide-absolute box and the handful of text/fill properties a layout audit asks about.
It is a projection over pptx-ts/read, not a second reader. read gives a navigable, mutable model of a package and answers questions in the shape of the OOXML tree; this answers one flat question ("what is on the slides, and where") in the shape a linter, an overlap check, or a diffing tool wants. The two used to be independent implementations over two different XML parsers, which meant every read-side fix had to be made twice and a divergence between them was invisible to every test. Now the model below is the only reader, and this file is the flattening.
What it deliberately does NOT do, and why the projection is not just Presentation re-exported:
- Only geometry a shape carries itself. A placeholder that inherits its box from the layout is omitted rather than resolved (
absoluteFrame, notresolvedFrame): the snapshot reports what the slide states. - A
p:graphicFrameis a box, not its contents. A table, chart or SmartArt graphic is reported as one element with its box, its kind, and the text a reader sees on the slide, but its structure is not flattened: no per-run formatting, no cells, no series. Walkpptx-ts/readfor what is inside one.
Interfaces
- PptxBodyInsets
- PptxBox
- PptxInspection
- PptxParagraph
- PptxSlideElement
- PptxSlideInspection
- PptxSlideSize
- PptxTextRun
Type Aliases
- PptxAutofitMode
- PptxBoxAnchor
- PptxBoxAxis
- PptxGraphicKind
- PptxInspectInput
- PptxInspectInputValue
- PptxSlideElementKind
Variables
Functions
- boxAnchor
- extractSlides
- inspectPptx
- listPptxParts
- loadPptxPackage
- overlapArea
- readPptxBinaryPart
- readPptxTextPart
- readPresentationSize
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