@shbernal/ts-pptx 3.5.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 (65) 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-BDuR8UkG.d.ts → diagnostics-Du_s75MT.d.ts} +20 -5
  7. package/dist/diagnostics-Du_s75MT.d.ts.map +1 -0
  8. package/dist/{errors-CgnueTYL.d.ts → errors-PflMPWBn.d.ts} +2 -2
  9. package/dist/{errors-CgnueTYL.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 +1 -1
  19. package/dist/inspect.js +4 -5
  20. package/dist/inspect.js.map +1 -1
  21. package/dist/math.d.ts +1 -1
  22. package/dist/measure.d.ts +2 -2
  23. package/dist/measure.js +1 -1
  24. package/dist/{namespaces-CcKuzeuE.js → namespaces-BVnNu7sg.js} +74 -3
  25. package/dist/namespaces-BVnNu7sg.js.map +1 -0
  26. package/dist/node.d.ts +5 -5
  27. package/dist/node.js +3 -3
  28. package/dist/{notes-DNqAggXx.js → notes-RLCwdlTE.js} +289 -313
  29. package/dist/{notes-DNqAggXx.js.map → notes-RLCwdlTE.js.map} +1 -1
  30. package/dist/{pres-Dybf7ZUl.d.ts → pres-C5__xkDh.d.ts} +2 -2
  31. package/dist/{pres-Dybf7ZUl.d.ts.map → pres-C5__xkDh.d.ts.map} +1 -1
  32. package/dist/{presentation-VfJ_FT7E.js → presentation-Cp7vzlAw.js} +414 -515
  33. package/dist/presentation-Cp7vzlAw.js.map +1 -0
  34. package/dist/{presentation-types-CpkTx9Xa.d.ts → presentation-types-DP_8jog7.d.ts} +351 -274
  35. package/dist/presentation-types-DP_8jog7.d.ts.map +1 -0
  36. package/dist/read.d.ts +31 -48
  37. package/dist/read.d.ts.map +1 -1
  38. package/dist/read.js +3 -3
  39. package/dist/script.d.ts +2 -2
  40. package/dist/script.d.ts.map +1 -1
  41. package/dist/script.js +18 -47
  42. package/dist/script.js.map +1 -1
  43. package/dist/{shapes-Kt51vry6.js → shapes-BemroU-z.js} +625 -265
  44. package/dist/shapes-BemroU-z.js.map +1 -0
  45. package/dist/{slide-B_aInw3N.d.ts → slide-js0QpRV-.d.ts} +1278 -1254
  46. package/dist/slide-js0QpRV-.d.ts.map +1 -0
  47. package/dist/{text-D04NUMvA.js → text-CyetbF6p.js} +2039 -1417
  48. package/dist/text-CyetbF6p.js.map +1 -0
  49. package/dist/units-1kRzYShk.js +231 -0
  50. package/dist/units-1kRzYShk.js.map +1 -0
  51. package/dist/units-internal-Dg95w_YD.js +753 -0
  52. package/dist/units-internal-Dg95w_YD.js.map +1 -0
  53. package/dist/zip.d.ts +1 -1
  54. package/package.json +2 -1
  55. package/dist/diagnostics-BDuR8UkG.d.ts.map +0 -1
  56. package/dist/diagnostics-CPVADSL1.js +0 -90
  57. package/dist/diagnostics-CPVADSL1.js.map +0 -1
  58. package/dist/namespaces-CcKuzeuE.js.map +0 -1
  59. package/dist/presentation-VfJ_FT7E.js.map +0 -1
  60. package/dist/presentation-types-CpkTx9Xa.d.ts.map +0 -1
  61. package/dist/shapes-Kt51vry6.js.map +0 -1
  62. package/dist/slide-B_aInw3N.d.ts.map +0 -1
  63. package/dist/text-D04NUMvA.js.map +0 -1
  64. package/dist/units-internal-DNvK2I6o.js +0 -896
  65. 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;;UAGK;EAChB;EACA;EACA;EACA;EACA,Q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EA;;;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 RecolorColor, A as Theme, At as Shape, B as ModernCommentAuthor, Bt as TextFrame, C as TransitionInfo, Ct as ChartFill, D as Placeholder, Dt as Connector, E as ColorMapToken, Et as ChartSeries, F as readTagsForPart, Ft as BulletStyle, G as isAutoShape, Gt as CustomGeometryPath, H as NotesSlide, Ht as ChildFrame, I as Comment, It as LineSpacing, J as isGroupShape, Jt as InnerShadow, K as isConnector, Kt as GeometryCommand, L as CommentAuthor, Lt as Paragraph, M as ThemeFontFace, Mt as AutofitMode, N as ThemeFontScheme, Nt as BodyProperties, O as SlideLayout, Ot as Picture, P as Tag, Pt as BulletDetail, Q as CellBorders, Qt as Recolor, R as CommentSchema, Rt as Run, S as Slide, St as ChartDataLabels, T as TransitionSpeed, Tt as ChartLine, U as AnyShape, Ut as ConnectionSite, V as NotesPlaceholder, Vt as AbsoluteFrame, W as GroupShape, Wt as CustomGeometry, X as GraphicFrame, Xt as LineEnds, Y as isPicture, Yt as LineEnd, Z as CellBorder, Zt as OuterShadow, _ as CustomProperty, _t as ChartExLegend, a as ExtractedSlides, an as BackgroundSource, at as TableConditionFlags, b as AddPictureOptions, bt as Chart, c as ImportSlideMastersOptions, cn as PictureFill, ct as DiagramConnection, d as ImportedSlideMaster, dn as GradientStop, dt as DiagramNode, en as Reflection, et as Table, f as LayoutHandle, fn as ResolvedColor, ft as DiagramPoint, g as CoreProperties, gt as ChartExDataLabels, h as Presentation, ht as ChartExAxis, i as ExtractedSlide, in as BackgroundFill, it as ResolvedTableStyle, j as ThemeColorSlot, jt as ShapeHost, k as SlideMaster, kt as AutoShape, l as ImportSlideOptions, ln as PictureFillTile, lt as DiagramConnectionType, m as SlideSource, mn as ColorContext, mt as ChartEx, n as EmbeddedFontFaceInfo, nn as SoftEdge, nt as TableCellBorderEdit, o as FromTemplateOptions, on as SlideBackground, ot as TableCellEdge, p as SlideSize, pn as resolveColorElement, pt as DiagramPointType, q as isGraphicFrame, qt as Glow, r as EmbeddedFontInfo, rn as PatternFill, rt as TableRow, s as ImportShapeOptions, sn as FillRect, st as Diagram, t as AppendSlidesOptions, tn as ShapeType, tt as TableCell, u as ImportSlidesRequest, un as GradientFill, ut as DiagramDrawnShape, v as readCoreProperties, vt as ChartExSeries, w as TransitionInput, wt as ChartLegend, x as AddTextBoxOptions, xt as ChartAxis, y as readCustomProperties, yt as AxisNumberFormat, z as ModernComment, zt as RunHyperlink } from "./presentation-types-CpkTx9Xa.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-CgnueTYL.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, 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, 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 { B as applyColorTransforms, C as Connector, D as Paragraph, E as Shape, O as Run, Ot as relsPartNameFor, 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, h as DiagramNode, i as isAutoShape, k as TextFrame, kt as resolveRelativePartName, 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-Kt51vry6.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-VfJ_FT7E.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, 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-CpkTx9Xa.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-CgnueTYL.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;;EA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e,QAAQ,eAAe,OAAO,iBAAiB;;;;;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-CcKuzeuE.js";
3
- import { a as isConnector, c as isPicture, i as isAutoShape, o as isGraphicFrame, s as isGroupShape } from "./shapes-Kt51vry6.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 } : {};
@@ -1980,25 +1981,6 @@ function connectorObject(shape, notes) {
1980
1981
  }
1981
1982
  //#endregion
1982
1983
  //#region src/script/from-read/chrome.ts
1983
- /**
1984
- * The `p:clrMap` the write path always emits (`src/gen/slide/master.ts`). A source master
1985
- * that maps a token elsewhere — a deck whose light and dark slots are swapped, the usual
1986
- * case — resolves every `schemeClr` in the deck differently, and there is no setter for it.
1987
- */
1988
- const DEFAULT_COLOR_MAP = {
1989
- bg1: "lt1",
1990
- tx1: "dk1",
1991
- bg2: "lt2",
1992
- tx2: "dk2",
1993
- accent1: "accent1",
1994
- accent2: "accent2",
1995
- accent3: "accent3",
1996
- accent4: "accent4",
1997
- accent5: "accent5",
1998
- accent6: "accent6",
1999
- hlink: "hlink",
2000
- folHlink: "folHlink"
2001
- };
2002
1984
  /** Build the chrome IR for a deck. */
2003
1985
  function chromeToIr(pres, notes, assets) {
2004
1986
  const masters = pres.masters();
@@ -2597,18 +2579,21 @@ function printArguments(prefix, args, indentLevel, asset) {
2597
2579
  const inner = " ".repeat(indentLevel + 1);
2598
2580
  return `${pad}${prefix}(\n${args.map((arg) => `${inner}${printValue(arg, indentLevel + 1, asset)}`).join(",\n")}\n${pad})`;
2599
2581
  }
2600
- //#endregion
2601
- //#region src/script/print/common.ts
2602
2582
  /**
2603
- * The parts of printing a script that do not depend on which tier is being printed.
2583
+ * Apply the defaults both printers share.
2604
2584
  *
2605
- * Two printers target the same IR — one anchored to the source deck as a template, one
2606
- * standalone — and they differ only in how a deck and its chrome are set up. Everything after
2607
- * that is identical: a slide's statements, how image bytes reach the script, and how the
2608
- * fidelity notes are rendered into the banner. Keeping that here is not tidiness. A slide body
2609
- * printed two slightly different ways would mean the round-trip oracle certifies one tier and
2610
- * 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
2611
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
+ }
2612
2597
  /** Width the header comment's prose wraps at, leaving room for the ` * ` prefix. */
2613
2598
  const COMMENT_WIDTH = 110;
2614
2599
  /**
@@ -2803,19 +2788,10 @@ const TEMPLATE_CARRIED_CONSTRUCTS = /* @__PURE__ */ new Set([
2803
2788
  function isTemplateCarried(construct) {
2804
2789
  return TEMPLATE_CARRIED_CONSTRUCTS.has(construct) || construct.startsWith("layout.");
2805
2790
  }
2806
- /**
2807
- * Default import specifier for the emitted script — this package's *published* name, which
2808
- * is not its directory name. Getting it wrong produces a script that prints and typechecks
2809
- * and then fails at `import`, so it is pinned by a test rather than left to a literal here.
2810
- */
2811
- const PACKAGE_NAME$1 = "@shbernal/ts-pptx";
2812
2791
  /** Turn a deck IR into a runnable, template-anchored TypeScript module. */
2813
2792
  function printScript(ir, options = {}) {
2814
2793
  const templatePath = options.templatePath ?? "./template.pptx";
2815
- const outputPath = options.outputPath ?? "./output.pptx";
2816
- const assetDir = (options.assetDir ?? "./assets").replace(/\/$/, "");
2817
- const assetMode = options.assets ?? "file";
2818
- const packageName = options.packageName ?? PACKAGE_NAME$1;
2794
+ const { outputPath, assetDir, assetMode, packageName } = resolvePrintOptions(options);
2819
2795
  const collector = new NoteCollector();
2820
2796
  const assetNames = assetIdentifiers(ir);
2821
2797
  const body = printSlides$1(ir, collector, assetPrinter(assetNames));
@@ -2948,14 +2924,9 @@ function printAuthoredSlide(slide, generatorName, collector, printAsset) {
2948
2924
  * script does not have.
2949
2925
  */
2950
2926
  const NOT_APPLICABLE = /* @__PURE__ */ new Set(["slide.carried"]);
2951
- /** See `printScript` — the published name is not the directory name, and a test pins it. */
2952
- const PACKAGE_NAME = "@shbernal/ts-pptx";
2953
2927
  /** Turn a deck IR into a runnable TypeScript module that needs no template. */
2954
2928
  function printStandaloneScript(ir, options = {}) {
2955
- const outputPath = options.outputPath ?? "./output.pptx";
2956
- const assetDir = (options.assetDir ?? "./assets").replace(/\/$/, "");
2957
- const assetMode = options.assets ?? "file";
2958
- const packageName = options.packageName ?? PACKAGE_NAME;
2929
+ const { outputPath, assetDir, assetMode, packageName } = resolvePrintOptions(options);
2959
2930
  const collector = new NoteCollector();
2960
2931
  const assetNames = assetIdentifiers(ir);
2961
2932
  const printAsset = assetPrinter(assetNames);