@shbernal/ts-pptx 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/anim-presets-Qbgh8uut.js +55 -0
- package/dist/anim-presets-Qbgh8uut.js.map +1 -0
- package/dist/{autopage-D4kyVp11.js → autopage-DqZ37VpL.js} +11 -12
- package/dist/autopage-DqZ37VpL.js.map +1 -0
- package/dist/{binary-string-CKVAYI3M.js → binary-string-Ba8VM3b9.js} +3 -4
- package/dist/binary-string-Ba8VM3b9.js.map +1 -0
- package/dist/{body-insets-kVHmjGc6.js → body-insets-BDHymJvz.js} +7 -9
- package/dist/body-insets-BDHymJvz.js.map +1 -0
- package/dist/browser.d.ts +24 -16
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +19 -19
- package/dist/browser.js.map +1 -1
- package/dist/{image-size-DwDbakcl.js → chart-metadata-CwiTTcJq.js} +576 -538
- package/dist/chart-metadata-CwiTTcJq.js.map +1 -0
- package/dist/{clip-DHDlnHUq.d.ts → clip-ISfCMtWA.d.ts} +6 -10
- package/dist/clip-ISfCMtWA.d.ts.map +1 -0
- package/dist/{notes-BcT571R4.js → comments-CKIZYRbZ.js} +517 -389
- package/dist/comments-CKIZYRbZ.js.map +1 -0
- package/dist/{diagnostics-DiMmBU8P.d.ts → diagnostics-MoA4MBq5.d.ts} +52 -50
- package/dist/diagnostics-MoA4MBq5.d.ts.map +1 -0
- package/dist/{embedded-fonts-CI_YGW2d.d.ts → embedded-fonts-U7HIIhPO.d.ts} +4 -6
- package/dist/embedded-fonts-U7HIIhPO.d.ts.map +1 -0
- package/dist/{entry-compose-6hF9aTmT.d.ts → entry-compose-CiakSt-f.d.ts} +53 -74
- package/dist/entry-compose-CiakSt-f.d.ts.map +1 -0
- package/dist/{errors-Da2nXCJm.js → entry-errors-JMthgJ2g.js} +41 -25
- package/dist/entry-errors-JMthgJ2g.js.map +1 -0
- package/dist/{table-cell-margins-PDshga8T.js → enums-BP9wsb9Q.js} +42 -45
- package/dist/enums-BP9wsb9Q.js.map +1 -0
- package/dist/{enums-DQRpVOLh.d.ts → enums-PcXr3o3J.d.ts} +11 -12
- package/dist/{enums-DQRpVOLh.d.ts.map → enums-PcXr3o3J.d.ts.map} +1 -1
- package/dist/families.d.ts +24 -26
- package/dist/families.d.ts.map +1 -1
- package/dist/families.js +3 -4
- package/dist/{fit-CcXbg__l.js → fit-Bpmzep6O.js} +60 -52
- package/dist/fit-Bpmzep6O.js.map +1 -0
- package/dist/{font-metrics-CBGmhLo0.d.ts → font-metrics-DTppw4t3.d.ts} +61 -37
- package/dist/font-metrics-DTppw4t3.d.ts.map +1 -0
- package/dist/{grid-9B2w5EaY.js → grid-DUIMxjfl.js} +23 -26
- package/dist/grid-DUIMxjfl.js.map +1 -0
- package/dist/{html-dom-DvJmuHt2.js → html-dom-LZCgntnJ.js} +42 -43
- package/dist/html-dom-LZCgntnJ.js.map +1 -0
- package/dist/html.d.ts +53 -9
- package/dist/html.d.ts.map +1 -1
- package/dist/html.js +12 -13
- package/dist/html.js.map +1 -1
- package/dist/index.d.ts +21 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/inspect.d.ts +14 -16
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +18 -19
- package/dist/inspect.js.map +1 -1
- package/dist/{text-anchor-BgLPbwbL.js → lock-attrs-CSQnFDHP.js} +62 -12
- package/dist/lock-attrs-CSQnFDHP.js.map +1 -0
- package/dist/math.d.ts +2 -4
- package/dist/math.d.ts.map +1 -1
- package/dist/math.js +12 -13
- package/dist/math.js.map +1 -1
- package/dist/measure.d.ts +23 -12
- package/dist/measure.d.ts.map +1 -1
- package/dist/measure.js +3 -3
- package/dist/node.d.ts +21 -13
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +12 -12
- package/dist/node.js.map +1 -1
- package/dist/{options-internal-WqgMf720.js → options-internal-BWgmLPdx.js} +4 -5
- package/dist/options-internal-BWgmLPdx.js.map +1 -0
- package/dist/{package-KoEgVwII.d.ts → package-CANBWuSm.d.ts} +4 -12
- package/dist/package-CANBWuSm.d.ts.map +1 -0
- package/dist/{playbtn-CUqQdoDf.js → playbtn-BQZFJir9.js} +4 -5
- package/dist/playbtn-BQZFJir9.js.map +1 -0
- package/dist/{pres-BA9_lJbY.d.ts → pres-BkEkUAEM.d.ts} +383 -230
- package/dist/pres-BkEkUAEM.d.ts.map +1 -0
- package/dist/{presentation-Cyl74rq2.js → presentation-4Ggq0_Xa.js} +408 -288
- package/dist/presentation-4Ggq0_Xa.js.map +1 -0
- package/dist/{presentation-types-B3VQH4Bz.d.ts → presentation-types-BgnZR-0a.d.ts} +1104 -457
- package/dist/presentation-types-BgnZR-0a.d.ts.map +1 -0
- package/dist/read.d.ts +18 -13
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +4 -4
- package/dist/script.d.ts +116 -65
- package/dist/script.d.ts.map +1 -1
- package/dist/script.js +2697 -777
- package/dist/script.js.map +1 -1
- package/dist/{shapes-BcyFdZpp.js → shapes-CAPOjU0Q.js} +1556 -487
- package/dist/shapes-CAPOjU0Q.js.map +1 -0
- package/dist/{slide-BqPtyKmb.d.ts → slide-BmT4kMoO.d.ts} +94 -86
- package/dist/slide-BmT4kMoO.d.ts.map +1 -0
- package/dist/{slide-size-BalTjFuv.js → slide-size-SkScz1ig.js} +2 -3
- package/dist/{slide-size-BalTjFuv.js.map → slide-size-SkScz1ig.js.map} +1 -1
- package/dist/{table-dom-CVbvUfgh.js → table-dom-BYga4FYY.js} +3 -4
- package/dist/{table-dom-CVbvUfgh.js.map → table-dom-BYga4FYY.js.map} +1 -1
- package/dist/{text-BvFFMMFQ.js → text-Dz0ArGIp.js} +365 -318
- package/dist/text-Dz0ArGIp.js.map +1 -0
- package/dist/{transition-speed-kUEWDWTx.js → transition-speed-CNJ0fSpQ.js} +2 -3
- package/dist/{transition-speed-kUEWDWTx.js.map → transition-speed-CNJ0fSpQ.js.map} +1 -1
- package/dist/{units-internal-DFcUYjh3.js → units-internal-BR3a4cIi.js} +26 -29
- package/dist/units-internal-BR3a4cIi.js.map +1 -0
- package/dist/{zip-CYZ0F6BV.js → zip-7JTh61LX.js} +8 -10
- package/dist/zip-7JTh61LX.js.map +1 -0
- package/dist/{zip-CTll_dr0.d.ts → zip-uUjs9Cqx.d.ts} +4 -6
- package/dist/zip-uUjs9Cqx.d.ts.map +1 -0
- package/dist/zip.d.ts +3 -3
- package/dist/zip.js +3 -3
- package/dist/{zoom-BoNyOlPm.js → zoom-CSSeOwM8.js} +1153 -583
- package/dist/zoom-CSSeOwM8.js.map +1 -0
- package/package.json +20 -21
- package/skills/{ts-pptx-upstream → pptx-ts-upstream}/SKILL.md +27 -74
- package/dist/autopage-D4kyVp11.js.map +0 -1
- package/dist/binary-string-CKVAYI3M.js.map +0 -1
- package/dist/body-insets-kVHmjGc6.js.map +0 -1
- package/dist/clip-DHDlnHUq.d.ts.map +0 -1
- package/dist/diagnostics-DiMmBU8P.d.ts.map +0 -1
- package/dist/embedded-fonts-CI_YGW2d.d.ts.map +0 -1
- package/dist/entry-compose-6hF9aTmT.d.ts.map +0 -1
- package/dist/errors-Da2nXCJm.js.map +0 -1
- package/dist/fit-CcXbg__l.js.map +0 -1
- package/dist/font-metrics-CBGmhLo0.d.ts.map +0 -1
- package/dist/grid-9B2w5EaY.js.map +0 -1
- package/dist/html-dom-DvJmuHt2.js.map +0 -1
- package/dist/image-size-DwDbakcl.js.map +0 -1
- package/dist/notes-BcT571R4.js.map +0 -1
- package/dist/options-internal-WqgMf720.js.map +0 -1
- package/dist/package-KoEgVwII.d.ts.map +0 -1
- package/dist/playbtn-CUqQdoDf.js.map +0 -1
- package/dist/pres-BA9_lJbY.d.ts.map +0 -1
- package/dist/presentation-Cyl74rq2.js.map +0 -1
- package/dist/presentation-types-B3VQH4Bz.d.ts.map +0 -1
- package/dist/shapes-BcyFdZpp.js.map +0 -1
- package/dist/slide-BqPtyKmb.d.ts.map +0 -1
- package/dist/table-cell-margins-PDshga8T.js.map +0 -1
- package/dist/text-BvFFMMFQ.js.map +0 -1
- package/dist/text-anchor-BgLPbwbL.js.map +0 -1
- package/dist/units-internal-DFcUYjh3.js.map +0 -1
- package/dist/zip-CTll_dr0.d.ts.map +0 -1
- package/dist/zip-CYZ0F6BV.js.map +0 -1
- package/dist/zoom-BoNyOlPm.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-types-BgnZR-0a.d.ts","names":[],"sources":["../src/read/oxml/theme.ts","../src/read/oxml/color-transform.ts","../src/read/api/theme-context.ts","../src/read/api/picture-fill.ts","../src/read/api/gradient.ts","../src/read/api/pattern-fill.ts","../src/read/api/slide-background.ts","../src/read/api/shapes/oxml.ts","../src/read/api/shapes/types.ts","../src/read/api/hyperlink.ts","../src/read/api/table-style-resolve.ts","../src/read/api/text/run.ts","../src/read/api/text/paragraph.ts","../src/read/api/text/frame.ts","../src/read/api/shapes/host.ts","../src/read/api/shapes/base.ts","../src/read/api/shapes/autoshape.ts","../src/read/api/shapes/picture.ts","../src/read/api/shapes/connector.ts","../src/read/api/chart.ts","../src/read/api/chartex.ts","../src/read/api/diagram.ts","../src/read/api/table-edit.ts","../src/read/api/table-cell.ts","../src/read/api/table-row.ts","../src/read/api/table.ts","../src/read/api/shapes/graphic-frame.ts","../src/read/api/shapes.ts","../src/read/api/chrome.ts","../src/read/api/notes.ts","../src/read/api/comments.ts","../src/read/api/tags.ts","../src/read/api/transition.ts","../src/read/api/animation.ts","../src/read/api/slide.ts","../src/read/api/document-properties.ts","../src/read/api/ops/deck-target.ts","../src/read/api/ops/part-copy.ts","../src/read/api/ops/rescale.ts","../src/read/api/presentation.ts","../src/read/api/presentation-types.ts"],"mappings":";;;;;;;;;UAkDiB;EAChB,QAAQ;EACR,WAAW;;;;;;;;;;;UAYK,qBAAqB;EACrC,WAAW;;;;;EAKX,aAAa;;;;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Q;;;UAI1D;;EAEhB,iBAAiB;;;;;EAKjB;;EAEA;;;UAIgB;;EAEhB,QAAQ;;;;;EAKR;;EAEA;;;;;;;;;;;;;;EAcA;;;;;;;;;;;;EAYA;;;;;;;;;;;;;;;EAeA;;;UAIgB;;;;;;;EAOhB"}
|
package/dist/read.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Open an existing `.pptx`, inspect its OPC structure, and
|
|
3
|
+
* save it back with untouched parts byte-identical (lossless round-trip).
|
|
4
|
+
*
|
|
5
|
+
* This subsystem is isomorphic: bytes in, bytes out, no `node:fs`. File I/O
|
|
6
|
+
* is the caller's job.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { a as Part, i as Relationships, n as OpcPackage, r as Relationship, s as ContentTypes, t as OpcInput } from "./package-CANBWuSm.js";
|
|
11
|
+
import { $ as isConnector, $n as EffectiveColor, $t as Paragraph, A as BuildSequence, An as PictureMedia, At as ChartDataTable, B as ModernComment, Bn as GradientStop, Bt as ChartSeries, C as readCoreProperties, Cn as GeometryCommand, Ct as ChartExSeries, D as AddTextBoxOptions, Dn as LineEnd, Dt as ChartAxis, E as AddPictureOptions, En as InnerShadow, Et as ChartAreaFormat, F as Tag, Fn as BackgroundFill, Ft as ChartLine, G as SlideLayout, Gn as GeometrySource, Gt as AutoShape, H as NotesPlaceholder, Hn as PictureFill, Ht as ChartView3D, I as readTagsForPart, In as BackgroundSource, It as ChartManualLayout, J as ThemeFontFace, Jn as ResolvedFrame, Jt as AutofitMode, K as SlideMaster, Kn as PlaceholderRef, Kt as Shape, L as Comment, Ln as SlideBackground, Lt as ChartMarker, M as TransitionInput, Mn as Reflection, Mt as ChartFill, N as TransitionSoundInfo, Nn as ShapeType, Nt as ChartLabelRun, O as Slide, On as LineEnds, Ot as ChartDataLabels, P as TransitionSpeed, Pn as SoftEdge, Pt as ChartLegend, Q as isAutoShape, Qn as ColorTransform, Qt as Equation, R as CommentAuthor, Rn as PatternFill, Rt as ChartPlotGroup, S as ExtendedProperties, Sn as CustomGeometryPath, St as ChartExLegend, T as readExtendedProperties, Tn as Glow, Tt as Chart, U as NotesSlide, Un as PictureFillTile, Ut as Connector, V as ModernCommentAuthor, Vn as FillRect, Vt as ChartTextStyle, W as Placeholder, Wn as ColorRef, Wt as Picture, X as AnyShape, Xn as readColorRef, Xt as ListStyleDefaults, Y as ThemeFontScheme, Yn as StyleFontRef, Yt as BodyProperties, Z as GroupShape, Zn as resolveColorElement, Zt as TextFrame, _ as SlideSize, _n as ConnectionSite, _t as DiagramPoint, a as ExtractedChart, an as Run, at as TableRow, b as CoreProperties, bn as CustomGeometryConnectionSite, bt as ChartExAxis, c as ExtractedSlides, cn as TextContext, ct as CellThreeD, d as ImportSlideMastersOptions, dn as TableCellTextStyle, dt as TableCellEdge, en as BulletDetail, er as applyColorTransforms, et as isGraphicFrame, f as ImportSlideOptions, fn as TableConditionFlags, ft as Diagram, g as OnlineMediaItem, gn as ChildFrame, gt as DiagramNode, h as LayoutHandle, hn as AbsoluteFrameFailure, ht as DiagramDrawnShape, i as EmbeddedFontInfo, in as LineSpacing, it as Table, j as TransitionInfo, jn as Recolor, jt as ChartDisplayUnits, k as BuildEffect, kn as OuterShadow, kt as ChartDataPoint, l as FromTemplateOptions, ln as TextInheritance, lt as TableCell, m as ImportedSlideMaster, mn as AbsoluteFrame, mt as DiagramConnectionType, n as AvMediaItem, nn as Field, nr as ThemeContext, nt as isPicture, o as ExtractedNotes, on as RunOutline, ot as CellBorder, p as ImportSlidesRequest, pn as Hyperlink, pt as DiagramConnection, q as Theme, qn as ResolvedColor, qt as ShapeHost, r as EmbeddedFontFaceInfo, rn as InheritedRunProps, rt as GraphicFrame, s as ExtractedSlide, sn as TabStop, st as CellBorders, t as AppendSlidesOptions, tn as BulletStyle, tr as ColorContext, tt as isGroupShape, u as ImportShapeOptions, un as ResolvedTableStyle, ut as TableCellBorderEdit, v as SlideSource, vn as CustomGeometry, vt as DiagramPointType, w as readCustomProperties, wn as GeometryCoordinate, wt as AxisNumberFormat, x as CustomProperty, xn as CustomGeometryGuide, xt as ChartExDataLabels, y as Presentation, yn as CustomGeometryAdjustHandle, yt as ChartEx, z as CommentSchema, zn as GradientFill, zt as ChartPointLabel } from "./presentation-types-BgnZR-0a.js";
|
|
12
|
+
import { n as EmbeddedFontFace, r as EmbeddedFontSlot, t as EmbeddedFont } from "./embedded-fonts-U7HIIhPO.js";
|
|
13
|
+
import { hn as ColorMapToken, jn as ThemeColorSlot, t as CustomPropertyValue } from "./pres-BkEkUAEM.js";
|
|
14
|
+
import { S as UnsupportedFeatureErrorCode, _ as InternalErrorCode, a as TsPptxCode, b as PackageReadErrorCode, c as InternalError, d as PackageReadError, f as PptxTsError, g as ErrorCode, h as DiagnosticCode, i as setDiagnosticHandler, l as InvalidOptionError, m as UnsupportedFeatureError, n as DiagnosticHandler, o as TsPptxError, p as PptxTsErrorOptions, r as resetDiagnosticState, s as TsPptxErrorOptions, t as Diagnostic, u as MediaError, v as InvalidOptionErrorCode, x as PptxTsCode, y as MediaErrorCode } from "./diagnostics-MoA4MBq5.js";
|
|
7
15
|
/** Partname of the `.rels` part holding `sourcePartName`'s relationships ('/' = package). */
|
|
8
16
|
export declare function relsPartNameFor(sourcePartName: string): string;
|
|
9
17
|
/**
|
|
@@ -14,18 +22,16 @@ export declare function relsPartNameFor(sourcePartName: string): string;
|
|
|
14
22
|
* @param target relationship Target attribute (relative like `../media/image1.png`, or absolute)
|
|
15
23
|
*/
|
|
16
24
|
export declare function resolveRelativePartName(sourcePartName: string, target: string): string;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/read/oxml/preset-color.d.ts
|
|
19
25
|
/**
|
|
20
26
|
* The ECMA-376 preset colour table (`a:prstClr/@val` → literal RGB).
|
|
21
27
|
*
|
|
22
28
|
* `ST_PresetColorVal` (§20.1.10.47) enumerates 190 names, and the standard gives each one an
|
|
23
29
|
* RGB triple. They are the HTML/CSS named colours: every value in the enumeration has the same
|
|
24
30
|
* RGB here as the CSS colour of the same name, and the 190 names collapse to the 140 distinct
|
|
25
|
-
* CSS names below through three mechanical spelling rules the enumeration adds on top
|
|
31
|
+
* CSS names below through three mechanical spelling rules the enumeration adds on top:
|
|
26
32
|
*
|
|
27
33
|
* - abbreviated prefixes: `dk*`/`lt*`/`med*` alongside `dark*`/`light*`/`medium*`
|
|
28
|
-
* (`dkSlateBlue` is `darkSlateBlue`), and only as a *prefix*
|
|
34
|
+
* (`dkSlateBlue` is `darkSlateBlue`), and only as a *prefix* (`medium…` is not `mediumium…`);
|
|
29
35
|
* - both spellings of grey: `dimGrey` is `dimGray`;
|
|
30
36
|
* - case: the enumeration is camelCase, the table below is folded to lower case.
|
|
31
37
|
*
|
|
@@ -36,7 +42,7 @@ export declare function resolveRelativePartName(sourcePartName: string, target:
|
|
|
36
42
|
*
|
|
37
43
|
* This is spec data, not observed behaviour: the values come from the enumeration's own
|
|
38
44
|
* documentation, and the table is asserted complete against the schema's 190-value list in
|
|
39
|
-
* `test/read/preset-color.test.ts
|
|
45
|
+
* `test/read/preset-color.test.ts`. A name the reader cannot resolve is a hole in the table,
|
|
40
46
|
* and that test is what finds it.
|
|
41
47
|
*/
|
|
42
48
|
/**
|
|
@@ -50,6 +56,5 @@ export declare function resolveRelativePartName(sourcePartName: string, target:
|
|
|
50
56
|
* @param name - the raw attribute value, or `null` when the attribute is absent
|
|
51
57
|
*/
|
|
52
58
|
export declare function presetColorHex(name: string | null): string | null;
|
|
53
|
-
|
|
54
|
-
export { type AbsoluteFrame, type AbsoluteFrameFailure, type AddPictureOptions, type AddTextBoxOptions, type AnyShape, type AppendSlidesOptions, AutoShape, type AutofitMode, type AvMediaItem, type AxisNumberFormat, type BackgroundFill, type BackgroundSource, type BodyProperties, type BulletDetail, type BulletStyle, type CellBorder, type CellBorders, type CellThreeD, Chart, ChartAxis, type ChartDataLabels, ChartEx, ChartExAxis, type ChartExDataLabels, type ChartExLegend, ChartExSeries, type ChartFill, type ChartLegend, type ChartLine, ChartSeries, type ChildFrame, type ColorContext, type ColorMapToken, type ColorRef, type ColorTransform, type Comment, type CommentAuthor, type CommentSchema, type ConnectionSite, Connector, ContentTypes, type CoreProperties, type CustomGeometry, type CustomGeometryPath, type CustomProperty, type CustomPropertyValue, type Diagnostic, type DiagnosticCode, type DiagnosticHandler, Diagram, type DiagramConnection, type DiagramConnectionType, type DiagramDrawnShape, DiagramNode, DiagramPoint, type DiagramPointType, type EffectiveColor, type EmbeddedFont, type EmbeddedFontFace, type EmbeddedFontFaceInfo, type EmbeddedFontInfo, type EmbeddedFontSlot, type ErrorCode, type ExtendedProperties, type ExtractedChart, type ExtractedNotes, type ExtractedSlide, type ExtractedSlides, type FillRect, type FromTemplateOptions, type GeometryCommand, type GeometrySource, type Glow, type GradientFill, type GradientStop, GraphicFrame, GroupShape, type Hyperlink, type ImportShapeOptions, type ImportSlideMastersOptions, type ImportSlideOptions, type ImportSlidesRequest, type ImportedSlideMaster, type InheritedRunProps, type InnerShadow, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type LayoutHandle, type LineEnd, type LineEnds, type LineSpacing, MediaError, type MediaErrorCode, type ModernComment, type ModernCommentAuthor, NotesPlaceholder, NotesSlide, type OnlineMediaItem, type OpcInput, OpcPackage, type OuterShadow, PackageReadError, type PackageReadErrorCode, Paragraph, Part, type PatternFill, Picture, type PictureFill, type PictureFillTile, Placeholder, type PlaceholderRef, Presentation, type Recolor, type Reflection, type Relationship, Relationships, type ResolvedColor, type ResolvedFrame, type ResolvedTableStyle, Run, Shape, type ShapeHost, type ShapeType, Slide, type SlideBackground, SlideLayout, SlideMaster, type SlideSize, type SlideSource, type SoftEdge, type StyleFontRef, Table, TableCell, type TableCellBorderEdit, type TableCellEdge, type TableCellTextStyle, type TableConditionFlags, TableRow, type Tag, type TextContext, TextFrame, type TextInheritance, Theme, type ThemeColorSlot, type ThemeContext, type ThemeFontFace, type ThemeFontScheme, type TransitionInfo, type TransitionInput, type TransitionSoundInfo, type TransitionSpeed, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, readColorRef, readCoreProperties, readCustomProperties, readExtendedProperties, readTagsForPart, resetDiagnosticState, resolveColorElement, setDiagnosticHandler };
|
|
59
|
+
export { type AbsoluteFrame, type AbsoluteFrameFailure, type AddPictureOptions, type AddTextBoxOptions, type AnyShape, type AppendSlidesOptions, AutoShape, type AutofitMode, type AvMediaItem, type AxisNumberFormat, type BackgroundFill, type BackgroundSource, type BodyProperties, type BuildEffect, type BuildSequence, type BulletDetail, type BulletStyle, type CellBorder, type CellBorders, type CellThreeD, Chart, type ChartAreaFormat, ChartAxis, type ChartDataLabels, type ChartDataPoint, type ChartDataTable, type ChartDisplayUnits, ChartEx, ChartExAxis, type ChartExDataLabels, type ChartExLegend, ChartExSeries, type ChartFill, type ChartLabelRun, type ChartLegend, type ChartLine, type ChartManualLayout, type ChartMarker, ChartPlotGroup, type ChartPointLabel, ChartSeries, type ChartTextStyle, type ChartView3D, type ChildFrame, type ColorContext, type ColorMapToken, type ColorRef, type ColorTransform, type Comment, type CommentAuthor, type CommentSchema, type ConnectionSite, Connector, ContentTypes, type CoreProperties, type CustomGeometry, type CustomGeometryAdjustHandle, type CustomGeometryConnectionSite, type CustomGeometryGuide, type CustomGeometryPath, type CustomProperty, type CustomPropertyValue, type Diagnostic, type DiagnosticCode, type DiagnosticHandler, Diagram, type DiagramConnection, type DiagramConnectionType, type DiagramDrawnShape, DiagramNode, DiagramPoint, type DiagramPointType, type EffectiveColor, type EmbeddedFont, type EmbeddedFontFace, type EmbeddedFontFaceInfo, type EmbeddedFontInfo, type EmbeddedFontSlot, type Equation, type ErrorCode, type ExtendedProperties, type ExtractedChart, type ExtractedNotes, type ExtractedSlide, type ExtractedSlides, Field, type FillRect, type FromTemplateOptions, type GeometryCommand, type GeometryCoordinate, type GeometrySource, type Glow, type GradientFill, type GradientStop, GraphicFrame, GroupShape, type Hyperlink, type ImportShapeOptions, type ImportSlideMastersOptions, type ImportSlideOptions, type ImportSlidesRequest, type ImportedSlideMaster, type InheritedRunProps, type InnerShadow, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type LayoutHandle, type LineEnd, type LineEnds, type LineSpacing, type ListStyleDefaults, MediaError, type MediaErrorCode, type ModernComment, type ModernCommentAuthor, NotesPlaceholder, NotesSlide, type OnlineMediaItem, type OpcInput, OpcPackage, type OuterShadow, PackageReadError, type PackageReadErrorCode, Paragraph, Part, type PatternFill, Picture, type PictureFill, type PictureFillTile, type PictureMedia, Placeholder, type PlaceholderRef, type PptxTsCode, PptxTsError, type PptxTsErrorOptions, Presentation, type Recolor, type Reflection, type Relationship, Relationships, type ResolvedColor, type ResolvedFrame, type ResolvedTableStyle, Run, type RunOutline, Shape, type ShapeHost, type ShapeType, Slide, type SlideBackground, SlideLayout, SlideMaster, type SlideSize, type SlideSource, type SoftEdge, type StyleFontRef, type TabStop, Table, TableCell, type TableCellBorderEdit, type TableCellEdge, type TableCellTextStyle, type TableConditionFlags, TableRow, type Tag, type TextContext, TextFrame, type TextInheritance, Theme, type ThemeColorSlot, type ThemeContext, type ThemeFontFace, type ThemeFontScheme, type TransitionInfo, type TransitionInput, type TransitionSoundInfo, type TransitionSpeed, TsPptxCode, TsPptxError, TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, readColorRef, readCoreProperties, readCustomProperties, readExtendedProperties, readTagsForPart, resetDiagnosticState, resolveColorElement, setDiagnosticHandler };
|
|
55
60
|
//# sourceMappingURL=read.d.ts.map
|
package/dist/read.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","names":[],"sources":["../src/read/opc/partnames.ts","../src/read/oxml/preset-color.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"read.d.ts","names":[],"sources":["../src/read/opc/partnames.ts","../src/read/oxml/preset-color.ts"],"mappings":";;;;;;;;;;;;;;;wBA8FgB,gBAAgB;;;;;;;;wBA8BhB,wBAAwB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBCyDhD,eAAe"}
|
package/dist/read.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
export { AutoShape, Chart, ChartAxis, ChartEx, ChartExAxis, ChartExSeries, ChartSeries, Connector, ContentTypes, Diagram, DiagramNode, DiagramPoint, GraphicFrame, GroupShape, InternalError, InvalidOptionError, MediaError, NotesPlaceholder, NotesSlide, OpcPackage, PackageReadError, Paragraph, Part, Picture, Placeholder, Presentation, Relationships, Run, Shape, Slide, SlideLayout, SlideMaster, Table, TableCell, TableRow, TextFrame, Theme, TsPptxError, UnsupportedFeatureError, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, presetColorHex, readColorRef, readCoreProperties, readCustomProperties, readExtendedProperties, readTagsForPart, relsPartNameFor, resetDiagnosticState, resolveColorElement, resolveRelativePartName, setDiagnosticHandler };
|
|
1
|
+
import { a as Slide, c as NotesSlide, d as SlideMaster, f as Theme, g as ContentTypes, h as Part, i as readExtendedProperties, l as Placeholder, m as Relationships, n as readCoreProperties, o as readTagsForPart, p as OpcPackage, r as readCustomProperties, s as NotesPlaceholder, t as Presentation, u as SlideLayout } from "./presentation-4Ggq0_Xa.js";
|
|
2
|
+
import { C as ChartPlotGroup, D as AutoShape, E as Picture, G as resolveColorElement, I as TextFrame, L as Paragraph, Nt as applyColorTransforms, O as Shape, R as Field, S as ChartAxis, T as Connector, W as readColorRef, _ as DiagramPoint, a as isConnector, b as ChartExSeries, c as isPicture, d as Table, f as TableRow, g as DiagramNode, h as Diagram, i as isAutoShape, in as resolveRelativePartName, jt as presetColorHex, o as isGraphicFrame, p as TableCell, rn as relsPartNameFor, s as isGroupShape, t as GroupShape, u as GraphicFrame, v as ChartEx, w as ChartSeries, x as Chart, y as ChartExAxis, z as Run } from "./shapes-CAPOjU0Q.js";
|
|
3
|
+
import { a as PackageReadError, c as resetDiagnosticState, i as MediaError, l as setDiagnosticHandler, n as InternalError, o as PptxTsError, r as InvalidOptionError, s as UnsupportedFeatureError, t as TsPptxError } from "./entry-errors-JMthgJ2g.js";
|
|
4
|
+
export { AutoShape, Chart, ChartAxis, ChartEx, ChartExAxis, ChartExSeries, ChartPlotGroup, ChartSeries, Connector, ContentTypes, Diagram, DiagramNode, DiagramPoint, Field, GraphicFrame, GroupShape, InternalError, InvalidOptionError, MediaError, NotesPlaceholder, NotesSlide, OpcPackage, PackageReadError, Paragraph, Part, Picture, Placeholder, PptxTsError, Presentation, Relationships, Run, Shape, Slide, SlideLayout, SlideMaster, Table, TableCell, TableRow, TextFrame, Theme, TsPptxError, UnsupportedFeatureError, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, presetColorHex, readColorRef, readCoreProperties, readCustomProperties, readExtendedProperties, readTagsForPart, relsPartNameFor, resetDiagnosticState, resolveColorElement, resolveRelativePartName, setDiagnosticHandler };
|
package/dist/script.d.ts
CHANGED
|
@@ -1,18 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Turn an existing `.pptx` into a description of the write-API calls
|
|
3
|
+
* that would rebuild it.
|
|
4
|
+
*
|
|
5
|
+
* **Why this is its own subsystem.** It depends on both halves of the library: it reads a
|
|
6
|
+
* deck through `pptx-ts/read` and targets the write API's option types. That rules out
|
|
7
|
+
* living inside either. `src/read/` in particular is documented as isomorphic (bytes in,
|
|
8
|
+
* bytes out, no `node:fs`), and a converter whose output is *source text* rather than a
|
|
9
|
+
* package would quietly break that guarantee for everyone importing `pptx-ts/read`.
|
|
10
|
+
*
|
|
11
|
+
* **What it is not.** This is not a lossless round-trip. Some of a deck cannot be
|
|
12
|
+
* expressed through the public write API, and some of it cannot even be seen through the
|
|
13
|
+
* public read API. Measurement against the fixture corpus found the read side is the
|
|
14
|
+
* tighter of the two. Rather than warn about that to a log, every loss is a
|
|
15
|
+
* {@link FidelityNote} attached to the IR, which makes the losses testable: a round-trip
|
|
16
|
+
* check excludes exactly the noted fields and treats any other difference as a defect.
|
|
17
|
+
* Read {@link DeckIr.fidelity} before trusting the output of a conversion.
|
|
18
|
+
*
|
|
19
|
+
* @module
|
|
20
|
+
*/
|
|
21
|
+
import { y as Presentation } from "./presentation-types-BgnZR-0a.js";
|
|
22
|
+
import { i as CHART_NAME } from "./enums-PcXr3o3J.js";
|
|
23
|
+
import { Dt as OptsChartData, it as ChartOpts, rt as ChartMulti } from "./pres-BkEkUAEM.js";
|
|
24
|
+
import { a as Slide } from "./slide-BmT4kMoO.js";
|
|
25
|
+
import { S as UnsupportedFeatureErrorCode, _ as InternalErrorCode, a as TsPptxCode, b as PackageReadErrorCode, c as InternalError, d as PackageReadError, f as PptxTsError, g as ErrorCode, h as DiagnosticCode, i as setDiagnosticHandler, l as InvalidOptionError, m as UnsupportedFeatureError, n as DiagnosticHandler, o as TsPptxError, p as PptxTsErrorOptions, r as resetDiagnosticState, s as TsPptxErrorOptions, t as Diagnostic, u as MediaError, v as InvalidOptionErrorCode, x as PptxTsCode, y as MediaErrorCode } from "./diagnostics-MoA4MBq5.js";
|
|
4
26
|
/** What happened to the construct. */
|
|
5
27
|
type Disposition =
|
|
6
28
|
/** Gone: nothing in the output carries it. */
|
|
7
29
|
'dropped' |
|
|
8
30
|
/**
|
|
9
|
-
* Present but structurally simplified
|
|
31
|
+
* Present but structurally simplified: a value survives while the structure around
|
|
10
32
|
* it does not (threaded comment replies flattened into separate comments, a per-script
|
|
11
33
|
* font scheme reduced to latin, a placeholder demoted to a plain shape).
|
|
12
34
|
*/
|
|
13
35
|
'flattened' |
|
|
14
36
|
/**
|
|
15
|
-
* Present and structurally intact, but not the same value
|
|
37
|
+
* Present and structurally intact, but not the same value: a re-encoding that a
|
|
16
38
|
* viewer may or may not be able to tell apart (a modern transition mapped to the
|
|
17
39
|
* nearest named one, a chart rebuilt from cached points rather than its workbook).
|
|
18
40
|
*/
|
|
@@ -40,7 +62,7 @@ interface FidelityNote {
|
|
|
40
62
|
*/
|
|
41
63
|
shapeName: string | null;
|
|
42
64
|
/**
|
|
43
|
-
* Stable dotted identifier for the lost construct
|
|
65
|
+
* Stable dotted identifier for the lost construct: `line.width`, `text.tabStops`,
|
|
44
66
|
* `chart.workbook`. Matched mechanically by the round-trip check, so it must name a
|
|
45
67
|
* field path rather than describe one. Reuse an existing key for the same construct
|
|
46
68
|
* instead of coining a synonym.
|
|
@@ -58,7 +80,7 @@ interface FidelityNote {
|
|
|
58
80
|
* Namespace for a loss recorded against a shape on a **slide layout** rather than on a slide,
|
|
59
81
|
* prepended to the construct by `layoutShapeScope`.
|
|
60
82
|
*
|
|
61
|
-
* The chrome mapper reuses the slide shape mapper wholesale
|
|
83
|
+
* The chrome mapper reuses the slide shape mapper wholesale: a rectangle on a layout is
|
|
62
84
|
* transcribed by the same code that transcribes one on a slide, which is what keeps the two
|
|
63
85
|
* from drifting. That sharing brings the slide vocabulary with it: a themed outline on a
|
|
64
86
|
* layout records `line.width` exactly as a slide's would. Left unmarked, those notes would be
|
|
@@ -69,16 +91,14 @@ interface FidelityNote {
|
|
|
69
91
|
*
|
|
70
92
|
* `layout.` rather than `master.`, which is how the other chrome constructs are spelled: those
|
|
71
93
|
* are named after the `defineSlideMaster` call that authors them, while these name the source
|
|
72
|
-
* tier the loss is on
|
|
94
|
+
* tier the loss is on. And a master's own decoration is not re-authored at all, so a note
|
|
73
95
|
* under this prefix is always about a layout.
|
|
74
96
|
*/
|
|
75
97
|
export declare const LAYOUT_NOTE_PREFIX = "layout.";
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/script/ir.d.ts
|
|
78
98
|
/**
|
|
79
99
|
* A reference to bytes held in {@link DeckIr.assets}, standing where a write-API option
|
|
80
100
|
* wants image/media data. Printed as a `path` or an inline `data:` literal depending on
|
|
81
|
-
* the print options
|
|
101
|
+
* the print options. An IR-level decision would bake one choice into the IR and force a
|
|
82
102
|
* re-read to change it.
|
|
83
103
|
*
|
|
84
104
|
* The `$asset` sigil is deliberate: no write-API option object has a `$`-prefixed key,
|
|
@@ -106,31 +126,52 @@ interface AssetIr {
|
|
|
106
126
|
contentType: string;
|
|
107
127
|
bytes: Uint8Array;
|
|
108
128
|
}
|
|
129
|
+
/** The slide methods a {@link CallIr} names. */
|
|
130
|
+
type CallMethod = 'addText' | 'addShape' | 'addImage' | 'addMedia' | 'addTable' | 'addChart' | 'addConnector' | 'addGroup' | 'addComment' | 'addAnimation' | 'addNotes';
|
|
131
|
+
/**
|
|
132
|
+
* Each method's positional parameters, from the write API. `addChart` is overloaded, and
|
|
133
|
+
* `Parameters` would see only its last signature, so both are spelled here.
|
|
134
|
+
*/
|
|
135
|
+
type CallParameters = { [M in Exclude<CallMethod, 'addChart'>]: Parameters<Slide[M]>; } & {
|
|
136
|
+
addChart: [data: OptsChartData[], options: ChartOpts & {
|
|
137
|
+
type: CHART_NAME;
|
|
138
|
+
}] | [charts: ChartMulti[], options?: ChartOpts];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* A write-API value as the IR holds it. An optional key or argument is absent rather than
|
|
142
|
+
* `undefined`, as {@link IrValue} requires, and a `data` or `cover` key, where the write API
|
|
143
|
+
* takes bytes, may hold an {@link AssetRef}.
|
|
144
|
+
*/
|
|
145
|
+
type IrArg<T> = T extends string | number | boolean | null ? T : T extends readonly unknown[] ? { [K in keyof T]: IrArg<Exclude<T[K], undefined>>; } : T extends object ? { [K in keyof T]: K extends 'data' | 'cover' ? IrArg<Exclude<T[K], undefined>> | AssetRef : IrArg<Exclude<T[K], undefined>>; } : never;
|
|
109
146
|
/**
|
|
110
147
|
* One write-API call on a slide, in the order it must be made. `method` names a real
|
|
111
|
-
* method on the authored slide and `args` are its positional arguments
|
|
112
|
-
* a formatter, and `readModelToIr` owns every semantic choice.
|
|
148
|
+
* method on the authored slide and `args` are its positional arguments, typed per method from
|
|
149
|
+
* the write API, so a printer is a formatter, and `readModelToIr` owns every semantic choice.
|
|
150
|
+
* Narrowing on `method` types `args`: after `call.method === 'addTable'`, `call.args[1]` is a
|
|
151
|
+
* `TableProps` as the IR spells it.
|
|
113
152
|
*
|
|
114
153
|
* Ordering is z-order: OOXML paints a slide's shape tree front-to-back in document order,
|
|
115
154
|
* and so does the write path, so preserving call order preserves overlap.
|
|
116
155
|
*/
|
|
117
|
-
|
|
118
|
-
method:
|
|
119
|
-
args:
|
|
156
|
+
type CallIr = { [M in CallMethod]: {
|
|
157
|
+
method: M;
|
|
158
|
+
args: IrArg<CallParameters[M]>;
|
|
120
159
|
/**
|
|
121
|
-
* The source shape's name (`p:cNvPr/@name`), when it had one. Not an argument
|
|
160
|
+
* The source shape's name (`p:cNvPr/@name`), when it had one. Not an argument;
|
|
122
161
|
* carried so a printer can comment the call and a fidelity note can point at it.
|
|
123
162
|
*/
|
|
124
163
|
sourceName?: string;
|
|
125
|
-
}
|
|
164
|
+
}; }[CallMethod];
|
|
165
|
+
/** A call's arguments widened to {@link IrValue}, for code that walks them generically. */
|
|
166
|
+
export declare function irArgs(call: CallIr): IrValue[];
|
|
126
167
|
/**
|
|
127
168
|
* How a slide's content gets into the output deck.
|
|
128
169
|
*
|
|
129
|
-
* `authored
|
|
170
|
+
* `authored`: every shape is transcribed into {@link CallIr}s and regenerated through
|
|
130
171
|
* the write API. This is the goal: the emitted source is editable, and a reader can see
|
|
131
172
|
* what the deck contains.
|
|
132
173
|
*
|
|
133
|
-
* `carried
|
|
174
|
+
* `carried`: the slide holds at least one construct the write API cannot express at all
|
|
134
175
|
* (`chartEx` is the clear case: a full reader, no emitter), so transcribing it would
|
|
135
176
|
* silently produce a different deck. A printer that *can* copy the slide from the source
|
|
136
177
|
* package should do so: fidelity is higher than transcription, though the emitted source then
|
|
@@ -146,34 +187,37 @@ type SlideSource = 'authored' | 'carried';
|
|
|
146
187
|
* A slide's background, already reduced to what the write API's `background` accepts.
|
|
147
188
|
*
|
|
148
189
|
* `data` rather than `image`, because `BackgroundProps` is `DataOrPathProps & ShapeFillProps`
|
|
149
|
-
* and `data` is the key it actually reads
|
|
190
|
+
* and `data` is the key it actually reads. An `image` key would print, typecheck against
|
|
150
191
|
* `IrValue`, and be ignored at run time.
|
|
151
192
|
*
|
|
152
193
|
* `type`, `gradient` and `pattern` are the `ShapeFillProps` keys a non-solid background is
|
|
153
|
-
* spelled with, the same values a shape's `fill` carries for the same elements.
|
|
194
|
+
* spelled with, the same values a shape's `fill` carries for the same elements. `type: 'none'`
|
|
195
|
+
* is a slide's explicit `a:noFill`, which turns its layout's background off.
|
|
154
196
|
*/
|
|
155
197
|
interface BackgroundIr {
|
|
156
|
-
type?: 'gradient' | 'pattern';
|
|
198
|
+
type?: 'gradient' | 'pattern' | 'none';
|
|
157
199
|
color?: string;
|
|
158
200
|
transparency?: number;
|
|
159
201
|
gradient?: IrValue;
|
|
160
202
|
pattern?: IrValue;
|
|
161
203
|
data?: AssetRef;
|
|
204
|
+
/** A cropped picture: `{ data, crop }`, the spelling that carries the crop. An uncropped one is {@link data}. */
|
|
205
|
+
image?: IrValue;
|
|
162
206
|
}
|
|
163
207
|
/**
|
|
164
208
|
* A transition's sound (`p:sndAc`), reduced to what `TransitionSoundProps` accepts.
|
|
165
209
|
*
|
|
166
210
|
* `data` rather than `path`, for the same reason a background image uses `data`: the bytes
|
|
167
211
|
* are the thing the IR carries, and a path would bind the script to a file layout the IR
|
|
168
|
-
* knows nothing about. The stop-previous form has no bytes at all
|
|
169
|
-
* still playing from the previous slide
|
|
212
|
+
* knows nothing about. The stop-previous form has no bytes at all (it silences a sound
|
|
213
|
+
* still playing from the previous slide), so it is the one shape here with no {@link AssetRef}.
|
|
170
214
|
*/
|
|
171
215
|
interface TransitionSoundIr {
|
|
172
216
|
/** Bytes of the embedded WAV, for a start sound. Absent for {@link stopPrevious}. */
|
|
173
217
|
data?: AssetRef;
|
|
174
218
|
/** `p:snd@name`, the display name PowerPoint shows for the sound. */
|
|
175
219
|
name?: string;
|
|
176
|
-
/** `p:stSnd@loop
|
|
220
|
+
/** `p:stSnd@loop`: repeat until the next sound starts. Omitted when false, its default. */
|
|
177
221
|
loop?: boolean;
|
|
178
222
|
/** The `p:endSnd` form: stop the previous slide's sound rather than start one. */
|
|
179
223
|
stopPrevious?: boolean;
|
|
@@ -183,7 +227,7 @@ interface TransitionSoundIr {
|
|
|
183
227
|
*
|
|
184
228
|
* Only the base ECMA-376 transitions reach this type. The read model reports
|
|
185
229
|
* `TransitionInfo.type` as an *open string*, because PowerPoint's modern effects
|
|
186
|
-
* (Morph, Vortex, …) live in the `p14`/`p15`/`p159` namespaces and it decodes those too
|
|
230
|
+
* (Morph, Vortex, …) live in the `p14`/`p15`/`p159` namespaces and it decodes those too,
|
|
187
231
|
* but the write path names 21 base ones and nothing else, so `from-read/transition.ts`
|
|
188
232
|
* filters against that vocabulary and notes what it drops. Anything that survives is a name
|
|
189
233
|
* the write API's own `TransitionType` union accepts, which is what keeps a printed script
|
|
@@ -192,7 +236,7 @@ interface TransitionSoundIr {
|
|
|
192
236
|
interface TransitionIr {
|
|
193
237
|
/** The transition-type element's local name, guaranteed to be a writable one. */
|
|
194
238
|
type: string;
|
|
195
|
-
/** `p:transition@spd`. Always present
|
|
239
|
+
/** `p:transition@spd`. Always present; see `from-read/transition.ts` for why it is not omitted. */
|
|
196
240
|
speed: 'slow' | 'med' | 'fast';
|
|
197
241
|
/** `p14:dur` in milliseconds, when the source carried an exact duration. */
|
|
198
242
|
durationMs?: number;
|
|
@@ -212,7 +256,7 @@ interface TransitionIr {
|
|
|
212
256
|
*
|
|
213
257
|
* The **name** is the portable identity: it is what lets a script built from one deck be
|
|
214
258
|
* re-pointed at a different template whose layouts happen to be named the same, and it is
|
|
215
|
-
* what a reader recognises. But `p:cSld@name` is not unique
|
|
259
|
+
* what a reader recognises. But `p:cSld@name` is not unique: a deck with several masters
|
|
216
260
|
* routinely carries several "Title and Content" layouts, and binding by an ambiguous name
|
|
217
261
|
* is an error, not a coin flip. The **index** into the deck's layout gallery always
|
|
218
262
|
* resolves, so it is the fallback, and {@link nameIsUnique} says which to trust.
|
|
@@ -232,35 +276,51 @@ interface SlideIr {
|
|
|
232
276
|
source: SlideSource;
|
|
233
277
|
/** The layout to bind to, or `null` when the source slide resolves none. */
|
|
234
278
|
layout: SlideLayoutIr | null;
|
|
235
|
-
/** `p:sld/@show="0"
|
|
279
|
+
/** `p:sld/@show="0"`: a slide hidden from presentation but present in the deck. */
|
|
236
280
|
hidden: boolean;
|
|
237
281
|
/** `p:cSld/@name`, when the source slide had one. */
|
|
238
282
|
name?: string;
|
|
239
283
|
background?: BackgroundIr;
|
|
240
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Speaker notes as plain text, when no run states formatting `addNotes` can write. Notes-slide
|
|
286
|
+
* geometry and placeholders do not survive.
|
|
287
|
+
*/
|
|
241
288
|
notesText?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Speaker notes as the `NotesProps[]` `addNotes` takes, in place of {@link notesText} when a run
|
|
291
|
+
* is bold, italic, underlined, coloured, sized, set in a face of its own or links to a URL. A
|
|
292
|
+
* paragraph break rides on a run's text as `\n`.
|
|
293
|
+
*/
|
|
294
|
+
notesRuns?: IrValue[];
|
|
242
295
|
/**
|
|
243
296
|
* The show transition, when the source has one the write API can name. Slide-scoped
|
|
244
297
|
* rather than a {@link CallIr} because the write API models it as a property assignment
|
|
245
|
-
* on the slide, not a method
|
|
298
|
+
* on the slide, not a method; the IR's `method` union names real methods only.
|
|
246
299
|
*/
|
|
247
300
|
transition?: TransitionIr;
|
|
301
|
+
/**
|
|
302
|
+
* The slide's number placeholder, as the write API's `slideNumber` option. Slide-scoped for
|
|
303
|
+
* the reason {@link transition} is: the write API sets it by assignment, not by a method.
|
|
304
|
+
*/
|
|
305
|
+
slideNumber?: {
|
|
306
|
+
[key: string]: IrValue;
|
|
307
|
+
};
|
|
248
308
|
/**
|
|
249
309
|
* Write-API calls in z-order.
|
|
250
310
|
*
|
|
251
311
|
* Populated for every slide, **including a `carried` one**. A printer that can copy the
|
|
252
|
-
* source slide ignores these; one that cannot
|
|
253
|
-
* to copy from
|
|
312
|
+
* source slide ignores these; one that cannot (a standalone output has no source package
|
|
313
|
+
* to copy from) prints them and is left with only the unwritable construct missing rather
|
|
254
314
|
* than the whole slide. Marking a slide `carried` is a recommendation, not an erasure.
|
|
255
315
|
*/
|
|
256
316
|
calls: CallIr[];
|
|
257
317
|
}
|
|
258
318
|
/**
|
|
259
|
-
* A deck's theme, reduced to what `ThemeProps` accepts
|
|
319
|
+
* A deck's theme, reduced to what `ThemeProps` accepts: the 12 `a:clrScheme` slots and the
|
|
260
320
|
* major/minor Latin, East-Asian and complex-script faces.
|
|
261
321
|
*
|
|
262
|
-
* What is *not* here is the point of the tier split. `a:fmtScheme`
|
|
263
|
-
* line and three effect style lists a shape's `p:style` references
|
|
322
|
+
* What is *not* here is the point of the tier split. `a:fmtScheme` (the three fill, three
|
|
323
|
+
* line and three effect style lists a shape's `p:style` references) has no write-API
|
|
264
324
|
* counterpart and no read accessor, so a theme cannot be reproduced, only approximated.
|
|
265
325
|
*/
|
|
266
326
|
interface ThemeIr {
|
|
@@ -280,7 +340,7 @@ interface ThemeIr {
|
|
|
280
340
|
*
|
|
281
341
|
* The naming is the write API's, not OOXML's: `defineSlideMaster` creates a *layout* under
|
|
282
342
|
* the single shared master, which is exactly the granularity a source layout needs. A source
|
|
283
|
-
* deck's masters have no counterpart at all
|
|
343
|
+
* deck's masters have no counterpart at all, hence {@link ChromeIr}'s multi-master note.
|
|
284
344
|
*/
|
|
285
345
|
interface MasterIr {
|
|
286
346
|
/**
|
|
@@ -299,7 +359,7 @@ interface MasterIr {
|
|
|
299
359
|
}
|
|
300
360
|
/**
|
|
301
361
|
* The deck's shared chrome, approximated for an output that has no template to inherit it
|
|
302
|
-
* from. A template-anchored printer ignores this entirely
|
|
362
|
+
* from. A template-anchored printer ignores this entirely: the source deck *is* the chrome.
|
|
303
363
|
*/
|
|
304
364
|
interface ChromeIr {
|
|
305
365
|
theme: ThemeIr;
|
|
@@ -371,12 +431,8 @@ interface DeckIr {
|
|
|
371
431
|
*/
|
|
372
432
|
fidelity: FidelityNote[];
|
|
373
433
|
}
|
|
374
|
-
//#endregion
|
|
375
|
-
//#region src/script/from-read/deck.d.ts
|
|
376
434
|
/** Convert a loaded deck into its IR. */
|
|
377
435
|
export declare function readModelToIr(pres: Presentation): DeckIr;
|
|
378
|
-
//#endregion
|
|
379
|
-
//#region src/script/print/common.d.ts
|
|
380
436
|
/** How image bytes reach the emitted script. */
|
|
381
437
|
type AssetMode =
|
|
382
438
|
/** Written beside the script and read at run time. Keeps the script readable. */
|
|
@@ -415,26 +471,20 @@ interface CommonPrintOptions {
|
|
|
415
471
|
*/
|
|
416
472
|
packageName?: string;
|
|
417
473
|
}
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/script/print/script.d.ts
|
|
420
474
|
interface PrintScriptOptions extends CommonPrintOptions {
|
|
421
475
|
/**
|
|
422
476
|
* Path the emitted script loads its template from, resolved against the script's own
|
|
423
|
-
* location. This is the **source deck unchanged
|
|
477
|
+
* location. This is the **source deck unchanged**; `fromTemplate` strips its slides.
|
|
424
478
|
* @default './template.pptx'
|
|
425
479
|
*/
|
|
426
480
|
templatePath?: string;
|
|
427
481
|
}
|
|
428
482
|
/** Turn a deck IR into a runnable, template-anchored TypeScript module. */
|
|
429
483
|
export declare function printScript(ir: DeckIr, options?: PrintScriptOptions): PrintedScript;
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region src/script/print/standalone.d.ts
|
|
432
484
|
/** The standalone printer's options: exactly the ones both tiers share. */
|
|
433
485
|
type PrintStandaloneScriptOptions = CommonPrintOptions;
|
|
434
486
|
/** Turn a deck IR into a runnable TypeScript module that needs no template. */
|
|
435
487
|
export declare function printStandaloneScript(ir: DeckIr, options?: PrintStandaloneScriptOptions): PrintedScript;
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region src/script/verify/canonical.d.ts
|
|
438
488
|
/** One write-API call, with the source shape name lifted out as an address rather than data. */
|
|
439
489
|
interface CanonicalCall {
|
|
440
490
|
method: string;
|
|
@@ -445,7 +495,7 @@ interface CanonicalCall {
|
|
|
445
495
|
* group's children.
|
|
446
496
|
*
|
|
447
497
|
* A fidelity note about a group's child is scoped to that child's name, but the child is
|
|
448
|
-
* not a call of its own
|
|
498
|
+
* not a call of its own; it is an argument to the group's. Without this the note and the
|
|
449
499
|
* difference it predicted would carry different names and never match, and a declared loss
|
|
450
500
|
* would be reported as a defect.
|
|
451
501
|
*/
|
|
@@ -457,7 +507,7 @@ interface CanonicalSlide {
|
|
|
457
507
|
hidden: boolean;
|
|
458
508
|
/**
|
|
459
509
|
* The name of the layout this slide binds to, which is the only part of the binding that
|
|
460
|
-
* is portable
|
|
510
|
+
* is portable. A gallery *index* shifts whenever the output's gallery differs from the
|
|
461
511
|
* source's, which it always does for a standalone output.
|
|
462
512
|
*
|
|
463
513
|
* Here because the binding is otherwise invisible: a printer that bound every slide to the
|
|
@@ -467,6 +517,8 @@ interface CanonicalSlide {
|
|
|
467
517
|
layoutName: string | null;
|
|
468
518
|
background: IrValue | null;
|
|
469
519
|
notesText: string | null;
|
|
520
|
+
/** {@link SlideIr.notesRuns}, or `null`. */
|
|
521
|
+
notesRuns: IrValue | null;
|
|
470
522
|
/**
|
|
471
523
|
* The show transition, or `null`.
|
|
472
524
|
*
|
|
@@ -478,6 +530,8 @@ interface CanonicalSlide {
|
|
|
478
530
|
* wrong transition *type*.
|
|
479
531
|
*/
|
|
480
532
|
transition: IrValue | null;
|
|
533
|
+
/** The slide number placeholder, or `null`; here for the reason {@link transition} is. */
|
|
534
|
+
slideNumber: IrValue | null;
|
|
481
535
|
calls: CanonicalCall[];
|
|
482
536
|
}
|
|
483
537
|
/**
|
|
@@ -485,7 +539,7 @@ interface CanonicalSlide {
|
|
|
485
539
|
*
|
|
486
540
|
* Included for one reason: without it the diff cannot see the standalone tier's whole job.
|
|
487
541
|
* That tier re-authors the theme and one master per source layout, and a projection that
|
|
488
|
-
* covers only slides would report a printer emitting *neither* as a clean round trip
|
|
542
|
+
* covers only slides would report a printer emitting *neither* as a clean round trip: the
|
|
489
543
|
* same shape of hole mutation testing found in `added` differences, one level up. A
|
|
490
544
|
* template-anchored output compares equal here by construction, which is the claim that tier
|
|
491
545
|
* makes and is worth checking rather than assuming.
|
|
@@ -507,12 +561,10 @@ interface CanonicalDeck {
|
|
|
507
561
|
}
|
|
508
562
|
/** Reduce a deck IR to the comparable form. */
|
|
509
563
|
export declare function canonicalDeckIr(ir: DeckIr): CanonicalDeck;
|
|
510
|
-
//#endregion
|
|
511
|
-
//#region src/script/verify/diff.d.ts
|
|
512
564
|
/**
|
|
513
565
|
* Which way a difference points.
|
|
514
566
|
*
|
|
515
|
-
* `lost` and `changed` are the ones the fidelity contract governs
|
|
567
|
+
* `lost` and `changed` are the ones the fidelity contract governs: the source said
|
|
516
568
|
* something the output does not, or says differently. `added` is the write path being
|
|
517
569
|
* explicit where the source was implicit, which is *usually* harmless and is reported
|
|
518
570
|
* separately for a reason worth stating: this diff cannot tell whether the value the write
|
|
@@ -526,21 +578,21 @@ interface IrDifference {
|
|
|
526
578
|
/** Source shape name, when the difference sits inside a call that has one. */
|
|
527
579
|
shapeName: string | null;
|
|
528
580
|
/**
|
|
529
|
-
* Shape names nested inside the same call
|
|
581
|
+
* Shape names nested inside the same call: a group's children. A note scoped to one of
|
|
530
582
|
* these also declares differences reported against the call that carries it.
|
|
531
583
|
*/
|
|
532
584
|
nestedNames: string[];
|
|
533
585
|
/** Where in the slide's projection, e.g. `calls[4].args[1].line.width`. */
|
|
534
586
|
path: string;
|
|
535
587
|
/**
|
|
536
|
-
* The option name the difference is about
|
|
588
|
+
* The option name the difference is about: the last object key on {@link path}, or
|
|
537
589
|
* `'*'` when a whole call is present on one side only. This is what a note's `construct`
|
|
538
590
|
* is matched against, which is why `construct` has to name a field path rather than
|
|
539
591
|
* describe one.
|
|
540
592
|
*/
|
|
541
593
|
field: string;
|
|
542
594
|
kind: DifferenceKind;
|
|
543
|
-
/** The source value, JSON-encoded and truncated for reporting. `'
|
|
595
|
+
/** The source value, JSON-encoded and truncated for reporting. An em dash (`'\u2014'`) when absent. */
|
|
544
596
|
expected: string;
|
|
545
597
|
/** The output value, likewise. */
|
|
546
598
|
actual: string;
|
|
@@ -564,7 +616,7 @@ interface RoundTripReport {
|
|
|
564
616
|
* Notes that matched no difference.
|
|
565
617
|
*
|
|
566
618
|
* **Not a defect signal, despite the obvious reading.** Most notes name constructs the
|
|
567
|
-
* read model cannot see at all
|
|
619
|
+
* read model cannot see at all (a bullet's `a:buFont`, a shape's theme `effectRef`),
|
|
568
620
|
* so they are absent from *both* IRs and there is nothing for them to match. A note
|
|
569
621
|
* here is a candidate for review, not a stale claim.
|
|
570
622
|
*/
|
|
@@ -572,24 +624,23 @@ interface RoundTripReport {
|
|
|
572
624
|
}
|
|
573
625
|
/**
|
|
574
626
|
* Every note construct this table knows how to match, for a test to check against. The
|
|
575
|
-
* `layout.` spellings are not listed
|
|
627
|
+
* `layout.` spellings are not listed; they resolve through {@link isKnownNoteConstruct},
|
|
576
628
|
* which is what a corpus check should use.
|
|
577
629
|
*/
|
|
578
630
|
export declare function knownNoteConstructs(): string[];
|
|
579
631
|
/**
|
|
580
632
|
* Compare the deck a script was generated from against the deck it produced.
|
|
581
633
|
*
|
|
582
|
-
* `notes` must be the set that actually applies to the printed output
|
|
634
|
+
* `notes` must be the set that actually applies to the printed output: `printScript`'s
|
|
583
635
|
* returned `notes`, not `DeckIr.fidelity`. The two differ in both directions: the printer
|
|
584
636
|
* suppresses notes its tier rescues and adds ones its tier causes, so diffing against the
|
|
585
637
|
* IR's own list would both over- and under-exclude.
|
|
586
638
|
*/
|
|
587
639
|
export declare function diffDeckIr(expected: CanonicalDeck, actual: CanonicalDeck, notes: FidelityNote[]): RoundTripReport;
|
|
588
640
|
/**
|
|
589
|
-
* `true` when the coverage table can match this construct
|
|
641
|
+
* `true` when the coverage table can match this construct, directly or through the
|
|
590
642
|
* layout-shape fallback. The check a corpus test runs over every note both printers emit.
|
|
591
643
|
*/
|
|
592
644
|
export declare function isKnownNoteConstruct(construct: string): boolean;
|
|
593
|
-
|
|
594
|
-
export { type AssetIr, type AssetMode, type AssetRef, type BackgroundIr, type CallIr, type CanonicalCall, type CanonicalChrome, type CanonicalDeck, type CanonicalSlide, type Cause, type ChromeIr, type CommonPrintOptions, type DeckIr, type DeckPropKey, type DeckPropsIr, type Diagnostic, type DiagnosticCode, type DiagnosticHandler, type DifferenceKind, type Disposition, type ErrorCode, type FidelityNote, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type IrDifference, type IrValue, type MasterIr, MediaError, type MediaErrorCode, PackageReadError, type PackageReadErrorCode, type PrintScriptOptions, type PrintStandaloneScriptOptions, type PrintedScript, type RoundTripReport, type SlideIr, type SlideLayoutIr, type SlideSource, type ThemeIr, type TransitionIr, type TransitionSoundIr, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, resetDiagnosticState, setDiagnosticHandler };
|
|
645
|
+
export { type AssetIr, type AssetMode, type AssetRef, type BackgroundIr, type CallIr, type CallMethod, type CallParameters, type CanonicalCall, type CanonicalChrome, type CanonicalDeck, type CanonicalSlide, type Cause, type ChromeIr, type CommonPrintOptions, type DeckIr, type DeckPropKey, type DeckPropsIr, type Diagnostic, type DiagnosticCode, type DiagnosticHandler, type DifferenceKind, type Disposition, type ErrorCode, type FidelityNote, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type IrArg, type IrDifference, type IrValue, type MasterIr, MediaError, type MediaErrorCode, PackageReadError, type PackageReadErrorCode, type PptxTsCode, PptxTsError, type PptxTsErrorOptions, type PrintScriptOptions, type PrintStandaloneScriptOptions, type PrintedScript, type RoundTripReport, type SlideIr, type SlideLayoutIr, type SlideSource, type ThemeIr, type TransitionIr, type TransitionSoundIr, TsPptxCode, TsPptxError, TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, resetDiagnosticState, setDiagnosticHandler };
|
|
595
646
|
//# sourceMappingURL=script.d.ts.map
|
package/dist/script.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script.d.ts","names":[],"sources":["../src/script/fidelity.ts","../src/script/ir.ts","../src/script/from-read/deck.ts","../src/script/print/common.ts","../src/script/print/script.ts","../src/script/print/standalone.ts","../src/script/verify/canonical.ts","../src/script/verify/diff.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"script.d.ts","names":[],"sources":["../src/script/fidelity.ts","../src/script/ir.ts","../src/script/from-read/deck.ts","../src/script/print/common.ts","../src/script/print/script.ts","../src/script/print/standalone.ts","../src/script/verify/canonical.ts","../src/script/verify/diff.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAgbY;;;;;;;;;;;;;;;;;;;;;KAsBA;;;;;;;;UASK;;EAEhB;;;;;EAKA;;;;;;;;;;EAUA;EACA,aAAa;EACb,OAAO;;EAEP;;;;;;;;;;;;;;;;;;;;qBAkDY;;;;;;;;;;UC9eI;EAChB;;;wBAIe,WAAW,iBAAiB,SAAS;;;;;;;KAUzC,6CAA6C,WAAW;GAAe,cAAc;;;UAmBhF;;EAEhB;;EAEA;EACA,OAAO;;;KAII;;;;;KAiBA,oBAAoB,KAAK,QAAQ,0BAA0B,WAAW,MAAM;EACvF,WACI,MAAM,iBAAiB,SAAS;IAAc,MAAM;QACpD,QAAQ,cAAc,UAAU;;;;;;;KAQzB,MAAM,KAAK,6CACpB,IACA,kCACI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