@shbernal/ts-pptx 3.4.0 → 3.5.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 (40) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/browser.js +1 -1
  3. package/dist/{diagnostics-B0OmTOoz.d.ts → diagnostics-BDuR8UkG.d.ts} +3 -3
  4. package/dist/{diagnostics-B0OmTOoz.d.ts.map → diagnostics-BDuR8UkG.d.ts.map} +1 -1
  5. package/dist/{errors-fB1KDJKQ.d.ts → errors-CgnueTYL.d.ts} +3 -3
  6. package/dist/{errors-fB1KDJKQ.d.ts.map → errors-CgnueTYL.d.ts.map} +1 -1
  7. package/dist/html.d.ts +1 -1
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.js +1 -1
  10. package/dist/inspect.d.ts +28 -4
  11. package/dist/inspect.d.ts.map +1 -1
  12. package/dist/inspect.js +41 -9
  13. package/dist/inspect.js.map +1 -1
  14. package/dist/math.d.ts +1 -1
  15. package/dist/measure.d.ts +1 -1
  16. package/dist/{namespaces-Sy_m7Nhd.js → namespaces-CcKuzeuE.js} +5 -2
  17. package/dist/{namespaces-Sy_m7Nhd.js.map → namespaces-CcKuzeuE.js.map} +1 -1
  18. package/dist/node.d.ts +2 -2
  19. package/dist/node.js +1 -1
  20. package/dist/{notes-bWApshah.js → notes-DNqAggXx.js} +2 -2
  21. package/dist/{notes-bWApshah.js.map → notes-DNqAggXx.js.map} +1 -1
  22. package/dist/{presentation-3rAKKRfm.js → presentation-VfJ_FT7E.js} +156 -8
  23. package/dist/presentation-VfJ_FT7E.js.map +1 -0
  24. package/dist/{presentation-types-D7cgT-eG.d.ts → presentation-types-CpkTx9Xa.d.ts} +165 -4
  25. package/dist/presentation-types-CpkTx9Xa.d.ts.map +1 -0
  26. package/dist/read.d.ts +3 -3
  27. package/dist/read.js +3 -3
  28. package/dist/script.d.ts +2 -2
  29. package/dist/script.d.ts.map +1 -1
  30. package/dist/script.js +68 -30
  31. package/dist/script.js.map +1 -1
  32. package/dist/{shapes-Dyw5bxwO.js → shapes-Kt51vry6.js} +357 -13
  33. package/dist/shapes-Kt51vry6.js.map +1 -0
  34. package/dist/{text-DSN3anEh.js → text-D04NUMvA.js} +4 -4
  35. package/dist/{text-DSN3anEh.js.map → text-D04NUMvA.js.map} +1 -1
  36. package/dist/zip.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/presentation-3rAKKRfm.js.map +0 -1
  39. package/dist/presentation-types-D7cgT-eG.d.ts.map +0 -1
  40. package/dist/shapes-Dyw5bxwO.js.map +0 -1
@@ -990,6 +990,13 @@ declare class Paragraph {
990
990
  * document order, with each line break (`a:br`) rendered as `\n`.
991
991
  */
992
992
  get text(): string;
993
+ /**
994
+ * Replace **this paragraph's** content with a single run, preserving the character
995
+ * formatting (`a:rPr`) of its first existing run and leaving its `a:pPr` (level,
996
+ * alignment, bullet) alone. Sibling paragraphs are untouched — the difference from
997
+ * {@link TextFrame.text}, which collapses the whole body to one paragraph.
998
+ */
999
+ set text(value: string);
993
1000
  /** Escape hatch: the underlying `a:p` element. After mutating it call {@link markDirty}, or `save()` writes the original bytes. */
994
1001
  get element_(): Element;
995
1002
  /** Mark the owning part dirty so `save()` reserializes it. Call after mutating {@link element_}. */
@@ -2017,6 +2024,60 @@ interface DiagramConnection {
2017
2024
  /** The layout preset this edge belongs to (`@presId`), set on generated edges only. */
2018
2025
  presentationId: string | null;
2019
2026
  }
2027
+ /**
2028
+ * Where a point's text is drawn in the fallback drawing part — the second copy of every
2029
+ * string a diagram carries, and the only one a renderer without a SmartArt layout engine
2030
+ * paints. See {@link DiagramPoint.drawnShape} for how a point reaches it.
2031
+ */
2032
+ interface DiagramDrawnShape {
2033
+ /** The drawing part (`/ppt/diagrams/drawing{N}.xml`) the shape lives in. */
2034
+ readonly part: Part;
2035
+ /** The `pres` point this shape draws (`dsp:sp/@modelId`) — never the authored point's own id. */
2036
+ readonly modelId: string;
2037
+ /** Which paragraph of {@link textFrame} carries this point's text (the `presOf` edge's `@destOrd`). */
2038
+ readonly paragraphIndex: number;
2039
+ /**
2040
+ * The shape's `dsp:txBody`, bound to the **drawing** part rather than the data part, so
2041
+ * an edit made through it marks the part that actually changed.
2042
+ *
2043
+ * One shape commonly draws several points — three of them in `mixed.pptx` — so writing
2044
+ * `textFrame.text` here would delete the siblings' text. Replace paragraph
2045
+ * {@link paragraphIndex} instead, which is what {@link DiagramPoint.text}'s setter does.
2046
+ */
2047
+ readonly textFrame: TextFrame;
2048
+ /** Escape hatch: the underlying `dsp:sp`. After mutating it call `part.markDirty()`. */
2049
+ readonly element_: Element;
2050
+ }
2051
+ /**
2052
+ * The node → drawn-shape index of one diagram: the `presOf` edges of the data model and the
2053
+ * `dsp:sp` elements of the drawing part, both keyed for lookup.
2054
+ *
2055
+ * Built once per {@link Diagram}, and only when a point is actually asked what draws it — the
2056
+ * drawing part is a second XML DOM and a consumer reading node text should not pay to parse
2057
+ * it. The consequence of that memo: a consumer who *adds* or *removes* shapes in the drawing
2058
+ * part through the escape hatches must re-reach the diagram to see them here.
2059
+ */
2060
+ declare class DrawingIndex {
2061
+ #private;
2062
+ private readonly drawingPart;
2063
+ private readonly themeContext?;
2064
+ constructor(root: Element | null, drawingPart: Part | null, themeContext?: ThemeContext | undefined);
2065
+ /**
2066
+ * Resolve one authored point to the `pres` point that presents it and to the drawn
2067
+ * paragraph carrying its text.
2068
+ *
2069
+ * A point commonly has **several** `presOf` arms — an org-chart node's box and the
2070
+ * connector beneath it are two presentations of one node — so the arm is chosen by what it
2071
+ * reaches rather than by its `@srcOrd`: the first, in `@srcOrd` order, whose `pres` point
2072
+ * draws a `dsp:sp` that has a `dsp:txBody`. That selector produced a unique hit for all 90
2073
+ * authored points measured across five layout families, and it degrades to "no arm" rather
2074
+ * than to "the wrong arm" on a layout that was not.
2075
+ */
2076
+ resolve(modelId: string | null): {
2077
+ presentationId: string | null;
2078
+ drawnShape: DiagramDrawnShape | null;
2079
+ };
2080
+ }
2020
2081
  /** One point (`dgm:pt`) of a diagram's data model. */
2021
2082
  declare class DiagramPoint {
2022
2083
  #private;
@@ -2025,9 +2086,13 @@ declare class DiagramPoint {
2025
2086
  private readonly part;
2026
2087
  private readonly themeContext?;
2027
2088
  private readonly relationships?;
2089
+ /** The owning diagram's drawing index, built on first use; absent when reached without one. */
2090
+ private readonly drawing?;
2028
2091
  constructor(pt: Element,
2029
2092
  /** The diagram data part, so a text edit marks the right part dirty. */
2030
- part: Part, themeContext?: ThemeContext | undefined, relationships?: Relationships | undefined);
2093
+ part: Part, themeContext?: ThemeContext | undefined, relationships?: Relationships | undefined,
2094
+ /** The owning diagram's drawing index, built on first use; absent when reached without one. */
2095
+ drawing?: (() => DrawingIndex) | undefined);
2031
2096
  /** This point's id (`@modelId`), which connections reference. */
2032
2097
  get modelId(): string | null;
2033
2098
  /** What kind of point this is (`@type`); `node` when absent, its schema default. */
@@ -2049,13 +2114,87 @@ declare class DiagramPoint {
2049
2114
  * This point's text body (`dgm:t`) as a {@link TextFrame}, or `null` when the point
2050
2115
  * carries none. It is an `a:CT_TextBody` like any other, so `paragraphs`, `runs` and the
2051
2116
  * `resolved*` getters all apply.
2117
+ *
2118
+ * **Writing through this edits the data model only**, and leaves the drawing cache
2119
+ * holding the old string — which is what PowerPoint-less renderers draw. It is the escape
2120
+ * hatch for run-level formatting, so it does exactly what it is told and nothing more;
2121
+ * {@link text}'s setter is the path that mirrors.
2052
2122
  */
2053
2123
  get textFrame(): TextFrame | null;
2124
+ /**
2125
+ * The generated `pres` point that presents this one (`dgm:cxn[@type="presOf"]/@destId`),
2126
+ * or `null` when nothing presents it — the normal state of an unlabelled transition point.
2127
+ *
2128
+ * Where a point has several `presOf` arms the one named here is the arm that draws text;
2129
+ * see {@link drawnShape}, which resolves both.
2130
+ */
2131
+ get presentationId(): string | null;
2132
+ /**
2133
+ * The paragraph of the fallback drawing part (`dsp:drawing`) that carries this point's
2134
+ * text, or `null` when nothing draws it.
2135
+ *
2136
+ * The mapping runs through the `pres` point rather than directly: a `dsp:sp/@modelId` is
2137
+ * always a `pres` point's id, so a lookup keyed on the authored point's own id finds
2138
+ * nothing at all. It is many-to-one in both directions — one shape draws several points
2139
+ * (`@destOrd` says which paragraph is whose, and it can contradict document order), and
2140
+ * one point has several presentations, of which at most one holds text.
2141
+ *
2142
+ * `null` is a defined outcome, not a failure, and covers four real cases: the package
2143
+ * carries no drawing part; the point has no `presOf` edge (every unlabelled
2144
+ * `parTrans`/`sibTrans`); the `pres` point draws no `dsp:sp`; and the shape it draws has
2145
+ * no `dsp:txBody` (a connector, or a picture node's filled rectangle).
2146
+ */
2147
+ get drawnShape(): DiagramDrawnShape | null;
2054
2148
  /** This point's text, paragraphs joined by `\n`; `''` when it carries none. */
2055
2149
  get text(): string;
2150
+ /**
2151
+ * Replace this point's text, in the data model **and** in the drawing cache.
2152
+ *
2153
+ * A diagram stores every string twice. `dgm:t` is what PowerPoint reads, and it recomputes
2154
+ * the drawing from the data model on open; the `dsp:drawing` part is what every other
2155
+ * renderer paints, and none of them recompute anything. Writing only the first is an edit
2156
+ * that is invisible in LibreOffice, Google Slides, thumbnailers and web previews until
2157
+ * someone opens the deck in PowerPoint and saves it.
2158
+ *
2159
+ * The data-model write always happens. The mirror is best-effort: when the point resolves
2160
+ * to no drawn paragraph (see {@link drawnShape} for the four ways that occurs) the cache
2161
+ * keeps the old string and a `diagram/drawing-cache-not-updated` diagnostic says so.
2162
+ * Throwing instead would make the common case unusable in order to report the rare one,
2163
+ * and returning a status would be a shape no other text setter here has.
2164
+ *
2165
+ * Two things it deliberately does not do. It does **not** recompute geometry: the drawn
2166
+ * shape keeps its cached position and size, so a much longer string overflows its box in
2167
+ * those same renderers until PowerPoint re-lays the diagram out. And it does not *create*
2168
+ * a place to draw text — a transition point whose layout has no label slot has no
2169
+ * `dsp:sp`, and PowerPoint strips text put on one, so the honest outcome is the
2170
+ * diagnostic. Like every other `text` setter here it collapses the point to one run,
2171
+ * keeping the first run's `a:rPr`; use {@link textFrame} for run-level work.
2172
+ */
2173
+ set text(value: string);
2056
2174
  /** Escape hatch: the underlying `dgm:pt` element. After mutating it call {@link Diagram.markDirty}. */
2057
2175
  get element_(): Element;
2058
2176
  }
2177
+ /**
2178
+ * One user-authored point in its place in the diagram's tree — a `node` or an `asst`, never a
2179
+ * generated `pres` point or a transition label. See {@link Diagram.nodes}.
2180
+ */
2181
+ declare class DiagramNode {
2182
+ /** The point itself: its text, its type, and its link to what is drawn for it. */
2183
+ readonly point: DiagramPoint;
2184
+ /** The parent node, or `null` for a root. */
2185
+ readonly parent: DiagramNode | null;
2186
+ /** Depth below the root, `0` for a root. */
2187
+ readonly level: number;
2188
+ /** Child nodes, ordered by their `parOf` edge's `@srcOrd`. Empty for a leaf. */
2189
+ readonly children: DiagramNode[];
2190
+ constructor(
2191
+ /** The point itself: its text, its type, and its link to what is drawn for it. */
2192
+ point: DiagramPoint,
2193
+ /** The parent node, or `null` for a root. */
2194
+ parent: DiagramNode | null,
2195
+ /** Depth below the root, `0` for a root. */
2196
+ level: number);
2197
+ }
2059
2198
  /** A SmartArt graphic frame's diagram, backed by its `dgm:dataModel` part. */
2060
2199
  declare class Diagram {
2061
2200
  #private;
@@ -2079,9 +2218,31 @@ declare class Diagram {
2079
2218
  /**
2080
2219
  * Every point (`dgm:ptLst/dgm:pt`) in document order, unfiltered — generated `pres`
2081
2220
  * points and the `doc` root included. Filter on {@link DiagramPoint.type} for the user's
2082
- * nodes; {@link text} is the shortcut for the common case.
2221
+ * nodes; {@link text} is the shortcut for the common case, {@link nodes} the structured one.
2222
+ *
2223
+ * Built per access like every other read proxy (`docs/reference/pptx-read.md`, "Object
2224
+ * model"), so `points[0] !== points[0]` while both wrap the same `dgm:pt`. Key a `Map`
2225
+ * on {@link DiagramPoint.modelId}, not on the point.
2083
2226
  */
2084
2227
  get points(): DiagramPoint[];
2228
+ /**
2229
+ * The authored tree — every `node` and `asst` point in its place, roots in `@srcOrd`
2230
+ * order — as a view over {@link points} and {@link connections} rather than a replacement
2231
+ * for either.
2232
+ *
2233
+ * A root is a content point whose `parOf` parent is not itself content, which in a
2234
+ * PowerPoint-authored model means the `doc` point. Transition points are not members; see
2235
+ * this module's header for that decision and the two beside it.
2236
+ *
2237
+ * @throws PackageReadError `diagram/parent-edge-cycle` when the `parOf` edges make a
2238
+ * point its own ancestor, which is a corrupt model rather than a diagram shape.
2239
+ */
2240
+ get nodes(): DiagramNode[];
2241
+ /**
2242
+ * The point with this `@modelId`, or `null` — the lookup every connection getter implies,
2243
+ * since a `DiagramConnection` names its ends by id and nothing else resolves them.
2244
+ */
2245
+ point(modelId: string): DiagramPoint | null;
2085
2246
  /** Every edge (`dgm:cxnLst/dgm:cxn`) in document order. */
2086
2247
  get connections(): DiagramConnection[];
2087
2248
  /**
@@ -4630,5 +4791,5 @@ interface FromTemplateOptions {
4630
4791
  keepTemplateContentType?: boolean;
4631
4792
  }
4632
4793
  //#endregion
4633
- export { CellThreeD as $, ShapeType as $t, Theme as A, AutofitMode as At, ModernCommentAuthor as B, ChildFrame as Bt, TransitionInfo as C, ChartLine as Ct, Placeholder as D, AutoShape as Dt, ColorMapToken as E, Picture as Et, readTagsForPart as F, Paragraph as Ft, isAutoShape as G, Glow as Gt, NotesSlide as H, CustomGeometry as Ht, Comment as I, Run as It, isGroupShape as J, LineEnds as Jt, isConnector as K, InnerShadow as Kt, CommentAuthor as L, RunHyperlink as Lt, ThemeFontFace as M, BulletDetail as Mt, ThemeFontScheme as N, BulletStyle as Nt, SlideLayout as O, Shape as Ot, Tag as P, LineSpacing as Pt, CellBorders as Q, Reflection as Qt, CommentSchema as R, TextFrame as Rt, Slide as S, ChartLegend as St, TransitionSpeed as T, Connector as Tt, AnyShape as U, CustomGeometryPath as Ut, NotesPlaceholder as V, ConnectionSite as Vt, GroupShape as W, GeometryCommand as Wt, GraphicFrame as X, Recolor as Xt, isPicture as Y, OuterShadow as Yt, CellBorder as Z, RecolorColor as Zt, CustomProperty as _, AxisNumberFormat as _t, ExtractedSlides as a, FillRect as an, TableConditionFlags as at, AddPictureOptions as b, ChartDataLabels as bt, ImportSlideMastersOptions as c, GradientFill as cn, DiagramConnection as ct, ImportedSlideMaster as d, resolveColorElement as dn, DiagramPointType as dt, SoftEdge as en, Table as et, LayoutHandle as f, ColorContext as fn, ChartEx as ft, CoreProperties as g, ChartExSeries as gt, Presentation as h, ChartExLegend as ht, ExtractedSlide as i, SlideBackground as in, ResolvedTableStyle as it, ThemeColorSlot as j, BodyProperties as jt, SlideMaster as k, ShapeHost as kt, ImportSlideOptions as l, GradientStop as ln, DiagramConnectionType as lt, SlideSource as m, ChartExDataLabels as mt, EmbeddedFontFaceInfo as n, BackgroundFill as nn, TableCellBorderEdit as nt, FromTemplateOptions as o, PictureFill as on, TableCellEdge as ot, SlideSize as p, EmbeddedFontSlot as pn, ChartExAxis as pt, isGraphicFrame as q, LineEnd as qt, EmbeddedFontInfo as r, BackgroundSource as rn, TableRow as rt, ImportShapeOptions as s, PictureFillTile as sn, Diagram as st, AppendSlidesOptions as t, PatternFill as tn, TableCell as tt, ImportSlidesRequest as u, ResolvedColor as un, DiagramPoint as ut, readCoreProperties as v, Chart as vt, TransitionInput as w, ChartSeries as wt, AddTextBoxOptions as x, ChartFill as xt, readCustomProperties as y, ChartAxis as yt, ModernComment as z, AbsoluteFrame as zt };
4634
- //# sourceMappingURL=presentation-types-D7cgT-eG.d.ts.map
4794
+ export { CellThreeD as $, RecolorColor as $t, Theme as A, Shape as At, ModernCommentAuthor as B, TextFrame as Bt, TransitionInfo as C, ChartFill as Ct, Placeholder as D, Connector as Dt, ColorMapToken as E, ChartSeries as Et, readTagsForPart as F, BulletStyle as Ft, isAutoShape as G, CustomGeometryPath as Gt, NotesSlide as H, ChildFrame as Ht, Comment as I, LineSpacing as It, isGroupShape as J, InnerShadow as Jt, isConnector as K, GeometryCommand as Kt, CommentAuthor as L, Paragraph as Lt, ThemeFontFace as M, AutofitMode as Mt, ThemeFontScheme as N, BodyProperties as Nt, SlideLayout as O, Picture as Ot, Tag as P, BulletDetail as Pt, CellBorders as Q, Recolor as Qt, CommentSchema as R, Run as Rt, Slide as S, ChartDataLabels as St, TransitionSpeed as T, ChartLine as Tt, AnyShape as U, ConnectionSite as Ut, NotesPlaceholder as V, AbsoluteFrame as Vt, GroupShape as W, CustomGeometry as Wt, GraphicFrame as X, LineEnds as Xt, isPicture as Y, LineEnd as Yt, CellBorder as Z, OuterShadow as Zt, CustomProperty as _, ChartExLegend as _t, ExtractedSlides as a, BackgroundSource as an, TableConditionFlags as at, AddPictureOptions as b, Chart as bt, ImportSlideMastersOptions as c, PictureFill as cn, DiagramConnection as ct, ImportedSlideMaster as d, GradientStop as dn, DiagramNode as dt, Reflection as en, Table as et, LayoutHandle as f, ResolvedColor as fn, DiagramPoint as ft, CoreProperties as g, ChartExDataLabels as gt, Presentation as h, EmbeddedFontSlot as hn, ChartExAxis as ht, ExtractedSlide as i, BackgroundFill as in, ResolvedTableStyle as it, ThemeColorSlot as j, ShapeHost as jt, SlideMaster as k, AutoShape as kt, ImportSlideOptions as l, PictureFillTile as ln, DiagramConnectionType as lt, SlideSource as m, ColorContext as mn, ChartEx as mt, EmbeddedFontFaceInfo as n, SoftEdge as nn, TableCellBorderEdit as nt, FromTemplateOptions as o, SlideBackground as on, TableCellEdge as ot, SlideSize as p, resolveColorElement as pn, DiagramPointType as pt, isGraphicFrame as q, Glow as qt, EmbeddedFontInfo as r, PatternFill as rn, TableRow as rt, ImportShapeOptions as s, FillRect as sn, Diagram as st, AppendSlidesOptions as t, ShapeType as tn, TableCell as tt, ImportSlidesRequest as u, GradientFill as un, DiagramDrawnShape as ut, readCoreProperties as v, ChartExSeries as vt, TransitionInput as w, ChartLegend as wt, AddTextBoxOptions as x, ChartAxis as xt, readCustomProperties as y, AxisNumberFormat as yt, ModernComment as z, RunHyperlink as zt };
4795
+ //# sourceMappingURL=presentation-types-CpkTx9Xa.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-types-CpkTx9Xa.d.ts","names":[],"sources":["../src/embedded-fonts.ts","../src/read/oxml/theme.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/notes.ts","../src/read/api/comments.ts","../src/read/api/tags.ts","../src/read/api/chrome.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;;;;;;;;;;UCgBS;EAChB,QAAQ;EACR,WAAW;;;;;;;;;;;UAYK,qBAAqB;EACrC,WAAW;;;;;EAKX,aAAa;;;;;EAKb,aAAa;;;;;;;EAOb,aAAa;;;;;;;;;;EAUb,aAAa;;;;;;;;;EASb,mBAAmB;;;;;UCqHH;EAChB;EACA;;;KAmJW;;UAGK;EAChB;EACA;EACA;EACA;EACA,QAAQ;;;;;;;;;;;;;;;UAyCQ;EAChB;EACA;IAAc;IAAc;;EAC5B;EACA;;;;;;;;;iBAUe,oBAAoB,SAAS,gBAAgB,KAAK,eAAe;;UAmDhE;;EAEhB,OAAO;;EAEP;;;;;UCtegB;;EAEhB;;EAEA;;EAEA;;;;;;;;EAQA;;EAEA;;;;;;;;;;;UAYgB;;EAEhB;;EAEA;;EAEA;;EAEA,OA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, Bt as ChildFrame, C as TransitionInfo, Ct as ChartLine, D as Placeholder, Dt as AutoShape, E as ColorMapToken, Et as Picture, F as readTagsForPart, Ft as Paragraph, G as isAutoShape, Gt as Glow, H as NotesSlide, Ht as CustomGeometry, I as Comment, It as Run, J as isGroupShape, Jt as LineEnds, K as isConnector, Kt as InnerShadow, L as CommentAuthor, Lt as RunHyperlink, M as ThemeFontFace, Mt as BulletDetail, N as ThemeFontScheme, Nt as BulletStyle, O as SlideLayout, Ot as Shape, P as Tag, Pt as LineSpacing, Q as CellBorders, Qt as Reflection, R as CommentSchema, Rt as TextFrame, S as Slide, St as ChartLegend, T as TransitionSpeed, Tt as Connector, U as AnyShape, Ut as CustomGeometryPath, V as NotesPlaceholder, Vt as ConnectionSite, W as GroupShape, Wt as GeometryCommand, X as GraphicFrame, Xt as Recolor, Y as isPicture, Yt as OuterShadow, Z as CellBorder, Zt as RecolorColor, _ as CustomProperty, _t as AxisNumberFormat, a as ExtractedSlides, an as FillRect, at as TableConditionFlags, b as AddPictureOptions, bt as ChartDataLabels, c as ImportSlideMastersOptions, cn as GradientFill, ct as DiagramConnection, d as ImportedSlideMaster, dn as resolveColorElement, dt as DiagramPointType, en as SoftEdge, et as Table, f as LayoutHandle, fn as ColorContext, ft as ChartEx, g as CoreProperties, gt as ChartExSeries, h as Presentation, ht as ChartExLegend, i as ExtractedSlide, in as SlideBackground, it as ResolvedTableStyle, j as ThemeColorSlot, jt as BodyProperties, k as SlideMaster, kt as ShapeHost, l as ImportSlideOptions, ln as GradientStop, lt as DiagramConnectionType, m as SlideSource, mt as ChartExDataLabels, n as EmbeddedFontFaceInfo, nn as BackgroundFill, nt as TableCellBorderEdit, o as FromTemplateOptions, on as PictureFill, ot as TableCellEdge, p as SlideSize, pt as ChartExAxis, q as isGraphicFrame, qt as LineEnd, r as EmbeddedFontInfo, rn as BackgroundSource, rt as TableRow, s as ImportShapeOptions, sn as PictureFillTile, st as Diagram, t as AppendSlidesOptions, tn as PatternFill, tt as TableCell, u as ImportSlidesRequest, un as ResolvedColor, ut as DiagramPoint, v as readCoreProperties, vt as Chart, w as TransitionInput, wt as ChartSeries, x as AddTextBoxOptions, xt as ChartFill, y as readCustomProperties, yt as ChartAxis, z as ModernComment, zt as AbsoluteFrame } from "./presentation-types-D7cgT-eG.js";
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";
3
3
  import { a as Part, i as Relationships, n as OpcPackage, r as Relationship, s as ContentTypes, t as OpcInput } from "./package-CaOLXSNi.js";
4
- import { a as TsPptxError, d as InvalidOptionErrorCode, f as MediaErrorCode, h as UnsupportedFeatureErrorCode, i as PackageReadError, l as ErrorCode, m as TsPptxCode, n as InvalidOptionError, o as TsPptxErrorOptions, p as PackageReadErrorCode, r as MediaError, s as UnsupportedFeatureError, t as InternalError, u as InternalErrorCode } from "./errors-fB1KDJKQ.js";
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
5
  //#region src/read/opc/partnames.d.ts
6
6
  /** Partname of the `.rels` part holding `sourcePartName`'s relationships ('/' = package). */
7
7
  declare function relsPartNameFor(sourcePartName: string): string;
@@ -68,5 +68,5 @@ interface EffectiveColor {
68
68
  */
69
69
  declare function applyColorTransforms(baseHex: string, transforms: ColorTransform[]): EffectiveColor;
70
70
  //#endregion
71
- export { type AbsoluteFrame, type AddPictureOptions, type AddTextBoxOptions, type AnyShape, type AppendSlidesOptions, AutoShape, type AutofitMode, type AxisNumberFormat, type BackgroundFill, type BackgroundSource, type BodyProperties, type BulletDetail, type BulletStyle, type CellBorder, type CellBorders, type CellThreeD, Chart, ChartAxis, type ChartDataLabels, ChartEx, ChartExAxis, type ChartExDataLabels, type ChartExLegend, ChartExSeries, type ChartFill, type ChartLegend, type ChartLine, ChartSeries, type ChildFrame, type ColorContext, type ColorMapToken, type ColorTransform, type Comment, type CommentAuthor, type CommentSchema, type ConnectionSite, Connector, ContentTypes, type CoreProperties, type CustomGeometry, type CustomGeometryPath, type CustomProperty, type CustomPropertyValue, Diagram, type DiagramConnection, type DiagramConnectionType, DiagramPoint, type DiagramPointType, type EffectiveColor, type EmbeddedFontFaceInfo, type EmbeddedFontInfo, type ErrorCode, type ExtractedSlide, type ExtractedSlides, type FillRect, type FromTemplateOptions, type GeometryCommand, type Glow, type GradientFill, type GradientStop, GraphicFrame, GroupShape, type ImportShapeOptions, type ImportSlideMastersOptions, type ImportSlideOptions, type ImportSlidesRequest, type ImportedSlideMaster, type InnerShadow, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type LayoutHandle, type LineEnd, type LineEnds, type LineSpacing, MediaError, type MediaErrorCode, type ModernComment, type ModernCommentAuthor, NotesPlaceholder, NotesSlide, type OpcInput, OpcPackage, type OuterShadow, PackageReadError, type PackageReadErrorCode, Paragraph, Part, type PatternFill, Picture, type PictureFill, type PictureFillTile, Placeholder, Presentation, type Recolor, type RecolorColor, type Reflection, type Relationship, Relationships, type ResolvedColor, type ResolvedTableStyle, Run, type RunHyperlink, Shape, type ShapeHost, type ShapeType, Slide, type SlideBackground, SlideLayout, SlideMaster, type SlideSize, type SlideSource, type SoftEdge, Table, TableCell, type TableCellBorderEdit, type TableCellEdge, type TableConditionFlags, TableRow, type Tag, TextFrame, Theme, type ThemeColorSlot, type ThemeFontFace, type ThemeFontScheme, type TransitionInfo, type TransitionInput, type TransitionSpeed, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, readCoreProperties, readCustomProperties, readTagsForPart, relsPartNameFor, resolveColorElement, resolveRelativePartName };
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 };
72
72
  //# sourceMappingURL=read.d.ts.map
package/dist/read.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as TsPptxError, i as PackageReadError, n as InvalidOptionError, o as UnsupportedFeatureError, r as MediaError, t as InternalError } from "./errors-Bvln0H-7.js";
2
- import { C as Picture, D as Run, Dt as relsPartNameFor, E as Paragraph, N as resolveColorElement, O as TextFrame, Ot as resolveRelativePartName, S as Connector, T as Shape, _ as ChartExAxis, a as isConnector, b as ChartAxis, c as isPicture, d as Table, f as TableCell, g as ChartEx, h as DiagramPoint, i as isAutoShape, m as Diagram, o as isGraphicFrame, p as TableRow, s as isGroupShape, t as GroupShape, u as GraphicFrame, v as ChartExSeries, w as AutoShape, x as ChartSeries, y as Chart, z as applyColorTransforms } from "./shapes-Dyw5bxwO.js";
3
- import { a as Placeholder, c as Theme, d as NotesSlide, f as OpcPackage, h as ContentTypes, i as Slide, l as readTagsForPart, m as Part, n as readCoreProperties, o as SlideLayout, p as Relationships, r as readCustomProperties, s as SlideMaster, t as Presentation, u as NotesPlaceholder } from "./presentation-3rAKKRfm.js";
4
- export { AutoShape, Chart, ChartAxis, ChartEx, ChartExAxis, ChartExSeries, ChartSeries, Connector, ContentTypes, Diagram, DiagramPoint, GraphicFrame, GroupShape, InternalError, InvalidOptionError, MediaError, NotesPlaceholder, NotesSlide, OpcPackage, PackageReadError, Paragraph, Part, Picture, Placeholder, Presentation, Relationships, Run, Shape, Slide, SlideLayout, SlideMaster, Table, TableCell, TableRow, TextFrame, Theme, TsPptxError, UnsupportedFeatureError, applyColorTransforms, isAutoShape, isConnector, isGraphicFrame, isGroupShape, isPicture, readCoreProperties, readCustomProperties, readTagsForPart, relsPartNameFor, resolveColorElement, resolveRelativePartName };
2
+ import { 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 };
package/dist/script.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { h as Presentation } from "./presentation-types-D7cgT-eG.js";
2
- import { a as TsPptxError, d as InvalidOptionErrorCode, f as MediaErrorCode, h as UnsupportedFeatureErrorCode, i as PackageReadError, l as ErrorCode, m as TsPptxCode, n as InvalidOptionError, o as TsPptxErrorOptions, p as PackageReadErrorCode, r as MediaError, s as UnsupportedFeatureError, t as InternalError, u as InternalErrorCode } from "./errors-fB1KDJKQ.js";
1
+ import { h as Presentation } from "./presentation-types-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";
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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ACA,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"}
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;;;;UCWS;;;;;;EAMhB;;EAEA;;EAEA;;EAEA,SAAS;;;;;;;EAOT;;;iBAmDe,YAAY,IAAI,QAAQ,UAAS,qBAA0B;;;UC3E1D;;EAEhB;;EAEA;;EAEA,SAAS;;;;;;EAMT;;;iBAkBe,sBAAsB,IAAI,QAAQ,UAAS,+BAAoC;;;;UCjD9E;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,6 @@
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 { t as OOXML_NS } from "./namespaces-Sy_m7Nhd.js";
3
- import { a as isConnector, c as isPicture, i as isAutoShape, o as isGraphicFrame, s as isGroupShape } from "./shapes-Dyw5bxwO.js";
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";
4
4
  //#region src/script/fidelity.ts
5
5
  /**
6
6
  * Accumulates notes while a deck is walked, so the walk itself stays a plain
@@ -1778,22 +1778,40 @@ function connectorCall(shape, notes) {
1778
1778
  ...nameOf(shape)
1779
1779
  };
1780
1780
  }
1781
+ /**
1782
+ * Why a graphic frame cannot be authored from a script, or `null` when it can.
1783
+ *
1784
+ * The single enumeration of the payloads with no write-API emitter, and the reason it is a
1785
+ * function rather than a condition spelled at each site: `graphicFrameCall` needs it to pick
1786
+ * a fidelity note, and `hasUnwritableContent` in `from-read/deck.ts` needs it to decide
1787
+ * whether the printer must copy the slide instead of transcribing it. Those were two
1788
+ * hand-maintained lists, they disagreed — the deck-level one named extended charts only — and
1789
+ * a SmartArt slide was therefore transcribed with a hole where the graphic had been. The two
1790
+ * consequences are the same for every member, so the membership has to be too.
1791
+ */
1792
+ function unwritableFramePayload(shape) {
1793
+ if (shape.table || shape.chart) return null;
1794
+ if (shape.hasChartEx) return "chartEx";
1795
+ if (shape.hasDiagram) return "diagram";
1796
+ return "unknown";
1797
+ }
1781
1798
  /** A `GraphicFrame` hosts a table or a chart; both have their own mapper. */
1782
1799
  function graphicFrameCall(shape, notes, assets) {
1783
1800
  const table = shape.table;
1784
1801
  if (table) return tableCall(shape, table, notes, assets);
1785
1802
  const chart = shape.chart;
1786
1803
  if (chart) return chartCall(shape, chart, notes);
1787
- if (shape.hasChartEx) {
1788
- notes.note("chartEx.all", "dropped", "unwritable", "an extended chart (waterfall, funnel, box-and-whisker, …) has a full reader but no write-API counterpart");
1789
- return null;
1790
- }
1791
- if (shape.hasDiagram) {
1792
- notes.note("diagram.all", "dropped", "unwritable", "a SmartArt diagram has a read surface (GraphicFrame.diagram) but no write-API counterpart");
1793
- return null;
1804
+ switch (unwritableFramePayload(shape)) {
1805
+ case "chartEx":
1806
+ notes.note("chartEx.all", "dropped", "unwritable", "an extended chart (waterfall, funnel, box-and-whisker, …) has a full reader but no write-API counterpart");
1807
+ return null;
1808
+ case "diagram":
1809
+ notes.note("diagram.all", "dropped", "unwritable", "a SmartArt diagram has a full reader and its text can be edited in place through it (DiagramPoint.text), but no write API authors one from a script, so a converted script cannot describe this frame");
1810
+ return null;
1811
+ default:
1812
+ notes.note("graphicFrame.unknown", "dropped", "unread", "this graphic frame hosts none of a table, a chart or a SmartArt diagram (an OLE object or an ink annotation), which the read model does not decode");
1813
+ return null;
1794
1814
  }
1795
- notes.note("graphicFrame.unknown", "dropped", "unread", "this graphic frame hosts none of a table, a chart or a SmartArt diagram (an OLE object or an ink annotation), which the read model does not decode");
1796
- return null;
1797
1815
  }
1798
1816
  /**
1799
1817
  * A `GroupShape` becomes `addGroup`, with each child mapped and re-tagged into the
@@ -2392,7 +2410,7 @@ function slideToIr(slide, number, collector, assets, layouts) {
2392
2410
  };
2393
2411
  const transition = transitionToIr(slide, notes, assets);
2394
2412
  const carried = hasUnwritableContent(slide);
2395
- if (carried) notes.note("slide.carried", "flattened", "unwritable", "this slide holds an extended chart (waterfall, funnel, box-and-whisker, …), which has a full reader but no write-API emitter; a printer that can copy the source slide does so instead of transcribing it, so it renders correctly but the emitted script does not describe its contents");
2413
+ if (carried) notes.note("slide.carried", "flattened", "unwritable", "this slide holds a graphic frame the write API cannot author (an extended chart, a SmartArt diagram, an OLE object or ink); a printer that can copy the source slide does so instead of transcribing it, so it renders correctly but the emitted script does not describe its contents. The per-shape note beside this one says which construct forced the copy");
2396
2414
  const calls = [];
2397
2415
  for (const shape of slide.shapes) {
2398
2416
  const call = shapeCall(shape, notes, assets);
@@ -2409,11 +2427,16 @@ function slideToIr(slide, number, collector, assets, layouts) {
2409
2427
  /**
2410
2428
  * `true` when the slide holds something with no write-API expression at all, forcing a
2411
2429
  * carried slide. Descends into groups, since a group can host a graphic frame.
2430
+ *
2431
+ * Membership comes from {@link unwritableFramePayload}, which `graphicFrameCall` also uses to
2432
+ * pick its note — one enumeration, so the two cannot drift apart again. This test named
2433
+ * extended charts alone until then, which is why a slide holding SmartArt (or an OLE object,
2434
+ * or ink) was transcribed as `authored` and rendered with a hole where the graphic had been.
2412
2435
  */
2413
2436
  function hasUnwritableContent(slide) {
2414
2437
  const check = (shapes) => shapes.some((shape) => {
2415
2438
  if (isGroupShape(shape)) return check(shape.shapes);
2416
- return isGraphicFrame(shape) && shape.hasChartEx;
2439
+ return isGraphicFrame(shape) && unwritableFramePayload(shape) !== null;
2417
2440
  });
2418
2441
  return check(slide.shapes);
2419
2442
  }
@@ -2831,12 +2854,19 @@ function printScript(ir, options = {}) {
2831
2854
  return printedScript(lines, ir, assetMode, notes);
2832
2855
  }
2833
2856
  /**
2834
- * The slide statements, batched into generators.
2857
+ * The slide statements, batched into generators, preceded by the layout handles they bind to.
2835
2858
  *
2836
2859
  * A batch ends when the layout changes or a carried slide interrupts, because
2837
2860
  * `appendSlides` binds one layout per call and a carried slide is not authored at all.
2861
+ *
2862
+ * Every layout `const` is hoisted above the first statement rather than emitted where it is
2863
+ * first used. `deck.layouts()` is a snapshot of the gallery, and `importSlide` — the call a
2864
+ * carried slide prints — grows that gallery with the source slide's own layout and master.
2865
+ * Resolving a handle after one has run is therefore resolving against a deck that has already
2866
+ * moved; capturing every handle up front is the only ordering that cannot.
2838
2867
  */
2839
2868
  function printSlides$1(ir, collector, printAsset) {
2869
+ const declarations = [];
2840
2870
  const lines = [];
2841
2871
  let batch = [];
2842
2872
  let generatorIndex = 0;
@@ -2848,7 +2878,7 @@ function printSlides$1(ir, collector, printAsset) {
2848
2878
  const name = `gen${++generatorIndex}`;
2849
2879
  lines.push("", `const ${name} = generator()`);
2850
2880
  for (const slide of batch) lines.push(...printAuthoredSlide(slide, name, collector, printAsset));
2851
- lines.push("", ...printAppend(name, first, collector, declaredLayouts));
2881
+ lines.push("", printAppend(name, first, collector, declaredLayouts, declarations));
2852
2882
  batch = [];
2853
2883
  };
2854
2884
  for (const slide of ir.slides) {
@@ -2862,31 +2892,39 @@ function printSlides$1(ir, collector, printAsset) {
2862
2892
  batch.push(slide);
2863
2893
  }
2864
2894
  flush();
2865
- return lines;
2895
+ return declarations.length > 0 ? [
2896
+ "",
2897
+ ...declarations,
2898
+ ...lines
2899
+ ] : lines;
2866
2900
  }
2867
2901
  /**
2868
2902
  * The `appendSlides` call closing a batch, binding by layout name where that is
2869
- * unambiguous and by gallery position where it is not.
2903
+ * unambiguous and by gallery position where it is not. Any handle it needs is appended to
2904
+ * `declarations`, which the caller hoists above every statement.
2870
2905
  *
2871
2906
  * Binding by name is preferred because it survives being re-pointed at a different
2872
2907
  * template and because it is legible. But `appendSlides` *throws* on an ambiguous name
2873
- * rather than picking one, and a multi-master deck routinely repeats layout names, so the
2874
- * positional form is the only thing that resolves there.
2908
+ * rather than picking one, so the positional form resolves the case where the name does not
2909
+ * identify one layout: a multi-master deck that repeats layout names.
2910
+ *
2911
+ * A carried slide used to demote every binding in the script to a position too, because its
2912
+ * `importSlide` copied the source layout in under a second name-alike entry. `importSlide`
2913
+ * now binds to the chrome the template already holds (`read/api/ops/part-reuse.ts`), and
2914
+ * this deck's template *is* the source file, so the gallery no longer grows and the names
2915
+ * stay unambiguous.
2875
2916
  */
2876
- function printAppend(generatorName, first, collector, declared) {
2917
+ function printAppend(generatorName, first, collector, declared, declarations) {
2877
2918
  const layout = first.layout;
2878
- if (!layout) return [`await deck.appendSlides(${generatorName}, { layout: fallbackLayout })`];
2879
- if (layout.nameIsUnique) return [`await deck.appendSlides(${generatorName}, { layout: ${printString(layout.name)} })`];
2919
+ if (!layout) return `await deck.appendSlides(${generatorName}, { layout: fallbackLayout })`;
2920
+ if (layout.nameIsUnique) return `await deck.appendSlides(${generatorName}, { layout: ${printString(layout.name)} })`;
2880
2921
  scopeNotes(collector, first.number).note("slide.layout", "approximated", "unsupported", `more than one layout in the source deck is named ${JSON.stringify(layout.name)}, so this slide binds to gallery position ${layout.index} instead; re-pointing the script at a different template will not track the name`);
2881
2922
  const identifier = `layout${layout.index}`;
2882
- const append = `await deck.appendSlides(${generatorName}, { layout: ${identifier} })`;
2883
- if (declared.has(layout.index)) return [append];
2884
- declared.add(layout.index);
2885
- return [
2886
- `const ${identifier} = deck.layouts()[${layout.index}] // ${JSON.stringify(layout.name)}`,
2887
- `if (!${identifier}) throw new Error('the template has no layout at position ${layout.index}')`,
2888
- append
2889
- ];
2923
+ if (!declared.has(layout.index)) {
2924
+ declared.add(layout.index);
2925
+ declarations.push(`const ${identifier} = deck.layouts()[${layout.index}] // ${JSON.stringify(layout.name)}`, `if (!${identifier}) throw new Error('the template has no layout at position ${layout.index}')`);
2926
+ }
2927
+ return `await deck.appendSlides(${generatorName}, { layout: ${identifier} })`;
2890
2928
  }
2891
2929
  /** One authored slide, plus the layout-binding note this tier is responsible for. */
2892
2930
  function printAuthoredSlide(slide, generatorName, collector, printAsset) {