@shbernal/ts-pptx 3.1.0 → 3.2.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 (42) hide show
  1. package/README.md +39 -3
  2. package/dist/browser.d.ts +4 -4
  3. package/dist/browser.js +1 -1
  4. package/dist/{diagnostics-PMINsVP6.d.ts → diagnostics-Chjz_4_Q.d.ts} +4 -4
  5. package/dist/{diagnostics-PMINsVP6.d.ts.map → diagnostics-Chjz_4_Q.d.ts.map} +1 -1
  6. package/dist/{errors-BeUEkNWL.d.ts → errors-BVLCFr-t.d.ts} +2 -2
  7. package/dist/{errors-BeUEkNWL.d.ts.map → errors-BVLCFr-t.d.ts.map} +1 -1
  8. package/dist/html.d.ts +3 -3
  9. package/dist/index.d.ts +4 -4
  10. package/dist/index.js +1 -1
  11. package/dist/inspect.d.ts +1 -1
  12. package/dist/inspect.js +2 -2
  13. package/dist/math.d.ts +1 -1
  14. package/dist/measure.d.ts +2 -2
  15. package/dist/node.d.ts +4 -4
  16. package/dist/node.js +1 -1
  17. package/dist/{pres-BgvxhQ_m.d.ts → pres-C-EU3SkN.d.ts} +2 -2
  18. package/dist/{pres-BgvxhQ_m.d.ts.map → pres-C-EU3SkN.d.ts.map} +1 -1
  19. package/dist/{presentation-BP1B8PCF.js → presentation-CxnUVhK9.js} +100 -24
  20. package/dist/presentation-CxnUVhK9.js.map +1 -0
  21. package/dist/{presentation-DyIRDKkp.d.ts → presentation-Osx1cDdJ.d.ts} +128 -31
  22. package/dist/presentation-Osx1cDdJ.d.ts.map +1 -0
  23. package/dist/read.d.ts +4 -4
  24. package/dist/read.js +2 -2
  25. package/dist/script.d.ts +32 -4
  26. package/dist/script.d.ts.map +1 -1
  27. package/dist/script.js +0 -0
  28. package/dist/script.js.map +1 -1
  29. package/dist/{shapes-DMThLsZN.js → shapes-DoJBPrwN.js} +79 -61
  30. package/dist/shapes-DoJBPrwN.js.map +1 -0
  31. package/dist/{slide-BRAtT8Dl.d.ts → slide-BTfn1Pyp.d.ts} +92 -9
  32. package/dist/slide-BTfn1Pyp.d.ts.map +1 -0
  33. package/dist/{text-B6PbMFih.js → text-C4P9MNdf.js} +157 -77
  34. package/dist/text-C4P9MNdf.js.map +1 -0
  35. package/dist/zip.d.ts +1 -1
  36. package/package.json +5 -2
  37. package/skills/ts-pptx-upstream/SKILL.md +107 -14
  38. package/dist/presentation-BP1B8PCF.js.map +0 -1
  39. package/dist/presentation-DyIRDKkp.d.ts.map +0 -1
  40. package/dist/shapes-DMThLsZN.js.map +0 -1
  41. package/dist/slide-BRAtT8Dl.d.ts.map +0 -1
  42. package/dist/text-B6PbMFih.js.map +0 -1
package/README.md CHANGED
@@ -42,6 +42,27 @@ npm install @shbernal/ts-pptx
42
42
  yarn add @shbernal/ts-pptx
43
43
  ```
44
44
 
45
+ ### Installing an unreleased commit
46
+
47
+ Any commit is installable directly from GitHub, without waiting for a release:
48
+
49
+ ```bash
50
+ npm install github:shbernal/ts-pptx#<commit-sha>
51
+ ```
52
+
53
+ `master` (`github:shbernal/ts-pptx`) works too, but pin the sha — a branch spec
54
+ re-resolves to whatever is at the head of it when the lockfile is next written.
55
+
56
+ `dist/` is not committed, so this builds the package on install: your package
57
+ manager clones the repo, installs this package's `devDependencies`, and runs its
58
+ `prepare` script. That makes the install slow (a couple of minutes) and heavier
59
+ than a registry install, and it needs a working Node toolchain. It is meant for
60
+ trying a fix before it ships, not for production dependencies.
61
+
62
+ Note that `pres.version` reports the version in `package.json` at that commit, so
63
+ several different commits report the same number. The sha in your `package.json`
64
+ is what identifies the build.
65
+
45
66
  ## Quick Start
46
67
 
47
68
  ```ts
@@ -103,15 +124,30 @@ a filed issue with a minimal reproduction, which is what becomes a permanent
103
124
  regression test here. It ships inside the package, so it is already on disk:
104
125
 
105
126
  ```bash
106
- npx skills add ./node_modules/@shbernal/ts-pptx # offline, matches your installed version
107
- npx skills add shbernal/ts-pptx # or straight from the repo
127
+ # Name the skill and the runtimes, and take the defaults: this is the form that
128
+ # completes unattended, which is how an agent will be running it.
129
+ npx skills add ./node_modules/@shbernal/ts-pptx -s '*' -a claude-code -a codex -a universal -y
130
+
131
+ npx skills add shbernal/ts-pptx # same flags, straight from the repo instead of node_modules
108
132
  ```
109
133
 
134
+ Drop the flags for an interactive prompt if you are at a terminal yourself. Do not reach
135
+ for `--all` to avoid the prompt — it installs into every runtime the CLI knows about,
136
+ around seventy of them, and leaves an `agent/` directory at your repository root for
137
+ runtimes nobody there uses. Name the ones you have.
138
+
139
+ Two things about living with the installed copy. It is a copy, so **a version bump does
140
+ not update it** — re-run the command above, or `npx skills update ts-pptx-upstream`, in
141
+ the same commit as the bump. And if you track it, track `skills-lock.json` and ignore the
142
+ copy: `skills experimental_install` restores the file from that lock but creates none of
143
+ the runtime links, so it is a record, not a restore command.
144
+
110
145
  It covers triage (is this ours, your deck's, or out of scope?), reducing a failure to
111
146
  a script that builds its own deck, and — because presentations carry client names and
112
147
  unreleased numbers — never uploading one to a public tracker. Once the reproduction
113
148
  stands on its own it files without interrupting you, and tells you the issue number
114
- afterwards.
149
+ afterwards. It also covers the far end of the cycle, which is the half that usually
150
+ rots: when a release lands, finding every workaround it retires and deleting them.
115
151
 
116
152
  You do not need it to report something: <https://github.com/shbernal/ts-pptx/issues>
117
153
  is open, and errors the library knows are its own fault print that link themselves.
package/dist/browser.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { C as isChartExType, S as connectorPresetFor, _ as TextAnchor, a as CONNECTOR_PRESETS, b as ZIP_OUTPUT_TYPE, c as OutputType, d as SCHEME_COLORS, f as SHAPE_NAME, g as TableStyle, h as SlideObjectType, i as CHART_NAME, l as PLACEHOLDER_TYPE, m as ShapeType, n as AlignV, o as CONNECTOR_PRESET_NAME, p as SchemeColor, r as BulletType, s as ChartType, t as AlignH, u as PlaceholderType, v as VALID_SHAPE_PRESETS, x as asChartType, y as WRITE_OUTPUT_TYPE } from "./enums-CoXnxiCI.js";
2
- import { $ as HAlign, $t as ChartSeriesOpts, A as TableToSlidesDocument, At as ChartLineDash, B as ShapeAdjustHandleXY, Bt as ChartPropsChartHistogram, C as TableCell, Ct as ChartAreaProps, D as TableProps, Dt as ChartExBinning, E as TableCellProps, Et as ChartErrorBarOptions, F as MediaProps, Ft as ChartPropsAxisVal, G as BackgroundProps, Gt as ChartPropsChartStock, H as ShapeConnectionSite, Ht as ChartPropsChartPie, I as MediaType, It as ChartPropsBase, J as DataOrPathProps, Jt as ChartPropsDataLabel, K as Color, Kt as ChartPropsChartSurface, L as OleObjectProps, Lt as ChartPropsChartBar, M as TableToSlidesProps, Mt as ChartOpts, N as ImageBaseProps, Nt as ChartPropsAxisCat, O as TableRow, Ot as ChartExGeography, P as ImageProps, Pt as ChartPropsAxisSer, Q as GradientStopProps, Qt as ChartPropsTitle, R as ShapeAdjustHandle, Rt as ChartPropsChartBoxWhisker, S as TransitionType, Sn as textRuns, St as PresetMaterialType, T as TableCellDiagonals, Tt as ChartDataPointStyle, U as ShapeGuide, Ut as ChartPropsChartRadar, V as ShapeAdjustValue, Vt as ChartPropsChartLine, W as ShapeProps, Wt as ChartPropsChartRegionMap, X as GeometryPoint, Xt as ChartPropsFillLine, Y as DataOrPathRequiredProps, Yt as ChartPropsDataTable, Z as GradientFillProps, Zt as ChartPropsLegend, _ as AnimationProps, _n as TextGlowProps, _t as ShapeFillProps, a as Slide, an as PlaceholderProps, at as PatternPreset, b as TransitionProps, bn as TextPropsOptions, bt as LightRigDirection, c as Model3dPoint, cn as NotesProps, ct as TextVertType, d as MasterTextStyleLevel, dn as ResolvedCommentAuthor, dt as BorderProps, en as LineCap, et as HexColor, f as MasterTextStyleProps, fn as SlideComment, ft as ConnectorProps, g as SlideNumberProps, gn as TextFitShrinkProps, gt as ShadowProps, h as SlideMasterProps, hn as TextBaseProps, ht as HyperlinkProps, i as ObjectOptions, in as ObjectNameProps, it as PatternFillProps, j as TableToSlidesElement, jt as ChartMulti, k as TableRowSlide, kt as ChartExStatistics, l as Model3dProps, ln as NotesTextOptions, lt as ThemeColor, m as SlideMasterObject, mn as TableLayoutResult, mt as HyperlinkActionJump, n as GroupChildProps, nn as OptsChartGridLine, nt as LinearGradientFillProps, o as SlideLayout, on as CommentProps, ot as PositionProps, p as SlideMasterChartProps, pn as TableCellLayout, pt as ConnectorType, q as Coord, qt as ChartPropsChartWaterfall, r as GroupProps, rn as ObjectLockProps, rt as Margin, s as Model3dCameraProps, sn as MeasureTextOptions, st as RadialGradientFillProps, t as AddSlideProps, tn as OptsChartData, tt as ImageFillProps, u as MasterBulletProps, un as OverflowBoxOptions, ut as VAlign, v as AnimationTrigger, vn as TextMeasurement, vt as ShapeLineProps, w as TableCell3DProps, wt as ChartAxisTickMark, x as TransitionSoundProps, xn as textRun, xt as LightRigType, y as PresetEffect, yn as TextProps, yt as BevelPresetType, z as ShapeAdjustHandlePolar, zt as ChartPropsChartDoughnut } from "./slide-BRAtT8Dl.js";
3
- import { a as PresentationProps, c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue, u as ThemeColorScheme } from "./pres-BgvxhQ_m.js";
4
- import { A as SectionZoomProps, C as emuToPixels, D as pixelsToEmu, E as percentToEmu, M as SummaryZoomProps, N as ZoomBaseProps, O as pointsToEmu, S as emuToInches, T as inchesToEmu, _ as POINTS_PER_INCH, a as FlatSide, b as StandardLayoutName, c as PresentationCore, d as EMU_PER_INCH, f as EMU_PER_POINT, g as PERCENT_SCALE, h as HUNDREDTHS_PER_POINT, i as ClipShape, j as SlideZoomProps, k as ptToHundredths, l as ANGLE_UNITS_PER_DEGREE, m as FIXED_PCT_PER_PERCENT, n as DiagnosticHandler, o as HalfDiscPreset, p as Emu, r as setDiagnosticHandler, s as clipPath, t as Diagnostic, u as DEFAULT_PX_PER_INCH, v as STANDARD_LAYOUTS, w as emuToPoints, x as coordToEmu, y as StandardLayout } from "./diagnostics-PMINsVP6.js";
5
- import { a as TsPptxError, c as DiagnosticCode, 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-BeUEkNWL.js";
2
+ import { $ as HAlign, $t as ChartSeriesOpts, A as TableToSlidesDocument, At as ChartLineDash, B as ShapeAdjustHandleXY, Bt as ChartPropsChartHistogram, C as TableCell, Ct as ChartAreaProps, D as TableProps, Dt as ChartExBinning, E as TableCellProps, Et as ChartErrorBarOptions, F as MediaProps, Ft as ChartPropsAxisVal, G as BackgroundProps, Gt as ChartPropsChartStock, H as ShapeConnectionSite, Ht as ChartPropsChartPie, I as MediaType, It as ChartPropsBase, J as DataOrPathProps, Jt as ChartPropsDataLabel, K as Color, Kt as ChartPropsChartSurface, L as OleObjectProps, Lt as ChartPropsChartBar, M as TableToSlidesProps, Mt as ChartOpts, N as ImageBaseProps, Nt as ChartPropsAxisCat, O as TableRow, Ot as ChartExGeography, P as ImageProps, Pt as ChartPropsAxisSer, Q as GradientStopProps, Qt as ChartPropsTitle, R as ShapeAdjustHandle, Rt as ChartPropsChartBoxWhisker, S as TransitionType, Sn as textRuns, St as PresetMaterialType, T as TableCellDiagonals, Tt as ChartDataPointStyle, U as ShapeGuide, Ut as ChartPropsChartRadar, V as ShapeAdjustValue, Vt as ChartPropsChartLine, W as ShapeProps, Wt as ChartPropsChartRegionMap, X as GeometryPoint, Xt as ChartPropsFillLine, Y as DataOrPathRequiredProps, Yt as ChartPropsDataTable, Z as GradientFillProps, Zt as ChartPropsLegend, _ as AnimationProps, _n as TextGlowProps, _t as ShapeFillProps, a as Slide, an as PlaceholderProps, at as PatternPreset, b as TransitionProps, bn as TextPropsOptions, bt as LightRigDirection, c as Model3dPoint, cn as NotesProps, ct as TextVertType, d as MasterTextStyleLevel, dn as ResolvedCommentAuthor, dt as BorderProps, en as LineCap, et as HexColor, f as MasterTextStyleProps, fn as SlideComment, ft as ConnectorProps, g as SlideNumberProps, gn as TextFitShrinkProps, gt as ShadowProps, h as SlideMasterProps, hn as TextBaseProps, ht as HyperlinkProps, i as ObjectOptions, in as ObjectNameProps, it as PatternFillProps, j as TableToSlidesElement, jt as ChartMulti, k as TableRowSlide, kt as ChartExStatistics, l as Model3dProps, ln as NotesTextOptions, lt as ThemeColor, m as SlideMasterObject, mn as TableLayoutResult, mt as HyperlinkActionJump, n as GroupChildProps, nn as OptsChartGridLine, nt as LinearGradientFillProps, o as SlideLayout, on as CommentProps, ot as PositionProps, p as SlideMasterChartProps, pn as TableCellLayout, pt as ConnectorType, q as Coord, qt as ChartPropsChartWaterfall, r as GroupProps, rn as ObjectLockProps, rt as Margin, s as Model3dCameraProps, sn as MeasureTextOptions, st as RadialGradientFillProps, t as AddSlideProps, tn as OptsChartData, tt as ImageFillProps, u as MasterBulletProps, un as OverflowBoxOptions, ut as VAlign, v as AnimationTrigger, vn as TextMeasurement, vt as ShapeLineProps, w as TableCell3DProps, wt as ChartAxisTickMark, x as TransitionSoundProps, xn as textRun, xt as LightRigType, y as PresetEffect, yn as TextProps, yt as BevelPresetType, z as ShapeAdjustHandlePolar, zt as ChartPropsChartDoughnut } from "./slide-BTfn1Pyp.js";
3
+ import { a as PresentationProps, c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue, u as ThemeColorScheme } from "./pres-C-EU3SkN.js";
4
+ import { A as SectionZoomProps, C as emuToPixels, D as pixelsToEmu, E as percentToEmu, M as SummaryZoomProps, N as ZoomBaseProps, O as pointsToEmu, S as emuToInches, T as inchesToEmu, _ as POINTS_PER_INCH, a as FlatSide, b as StandardLayoutName, c as PresentationCore, d as EMU_PER_INCH, f as EMU_PER_POINT, g as PERCENT_SCALE, h as HUNDREDTHS_PER_POINT, i as ClipShape, j as SlideZoomProps, k as ptToHundredths, l as ANGLE_UNITS_PER_DEGREE, m as FIXED_PCT_PER_PERCENT, n as DiagnosticHandler, o as HalfDiscPreset, p as Emu, r as setDiagnosticHandler, s as clipPath, t as Diagnostic, u as DEFAULT_PX_PER_INCH, v as STANDARD_LAYOUTS, w as emuToPoints, x as coordToEmu, y as StandardLayout } from "./diagnostics-Chjz_4_Q.js";
5
+ import { a as TsPptxError, c as DiagnosticCode, 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-BVLCFr-t.js";
6
6
  //#region src/browser.d.ts
7
7
  /**
8
8
  * The browser entry, reached through the `browser` export condition — a bundler resolving the
package/dist/browser.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as setDiagnosticHandler } from "./diagnostics-DYQC7xLV.js";
2
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";
3
3
  import { _ as pointsToEmu, a as FIXED_PCT_PER_PERCENT, c as POINTS_PER_INCH, d as emuToInches, f as emuToPixels, g as pixelsToEmu, h as percentToEmu, i as EMU_PER_POINT, l as STANDARD_LAYOUTS, m as inchesToEmu, n as DEFAULT_PX_PER_INCH, o as HUNDREDTHS_PER_POINT, p as emuToPoints, r as EMU_PER_INCH, s as PERCENT_SCALE, t as ANGLE_UNITS_PER_DEGREE, u as coordToEmu, v as ptToHundredths } from "./units-C7QM1KgH.js";
4
- import { i as PresentationCore, n as textRuns, r as clipPath, t as textRun } from "./text-B6PbMFih.js";
4
+ import { i as PresentationCore, n as textRuns, r as clipPath, t as textRun } from "./text-C4P9MNdf.js";
5
5
  import { $ as connectorPresetFor, B as AlignV, G as PlaceholderType, H as CONNECTOR_PRESETS, J as SlideObjectType, K as SchemeColor, Q as asChartType, U as ChartType, V as BulletType, W as OutputType, X as TextAnchor, Y as TableStyle, Z as VALID_SHAPE_PRESETS, et as isChartExType, j as IMG_SVG_PLACEHOLDER, q as ShapeType, z as AlignH } from "./units-internal-CR8s8YQa.js";
6
6
  import { t as genTableToSlides } from "./html-dom-DajBuobe.js";
7
7
  //#region src/runtime/browser.ts
@@ -1,8 +1,8 @@
1
1
  import { f as SHAPE_NAME, h as SlideObjectType, i as CHART_NAME, s as ChartType, y as WRITE_OUTPUT_TYPE } from "./enums-CoXnxiCI.js";
2
- import { C as TableCell, D as TableProps, F as MediaProps, G as BackgroundProps, I as MediaType, Mt as ChartOpts, O as TableRow, X as GeometryPoint, a as Slide, f as MasterTextStyleProps, fn as SlideComment, g as SlideNumberProps, h as SlideMasterProps, ht as HyperlinkProps, i as ObjectOptions, jt as ChartMulti, mn as TableLayoutResult, o as SlideLayout, ot as PositionProps, rt as Margin, sn as MeasureTextOptions, t as AddSlideProps, tn as OptsChartData, un as OverflowBoxOptions, vn as TextMeasurement, yn as TextProps } from "./slide-BRAtT8Dl.js";
3
- import { c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue } from "./pres-BgvxhQ_m.js";
2
+ import { C as TableCell, D as TableProps, F as MediaProps, G as BackgroundProps, I as MediaType, Mt as ChartOpts, O as TableRow, X as GeometryPoint, a as Slide, f as MasterTextStyleProps, fn as SlideComment, g as SlideNumberProps, h as SlideMasterProps, ht as HyperlinkProps, i as ObjectOptions, jt as ChartMulti, mn as TableLayoutResult, o as SlideLayout, ot as PositionProps, rt as Margin, sn as MeasureTextOptions, t as AddSlideProps, tn as OptsChartData, un as OverflowBoxOptions, vn as TextMeasurement, yn as TextProps } from "./slide-BTfn1Pyp.js";
3
+ import { c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue } from "./pres-C-EU3SkN.js";
4
4
  import { a as ExtractedSlides, m as EmbeddedFontSlot } from "./presentation-types-Dj4riuDs.js";
5
- import { c as DiagnosticCode } from "./errors-BeUEkNWL.js";
5
+ import { c as DiagnosticCode } from "./errors-BVLCFr-t.js";
6
6
  //#region src/types/zoom.d.ts
7
7
  /** Options shared by all three zoom kinds. */
8
8
  interface ZoomBaseProps extends PositionProps {
@@ -762,4 +762,4 @@ type DiagnosticHandler = (diagnostic: Diagnostic) => void;
762
762
  declare function setDiagnosticHandler(next: DiagnosticHandler | null): void;
763
763
  //#endregion
764
764
  export { SectionZoomProps as A, emuToPixels as C, pixelsToEmu as D, percentToEmu as E, SummaryZoomProps as M, ZoomBaseProps as N, pointsToEmu as O, emuToInches as S, inchesToEmu as T, POINTS_PER_INCH as _, FlatSide as a, StandardLayoutName as b, PresentationCore as c, EMU_PER_INCH as d, EMU_PER_POINT as f, PERCENT_SCALE as g, HUNDREDTHS_PER_POINT as h, ClipShape as i, SlideZoomProps as j, ptToHundredths as k, ANGLE_UNITS_PER_DEGREE as l, FIXED_PCT_PER_PERCENT as m, DiagnosticHandler as n, HalfDiscPreset as o, Emu as p, setDiagnosticHandler as r, clipPath as s, Diagnostic as t, DEFAULT_PX_PER_INCH as u, STANDARD_LAYOUTS as v, emuToPoints as w, coordToEmu as x, StandardLayout as y };
765
- //# sourceMappingURL=diagnostics-PMINsVP6.d.ts.map
765
+ //# sourceMappingURL=diagnostics-Chjz_4_Q.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics-PMINsVP6.d.ts","names":[],"sources":["../src/types/zoom.ts","../src/types/internal.ts","../src/runtime/types.ts","../src/units.ts","../src/presentation.ts","../src/clip.ts","../src/diagnostics.ts"],"mappings":";;;;;;;UAiBiB,sBAAsB;;EAEtC;;;;;EAKA;IAAe;IAAe;;;;;;EAK9B;;EAEA;;;UAIgB,uBAAuB;;EAEvC,QAAQ;;;UAIQ,yBAAyB;;EAEzC;;;;;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,QAAQ;MACL;;;;;;;;;;;;;;;;EA6DJ,YAAY,eAAe,aAAa,MAAM,qBAAqB;;;;;;;;;;;EAcnE,aAAa,eAAe,aAAa,MAAM;;;;;;;;;;;;;;;;;;;EAuB/C,YAAY,MAAM,YAAY,MAAM,aAAa;;;;;;EAW3C,OAAO,QAAQ,iBAAiB,iBAAiB,cAAc,OAAO;;;;;;EAYtE,MAAM,QAAQ,aAAa,iBAAiB,cAAc,OAAO;;;;;;;;;;;;;;;;;EAwBjE,QAAQ,QAAQ,aAAa,QAAQ;;;;;;;EAYrC,UAAU,QAAQ,iBAAiB;;;;;;;EAoBzC,kBAAkB,cAAc,OAAO;;;;;;EAUvC,WAAW,SAAS;;;;;;EA+BpB,SAAS,UAAU,gBAAgB;;;;;;EAsEnC,aAAa,QAAQ;;;;;EAwBrB,kBAAkB,OAAO;;;;;;;;KCj7Bd;;;;;;;KAQA;;KAGA;;;;;;EAKT;EAAmB,MAAM;EAAU,SAAS;;;;;;;;;;;;;;;;;;;;;iBAiH/B,SAAS,OAAO,WAAW,WAAW,YAAY;;;;UC1IjD;;WAEP,MAAM;;WAEN;;;;;WAKA,SAAS,SAAS;;;KAIhB,qBAAqB,YAAY;;;;;;;;;;;;;;;;;;;;;iBAgC7B,qBAAqB,MAAM"}
1
+ {"version":3,"file":"diagnostics-Chjz_4_Q.d.ts","names":[],"sources":["../src/types/zoom.ts","../src/types/internal.ts","../src/runtime/types.ts","../src/units.ts","../src/presentation.ts","../src/clip.ts","../src/diagnostics.ts"],"mappings":";;;;;;;UAiBiB,sBAAsB;;EAEtC;;;;;EAKA;IAAe;IAAe;;;;;;EAK9B;;EAEA;;;UAIgB,uBAAuB;;EAEvC,QAAQ;;;UAIQ,yBAAyB;;EAEzC;;;;;;KAOW,mBAAmB;;;UCjBd,8BAA8B;EAC9C;;EAEA;;UAEgB,0BAA0B;EAC1C,QAAQ,YAAY;;UAEJ,sBAAsB;EACtC,MAAM,aAAa;EACnB,MAAM;EACN,MAAM;E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,YAAY,MAAM,YAAY,MAAM,aAAa;;;;;;EAW3C,OAAO,QAAQ,iBAAiB,iBAAiB,cAAc,OAAO;;;;;;EAYtE,MAAM,QAAQ,aAAa,iBAAiB,cAAc,OAAO;;;;;;;;;;;;;;;;;EAwBjE,QAAQ,QAAQ,aAAa,QAAQ;;;;;;;EAYrC,UAAU,QAAQ,iBAAiB;;;;;;;EAoBzC,kBAAkB,cAAc,OAAO;;;;;;EAUvC,WAAW,SAAS;;;;;;EA+BpB,SAAS,UAAU,gBAAgB;;;;;;EAsEnC,aAAa,QAAQ;;;;;EAwBrB,kBAAkB,OAAO;;;;;;;;KCj7Bd;;;;;;;KAQA;;KAGA;;;;;;EAKT;EAAmB,MAAM;EAAU,SAAS;;;;;;;;;;;;;;;;;;;;;iBAiH/B,SAAS,OAAO,WAAW,WAAW,YAAY;;;;UC1IjD;;WAEP,MAAM;;WAEN;;;;;WAKA,SAAS,SAAS;;;KAIhB,qBAAqB,YAAY;;;;;;;;;;;;;;;;;;;;;iBAgC7B,qBAAqB,MAAM"}
@@ -30,7 +30,7 @@
30
30
  * differs — an image whose natural size cannot be measured reports
31
31
  * `image/unmeasurable-natural-size` whether it came from `addImage` or from `Picture.setImage`.
32
32
  */
33
- type DiagnosticCode = 'object-name/empty' | 'object-name/control-characters' | 'object-name/too-long' | 'object-name/duplicate' | 'animation/target-index-out-of-range' | 'animation/target-not-found' | 'animation/target-missing' | 'chart/invalid-axis-time-unit' | 'chart/non-finite-value' | 'chart/error-bars-missing-values' | 'chart/axis-type-conflict' | 'chart/invalid-metadata' | 'chart/invalid-metadata-key' | 'chart/invalid-metadata-value' | 'chart/option-out-of-range' | 'chart/invalid-subtotal-index' | 'chart/symbol-size-out-of-range' | 'chart/invalid-grid-line-size' | 'chart/invalid-grid-line-style' | 'chart/invalid-grid-line-cap' | 'chart/layout-out-of-range' | 'chart/stock-series-count' | 'comment/missing-author' | 'comment/missing-text' | 'connector/bends-ignored-for-straight' | 'connector/adj-out-of-range' | 'connector/unresolved-binding' | 'group/unsupported-child' | 'group/unrecognized-child' | 'group/no-children' | 'group/partial-frame' | 'image-fill/missing-source' | 'image-fill/missing-base64-header' | 'image-fill/svg-unsupported' | 'image-fill/unresolved-media' | 'image/crop-and-sizing-conflict' | 'image/unmeasurable-natural-size' | 'table/invalid-border' | 'table/invalid-outer-border' | 'table/invalid-horz-overflow' | 'table/invalid-cell3d' | 'table/col-width-count-mismatch' | 'table/autopage-height-too-small' | 'text/invalid-columns' | 'text/invalid-column-spacing' | 'text/invalid-fit-percentage' | 'text/char-spacing-out-of-range' | 'text/line-spacing-out-of-range' | 'font/size-out-of-range' | 'bullet/size-out-of-range' | 'bullet/image-missing-base64-header' | 'bullet/image-embed-failed' | 'bullet/invalid-character-code' | 'zoom/missing-target' | 'zoom/unresolved-target' | 'zoom/missing-section-title' | 'zoom/section-not-found' | 'zoom/section-empty' | 'zoom/no-sections-to-summarize' | 'color/not-a-string' | 'color/invalid-value' | 'shadow/invalid-type' | 'shadow/angle-out-of-range' | 'shadow/transparency-out-of-range' | 'shadow/color-has-hash' | 'geometry/invalid-shape-adjust' | 'geometry/shape-adjust-overridden' | 'geometry/arc-node-point-ignored' | 'geometry/invalid-guide' | 'geometry/unknown-guide-operation' | 'geometry/invalid-connection-site' | 'border/unknown-key' | 'border/invalid-dash-type' | 'object-lock/unsupported-on-shape' | 'media/load-failed' | 'model3d/preview-missing' | 'theme/invalid-color-override' | 'master/invalid-text-style-font-size' | 'master/too-many-text-style-levels' | 'notes/hyperlink-slide-unsupported' | 'html/image-missing-source' | 'section/missing-argument' | 'section/missing-title' | 'section/duplicate-title' | 'slide/section-not-found' | 'layout/invalid-definition' | 'inspect/group-transform-missing' | 'inspect/group-transform-degenerate' | 'measure/shrink-unmeasured' | 'measure/resize-unmeasured' | 'measure/heuristic-metrics' | 'margin/legacy-points' | 'transparency/out-of-range' | 'opacity/out-of-range' | 'line/width-out-of-range' | 'coord/bare-number-is-inches';
33
+ type DiagnosticCode = 'object-name/empty' | 'object-name/control-characters' | 'object-name/too-long' | 'object-name/duplicate' | 'animation/target-index-out-of-range' | 'animation/target-not-found' | 'animation/target-missing' | 'chart/invalid-axis-time-unit' | 'chart/non-finite-value' | 'chart/error-bars-missing-values' | 'chart/axis-type-conflict' | 'chart/invalid-metadata' | 'chart/invalid-metadata-key' | 'chart/invalid-metadata-value' | 'chart/option-out-of-range' | 'chart/invalid-subtotal-index' | 'chart/symbol-size-out-of-range' | 'chart/invalid-grid-line-size' | 'chart/invalid-grid-line-style' | 'chart/invalid-grid-line-cap' | 'chart/layout-out-of-range' | 'chart/stock-series-count' | 'comment/missing-author' | 'comment/missing-text' | 'connector/bends-ignored-for-straight' | 'connector/adj-out-of-range' | 'connector/unresolved-binding' | 'group/unsupported-child' | 'group/unrecognized-child' | 'group/no-children' | 'group/partial-frame' | 'image-fill/missing-source' | 'image-fill/missing-base64-header' | 'image-fill/svg-unsupported' | 'image-fill/unresolved-media' | 'image/crop-and-sizing-conflict' | 'image/unmeasurable-natural-size' | 'table/invalid-border' | 'table/invalid-outer-border' | 'table/invalid-horz-overflow' | 'table/invalid-cell3d' | 'table/col-width-count-mismatch' | 'table/autopage-height-too-small' | 'text/invalid-columns' | 'text/invalid-column-spacing' | 'text/invalid-fit-percentage' | 'text/char-spacing-out-of-range' | 'text/line-spacing-out-of-range' | 'text/paragraph-margin-out-of-range' | 'text/paragraph-indent-out-of-range' | 'font/size-out-of-range' | 'bullet/size-out-of-range' | 'bullet/image-missing-base64-header' | 'bullet/image-embed-failed' | 'bullet/invalid-character-code' | 'zoom/missing-target' | 'zoom/unresolved-target' | 'zoom/missing-section-title' | 'zoom/section-not-found' | 'zoom/section-empty' | 'zoom/no-sections-to-summarize' | 'color/not-a-string' | 'color/invalid-value' | 'shadow/invalid-type' | 'shadow/angle-out-of-range' | 'shadow/transparency-out-of-range' | 'shadow/color-has-hash' | 'geometry/invalid-shape-adjust' | 'geometry/shape-adjust-overridden' | 'geometry/arc-node-point-ignored' | 'geometry/invalid-guide' | 'geometry/unknown-guide-operation' | 'geometry/invalid-connection-site' | 'border/unknown-key' | 'border/invalid-dash-type' | 'object-lock/unsupported-on-shape' | 'media/load-failed' | 'model3d/preview-missing' | 'theme/invalid-color-override' | 'master/invalid-text-style-font-size' | 'master/too-many-text-style-levels' | 'notes/hyperlink-slide-unsupported' | 'html/image-missing-source' | 'section/missing-argument' | 'section/missing-title' | 'section/duplicate-title' | 'slide/section-not-found' | 'layout/invalid-definition' | 'inspect/group-transform-missing' | 'inspect/group-transform-degenerate' | 'measure/shrink-unmeasured' | 'measure/resize-unmeasured' | 'measure/heuristic-metrics' | 'margin/legacy-points' | 'transparency/out-of-range' | 'opacity/out-of-range' | 'line/width-out-of-range' | 'coord/bare-number-is-inches';
34
34
  /**
35
35
  * Conditions carried by `InvalidOptionError`: the caller passed something the library cannot use.
36
36
  *
@@ -179,4 +179,4 @@ declare class InternalError extends TsPptxError {
179
179
  }
180
180
  //#endregion
181
181
  export { TsPptxError as a, DiagnosticCode as c, InvalidOptionErrorCode as d, MediaErrorCode as f, UnsupportedFeatureErrorCode as h, PackageReadError as i, ErrorCode as l, TsPptxCode as m, InvalidOptionError as n, TsPptxErrorOptions as o, PackageReadErrorCode as p, MediaError as r, UnsupportedFeatureError as s, InternalError as t, InternalErrorCode as u };
182
- //# sourceMappingURL=errors-BeUEkNWL.d.ts.map
182
+ //# sourceMappingURL=errors-BVLCFr-t.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-BeUEkNWL.d.ts","names":[],"sources":["../src/codes.ts","../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCY;;;;;;;KAwHA;;;;;;KAsIA;;;;;;KAsBA;;;;;;;KA8BA;;;;;;KAiBA;;;;;;;;;;;;;;KAuBA,YACT,yBACA,8BACA,uBACA,iBACA;;KAGS,aAAa,iBAAiB;;;;UCtVzB,2BAA2B;;;;;WAKlC,SAAS,SAAS;;;;;;;;;cAUf,oBAA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;;;;;;;;;;;;cAkCjD,sBAAsB;WACjB,MAAM;EACvB,YAAY,MAAM,mBAAmB,iBAAiB,UAAU"}
package/dist/html.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { A as TableToSlidesDocument, M as TableToSlidesProps, a as Slide, j as TableToSlidesElement, t as AddSlideProps } from "./slide-BRAtT8Dl.js";
2
- import { i as PresLayout } from "./pres-BgvxhQ_m.js";
3
- 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-BeUEkNWL.js";
1
+ import { A as TableToSlidesDocument, M as TableToSlidesProps, a as Slide, j as TableToSlidesElement, t as AddSlideProps } from "./slide-BTfn1Pyp.js";
2
+ import { i as PresLayout } from "./pres-C-EU3SkN.js";
3
+ 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-BVLCFr-t.js";
4
4
  //#region src/gen/table/html-dom.d.ts
5
5
  /**
6
6
  * What `tableToSlides` needs a presentation to be: somewhere to put slides, and a layout to
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { C as isChartExType, S as connectorPresetFor, _ as TextAnchor, a as CONNECTOR_PRESETS, b as ZIP_OUTPUT_TYPE, c as OutputType, d as SCHEME_COLORS, f as SHAPE_NAME, g as TableStyle, h as SlideObjectType, i as CHART_NAME, l as PLACEHOLDER_TYPE, m as ShapeType, n as AlignV, o as CONNECTOR_PRESET_NAME, p as SchemeColor, r as BulletType, s as ChartType, t as AlignH, u as PlaceholderType, v as VALID_SHAPE_PRESETS, x as asChartType, y as WRITE_OUTPUT_TYPE } from "./enums-CoXnxiCI.js";
2
- import { $ as HAlign, $t as ChartSeriesOpts, A as TableToSlidesDocument, At as ChartLineDash, B as ShapeAdjustHandleXY, Bt as ChartPropsChartHistogram, C as TableCell, Ct as ChartAreaProps, D as TableProps, Dt as ChartExBinning, E as TableCellProps, Et as ChartErrorBarOptions, F as MediaProps, Ft as ChartPropsAxisVal, G as BackgroundProps, Gt as ChartPropsChartStock, H as ShapeConnectionSite, Ht as ChartPropsChartPie, I as MediaType, It as ChartPropsBase, J as DataOrPathProps, Jt as ChartPropsDataLabel, K as Color, Kt as ChartPropsChartSurface, L as OleObjectProps, Lt as ChartPropsChartBar, M as TableToSlidesProps, Mt as ChartOpts, N as ImageBaseProps, Nt as ChartPropsAxisCat, O as TableRow, Ot as ChartExGeography, P as ImageProps, Pt as ChartPropsAxisSer, Q as GradientStopProps, Qt as ChartPropsTitle, R as ShapeAdjustHandle, Rt as ChartPropsChartBoxWhisker, S as TransitionType, Sn as textRuns, St as PresetMaterialType, T as TableCellDiagonals, Tt as ChartDataPointStyle, U as ShapeGuide, Ut as ChartPropsChartRadar, V as ShapeAdjustValue, Vt as ChartPropsChartLine, W as ShapeProps, Wt as ChartPropsChartRegionMap, X as GeometryPoint, Xt as ChartPropsFillLine, Y as DataOrPathRequiredProps, Yt as ChartPropsDataTable, Z as GradientFillProps, Zt as ChartPropsLegend, _ as AnimationProps, _n as TextGlowProps, _t as ShapeFillProps, a as Slide, an as PlaceholderProps, at as PatternPreset, b as TransitionProps, bn as TextPropsOptions, bt as LightRigDirection, c as Model3dPoint, cn as NotesProps, ct as TextVertType, d as MasterTextStyleLevel, dn as ResolvedCommentAuthor, dt as BorderProps, en as LineCap, et as HexColor, f as MasterTextStyleProps, fn as SlideComment, ft as ConnectorProps, g as SlideNumberProps, gn as TextFitShrinkProps, gt as ShadowProps, h as SlideMasterProps, hn as TextBaseProps, ht as HyperlinkProps, i as ObjectOptions, in as ObjectNameProps, it as PatternFillProps, j as TableToSlidesElement, jt as ChartMulti, k as TableRowSlide, kt as ChartExStatistics, l as Model3dProps, ln as NotesTextOptions, lt as ThemeColor, m as SlideMasterObject, mn as TableLayoutResult, mt as HyperlinkActionJump, n as GroupChildProps, nn as OptsChartGridLine, nt as LinearGradientFillProps, o as SlideLayout, on as CommentProps, ot as PositionProps, p as SlideMasterChartProps, pn as TableCellLayout, pt as ConnectorType, q as Coord, qt as ChartPropsChartWaterfall, r as GroupProps, rn as ObjectLockProps, rt as Margin, s as Model3dCameraProps, sn as MeasureTextOptions, st as RadialGradientFillProps, t as AddSlideProps, tn as OptsChartData, tt as ImageFillProps, u as MasterBulletProps, un as OverflowBoxOptions, ut as VAlign, v as AnimationTrigger, vn as TextMeasurement, vt as ShapeLineProps, w as TableCell3DProps, wt as ChartAxisTickMark, x as TransitionSoundProps, xn as textRun, xt as LightRigType, y as PresetEffect, yn as TextProps, yt as BevelPresetType, z as ShapeAdjustHandlePolar, zt as ChartPropsChartDoughnut } from "./slide-BRAtT8Dl.js";
3
- import { a as PresentationProps, c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue, u as ThemeColorScheme } from "./pres-BgvxhQ_m.js";
4
- import { A as SectionZoomProps, C as emuToPixels, D as pixelsToEmu, E as percentToEmu, M as SummaryZoomProps, N as ZoomBaseProps, O as pointsToEmu, S as emuToInches, T as inchesToEmu, _ as POINTS_PER_INCH, a as FlatSide, b as StandardLayoutName, c as PresentationCore, d as EMU_PER_INCH, f as EMU_PER_POINT, g as PERCENT_SCALE, h as HUNDREDTHS_PER_POINT, i as ClipShape, j as SlideZoomProps, k as ptToHundredths, l as ANGLE_UNITS_PER_DEGREE, m as FIXED_PCT_PER_PERCENT, n as DiagnosticHandler, o as HalfDiscPreset, p as Emu, r as setDiagnosticHandler, s as clipPath, t as Diagnostic, u as DEFAULT_PX_PER_INCH, v as STANDARD_LAYOUTS, w as emuToPoints, x as coordToEmu, y as StandardLayout } from "./diagnostics-PMINsVP6.js";
5
- import { a as TsPptxError, c as DiagnosticCode, 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-BeUEkNWL.js";
2
+ import { $ as HAlign, $t as ChartSeriesOpts, A as TableToSlidesDocument, At as ChartLineDash, B as ShapeAdjustHandleXY, Bt as ChartPropsChartHistogram, C as TableCell, Ct as ChartAreaProps, D as TableProps, Dt as ChartExBinning, E as TableCellProps, Et as ChartErrorBarOptions, F as MediaProps, Ft as ChartPropsAxisVal, G as BackgroundProps, Gt as ChartPropsChartStock, H as ShapeConnectionSite, Ht as ChartPropsChartPie, I as MediaType, It as ChartPropsBase, J as DataOrPathProps, Jt as ChartPropsDataLabel, K as Color, Kt as ChartPropsChartSurface, L as OleObjectProps, Lt as ChartPropsChartBar, M as TableToSlidesProps, Mt as ChartOpts, N as ImageBaseProps, Nt as ChartPropsAxisCat, O as TableRow, Ot as ChartExGeography, P as ImageProps, Pt as ChartPropsAxisSer, Q as GradientStopProps, Qt as ChartPropsTitle, R as ShapeAdjustHandle, Rt as ChartPropsChartBoxWhisker, S as TransitionType, Sn as textRuns, St as PresetMaterialType, T as TableCellDiagonals, Tt as ChartDataPointStyle, U as ShapeGuide, Ut as ChartPropsChartRadar, V as ShapeAdjustValue, Vt as ChartPropsChartLine, W as ShapeProps, Wt as ChartPropsChartRegionMap, X as GeometryPoint, Xt as ChartPropsFillLine, Y as DataOrPathRequiredProps, Yt as ChartPropsDataTable, Z as GradientFillProps, Zt as ChartPropsLegend, _ as AnimationProps, _n as TextGlowProps, _t as ShapeFillProps, a as Slide, an as PlaceholderProps, at as PatternPreset, b as TransitionProps, bn as TextPropsOptions, bt as LightRigDirection, c as Model3dPoint, cn as NotesProps, ct as TextVertType, d as MasterTextStyleLevel, dn as ResolvedCommentAuthor, dt as BorderProps, en as LineCap, et as HexColor, f as MasterTextStyleProps, fn as SlideComment, ft as ConnectorProps, g as SlideNumberProps, gn as TextFitShrinkProps, gt as ShadowProps, h as SlideMasterProps, hn as TextBaseProps, ht as HyperlinkProps, i as ObjectOptions, in as ObjectNameProps, it as PatternFillProps, j as TableToSlidesElement, jt as ChartMulti, k as TableRowSlide, kt as ChartExStatistics, l as Model3dProps, ln as NotesTextOptions, lt as ThemeColor, m as SlideMasterObject, mn as TableLayoutResult, mt as HyperlinkActionJump, n as GroupChildProps, nn as OptsChartGridLine, nt as LinearGradientFillProps, o as SlideLayout, on as CommentProps, ot as PositionProps, p as SlideMasterChartProps, pn as TableCellLayout, pt as ConnectorType, q as Coord, qt as ChartPropsChartWaterfall, r as GroupProps, rn as ObjectLockProps, rt as Margin, s as Model3dCameraProps, sn as MeasureTextOptions, st as RadialGradientFillProps, t as AddSlideProps, tn as OptsChartData, tt as ImageFillProps, u as MasterBulletProps, un as OverflowBoxOptions, ut as VAlign, v as AnimationTrigger, vn as TextMeasurement, vt as ShapeLineProps, w as TableCell3DProps, wt as ChartAxisTickMark, x as TransitionSoundProps, xn as textRun, xt as LightRigType, y as PresetEffect, yn as TextProps, yt as BevelPresetType, z as ShapeAdjustHandlePolar, zt as ChartPropsChartDoughnut } from "./slide-BTfn1Pyp.js";
3
+ import { a as PresentationProps, c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue, u as ThemeColorScheme } from "./pres-C-EU3SkN.js";
4
+ import { A as SectionZoomProps, C as emuToPixels, D as pixelsToEmu, E as percentToEmu, M as SummaryZoomProps, N as ZoomBaseProps, O as pointsToEmu, S as emuToInches, T as inchesToEmu, _ as POINTS_PER_INCH, a as FlatSide, b as StandardLayoutName, c as PresentationCore, d as EMU_PER_INCH, f as EMU_PER_POINT, g as PERCENT_SCALE, h as HUNDREDTHS_PER_POINT, i as ClipShape, j as SlideZoomProps, k as ptToHundredths, l as ANGLE_UNITS_PER_DEGREE, m as FIXED_PCT_PER_PERCENT, n as DiagnosticHandler, o as HalfDiscPreset, p as Emu, r as setDiagnosticHandler, s as clipPath, t as Diagnostic, u as DEFAULT_PX_PER_INCH, v as STANDARD_LAYOUTS, w as emuToPoints, x as coordToEmu, y as StandardLayout } from "./diagnostics-Chjz_4_Q.js";
5
+ import { a as TsPptxError, c as DiagnosticCode, 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-BVLCFr-t.js";
6
6
  //#region src/index.d.ts
7
7
  /**
8
8
  * The runtime-agnostic entry: what a consumer gets from the bare `@shbernal/ts-pptx` specifier
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as setDiagnosticHandler } from "./diagnostics-DYQC7xLV.js";
2
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";
3
3
  import { _ as pointsToEmu, a as FIXED_PCT_PER_PERCENT, c as POINTS_PER_INCH, d as emuToInches, f as emuToPixels, g as pixelsToEmu, h as percentToEmu, i as EMU_PER_POINT, l as STANDARD_LAYOUTS, m as inchesToEmu, n as DEFAULT_PX_PER_INCH, o as HUNDREDTHS_PER_POINT, p as emuToPoints, r as EMU_PER_INCH, s as PERCENT_SCALE, t as ANGLE_UNITS_PER_DEGREE, u as coordToEmu, v as ptToHundredths } from "./units-C7QM1KgH.js";
4
- import { i as PresentationCore, n as textRuns, r as clipPath, t as textRun } from "./text-B6PbMFih.js";
4
+ import { i as PresentationCore, n as textRuns, r as clipPath, t as textRun } from "./text-C4P9MNdf.js";
5
5
  import { $ as connectorPresetFor, B as AlignV, G as PlaceholderType, H as CONNECTOR_PRESETS, J as SlideObjectType, K as SchemeColor, Q as asChartType, U as ChartType, V as BulletType, W as OutputType, X as TextAnchor, Y as TableStyle, Z as VALID_SHAPE_PRESETS, et as isChartExType, j as IMG_SVG_PLACEHOLDER, q as ShapeType, z as AlignH } from "./units-internal-CR8s8YQa.js";
6
6
  import { w as bytesToBase64 } from "./st-enums-evQG2A7Z.js";
7
7
  //#region src/runtime/neutral.ts
package/dist/inspect.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- 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-BeUEkNWL.js";
1
+ 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-BVLCFr-t.js";
2
2
  import { n as OpcPackage } from "./package-CaOLXSNi.js";
3
3
  //#region src/inspect.d.ts
4
4
  /**
package/dist/inspect.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { n as warn } from "./diagnostics-DYQC7xLV.js";
2
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";
3
3
  import { d as emuToInches, l as STANDARD_LAYOUTS } from "./units-C7QM1KgH.js";
4
- import { Dt as firstChild, Mt as intValue, bt as OOXML_NS, xt as attr } from "./shapes-DMThLsZN.js";
5
- import { f as OpcPackage, t as Presentation } from "./presentation-BP1B8PCF.js";
4
+ import { Nt as intValue, Ot as firstChild, St as attr, xt as OOXML_NS } from "./shapes-DoJBPrwN.js";
5
+ import { f as OpcPackage, t as Presentation } from "./presentation-CxnUVhK9.js";
6
6
  //#region src/inspect.ts
7
7
  /**
8
8
  * A cheap, flat snapshot of what a `.pptx` contains: every element on every
package/dist/math.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- 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-BeUEkNWL.js";
1
+ 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-BVLCFr-t.js";
2
2
  //#region src/math.d.ts
3
3
  /**
4
4
  * Convert a MathML string to OMML for the `math:` option on `addText`.
package/dist/measure.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { bn as TextPropsOptions, i as ObjectOptions, sn as MeasureTextOptions, un as OverflowBoxOptions, vn as TextMeasurement, yn as TextProps } from "./slide-BRAtT8Dl.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-BeUEkNWL.js";
1
+ import { bn as TextPropsOptions, i as ObjectOptions, sn as MeasureTextOptions, un as OverflowBoxOptions, vn as TextMeasurement, yn as TextProps } from "./slide-BTfn1Pyp.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-BVLCFr-t.js";
3
3
  //#region src/measure/font-metrics.d.ts
4
4
  /** Per-(face,bold,italic) advance-width source backed by a parsed font file. */
5
5
  interface FontMetrics {
package/dist/node.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { C as isChartExType, S as connectorPresetFor, _ as TextAnchor, a as CONNECTOR_PRESETS, b as ZIP_OUTPUT_TYPE, c as OutputType, d as SCHEME_COLORS, f as SHAPE_NAME, g as TableStyle, h as SlideObjectType, i as CHART_NAME, l as PLACEHOLDER_TYPE, m as ShapeType, n as AlignV, o as CONNECTOR_PRESET_NAME, p as SchemeColor, r as BulletType, s as ChartType, t as AlignH, u as PlaceholderType, v as VALID_SHAPE_PRESETS, x as asChartType, y as WRITE_OUTPUT_TYPE } from "./enums-CoXnxiCI.js";
2
- import { $ as HAlign, $t as ChartSeriesOpts, A as TableToSlidesDocument, At as ChartLineDash, B as ShapeAdjustHandleXY, Bt as ChartPropsChartHistogram, C as TableCell, Ct as ChartAreaProps, D as TableProps, Dt as ChartExBinning, E as TableCellProps, Et as ChartErrorBarOptions, F as MediaProps, Ft as ChartPropsAxisVal, G as BackgroundProps, Gt as ChartPropsChartStock, H as ShapeConnectionSite, Ht as ChartPropsChartPie, I as MediaType, It as ChartPropsBase, J as DataOrPathProps, Jt as ChartPropsDataLabel, K as Color, Kt as ChartPropsChartSurface, L as OleObjectProps, Lt as ChartPropsChartBar, M as TableToSlidesProps, Mt as ChartOpts, N as ImageBaseProps, Nt as ChartPropsAxisCat, O as TableRow, Ot as ChartExGeography, P as ImageProps, Pt as ChartPropsAxisSer, Q as GradientStopProps, Qt as ChartPropsTitle, R as ShapeAdjustHandle, Rt as ChartPropsChartBoxWhisker, S as TransitionType, Sn as textRuns, St as PresetMaterialType, T as TableCellDiagonals, Tt as ChartDataPointStyle, U as ShapeGuide, Ut as ChartPropsChartRadar, V as ShapeAdjustValue, Vt as ChartPropsChartLine, W as ShapeProps, Wt as ChartPropsChartRegionMap, X as GeometryPoint, Xt as ChartPropsFillLine, Y as DataOrPathRequiredProps, Yt as ChartPropsDataTable, Z as GradientFillProps, Zt as ChartPropsLegend, _ as AnimationProps, _n as TextGlowProps, _t as ShapeFillProps, a as Slide, an as PlaceholderProps, at as PatternPreset, b as TransitionProps, bn as TextPropsOptions, bt as LightRigDirection, c as Model3dPoint, cn as NotesProps, ct as TextVertType, d as MasterTextStyleLevel, dn as ResolvedCommentAuthor, dt as BorderProps, en as LineCap, et as HexColor, f as MasterTextStyleProps, fn as SlideComment, ft as ConnectorProps, g as SlideNumberProps, gn as TextFitShrinkProps, gt as ShadowProps, h as SlideMasterProps, hn as TextBaseProps, ht as HyperlinkProps, i as ObjectOptions, in as ObjectNameProps, it as PatternFillProps, j as TableToSlidesElement, jt as ChartMulti, k as TableRowSlide, kt as ChartExStatistics, l as Model3dProps, ln as NotesTextOptions, lt as ThemeColor, m as SlideMasterObject, mn as TableLayoutResult, mt as HyperlinkActionJump, n as GroupChildProps, nn as OptsChartGridLine, nt as LinearGradientFillProps, o as SlideLayout, on as CommentProps, ot as PositionProps, p as SlideMasterChartProps, pn as TableCellLayout, pt as ConnectorType, q as Coord, qt as ChartPropsChartWaterfall, r as GroupProps, rn as ObjectLockProps, rt as Margin, s as Model3dCameraProps, sn as MeasureTextOptions, st as RadialGradientFillProps, t as AddSlideProps, tn as OptsChartData, tt as ImageFillProps, u as MasterBulletProps, un as OverflowBoxOptions, ut as VAlign, v as AnimationTrigger, vn as TextMeasurement, vt as ShapeLineProps, w as TableCell3DProps, wt as ChartAxisTickMark, x as TransitionSoundProps, xn as textRun, xt as LightRigType, y as PresetEffect, yn as TextProps, yt as BevelPresetType, z as ShapeAdjustHandlePolar, zt as ChartPropsChartDoughnut } from "./slide-BRAtT8Dl.js";
3
- import { a as PresentationProps, c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue, u as ThemeColorScheme } from "./pres-BgvxhQ_m.js";
4
- import { A as SectionZoomProps, C as emuToPixels, D as pixelsToEmu, E as percentToEmu, M as SummaryZoomProps, N as ZoomBaseProps, O as pointsToEmu, S as emuToInches, T as inchesToEmu, _ as POINTS_PER_INCH, a as FlatSide, b as StandardLayoutName, c as PresentationCore, d as EMU_PER_INCH, f as EMU_PER_POINT, g as PERCENT_SCALE, h as HUNDREDTHS_PER_POINT, i as ClipShape, j as SlideZoomProps, k as ptToHundredths, l as ANGLE_UNITS_PER_DEGREE, m as FIXED_PCT_PER_PERCENT, n as DiagnosticHandler, o as HalfDiscPreset, p as Emu, r as setDiagnosticHandler, s as clipPath, t as Diagnostic, u as DEFAULT_PX_PER_INCH, v as STANDARD_LAYOUTS, w as emuToPoints, x as coordToEmu, y as StandardLayout } from "./diagnostics-PMINsVP6.js";
5
- import { a as TsPptxError, c as DiagnosticCode, 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-BeUEkNWL.js";
2
+ import { $ as HAlign, $t as ChartSeriesOpts, A as TableToSlidesDocument, At as ChartLineDash, B as ShapeAdjustHandleXY, Bt as ChartPropsChartHistogram, C as TableCell, Ct as ChartAreaProps, D as TableProps, Dt as ChartExBinning, E as TableCellProps, Et as ChartErrorBarOptions, F as MediaProps, Ft as ChartPropsAxisVal, G as BackgroundProps, Gt as ChartPropsChartStock, H as ShapeConnectionSite, Ht as ChartPropsChartPie, I as MediaType, It as ChartPropsBase, J as DataOrPathProps, Jt as ChartPropsDataLabel, K as Color, Kt as ChartPropsChartSurface, L as OleObjectProps, Lt as ChartPropsChartBar, M as TableToSlidesProps, Mt as ChartOpts, N as ImageBaseProps, Nt as ChartPropsAxisCat, O as TableRow, Ot as ChartExGeography, P as ImageProps, Pt as ChartPropsAxisSer, Q as GradientStopProps, Qt as ChartPropsTitle, R as ShapeAdjustHandle, Rt as ChartPropsChartBoxWhisker, S as TransitionType, Sn as textRuns, St as PresetMaterialType, T as TableCellDiagonals, Tt as ChartDataPointStyle, U as ShapeGuide, Ut as ChartPropsChartRadar, V as ShapeAdjustValue, Vt as ChartPropsChartLine, W as ShapeProps, Wt as ChartPropsChartRegionMap, X as GeometryPoint, Xt as ChartPropsFillLine, Y as DataOrPathRequiredProps, Yt as ChartPropsDataTable, Z as GradientFillProps, Zt as ChartPropsLegend, _ as AnimationProps, _n as TextGlowProps, _t as ShapeFillProps, a as Slide, an as PlaceholderProps, at as PatternPreset, b as TransitionProps, bn as TextPropsOptions, bt as LightRigDirection, c as Model3dPoint, cn as NotesProps, ct as TextVertType, d as MasterTextStyleLevel, dn as ResolvedCommentAuthor, dt as BorderProps, en as LineCap, et as HexColor, f as MasterTextStyleProps, fn as SlideComment, ft as ConnectorProps, g as SlideNumberProps, gn as TextFitShrinkProps, gt as ShadowProps, h as SlideMasterProps, hn as TextBaseProps, ht as HyperlinkProps, i as ObjectOptions, in as ObjectNameProps, it as PatternFillProps, j as TableToSlidesElement, jt as ChartMulti, k as TableRowSlide, kt as ChartExStatistics, l as Model3dProps, ln as NotesTextOptions, lt as ThemeColor, m as SlideMasterObject, mn as TableLayoutResult, mt as HyperlinkActionJump, n as GroupChildProps, nn as OptsChartGridLine, nt as LinearGradientFillProps, o as SlideLayout, on as CommentProps, ot as PositionProps, p as SlideMasterChartProps, pn as TableCellLayout, pt as ConnectorType, q as Coord, qt as ChartPropsChartWaterfall, r as GroupProps, rn as ObjectLockProps, rt as Margin, s as Model3dCameraProps, sn as MeasureTextOptions, st as RadialGradientFillProps, t as AddSlideProps, tn as OptsChartData, tt as ImageFillProps, u as MasterBulletProps, un as OverflowBoxOptions, ut as VAlign, v as AnimationTrigger, vn as TextMeasurement, vt as ShapeLineProps, w as TableCell3DProps, wt as ChartAxisTickMark, x as TransitionSoundProps, xn as textRun, xt as LightRigType, y as PresetEffect, yn as TextProps, yt as BevelPresetType, z as ShapeAdjustHandlePolar, zt as ChartPropsChartDoughnut } from "./slide-BTfn1Pyp.js";
3
+ import { a as PresentationProps, c as WriteFileProps, d as ThemeProps, i as PresLayout, l as WriteProps, n as PackagePart, o as SectionProps, r as PartsProps, s as WriteBaseProps, t as CustomPropertyValue, u as ThemeColorScheme } from "./pres-C-EU3SkN.js";
4
+ import { A as SectionZoomProps, C as emuToPixels, D as pixelsToEmu, E as percentToEmu, M as SummaryZoomProps, N as ZoomBaseProps, O as pointsToEmu, S as emuToInches, T as inchesToEmu, _ as POINTS_PER_INCH, a as FlatSide, b as StandardLayoutName, c as PresentationCore, d as EMU_PER_INCH, f as EMU_PER_POINT, g as PERCENT_SCALE, h as HUNDREDTHS_PER_POINT, i as ClipShape, j as SlideZoomProps, k as ptToHundredths, l as ANGLE_UNITS_PER_DEGREE, m as FIXED_PCT_PER_PERCENT, n as DiagnosticHandler, o as HalfDiscPreset, p as Emu, r as setDiagnosticHandler, s as clipPath, t as Diagnostic, u as DEFAULT_PX_PER_INCH, v as STANDARD_LAYOUTS, w as emuToPoints, x as coordToEmu, y as StandardLayout } from "./diagnostics-Chjz_4_Q.js";
5
+ import { a as TsPptxError, c as DiagnosticCode, 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-BVLCFr-t.js";
6
6
  //#region src/node.d.ts
7
7
  /**
8
8
  * The Node entry, reached through the `node` export condition — a consumer importing the bare
package/dist/node.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as setDiagnosticHandler } from "./diagnostics-DYQC7xLV.js";
2
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";
3
3
  import { _ as pointsToEmu, a as FIXED_PCT_PER_PERCENT, c as POINTS_PER_INCH, d as emuToInches, f as emuToPixels, g as pixelsToEmu, h as percentToEmu, i as EMU_PER_POINT, l as STANDARD_LAYOUTS, m as inchesToEmu, n as DEFAULT_PX_PER_INCH, o as HUNDREDTHS_PER_POINT, p as emuToPoints, r as EMU_PER_INCH, s as PERCENT_SCALE, t as ANGLE_UNITS_PER_DEGREE, u as coordToEmu, v as ptToHundredths } from "./units-C7QM1KgH.js";
4
- import { i as PresentationCore, n as textRuns, r as clipPath, t as textRun } from "./text-B6PbMFih.js";
4
+ import { i as PresentationCore, n as textRuns, r as clipPath, t as textRun } from "./text-C4P9MNdf.js";
5
5
  import { $ as connectorPresetFor, B as AlignV, G as PlaceholderType, H as CONNECTOR_PRESETS, J as SlideObjectType, K as SchemeColor, Q as asChartType, U as ChartType, V as BulletType, W as OutputType, X as TextAnchor, Y as TableStyle, Z as VALID_SHAPE_PRESETS, et as isChartExType, j as IMG_SVG_PLACEHOLDER, q as ShapeType, z as AlignH } from "./units-internal-CR8s8YQa.js";
6
6
  import { Buffer } from "node:buffer";
7
7
  import fs from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { y as WRITE_OUTPUT_TYPE } from "./enums-CoXnxiCI.js";
2
- import { a as Slide, et as HexColor } from "./slide-BRAtT8Dl.js";
2
+ import { a as Slide, et as HexColor } from "./slide-BTfn1Pyp.js";
3
3
  //#region src/types/theme.d.ts
4
4
  /**
5
5
  * Theme color scheme overrides. Each slot maps to one `<a:clrScheme>` entry in `theme1.xml`;
@@ -199,4 +199,4 @@ interface PresentationProps {
199
199
  }
200
200
  //#endregion
201
201
  export { PresentationProps as a, WriteFileProps as c, ThemeProps as d, PresLayout as i, WriteProps as l, PackagePart as n, SectionProps as o, PartsProps as r, WriteBaseProps as s, CustomPropertyValue as t, ThemeColorScheme as u };
202
- //# sourceMappingURL=pres-BgvxhQ_m.d.ts.map
202
+ //# sourceMappingURL=pres-C-EU3SkN.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pres-BgvxhQ_m.d.ts","names":[],"sources":["../src/types/theme.ts","../src/types/pres.ts"],"mappings":";;;;;;;;;;;;UAgBiB;;EAEhB,MAAM;;EAEN,MAAM;;EAEN,MAAM;;EAEN,MAAM;;EAEN,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,QAAQ;;EAER,WAAW;;UAEK;;;;;;EAMhB;;;;;;EAMA;;;;;;;EAOA;;;;;;;EAOA;;;;;;;EAOA;;;;;;;EAOA;;;;;;;EAOA,cAAc;;;;UC/EE;;;;;;EAMhB;;;;;;;;;;;;EAYA;;UAEgB,mBAAmB;;;;;;EAMnC,aAAa;;UAEG,uBAAuB;;;;;EAKvC;;;;;;;;;;UAUgB;;WAEP;;WAEA,MAAM;;;;;;;UAOC;;;;;;EAMhB;;UAEgB;;;;EAIhB;;;;;EAKA;;UAEgB;EAChB;EACA;;;;;EAMA;EACA;EACA;;KAEW,kDAAkD;UAE7C;EAChB;EACA;EACA;EACA,aAAa;;;;;EAKb,YAAY;EACZ;;;;;EAKA;;;;;EAKA;EACA;EACA,OAAO;EACP"}
1
+ {"version":3,"file":"pres-C-EU3SkN.d.ts","names":[],"sources":["../src/types/theme.ts","../src/types/pres.ts"],"mappings":";;;;;;;;;;;;UAgBiB;;EAEhB,MAAM;;EAEN,MAAM;;EAEN,MAAM;;EAEN,MAAM;;EAEN,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,UAAU;;EAEV,QAAQ;;EAER,WAAW;;UAEK;;;;;;EAMhB;;;;;;EAMA;;;;;;;EAOA;;;;;;;EAOA;;;;;;;EAOA;;;;;;;EAOA;;;;;;;EAOA,cAAc;;;;UC/EE;;;;;;EAMhB;;;;;;;;;;;;EAYA;;UAEgB,mBAAmB;;;;;;EAMnC,aAAa;;UAEG,uBAAuB;;;;;EAKvC;;;;;;;;;;UAUgB;;WAEP;;WAEA,MAAM;;;;;;;UAOC;;;;;;EAMhB;;UAEgB;;;;EAIhB;;;;;EAKA;;UAEgB;EAChB;EACA;;;;;EAMA;EACA;EACA;;KAEW,kDAAkD;UAE7C;EAChB;EACA;EACA;EACA,aAAa;;;;;EAKb,YAAY;EACZ;;;;;EAKA;;;;;EAKA;EACA;EACA,OAAO;EACP"}
@@ -3,7 +3,7 @@ import { d as emuToInches } from "./units-C7QM1KgH.js";
3
3
  import { _ as SLIDE_LAYOUT_REL, b as THEME_REL, d as IMAGE_REL, f as NOTES_MASTER_REL, m as OFFICE_DOCUMENT_REL, p as NOTES_SLIDE_REL, v as SLIDE_MASTER_REL, y as SLIDE_REL } from "./st-enums-evQG2A7Z.js";
4
4
  import { i as FONT_REL_TYPE, n as FONT_DATA_CONTENT_TYPE, r as FONT_DATA_EXTENSION, t as EMBEDDED_FONT_SLOTS } from "./embedded-fonts-MaynAHa9.js";
5
5
  import { ZipWriter, readZip } from "./zip.js";
6
- import { $ as resolveColor, A as resolveColorElement, At as getOrAddChild, B as placeholderInheritedColor, Ct as childElements, D as readPatternFill, Dt as firstChild, E as spPrXfrmEmu, Et as escapeXmlAttribute, F as resolveSlideThemeParts, Ft as removeAttr, G as slideDefinesColor, H as placeholderInheritedRunProps, It as removeChildrenByQName, J as fmtEntry, K as slideDefinesProp, L as LST_STYLE_LEVELS, Lt as replaceInParent, M as resolveMasterColorContext, Mt as intValue, N as resolveNotesColorContext, Nt as ownerDocumentOf, O as readPictureFill, Ot as firstChildElement, P as resolveSlideColorContext, Pt as parseXml, Q as parseClrScheme, R as RUN_PROP_NAMES, Rt as serializeXml, St as boolValue, T as TextFrame, Tt as descendantsByTag, U as placeholderInheritedXfrm, V as placeholderInheritedListStyles, W as placeholderOf, X as isA, Y as intAttr, Z as parseClrMap, _t as resolveRelativePartName, at as RPR_FILL_AFTER, b as Picture, bt as OOXML_NS, c as wrapShapeElement, ct as SPPR_EFFECT_AFTER, dt as SPPR_SCENE3D_AFTER, et as resolveSchemeToken, ft as SPPR_SP3D_AFTER, gt as relsPartNameFor, ht as relativePartName, it as FILL_CHOICES, j as resolveLayoutColorContext, jt as insertInOrder, k as readGradientFill, kt as getElements, l as GraphicFrame, lt as SPPR_FILL_AFTER, mt as partNameToZipPath, n as buildShapes, nt as styleRefLine, ot as SHAPE_AFTER_SPPR, pt as partNameExtension, q as SCHEME_SLOTS, rt as substitutePhClr, st as SPPR_AFTER_XFRM, t as GroupShape, tt as styleRefFill, ut as SPPR_LN_AFTER, vt as resolveSingleRel, wt as createElement, x as AutoShape, xt as attr, yt as zipPathToPartName, z as placeholderInheritedAnchor, zt as setAttr } from "./shapes-DMThLsZN.js";
6
+ import { $ as parseClrScheme, A as readGradientFill, At as getElements, B as placeholderInheritedAnchor, Bt as setAttr, Ct as boolValue, D as spPrXfrmEmu, Dt as escapeXmlAttribute, E as TextFrame, Et as descendantsByTag, F as resolveSlideColorContext, Ft as parseXml, G as placeholderOf, H as placeholderInheritedListStyles, I as resolveSlideThemeParts, It as removeAttr, J as SCHEME_SLOTS, K as slideDefinesColor, Lt as removeChildrenByQName, M as resolveLayoutColorContext, Mt as insertInOrder, N as resolveMasterColorContext, Nt as intValue, O as readPatternFill, Ot as firstChild, P as resolveNotesColorContext, Pt as ownerDocumentOf, Q as parseClrMap, R as LST_STYLE_LEVELS, Rt as replaceInParent, S as AutoShape, St as attr, Tt as createElement, U as placeholderInheritedRunProps, V as placeholderInheritedColor, W as placeholderInheritedXfrm, X as intAttr, Y as fmtEntry, Z as isA, _t as relsPartNameFor, at as FILL_CHOICES, bt as zipPathToPartName, ct as SPPR_AFTER_XFRM, dt as SPPR_LN_AFTER, et as resolveColor, ft as SPPR_SCENE3D_AFTER, gt as relativePartName, ht as partNameToZipPath, it as substitutePhClr, j as resolveColorElement, jt as getOrAddChild, k as readPictureFill, kt as firstChildElement, l as wrapShapeElement, lt as SPPR_EFFECT_AFTER, mt as partNameExtension, n as buildShapes, nt as styleRefFill, ot as RPR_FILL_AFTER, pt as SPPR_SP3D_AFTER, q as slideDefinesProp, r as findShapeByIdDeep, rt as styleRefLine, st as SHAPE_AFTER_SPPR, t as GroupShape, tt as resolveSchemeToken, u as GraphicFrame, ut as SPPR_FILL_AFTER, vt as resolveRelativePartName, wt as childElements, x as Picture, xt as OOXML_NS, yt as resolveSingleRel, z as RUN_PROP_NAMES, zt as serializeXml } from "./shapes-DoJBPrwN.js";
7
7
  //#region src/read/opc/content-types.ts
8
8
  /**
9
9
  * Overlay over `[Content_Types].xml`, used to resolve part content types at
@@ -1440,6 +1440,13 @@ function placeholderShapes(spTree) {
1440
1440
  * and text style from. Geometry getters read the placeholder's *own* `a:xfrm`,
1441
1441
  * which a master/layout placeholder carries explicitly (so it round-trips, unlike a
1442
1442
  * notes placeholder's inherited geometry).
1443
+ *
1444
+ * This is the identity-and-geometry view. The same `p:sp` also appears in
1445
+ * {@link SlideMaster.shapes} / {@link SlideLayout.shapes} as an `AutoShape`, which
1446
+ * additionally carries the paint surface (`resolvedFill`, `resolvedLine`,
1447
+ * `presetGeometry`, `rotation`, `absoluteFrame`) and reports its `p:ph` through
1448
+ * `AutoShape.placeholder`. Read a placeholder here to *place* it; read it there to
1449
+ * *draw* it.
1443
1450
  */
1444
1451
  var Placeholder = class {
1445
1452
  sp;
@@ -1513,9 +1520,9 @@ var Placeholder = class {
1513
1520
  /**
1514
1521
  * A deck's slide master (`slideMasterN.xml`) as a modeled object. Exposes the
1515
1522
  * property tiers a bound slide inherits: the {@link colorMap} (token → theme slot),
1516
- * its {@link theme}, its {@link placeholders} (with geometry), its own
1517
- * {@link background}, and the {@link layouts} that build on it. Reachable from
1518
- * {@link SlideLayout.master} and `Slide.master`.
1523
+ * its {@link theme}, its {@link shapes} and the {@link placeholders} subset of them,
1524
+ * its own {@link background}, and the {@link layouts} that build on it. Reachable
1525
+ * from {@link SlideLayout.master} and `Slide.master`.
1519
1526
  */
1520
1527
  var SlideMaster = class {
1521
1528
  opc;
@@ -1529,6 +1536,10 @@ var SlideMaster = class {
1529
1536
  get partName() {
1530
1537
  return this.part.partName;
1531
1538
  }
1539
+ /** This master part's relationships (its layouts, its theme, image embeds, …). */
1540
+ get relationships() {
1541
+ return this.opc.relationshipsFor(this.partName);
1542
+ }
1532
1543
  /** The master's authoring name (`p:cSld/@name`), or `''` when unnamed (the writer's default). */
1533
1544
  get name() {
1534
1545
  const cSld = this.#cSld();
@@ -1552,10 +1563,27 @@ var SlideMaster = class {
1552
1563
  for (const token of COLOR_MAP_TOKENS) out[token] = parsed.get(token) ?? null;
1553
1564
  return out;
1554
1565
  }
1566
+ /**
1567
+ * Every shape in the master's `p:cSld/p:spTree`, in document order — the same
1568
+ * `AnyShape` union `Slide.shapes` returns, so shape-walking code applies
1569
+ * unchanged. This is where a template's non-placeholder furniture lives: the
1570
+ * header band, the rule under the title, the logo. Whether a given slide draws
1571
+ * them is `Slide.showMasterSp` (and, for a layout, {@link SlideLayout.showMasterSp}).
1572
+ *
1573
+ * {@link placeholders} is the filtered view of the same tree.
1574
+ */
1575
+ get shapes() {
1576
+ const spTree = this.#spTree();
1577
+ return spTree ? buildShapes(spTree, this) : [];
1578
+ }
1579
+ /** The shape anywhere in the master's tree with the given drawing id, or `undefined`. */
1580
+ shapeByIdDeep(id) {
1581
+ return findShapeByIdDeep(this.shapes, id);
1582
+ }
1555
1583
  /** The master's placeholder shapes (`p:sp` carrying a `p:ph`), in document order. */
1556
1584
  get placeholders() {
1557
1585
  const ctx = this.themeContext();
1558
- const rels = this.opc.relationshipsFor(this.partName);
1586
+ const rels = this.relationships;
1559
1587
  return placeholderShapes(this.#spTree()).map((sp) => new Placeholder(sp, this.part, ctx, rels));
1560
1588
  }
1561
1589
  /** The layouts built on this master (via `p:sldLayoutIdLst` → its relationships), in list order. */
@@ -1563,7 +1591,7 @@ var SlideMaster = class {
1563
1591
  const root = this.part.dom.documentElement;
1564
1592
  const lst = root && firstChild(root, "p:sldLayoutIdLst");
1565
1593
  if (!lst) return [];
1566
- const rels = this.opc.relationshipsFor(this.partName);
1594
+ const rels = this.relationships;
1567
1595
  const out = [];
1568
1596
  for (const entry of getElements(lst, "p:sldLayoutId")) {
1569
1597
  const relId = attr(entry, "r:id");
@@ -1581,7 +1609,7 @@ var SlideMaster = class {
1581
1609
  const bg = backgroundElementOf(this.part.dom.documentElement);
1582
1610
  if (!bg) return null;
1583
1611
  const themePart = this.#relTarget(THEME_REL);
1584
- return readSlideBackground(bg, "master", this.themeContext(), this.opc.relationshipsFor(this.partName), themePart ? this.opc.relationshipsFor(themePart.partName) : null);
1612
+ return readSlideBackground(bg, "master", this.themeContext(), this.relationships, themePart ? this.opc.relationshipsFor(themePart.partName) : null);
1585
1613
  }
1586
1614
  /**
1587
1615
  * The master's colour/font context (its `p:clrMap` + theme), resolved once and
@@ -1591,7 +1619,7 @@ var SlideMaster = class {
1591
1619
  return this.#themeContext ??= resolveMasterColorContext(this.opc, this.partName);
1592
1620
  }
1593
1621
  #relTarget(type) {
1594
- const rels = this.opc.relationshipsFor(this.partName);
1622
+ const rels = this.relationships;
1595
1623
  const rel = rels.byType(type)[0];
1596
1624
  return rel ? this.opc.part(rels.resolveTarget(rel.id)) ?? null : null;
1597
1625
  }
@@ -1608,8 +1636,8 @@ var SlideMaster = class {
1608
1636
  * A deck's slide layout (`slideLayoutN.xml`) as a modeled object — the gallery entry
1609
1637
  * a slide binds to. Exposes its {@link name}, its {@link type} (import-only; the
1610
1638
  * writer authors none), its {@link master} (and, through it, the {@link theme}), its
1611
- * {@link placeholders} (with geometry), and its own {@link background}. Reachable
1612
- * from `Slide.layout` and {@link SlideMaster.layouts}.
1639
+ * {@link shapes} and the {@link placeholders} subset of them, and its own
1640
+ * {@link background}. Reachable from `Slide.layout` and {@link SlideMaster.layouts}.
1613
1641
  */
1614
1642
  var SlideLayout = class {
1615
1643
  opc;
@@ -1623,6 +1651,10 @@ var SlideLayout = class {
1623
1651
  get partName() {
1624
1652
  return this.part.partName;
1625
1653
  }
1654
+ /** This layout part's relationships (its master, image embeds, hyperlinks, …). */
1655
+ get relationships() {
1656
+ return this.opc.relationshipsFor(this.partName);
1657
+ }
1626
1658
  /** The layout's authoring name (`p:cSld/@name`, e.g. `Title and Content`), or `''` when unnamed. */
1627
1659
  get name() {
1628
1660
  const cSld = this.#cSld();
@@ -1637,9 +1669,21 @@ var SlideLayout = class {
1637
1669
  const root = this.part.dom.documentElement;
1638
1670
  return root ? attr(root, "type") : null;
1639
1671
  }
1672
+ /**
1673
+ * Whether this layout draws the master's non-placeholder shapes
1674
+ * (`p:sldLayout/@showMasterSp`). `xsd:boolean` defaulting to `true`, so an absent
1675
+ * attribute means shown — the layout-tier counterpart of `Slide.showMasterSp`,
1676
+ * and the one PowerPoint actually writes on a section-divider or full-bleed
1677
+ * layout. A renderer resolving what to paint under a slide's own shapes has to
1678
+ * consult both: the slide's flag, then its layout's.
1679
+ */
1680
+ get showMasterSp() {
1681
+ const root = this.part.dom.documentElement;
1682
+ return boolValue(root && attr(root, "showMasterSp")) !== false;
1683
+ }
1640
1684
  /** The master this layout is built on (via its `slideMaster` relationship), or `null` when absent. */
1641
1685
  get master() {
1642
- const rels = this.opc.relationshipsFor(this.partName);
1686
+ const rels = this.relationships;
1643
1687
  const rel = rels.byType(SLIDE_MASTER_REL)[0];
1644
1688
  const part = rel ? this.opc.part(rels.resolveTarget(rel.id)) : null;
1645
1689
  return part ? new SlideMaster(this.opc, part) : null;
@@ -1648,10 +1692,27 @@ var SlideLayout = class {
1648
1692
  get theme() {
1649
1693
  return this.master?.theme ?? null;
1650
1694
  }
1695
+ /**
1696
+ * Every shape in the layout's `p:cSld/p:spTree`, in document order — the same
1697
+ * `AnyShape` union `Slide.shapes` returns, so shape-walking code applies
1698
+ * unchanged. The write API authors non-placeholder shapes here: every
1699
+ * `defineSlideMaster({ objects })` member that is not a `placeholder` (a `rect`,
1700
+ * a `line`, an `image`, a `chart`, a `text` box) lands in this tree.
1701
+ *
1702
+ * {@link placeholders} is the filtered view of the same tree.
1703
+ */
1704
+ get shapes() {
1705
+ const spTree = this.#spTree();
1706
+ return spTree ? buildShapes(spTree, this) : [];
1707
+ }
1708
+ /** The shape anywhere in the layout's tree with the given drawing id, or `undefined`. */
1709
+ shapeByIdDeep(id) {
1710
+ return findShapeByIdDeep(this.shapes, id);
1711
+ }
1651
1712
  /** The layout's placeholder shapes (`p:sp` carrying a `p:ph`), in document order. */
1652
1713
  get placeholders() {
1653
1714
  const ctx = this.themeContext();
1654
- const rels = this.opc.relationshipsFor(this.partName);
1715
+ const rels = this.relationships;
1655
1716
  return placeholderShapes(this.#spTree()).map((sp) => new Placeholder(sp, this.part, ctx, rels));
1656
1717
  }
1657
1718
  /**
@@ -1664,7 +1725,7 @@ var SlideLayout = class {
1664
1725
  const bg = backgroundElementOf(this.part.dom.documentElement);
1665
1726
  if (!bg) return null;
1666
1727
  const themePart = this.master?.theme?.part ?? null;
1667
- return readSlideBackground(bg, "layout", this.themeContext(), this.opc.relationshipsFor(this.partName), themePart ? this.opc.relationshipsFor(themePart.partName) : null);
1728
+ return readSlideBackground(bg, "layout", this.themeContext(), this.relationships, themePart ? this.opc.relationshipsFor(themePart.partName) : null);
1668
1729
  }
1669
1730
  /**
1670
1731
  * The layout's colour/font context (walked layout → master → theme), resolved once
@@ -2178,6 +2239,14 @@ var Slide = class {
2178
2239
  get relationships() {
2179
2240
  return this.presentation.opc.relationshipsFor(this.partName);
2180
2241
  }
2242
+ /**
2243
+ * The deck's OPC package. Convenience for `presentation.opc`, and the member
2244
+ * {@link ShapeHost} names so a shape can reach a referenced part (an image, a
2245
+ * chart) the same way whether it lives on a slide, a layout, or a master.
2246
+ */
2247
+ get opc() {
2248
+ return this.presentation.opc;
2249
+ }
2181
2250
  #themeColors;
2182
2251
  /**
2183
2252
  * The slide's resolved theme context (`clrMap` + `clrScheme` + the theme
@@ -2223,6 +2292,22 @@ var Slide = class {
2223
2292
  this.part.markDirty();
2224
2293
  }
2225
2294
  /**
2295
+ * Whether this slide draws the master's non-placeholder shapes
2296
+ * (`p:sld/@showMasterSp`). `xsd:boolean` defaulting to `true`, so an absent
2297
+ * attribute means shown — the same shape as {@link hidden}.
2298
+ *
2299
+ * This is the switch that decides whether {@link SlideMaster.shapes} belongs on
2300
+ * *this* slide. A slide the author gave a full-bleed image or a section divider
2301
+ * usually sets it to `0`, and a renderer that paints the master's band and logo
2302
+ * anyway puts the template's furniture on top of a slide that deliberately hid
2303
+ * it. Placeholders are unaffected: the flag suppresses only the master's
2304
+ * decorative shapes.
2305
+ */
2306
+ get showMasterSp() {
2307
+ const root = this.part.dom.documentElement;
2308
+ return boolValue(root && attr(root, "showMasterSp")) !== false;
2309
+ }
2310
+ /**
2226
2311
  * The slide's show transition (`p:transition`), decoded into a typed model, or
2227
2312
  * `null` when the slide has none. Handles both PowerPoint forms: the bare
2228
2313
  * `<p:transition>` and the `mc:AlternateContent` wrapper that carries the exact
@@ -2530,16 +2615,7 @@ var Slide = class {
2530
2615
  * resolve a binding into a group that top-level {@link shapeById} cannot see.
2531
2616
  */
2532
2617
  shapeByIdDeep(id) {
2533
- const walk = (shapes) => {
2534
- for (const shape of shapes) {
2535
- if (shape.id === id) return shape;
2536
- if (shape instanceof GroupShape) {
2537
- const found = walk(shape.shapes);
2538
- if (found) return found;
2539
- }
2540
- }
2541
- };
2542
- return walk(this.shapes);
2618
+ return findShapeByIdDeep(this.shapes, id);
2543
2619
  }
2544
2620
  /** The first top-level shape with the given name (`p:cNvPr/@name`), or `undefined`. */
2545
2621
  shapeByName(name) {
@@ -4797,4 +4873,4 @@ var Presentation = class Presentation {
4797
4873
  //#endregion
4798
4874
  export { Placeholder as a, Theme as c, NotesSlide as d, OpcPackage as f, ContentTypes as h, Slide as i, readTagsForPart as l, Part as m, readCoreProperties as n, SlideLayout as o, Relationships as p, readCustomProperties as r, SlideMaster as s, Presentation as t, NotesPlaceholder as u };
4799
4875
 
4800
- //# sourceMappingURL=presentation-BP1B8PCF.js.map
4876
+ //# sourceMappingURL=presentation-CxnUVhK9.js.map