@shbernal/ts-pptx 3.4.0 → 3.6.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.
Files changed (66) hide show
  1. package/dist/{autopage-BYlTzX-l.js → autopage-DkjYZUFD.js} +3 -3
  2. package/dist/{autopage-BYlTzX-l.js.map → autopage-DkjYZUFD.js.map} +1 -1
  3. package/dist/browser.d.ts +5 -5
  4. package/dist/browser.js +4 -4
  5. package/dist/browser.js.map +1 -1
  6. package/dist/{diagnostics-B0OmTOoz.d.ts → diagnostics-Du_s75MT.d.ts} +20 -5
  7. package/dist/diagnostics-Du_s75MT.d.ts.map +1 -0
  8. package/dist/{errors-fB1KDJKQ.d.ts → errors-PflMPWBn.d.ts} +3 -3
  9. package/dist/{errors-fB1KDJKQ.d.ts.map → errors-PflMPWBn.d.ts.map} +1 -1
  10. package/dist/{fit-TjpNbMru.js → fit-BKs0zxMI.js} +3 -3
  11. package/dist/{fit-TjpNbMru.js.map → fit-BKs0zxMI.js.map} +1 -1
  12. package/dist/{html-dom-yUSdCExA.js → html-dom-B0I0QSbU.js} +4 -4
  13. package/dist/{html-dom-yUSdCExA.js.map → html-dom-B0I0QSbU.js.map} +1 -1
  14. package/dist/html.d.ts +3 -3
  15. package/dist/html.js +1 -1
  16. package/dist/index.d.ts +5 -5
  17. package/dist/index.js +3 -3
  18. package/dist/inspect.d.ts +28 -4
  19. package/dist/inspect.d.ts.map +1 -1
  20. package/dist/inspect.js +42 -11
  21. package/dist/inspect.js.map +1 -1
  22. package/dist/math.d.ts +1 -1
  23. package/dist/measure.d.ts +2 -2
  24. package/dist/measure.js +1 -1
  25. package/dist/{namespaces-Sy_m7Nhd.js → namespaces-BVnNu7sg.js} +77 -3
  26. package/dist/namespaces-BVnNu7sg.js.map +1 -0
  27. package/dist/node.d.ts +5 -5
  28. package/dist/node.js +3 -3
  29. package/dist/{notes-bWApshah.js → notes-RLCwdlTE.js} +289 -313
  30. package/dist/{notes-bWApshah.js.map → notes-RLCwdlTE.js.map} +1 -1
  31. package/dist/{pres-Dybf7ZUl.d.ts → pres-C5__xkDh.d.ts} +2 -2
  32. package/dist/{pres-Dybf7ZUl.d.ts.map → pres-C5__xkDh.d.ts.map} +1 -1
  33. package/dist/{presentation-3rAKKRfm.js → presentation-Cp7vzlAw.js} +566 -519
  34. package/dist/presentation-Cp7vzlAw.js.map +1 -0
  35. package/dist/{presentation-types-D7cgT-eG.d.ts → presentation-types-DP_8jog7.d.ts} +514 -276
  36. package/dist/presentation-types-DP_8jog7.d.ts.map +1 -0
  37. package/dist/read.d.ts +31 -48
  38. package/dist/read.d.ts.map +1 -1
  39. package/dist/read.js +3 -3
  40. package/dist/script.d.ts +2 -2
  41. package/dist/script.d.ts.map +1 -1
  42. package/dist/script.js +84 -75
  43. package/dist/script.js.map +1 -1
  44. package/dist/{shapes-Dyw5bxwO.js → shapes-BemroU-z.js} +1010 -306
  45. package/dist/shapes-BemroU-z.js.map +1 -0
  46. package/dist/{slide-B_aInw3N.d.ts → slide-js0QpRV-.d.ts} +1278 -1254
  47. package/dist/slide-js0QpRV-.d.ts.map +1 -0
  48. package/dist/{text-DSN3anEh.js → text-CyetbF6p.js} +2039 -1417
  49. package/dist/text-CyetbF6p.js.map +1 -0
  50. package/dist/units-1kRzYShk.js +231 -0
  51. package/dist/units-1kRzYShk.js.map +1 -0
  52. package/dist/units-internal-Dg95w_YD.js +753 -0
  53. package/dist/units-internal-Dg95w_YD.js.map +1 -0
  54. package/dist/zip.d.ts +1 -1
  55. package/package.json +2 -1
  56. package/dist/diagnostics-B0OmTOoz.d.ts.map +0 -1
  57. package/dist/diagnostics-CPVADSL1.js +0 -90
  58. package/dist/diagnostics-CPVADSL1.js.map +0 -1
  59. package/dist/namespaces-Sy_m7Nhd.js.map +0 -1
  60. package/dist/presentation-3rAKKRfm.js.map +0 -1
  61. package/dist/presentation-types-D7cgT-eG.d.ts.map +0 -1
  62. package/dist/shapes-Dyw5bxwO.js.map +0 -1
  63. package/dist/slide-B_aInw3N.d.ts.map +0 -1
  64. package/dist/text-DSN3anEh.js.map +0 -1
  65. package/dist/units-internal-DNvK2I6o.js +0 -896
  66. package/dist/units-internal-DNvK2I6o.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-types-DP_8jog7.d.ts","names":[],"sources":["../src/embedded-fonts.ts","../src/read/oxml/theme.ts","../src/read/oxml/color-transform.ts","../src/read/api/theme-context.ts","../src/read/api/gradient.ts","../src/read/api/picture-fill.ts","../src/read/api/slide-background.ts","../src/read/api/shapes/oxml.ts","../src/read/api/pattern-fill.ts","../src/read/api/shapes/types.ts","../src/read/api/text.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-style-resolve.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/slide.ts","../src/read/api/document-properties.ts","../src/read/api/presentation.ts","../src/read/api/presentation-types.ts"],"mappings":";;;;;;;;;cA8Ba;KACD,2BAA2B;;UAGtB;EAChB,MAAM;EACN,QAAQ;;;UAIQ;;EAEhB;EACA;EACA;EACA;EACA,OAAO;;;;;;;;;;UCkBS;EAChB,QAAQ;EACR,WAAW;;;;;;;;;;;UAYK,qBAAqB;EACrC,WAAW;;;;;EAKX,aAAa;;;;;EAKb,aAAa;;;;;;;EAOb,aAAa;;;;;;;;;;EAUb,aAAa;;;;;;;;;EASb,mBAAmB;;;;;UChFH;EAChB;EACA;;;UAIgB;EAChB;EACA;;;;;;;;;;;iBAiHe,qBAAqB,iBAAiB,YAAY,mBAAmB;;;;UC0EpE;EAChB;EACA;;;KAwLW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D;;EAEhB,iBAAiB;;;;;EAKjB;;EAEA;;;UAIgB;;EAEhB,QAAQ;;;;;EAKR;;EAEA;;;;;;;;;;;;;;EAcA;;;UAIgB;;;;;;;EAOhB"}
package/dist/read.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { t as CustomPropertyValue } from "./pres-Dybf7ZUl.js";
2
- import { $ as CellThreeD, $t as ShapeType, A as Theme, At as AutofitMode, B as ModernCommentAuthor, Bt as ChildFrame, C as TransitionInfo, Ct as ChartLine, D as Placeholder, Dt as AutoShape, E as ColorMapToken, Et as Picture, F as readTagsForPart, Ft as Paragraph, G as isAutoShape, Gt as Glow, H as NotesSlide, Ht as CustomGeometry, I as Comment, It as Run, J as isGroupShape, Jt as LineEnds, K as isConnector, Kt as InnerShadow, L as CommentAuthor, Lt as RunHyperlink, M as ThemeFontFace, Mt as BulletDetail, N as ThemeFontScheme, Nt as BulletStyle, O as SlideLayout, Ot as Shape, P as Tag, Pt as LineSpacing, Q as CellBorders, Qt as Reflection, R as CommentSchema, Rt as TextFrame, S as Slide, St as ChartLegend, T as TransitionSpeed, Tt as Connector, U as AnyShape, Ut as CustomGeometryPath, V as NotesPlaceholder, Vt as ConnectionSite, W as GroupShape, Wt as GeometryCommand, X as GraphicFrame, Xt as Recolor, Y as isPicture, Yt as OuterShadow, Z as CellBorder, Zt as RecolorColor, _ as CustomProperty, _t as AxisNumberFormat, a as ExtractedSlides, an as FillRect, at as TableConditionFlags, b as AddPictureOptions, bt as ChartDataLabels, c as ImportSlideMastersOptions, cn as GradientFill, ct as DiagramConnection, d as ImportedSlideMaster, dn as resolveColorElement, dt as DiagramPointType, en as SoftEdge, et as Table, f as LayoutHandle, fn as ColorContext, ft as ChartEx, g as CoreProperties, gt as ChartExSeries, h as Presentation, ht as ChartExLegend, i as ExtractedSlide, in as SlideBackground, it as ResolvedTableStyle, j as ThemeColorSlot, jt as BodyProperties, k as SlideMaster, kt as ShapeHost, l as ImportSlideOptions, ln as GradientStop, lt as DiagramConnectionType, m as SlideSource, mt as ChartExDataLabels, n as EmbeddedFontFaceInfo, nn as BackgroundFill, nt as TableCellBorderEdit, o as FromTemplateOptions, on as PictureFill, ot as TableCellEdge, p as SlideSize, pt as ChartExAxis, q as isGraphicFrame, qt as LineEnd, r as EmbeddedFontInfo, rn as BackgroundSource, rt as TableRow, s as ImportShapeOptions, sn as PictureFillTile, st as Diagram, t as AppendSlidesOptions, tn as PatternFill, tt as TableCell, u as ImportSlidesRequest, un as ResolvedColor, ut as DiagramPoint, v as readCoreProperties, vt as Chart, w as TransitionInput, wt as ChartSeries, x as AddTextBoxOptions, xt as ChartFill, y as readCustomProperties, yt as ChartAxis, z as ModernComment, zt as AbsoluteFrame } from "./presentation-types-D7cgT-eG.js";
1
+ import { ct as ColorMapToken, ft as ThemeColorSlot } from "./slide-js0QpRV-.js";
2
+ import { t as CustomPropertyValue } from "./pres-C5__xkDh.js";
3
+ import { $ as TableCell, $t as ShapeType, A as CommentSchema, At as AutofitMode, B as ThemeFontScheme, Bt as ChildFrame, C as TransitionInfo, Ct as ChartLine, D as readTagsForPart, Dt as AutoShape, E as Tag, Et as Picture, F as Placeholder, Ft as Paragraph, G as isGraphicFrame, Gt as Glow, H as GroupShape, Ht as CustomGeometry, I as SlideLayout, It as Run, J as GraphicFrame, Jt as LineEnds, K as isGroupShape, Kt as InnerShadow, L as SlideMaster, Lt as RunHyperlink, M as ModernCommentAuthor, Mt as BulletDetail, N as NotesPlaceholder, Nt as BulletStyle, O as Comment, Ot as Shape, P as NotesSlide, Pt as LineSpacing, Q as Table, Qt as Reflection, R as Theme, Rt as TextFrame, S as Slide, St as ChartLegend, T as TransitionSpeed, Tt as Connector, U as isAutoShape, Ut as CustomGeometryPath, V as AnyShape, Vt as ConnectionSite, W as isConnector, Wt as GeometryCommand, X as CellBorders, Xt as Recolor, Y as CellBorder, Yt as OuterShadow, Z as CellThreeD, Zt as RecolorColor, _ as CustomProperty, _t as AxisNumberFormat, a as ExtractedSlides, an as FillRect, at as Diagram, b as AddPictureOptions, bt as ChartDataLabels, c as ImportSlideMastersOptions, cn as GradientFill, ct as DiagramDrawnShape, d as ImportedSlideMaster, dn as resolveColorElement, dt as DiagramPointType, en as SoftEdge, et as TableCellBorderEdit, f as LayoutHandle, fn as ColorTransform, ft as ChartEx, g as CoreProperties, gt as ChartExSeries, h as Presentation, hn as ColorContext, ht as ChartExLegend, i as ExtractedSlide, in as SlideBackground, it as TableCellEdge, j as ModernComment, jt as BodyProperties, k as CommentAuthor, kt as ShapeHost, l as ImportSlideOptions, ln as GradientStop, lt as DiagramNode, m as SlideSource, mn as applyColorTransforms, mt as ChartExDataLabels, n as EmbeddedFontFaceInfo, nn as BackgroundFill, nt as ResolvedTableStyle, o as FromTemplateOptions, on as PictureFill, ot as DiagramConnection, p as SlideSize, pn as EffectiveColor, pt as ChartExAxis, q as isPicture, qt as LineEnd, r as EmbeddedFontInfo, rn as BackgroundSource, rt as TableConditionFlags, s as ImportShapeOptions, sn as PictureFillTile, st as DiagramConnectionType, t as AppendSlidesOptions, tn as PatternFill, tt as TableRow, u as ImportSlidesRequest, un as ResolvedColor, ut as DiagramPoint, v as readCoreProperties, vt as Chart, w as TransitionInput, wt as ChartSeries, x as AddTextBoxOptions, xt as ChartFill, y as readCustomProperties, yt as ChartAxis, z as ThemeFontFace, zt as AbsoluteFrame } from "./presentation-types-DP_8jog7.js";
3
4
  import { a as Part, i as Relationships, n as OpcPackage, r as Relationship, s as ContentTypes, t as OpcInput } from "./package-CaOLXSNi.js";
4
- import { a as TsPptxError, d as InvalidOptionErrorCode, f as MediaErrorCode, h as UnsupportedFeatureErrorCode, i as PackageReadError, l as ErrorCode, m as TsPptxCode, n as InvalidOptionError, o as TsPptxErrorOptions, p as PackageReadErrorCode, r as MediaError, s as UnsupportedFeatureError, t as InternalError, u as InternalErrorCode } from "./errors-fB1KDJKQ.js";
5
+ import { a as TsPptxError, d as InvalidOptionErrorCode, f as MediaErrorCode, h as UnsupportedFeatureErrorCode, i as PackageReadError, l as ErrorCode, m as TsPptxCode, n as InvalidOptionError, o as TsPptxErrorOptions, p as PackageReadErrorCode, r as MediaError, s as UnsupportedFeatureError, t as InternalError, u as InternalErrorCode } from "./errors-PflMPWBn.js";
5
6
  //#region src/read/opc/partnames.d.ts
6
7
  /** Partname of the `.rels` part holding `sourcePartName`'s relationships ('/' = package). */
7
8
  declare function relsPartNameFor(sourcePartName: string): string;
@@ -14,59 +15,41 @@ declare function relsPartNameFor(sourcePartName: string): string;
14
15
  */
15
16
  declare function resolveRelativePartName(sourcePartName: string, target: string): string;
16
17
  //#endregion
17
- //#region src/read/oxml/color-transform.d.ts
18
+ //#region src/read/oxml/preset-color.d.ts
18
19
  /**
19
- * Apply DrawingML colour-transform modifiers (`lumMod`/`lumOff`/`shade`/`tint`/
20
- * `satMod`/`alpha`/…) to a base sRGB colour, returning the *effective* colour a
21
- * renderer would paint.
20
+ * The ECMA-376 preset colour table (`a:prstClr/@val` → literal RGB).
22
21
  *
23
- * The read model resolves a `schemeClr`/`srgbClr` reference to its **base** hex
24
- * and carries the transform children verbatim (so the `theme: 'preserve'` flatten
25
- * path can re-emit them byte-for-byte). This module is the missing step that
26
- * turns that base hex + transform list into the final rendered hex, so a consumer
27
- * never hand-computes a tint/shade again.
22
+ * `ST_PresetColorVal` (§20.1.10.47) enumerates 190 names, and the standard gives each one an
23
+ * RGB triple. They are the HTML/CSS named colours: every value in the enumeration has the same
24
+ * 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 —
28
26
  *
29
- * Colour-space model (verified against PowerPoint output — see
30
- * `test/read/color-transform.test.js`): the working colour is kept canonical as
31
- * sRGB between transforms; each transform converts into the space its family
32
- * operates in, applies, and converts back to sRGB. Transforms apply in **document
33
- * order** (ECMA-376 §20.1.2.3).
27
+ * - abbreviated prefixes: `dk*`/`lt*`/`med*` alongside `dark*`/`light*`/`medium*`
28
+ * (`dkSlateBlue` is `darkSlateBlue`), and only as a *prefix* — `medium…` is not `mediumium…`;
29
+ * - both spellings of grey: `dimGrey` is `dimGray`;
30
+ * - case: the enumeration is camelCase, the table below is folded to lower case.
34
31
  *
35
- * - `lumMod` / `lumOff` — luminance (L) in HSL: `L' = L·mod + off`. PowerPoint's
36
- * "Lighter/Darker N%" family.
37
- * - `satMod` / `satOff` — saturation (S) in HSL.
38
- * - `hueMod` / `hueOff` — hue (H) in HSL (`hueMod` scales, `hueOff` offsets by
39
- * degrees). Not exercised by any current source; implemented for completeness.
40
- * - `shade` — toward black in **linear** RGB: `c' = c·k`.
41
- * - `tint` — toward white in **linear** RGB: `c' = c·k + (1−k)`.
42
- * - `alpha` / `alphaMod` / `alphaOff` — opacity, returned alongside the hex
43
- * (never folded into RGB).
44
- * - `comp` / `inv` / `gray` / `gamma` / `invGamma` — pass-through for now (no
45
- * current source needs them; add when one does).
32
+ * So the table holds one row per colour rather than one per spelling, and {@link presetColorHex}
33
+ * normalizes a name into it. That is the difference between 140 hand-checked constants and 190,
34
+ * and it makes the abbreviation rule something a reader can see rather than something spread
35
+ * across fifty near-duplicate rows.
46
36
  *
47
- * All DrawingML percentage values are stored in thousandths of a percent
48
- * (`100%` → `100000`), so a modifier's fraction is `val / 100000`.
37
+ * This is spec data, not observed behaviour: the values come from the enumeration's own
38
+ * documentation, and the table is asserted complete against the schema's 190-value list in
39
+ * `test/read/preset-color.test.js` — a name the reader cannot resolve is a hole in the table,
40
+ * and that test is what finds it.
49
41
  */
50
- /** A colour-transform modifier in its read-model form: tag local-name + raw `@val`. */
51
- interface ColorTransform {
52
- name: string;
53
- value: string | null;
54
- }
55
- /** The effective colour after applying transforms: final sRGB hex, plus opacity when an `alpha*` modifier was present. */
56
- interface EffectiveColor {
57
- hex: string;
58
- alpha?: number;
59
- }
60
42
  /**
61
- * Apply an ordered list of DrawingML colour transforms to a base sRGB hex,
62
- * returning the effective sRGB hex (and opacity, when an `alpha*` modifier set
63
- * it). Pure: no DOM, no theme lookup — the caller has already resolved the base
64
- * colour and extracted each modifier's `{ name, value }`.
43
+ * Resolve an `a:prstClr/@val` preset colour name to its 6-hex RGB, or `null` when the name is
44
+ * not one of the 190 `ST_PresetColorVal` values.
65
45
  *
66
- * An unparseable base hex is returned unchanged (with no transforms applied); an
67
- * unparseable/`null` modifier value is skipped.
46
+ * Lenient about case for the same reason the rest of the read path is: the input is a file
47
+ * someone else wrote, and a producer that spelled `Black` has still said which colour it meant.
48
+ * A name that is not in the enumeration at all resolves to `null` rather than to a guess, so the
49
+ * caller reports "no colour" instead of painting an invented one.
50
+ * @param name - the raw attribute value, or `null` when the attribute is absent
68
51
  */
69
- declare function applyColorTransforms(baseHex: string, transforms: ColorTransform[]): EffectiveColor;
52
+ declare function presetColorHex(name: string | null): string | null;
70
53
  //#endregion
71
- export { type AbsoluteFrame, type AddPictureOptions, type AddTextBoxOptions, type AnyShape, type AppendSlidesOptions, AutoShape, type AutofitMode, 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 ColorTransform, type Comment, type CommentAuthor, type CommentSchema, type ConnectionSite, Connector, ContentTypes, type CoreProperties, type CustomGeometry, type CustomGeometryPath, type CustomProperty, type CustomPropertyValue, Diagram, type DiagramConnection, type DiagramConnectionType, DiagramPoint, type DiagramPointType, type EffectiveColor, type EmbeddedFontFaceInfo, type EmbeddedFontInfo, type ErrorCode, type ExtractedSlide, type ExtractedSlides, type FillRect, type FromTemplateOptions, type GeometryCommand, type Glow, type GradientFill, type GradientStop, GraphicFrame, GroupShape, type ImportShapeOptions, type ImportSlideMastersOptions, type ImportSlideOptions, type ImportSlidesRequest, type ImportedSlideMaster, 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 OpcInput, OpcPackage, type OuterShadow, PackageReadError, type PackageReadErrorCode, Paragraph, Part, type PatternFill, Picture, type PictureFill, type PictureFillTile, Placeholder, Presentation, type Recolor, type RecolorColor, type Reflection, type Relationship, Relationships, type ResolvedColor, type ResolvedTableStyle, Run, type RunHyperlink, Shape, type ShapeHost, type ShapeType, Slide, type SlideBackground, SlideLayout, SlideMaster, type SlideSize, type SlideSource, type SoftEdge, Table, TableCell, type TableCellBorderEdit, type TableCellEdge, type TableConditionFlags, TableRow, type Tag, TextFrame, Theme, type ThemeColorSlot, type ThemeFontFace, type ThemeFontScheme, type TransitionInfo, type TransitionInput, type TransitionSpeed, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, readCoreProperties, readCustomProperties, readTagsForPart, relsPartNameFor, resolveColorElement, resolveRelativePartName };
54
+ export { type AbsoluteFrame, type AddPictureOptions, type AddTextBoxOptions, type AnyShape, type AppendSlidesOptions, AutoShape, type AutofitMode, 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 ColorTransform, type Comment, type CommentAuthor, type CommentSchema, type ConnectionSite, Connector, ContentTypes, type CoreProperties, type CustomGeometry, type CustomGeometryPath, type CustomProperty, type CustomPropertyValue, Diagram, type DiagramConnection, type DiagramConnectionType, type DiagramDrawnShape, DiagramNode, DiagramPoint, type DiagramPointType, type EffectiveColor, type EmbeddedFontFaceInfo, type EmbeddedFontInfo, type ErrorCode, type ExtractedSlide, type ExtractedSlides, type FillRect, type FromTemplateOptions, type GeometryCommand, type Glow, type GradientFill, type GradientStop, GraphicFrame, GroupShape, type ImportShapeOptions, type ImportSlideMastersOptions, type ImportSlideOptions, type ImportSlidesRequest, type ImportedSlideMaster, 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 OpcInput, OpcPackage, type OuterShadow, PackageReadError, type PackageReadErrorCode, Paragraph, Part, type PatternFill, Picture, type PictureFill, type PictureFillTile, Placeholder, Presentation, type Recolor, type RecolorColor, type Reflection, type Relationship, Relationships, type ResolvedColor, type ResolvedTableStyle, Run, type RunHyperlink, Shape, type ShapeHost, type ShapeType, Slide, type SlideBackground, SlideLayout, SlideMaster, type SlideSize, type SlideSource, type SoftEdge, Table, TableCell, type TableCellBorderEdit, type TableCellEdge, type TableConditionFlags, TableRow, type Tag, TextFrame, Theme, type ThemeColorSlot, type ThemeFontFace, type ThemeFontScheme, type TransitionInfo, type TransitionInput, type TransitionSpeed, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, presetColorHex, readCoreProperties, readCustomProperties, readTagsForPart, relsPartNameFor, resolveColorElement, resolveRelativePartName };
72
55
  //# sourceMappingURL=read.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"read.d.ts","names":[],"sources":["../src/read/opc/partnames.ts","../src/read/oxml/color-transform.ts"],"mappings":";;;;;;iBA4CgB,gBAAgB;;;;;;;;iBA8BhB,wBAAwB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCxC/C;EAChB;EACA;;;UAIgB;EAChB;EACA;;;;;;;;;;;iBAiFe,qBAAqB,iBAAiB,YAAY,mBAAmB"}
1
+ {"version":3,"file":"read.d.ts","names":[],"sources":["../src/read/opc/partnames.ts","../src/read/oxml/preset-color.ts"],"mappings":";;;;;;;iBA4CgB,gBAAgB;;;;;;;;iBA8BhB,wBAAwB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBC2GhD,eAAe"}
package/dist/read.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as TsPptxError, i as PackageReadError, n as InvalidOptionError, o as UnsupportedFeatureError, r as MediaError, t as InternalError } from "./errors-Bvln0H-7.js";
2
- import { C as Picture, D as Run, Dt as relsPartNameFor, E as Paragraph, N as resolveColorElement, O as TextFrame, Ot as resolveRelativePartName, S as Connector, T as Shape, _ as ChartExAxis, a as isConnector, b as ChartAxis, c as isPicture, d as Table, f as TableCell, g as ChartEx, h as DiagramPoint, i as isAutoShape, m as Diagram, o as isGraphicFrame, p as TableRow, s as isGroupShape, t as GroupShape, u as GraphicFrame, v as ChartExSeries, w as AutoShape, x as ChartSeries, y as Chart, z as applyColorTransforms } from "./shapes-Dyw5bxwO.js";
3
- import { a as Placeholder, c as Theme, d as NotesSlide, f as OpcPackage, h as ContentTypes, i as Slide, l as readTagsForPart, m as Part, n as readCoreProperties, o as SlideLayout, p as Relationships, r as readCustomProperties, s as SlideMaster, t as Presentation, u as NotesPlaceholder } from "./presentation-3rAKKRfm.js";
4
- export { AutoShape, Chart, ChartAxis, ChartEx, ChartExAxis, ChartExSeries, ChartSeries, Connector, ContentTypes, Diagram, 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, readCoreProperties, readCustomProperties, readTagsForPart, relsPartNameFor, resolveColorElement, resolveRelativePartName };
2
+ import { At as resolveRelativePartName, C as Connector, D as Paragraph, E as Shape, O as Run, P as resolveColorElement, S as ChartSeries, T as AutoShape, _ as ChartEx, a as isConnector, b as Chart, c as isPicture, d as Table, f as TableCell, g as DiagramPoint, gt as applyColorTransforms, h as DiagramNode, ht as presetColorHex, i as isAutoShape, k as TextFrame, kt as relsPartNameFor, m as Diagram, o as isGraphicFrame, p as TableRow, s as isGroupShape, t as GroupShape, u as GraphicFrame, v as ChartExAxis, w as Picture, x as ChartAxis, y as ChartExSeries } from "./shapes-BemroU-z.js";
3
+ import { a as readTagsForPart, c as Placeholder, d as Theme, f as OpcPackage, h as ContentTypes, i as Slide, l as SlideLayout, m as Part, n as readCoreProperties, o as NotesPlaceholder, p as Relationships, r as readCustomProperties, s as NotesSlide, t as Presentation, u as SlideMaster } from "./presentation-Cp7vzlAw.js";
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, readCoreProperties, readCustomProperties, readTagsForPart, relsPartNameFor, resolveColorElement, resolveRelativePartName };
package/dist/script.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { h as Presentation } from "./presentation-types-D7cgT-eG.js";
2
- import { a as TsPptxError, d as InvalidOptionErrorCode, f as MediaErrorCode, h as UnsupportedFeatureErrorCode, i as PackageReadError, l as ErrorCode, m as TsPptxCode, n as InvalidOptionError, o as TsPptxErrorOptions, p as PackageReadErrorCode, r as MediaError, s as UnsupportedFeatureError, t as InternalError, u as InternalErrorCode } from "./errors-fB1KDJKQ.js";
1
+ import { h as Presentation } from "./presentation-types-DP_8jog7.js";
2
+ import { a as TsPptxError, d as InvalidOptionErrorCode, f as MediaErrorCode, h as UnsupportedFeatureErrorCode, i as PackageReadError, l as ErrorCode, m as TsPptxCode, n as InvalidOptionError, o as TsPptxErrorOptions, p as PackageReadErrorCode, r as MediaError, s as UnsupportedFeatureError, t as InternalError, u as InternalErrorCode } from "./errors-PflMPWBn.js";
3
3
  //#region src/script/fidelity.d.ts
4
4
  /**
5
5
  * Fidelity notes — the declared, machine-checkable list of what a deck loses on the way
@@ -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":";;;;;;;;;;;;;;;;;;;;;;KAoBY;;;;;;;;;;;;;;;;;;;;;KAsBA;;;;;;;;UASK;;EAEhB;;EAEA;;;;;;;EAOA;EACA,aAAa;EACb,OAAO;;EAEP;;;;;;;;;;;;;;;;;;;;cAkDY;;;;;;;;;;;;UC/EI;EAChB;;;iBAIe,WAAW,iBAAiB,SAAS;;;;;;;KAUzC,6CAA6C,WAAW;GAAe,cAAc;;;UAmBhF;;EAEhB;;EAEA;EACA,OAAO;;;;;;;;;;UAWS;EAChB;EACA,MAAM;;;;;EAKN;;;;;;;;;;;;;;;;;;;;KAqBW;;;;;;;;UASK;EAChB;EACA;EACA,OAAO;;;;;;;;;;UAWS;;EAEhB,OAAO;;EAEP;;EAEA;;EAEA;;;;;;;;;;;;;UAcgB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;KAAa;;EACb,QAAQ;;;;;;;;;;;;;UAcQ;;EAEhB;;EAEA;;EAEA;;;UAIgB;;EAEhB;EACA,QAAQ;;EAER,QAAQ;;EAER;;EAEA;EACA,aAA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;;;iBAiYnF,qBAAqB"}
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":";;;;;;;;;;;;;;;;;;;;;;KAoBY;;;;;;;;;;;;;;;;;;;;;KAsBA;;;;;;;;UASK;;EAEhB;;EAEA;;;;;;;EAOA;EACA,aAAa;EACb,OAAO;;EAEP;;;;;;;;;;;;;;;;;;;;cAkDY;;;;;;;;;;;;UC/EI;EAChB;;;iBAIe,WAAW,iBAAiB,SAAS;;;;;;;KAUzC,6CAA6C,WAAW;GAAe,cAAc;;;UAmBhF;;EAEhB;;EAEA;EACA,OAAO;;;;;;;;;;UAWS;EAChB;EACA,MAAM;;;;;EAKN;;;;;;;;;;;;;;;;;;;;KAqBW;;;;;;;;UASK;EAChB;EACA;EACA,OAAO;;;;;;;;;;UAWS;;EAEhB,OAAO;;EAEP;;EAEA;;EAEA;;;;;;;;;;;;;UAcgB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;KAAa;;EACb,QAAQ;;;;;;;;;;;;;UAcQ;;EAEhB;;EAEA;;EAEA;;;UAIgB;;EAEhB;EACA,QAAQ;;EAER,QAAQ;;EAER;;EAEA;EACA,aAAa;;EAEb;;;;;;EAMA,aAAa;;;;;;;;;EASb,OAAO;;;;;;;;;;UAWS;EAChB;EACA;EACA;EACA;EACA;EACA;;EAEA;KAAiB;;;;;;;;;;UAUD;;;;;EAKhB;;;;;;EAMA;KAAU,cAAc;;;;;;;UAOR;EAChB,OAAO;;EAEP,SAAS;;;UAIO;EAChB;EACA;EACA;EACA;EACA;;;;;;;;;UAUgB;EAChB;IAAa;IAAkB;;EAC/B,OAAO;;;;;EAKP,QAAQ;EACR,QAAQ;EACR,QAAQ;;;;;;;EAOR,UAAU;;;;;iBCxNK,cAAc,MAAM,eAAe;;;;KC7EvC;;;;;UAMK;;EAEhB;;;;;;EAMA,QAAQ,YAAY;;;;;;EAMpB,OAAO;;;;UCYS;;;;;;EAMhB;;EAEA;;EAEA;;EAEA,SAAS;;;;;;;EAOT;;;iBA4Ce,YAAY,IAAI,QAAQ,UAAS,qBAA0B;;;UCpE1D;;EAEhB;;EAEA;;EAEA,SAAS;;;;;;EAMT;;;iBAee,sBAAsB,IAAI,QAAQ,UAAS,+BAAoC;;;;UC/C9E;EAChB;;EAEA;;;;;;;;;;EAUA;EACA,MAAM;;UAGU;EAChB;EACA;;;;;;;;;;EAUA;EACA,YAAY;EACZ;;;;;;;;;;;EAWA,YAAY;EACZ,OAAO;;;;;;;;;;;;UAaS;EAChB,OAAO;;EAEP,SAAS;;UAGO;EAChB;IAAa;IAAkB;;;EAE/B,OAAO;EACP,QAAQ;EACR,QAAQ;;;iBAoDO,gBAAgB,IAAI,SAAS;;;;;;;;;;;;;KCvFjC;UAsDK;;EAEhB;;EAEA;;;;;EAKA;;EAEA;;;;;;;EAOA;EACA,MAAM;;EAEN;;EAEA;;EAEA,YAAY;;UAGI;EAChB;;EAEA,aAAa;;;;;EAKb,YAAY;;EAEZ,UAAU;;EAEV,OAAO;;;;;;;;;EASP,gBAAgB;;;;;;;iBAgMD;;;;;;;;;iBAYA,WAAW,UAAU,eAAe,QAAQ,eAAe,OAAO,iBAAiB;;;;;iBAiYnF,qBAAqB"}
package/dist/script.js CHANGED
@@ -1,6 +1,7 @@
1
+ import { s as PERCENT_SCALE } from "./units-1kRzYShk.js";
1
2
  import { a as TsPptxError, i as PackageReadError, n as InvalidOptionError, o as UnsupportedFeatureError, r as MediaError, t as InternalError } from "./errors-Bvln0H-7.js";
2
- import { t as OOXML_NS } from "./namespaces-Sy_m7Nhd.js";
3
- import { a as isConnector, c as isPicture, i as isAutoShape, o as isGraphicFrame, s as isGroupShape } from "./shapes-Dyw5bxwO.js";
3
+ import { O as DEFAULT_COLOR_MAP, t as OOXML_NS } from "./namespaces-BVnNu7sg.js";
4
+ import { a as isConnector, c as isPicture, i as isAutoShape, o as isGraphicFrame, s as isGroupShape } from "./shapes-BemroU-z.js";
4
5
  //#region src/script/fidelity.ts
5
6
  /**
6
7
  * Accumulates notes while a deck is walked, so the walk itself stays a plain
@@ -1609,7 +1610,7 @@ function adjustOptions(shape) {
1609
1610
  if (!match?.[1]) continue;
1610
1611
  guides.push({
1611
1612
  name,
1612
- value: Number(match[1]) / 1e5
1613
+ value: Number(match[1]) / PERCENT_SCALE
1613
1614
  });
1614
1615
  }
1615
1616
  return guides.length ? { shapeAdjust: guides } : {};
@@ -1778,22 +1779,40 @@ function connectorCall(shape, notes) {
1778
1779
  ...nameOf(shape)
1779
1780
  };
1780
1781
  }
1782
+ /**
1783
+ * Why a graphic frame cannot be authored from a script, or `null` when it can.
1784
+ *
1785
+ * The single enumeration of the payloads with no write-API emitter, and the reason it is a
1786
+ * function rather than a condition spelled at each site: `graphicFrameCall` needs it to pick
1787
+ * a fidelity note, and `hasUnwritableContent` in `from-read/deck.ts` needs it to decide
1788
+ * whether the printer must copy the slide instead of transcribing it. Those were two
1789
+ * hand-maintained lists, they disagreed — the deck-level one named extended charts only — and
1790
+ * a SmartArt slide was therefore transcribed with a hole where the graphic had been. The two
1791
+ * consequences are the same for every member, so the membership has to be too.
1792
+ */
1793
+ function unwritableFramePayload(shape) {
1794
+ if (shape.table || shape.chart) return null;
1795
+ if (shape.hasChartEx) return "chartEx";
1796
+ if (shape.hasDiagram) return "diagram";
1797
+ return "unknown";
1798
+ }
1781
1799
  /** A `GraphicFrame` hosts a table or a chart; both have their own mapper. */
1782
1800
  function graphicFrameCall(shape, notes, assets) {
1783
1801
  const table = shape.table;
1784
1802
  if (table) return tableCall(shape, table, notes, assets);
1785
1803
  const chart = shape.chart;
1786
1804
  if (chart) return chartCall(shape, chart, notes);
1787
- if (shape.hasChartEx) {
1788
- notes.note("chartEx.all", "dropped", "unwritable", "an extended chart (waterfall, funnel, box-and-whisker, …) has a full reader but no write-API counterpart");
1789
- return null;
1790
- }
1791
- if (shape.hasDiagram) {
1792
- notes.note("diagram.all", "dropped", "unwritable", "a SmartArt diagram has a read surface (GraphicFrame.diagram) but no write-API counterpart");
1793
- return null;
1805
+ switch (unwritableFramePayload(shape)) {
1806
+ case "chartEx":
1807
+ notes.note("chartEx.all", "dropped", "unwritable", "an extended chart (waterfall, funnel, box-and-whisker, …) has a full reader but no write-API counterpart");
1808
+ return null;
1809
+ case "diagram":
1810
+ notes.note("diagram.all", "dropped", "unwritable", "a SmartArt diagram has a full reader and its text can be edited in place through it (DiagramPoint.text), but no write API authors one from a script, so a converted script cannot describe this frame");
1811
+ return null;
1812
+ default:
1813
+ notes.note("graphicFrame.unknown", "dropped", "unread", "this graphic frame hosts none of a table, a chart or a SmartArt diagram (an OLE object or an ink annotation), which the read model does not decode");
1814
+ return null;
1794
1815
  }
1795
- notes.note("graphicFrame.unknown", "dropped", "unread", "this graphic frame hosts none of a table, a chart or a SmartArt diagram (an OLE object or an ink annotation), which the read model does not decode");
1796
- return null;
1797
1816
  }
1798
1817
  /**
1799
1818
  * A `GroupShape` becomes `addGroup`, with each child mapped and re-tagged into the
@@ -1962,25 +1981,6 @@ function connectorObject(shape, notes) {
1962
1981
  }
1963
1982
  //#endregion
1964
1983
  //#region src/script/from-read/chrome.ts
1965
- /**
1966
- * The `p:clrMap` the write path always emits (`src/gen/slide/master.ts`). A source master
1967
- * that maps a token elsewhere — a deck whose light and dark slots are swapped, the usual
1968
- * case — resolves every `schemeClr` in the deck differently, and there is no setter for it.
1969
- */
1970
- const DEFAULT_COLOR_MAP = {
1971
- bg1: "lt1",
1972
- tx1: "dk1",
1973
- bg2: "lt2",
1974
- tx2: "dk2",
1975
- accent1: "accent1",
1976
- accent2: "accent2",
1977
- accent3: "accent3",
1978
- accent4: "accent4",
1979
- accent5: "accent5",
1980
- accent6: "accent6",
1981
- hlink: "hlink",
1982
- folHlink: "folHlink"
1983
- };
1984
1984
  /** Build the chrome IR for a deck. */
1985
1985
  function chromeToIr(pres, notes, assets) {
1986
1986
  const masters = pres.masters();
@@ -2392,7 +2392,7 @@ function slideToIr(slide, number, collector, assets, layouts) {
2392
2392
  };
2393
2393
  const transition = transitionToIr(slide, notes, assets);
2394
2394
  const carried = hasUnwritableContent(slide);
2395
- if (carried) notes.note("slide.carried", "flattened", "unwritable", "this slide holds an extended chart (waterfall, funnel, box-and-whisker, …), which has a full reader but no write-API emitter; a printer that can copy the source slide does so instead of transcribing it, so it renders correctly but the emitted script does not describe its contents");
2395
+ if (carried) notes.note("slide.carried", "flattened", "unwritable", "this slide holds a graphic frame the write API cannot author (an extended chart, a SmartArt diagram, an OLE object or ink); a printer that can copy the source slide does so instead of transcribing it, so it renders correctly but the emitted script does not describe its contents. The per-shape note beside this one says which construct forced the copy");
2396
2396
  const calls = [];
2397
2397
  for (const shape of slide.shapes) {
2398
2398
  const call = shapeCall(shape, notes, assets);
@@ -2409,11 +2409,16 @@ function slideToIr(slide, number, collector, assets, layouts) {
2409
2409
  /**
2410
2410
  * `true` when the slide holds something with no write-API expression at all, forcing a
2411
2411
  * carried slide. Descends into groups, since a group can host a graphic frame.
2412
+ *
2413
+ * Membership comes from {@link unwritableFramePayload}, which `graphicFrameCall` also uses to
2414
+ * pick its note — one enumeration, so the two cannot drift apart again. This test named
2415
+ * extended charts alone until then, which is why a slide holding SmartArt (or an OLE object,
2416
+ * or ink) was transcribed as `authored` and rendered with a hole where the graphic had been.
2412
2417
  */
2413
2418
  function hasUnwritableContent(slide) {
2414
2419
  const check = (shapes) => shapes.some((shape) => {
2415
2420
  if (isGroupShape(shape)) return check(shape.shapes);
2416
- return isGraphicFrame(shape) && shape.hasChartEx;
2421
+ return isGraphicFrame(shape) && unwritableFramePayload(shape) !== null;
2417
2422
  });
2418
2423
  return check(slide.shapes);
2419
2424
  }
@@ -2574,18 +2579,21 @@ function printArguments(prefix, args, indentLevel, asset) {
2574
2579
  const inner = " ".repeat(indentLevel + 1);
2575
2580
  return `${pad}${prefix}(\n${args.map((arg) => `${inner}${printValue(arg, indentLevel + 1, asset)}`).join(",\n")}\n${pad})`;
2576
2581
  }
2577
- //#endregion
2578
- //#region src/script/print/common.ts
2579
2582
  /**
2580
- * The parts of printing a script that do not depend on which tier is being printed.
2583
+ * Apply the defaults both printers share.
2581
2584
  *
2582
- * Two printers target the same IR — one anchored to the source deck as a template, one
2583
- * standalone — and they differ only in how a deck and its chrome are set up. Everything after
2584
- * that is identical: a slide's statements, how image bytes reach the script, and how the
2585
- * fidelity notes are rendered into the banner. Keeping that here is not tidiness. A slide body
2586
- * printed two slightly different ways would mean the round-trip oracle certifies one tier and
2587
- * only resembles a check on the other, and the drift would be invisible in review.
2585
+ * `templatePath` is deliberately not here: only the template-anchored tier has one, and that
2586
+ * difference is the whole reason there are two printers.
2587
+ * @param options - the caller's options, any of which may be absent
2588
2588
  */
2589
+ function resolvePrintOptions(options) {
2590
+ return {
2591
+ outputPath: options.outputPath ?? "./output.pptx",
2592
+ assetDir: (options.assetDir ?? "./assets").replace(/\/$/, ""),
2593
+ assetMode: options.assets ?? "file",
2594
+ packageName: options.packageName ?? "@shbernal/ts-pptx"
2595
+ };
2596
+ }
2589
2597
  /** Width the header comment's prose wraps at, leaving room for the ` * ` prefix. */
2590
2598
  const COMMENT_WIDTH = 110;
2591
2599
  /**
@@ -2780,19 +2788,10 @@ const TEMPLATE_CARRIED_CONSTRUCTS = /* @__PURE__ */ new Set([
2780
2788
  function isTemplateCarried(construct) {
2781
2789
  return TEMPLATE_CARRIED_CONSTRUCTS.has(construct) || construct.startsWith("layout.");
2782
2790
  }
2783
- /**
2784
- * Default import specifier for the emitted script — this package's *published* name, which
2785
- * is not its directory name. Getting it wrong produces a script that prints and typechecks
2786
- * and then fails at `import`, so it is pinned by a test rather than left to a literal here.
2787
- */
2788
- const PACKAGE_NAME$1 = "@shbernal/ts-pptx";
2789
2791
  /** Turn a deck IR into a runnable, template-anchored TypeScript module. */
2790
2792
  function printScript(ir, options = {}) {
2791
2793
  const templatePath = options.templatePath ?? "./template.pptx";
2792
- const outputPath = options.outputPath ?? "./output.pptx";
2793
- const assetDir = (options.assetDir ?? "./assets").replace(/\/$/, "");
2794
- const assetMode = options.assets ?? "file";
2795
- const packageName = options.packageName ?? PACKAGE_NAME$1;
2794
+ const { outputPath, assetDir, assetMode, packageName } = resolvePrintOptions(options);
2796
2795
  const collector = new NoteCollector();
2797
2796
  const assetNames = assetIdentifiers(ir);
2798
2797
  const body = printSlides$1(ir, collector, assetPrinter(assetNames));
@@ -2831,12 +2830,19 @@ function printScript(ir, options = {}) {
2831
2830
  return printedScript(lines, ir, assetMode, notes);
2832
2831
  }
2833
2832
  /**
2834
- * The slide statements, batched into generators.
2833
+ * The slide statements, batched into generators, preceded by the layout handles they bind to.
2835
2834
  *
2836
2835
  * A batch ends when the layout changes or a carried slide interrupts, because
2837
2836
  * `appendSlides` binds one layout per call and a carried slide is not authored at all.
2837
+ *
2838
+ * Every layout `const` is hoisted above the first statement rather than emitted where it is
2839
+ * first used. `deck.layouts()` is a snapshot of the gallery, and `importSlide` — the call a
2840
+ * carried slide prints — grows that gallery with the source slide's own layout and master.
2841
+ * Resolving a handle after one has run is therefore resolving against a deck that has already
2842
+ * moved; capturing every handle up front is the only ordering that cannot.
2838
2843
  */
2839
2844
  function printSlides$1(ir, collector, printAsset) {
2845
+ const declarations = [];
2840
2846
  const lines = [];
2841
2847
  let batch = [];
2842
2848
  let generatorIndex = 0;
@@ -2848,7 +2854,7 @@ function printSlides$1(ir, collector, printAsset) {
2848
2854
  const name = `gen${++generatorIndex}`;
2849
2855
  lines.push("", `const ${name} = generator()`);
2850
2856
  for (const slide of batch) lines.push(...printAuthoredSlide(slide, name, collector, printAsset));
2851
- lines.push("", ...printAppend(name, first, collector, declaredLayouts));
2857
+ lines.push("", printAppend(name, first, collector, declaredLayouts, declarations));
2852
2858
  batch = [];
2853
2859
  };
2854
2860
  for (const slide of ir.slides) {
@@ -2862,31 +2868,39 @@ function printSlides$1(ir, collector, printAsset) {
2862
2868
  batch.push(slide);
2863
2869
  }
2864
2870
  flush();
2865
- return lines;
2871
+ return declarations.length > 0 ? [
2872
+ "",
2873
+ ...declarations,
2874
+ ...lines
2875
+ ] : lines;
2866
2876
  }
2867
2877
  /**
2868
2878
  * The `appendSlides` call closing a batch, binding by layout name where that is
2869
- * unambiguous and by gallery position where it is not.
2879
+ * unambiguous and by gallery position where it is not. Any handle it needs is appended to
2880
+ * `declarations`, which the caller hoists above every statement.
2870
2881
  *
2871
2882
  * Binding by name is preferred because it survives being re-pointed at a different
2872
2883
  * template and because it is legible. But `appendSlides` *throws* on an ambiguous name
2873
- * rather than picking one, and a multi-master deck routinely repeats layout names, so the
2874
- * positional form is the only thing that resolves there.
2884
+ * rather than picking one, so the positional form resolves the case where the name does not
2885
+ * identify one layout: a multi-master deck that repeats layout names.
2886
+ *
2887
+ * A carried slide used to demote every binding in the script to a position too, because its
2888
+ * `importSlide` copied the source layout in under a second name-alike entry. `importSlide`
2889
+ * now binds to the chrome the template already holds (`read/api/ops/part-reuse.ts`), and
2890
+ * this deck's template *is* the source file, so the gallery no longer grows and the names
2891
+ * stay unambiguous.
2875
2892
  */
2876
- function printAppend(generatorName, first, collector, declared) {
2893
+ function printAppend(generatorName, first, collector, declared, declarations) {
2877
2894
  const layout = first.layout;
2878
- if (!layout) return [`await deck.appendSlides(${generatorName}, { layout: fallbackLayout })`];
2879
- if (layout.nameIsUnique) return [`await deck.appendSlides(${generatorName}, { layout: ${printString(layout.name)} })`];
2895
+ if (!layout) return `await deck.appendSlides(${generatorName}, { layout: fallbackLayout })`;
2896
+ if (layout.nameIsUnique) return `await deck.appendSlides(${generatorName}, { layout: ${printString(layout.name)} })`;
2880
2897
  scopeNotes(collector, first.number).note("slide.layout", "approximated", "unsupported", `more than one layout in the source deck is named ${JSON.stringify(layout.name)}, so this slide binds to gallery position ${layout.index} instead; re-pointing the script at a different template will not track the name`);
2881
2898
  const identifier = `layout${layout.index}`;
2882
- const append = `await deck.appendSlides(${generatorName}, { layout: ${identifier} })`;
2883
- if (declared.has(layout.index)) return [append];
2884
- declared.add(layout.index);
2885
- return [
2886
- `const ${identifier} = deck.layouts()[${layout.index}] // ${JSON.stringify(layout.name)}`,
2887
- `if (!${identifier}) throw new Error('the template has no layout at position ${layout.index}')`,
2888
- append
2889
- ];
2899
+ if (!declared.has(layout.index)) {
2900
+ declared.add(layout.index);
2901
+ declarations.push(`const ${identifier} = deck.layouts()[${layout.index}] // ${JSON.stringify(layout.name)}`, `if (!${identifier}) throw new Error('the template has no layout at position ${layout.index}')`);
2902
+ }
2903
+ return `await deck.appendSlides(${generatorName}, { layout: ${identifier} })`;
2890
2904
  }
2891
2905
  /** One authored slide, plus the layout-binding note this tier is responsible for. */
2892
2906
  function printAuthoredSlide(slide, generatorName, collector, printAsset) {
@@ -2910,14 +2924,9 @@ function printAuthoredSlide(slide, generatorName, collector, printAsset) {
2910
2924
  * script does not have.
2911
2925
  */
2912
2926
  const NOT_APPLICABLE = /* @__PURE__ */ new Set(["slide.carried"]);
2913
- /** See `printScript` — the published name is not the directory name, and a test pins it. */
2914
- const PACKAGE_NAME = "@shbernal/ts-pptx";
2915
2927
  /** Turn a deck IR into a runnable TypeScript module that needs no template. */
2916
2928
  function printStandaloneScript(ir, options = {}) {
2917
- const outputPath = options.outputPath ?? "./output.pptx";
2918
- const assetDir = (options.assetDir ?? "./assets").replace(/\/$/, "");
2919
- const assetMode = options.assets ?? "file";
2920
- const packageName = options.packageName ?? PACKAGE_NAME;
2929
+ const { outputPath, assetDir, assetMode, packageName } = resolvePrintOptions(options);
2921
2930
  const collector = new NoteCollector();
2922
2931
  const assetNames = assetIdentifiers(ir);
2923
2932
  const printAsset = assetPrinter(assetNames);