@shbernal/ts-pptx 3.0.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 (74) hide show
  1. package/README.md +60 -0
  2. package/dist/{autopage-MxulehqQ.js → autopage-QQyfRtoK.js} +3 -3
  3. package/dist/{autopage-MxulehqQ.js.map → autopage-QQyfRtoK.js.map} +1 -1
  4. package/dist/browser.d.ts +5 -5
  5. package/dist/browser.d.ts.map +1 -1
  6. package/dist/browser.js +5 -5
  7. package/dist/{diagnostics-BqBTmA3a.d.ts → diagnostics-Chjz_4_Q.d.ts} +7 -7
  8. package/dist/{diagnostics-BqBTmA3a.d.ts.map → diagnostics-Chjz_4_Q.d.ts.map} +1 -1
  9. package/dist/{enums-oLLeaSW3.d.ts → enums-CoXnxiCI.d.ts} +5 -5
  10. package/dist/{enums-oLLeaSW3.d.ts.map → enums-CoXnxiCI.d.ts.map} +1 -1
  11. package/dist/{errors-BENA-Xuw.d.ts → errors-BVLCFr-t.d.ts} +25 -3
  12. package/dist/errors-BVLCFr-t.d.ts.map +1 -0
  13. package/dist/{errors-DGE9zh3U.js → errors-Bvln0H-7.js} +21 -2
  14. package/dist/errors-Bvln0H-7.js.map +1 -0
  15. package/dist/{fit-DGSwMMNs.js → fit-DhMbQG5O.js} +0 -0
  16. package/dist/fit-DhMbQG5O.js.map +1 -0
  17. package/dist/{html-dom--J-Xuucf.js → html-dom-DajBuobe.js} +5 -5
  18. package/dist/html-dom-DajBuobe.js.map +1 -0
  19. package/dist/html.d.ts +3 -3
  20. package/dist/html.js +2 -2
  21. package/dist/index.d.ts +5 -5
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +5 -5
  24. package/dist/inspect.d.ts +1 -1
  25. package/dist/inspect.js +4 -4
  26. package/dist/math.d.ts +1 -1
  27. package/dist/math.d.ts.map +1 -1
  28. package/dist/math.js +98 -2
  29. package/dist/math.js.map +1 -1
  30. package/dist/measure.d.ts +3 -3
  31. package/dist/measure.js +2 -2
  32. package/dist/node.d.ts +5 -5
  33. package/dist/node.d.ts.map +1 -1
  34. package/dist/node.js +4 -4
  35. package/dist/package-CaOLXSNi.d.ts.map +1 -1
  36. package/dist/{pres-2WsBGimU.d.ts → pres-C-EU3SkN.d.ts} +3 -3
  37. package/dist/{pres-2WsBGimU.d.ts.map → pres-C-EU3SkN.d.ts.map} +1 -1
  38. package/dist/{presentation-DAcOfzsP.js → presentation-CxnUVhK9.js} +103 -27
  39. package/dist/presentation-CxnUVhK9.js.map +1 -0
  40. package/dist/{presentation-CTVPpiwP.d.ts → presentation-Osx1cDdJ.d.ts} +161 -46
  41. package/dist/presentation-Osx1cDdJ.d.ts.map +1 -0
  42. package/dist/{presentation-types-BVw0EknS.d.ts → presentation-types-Dj4riuDs.d.ts} +2 -2
  43. package/dist/{presentation-types-BVw0EknS.d.ts.map → presentation-types-Dj4riuDs.d.ts.map} +1 -1
  44. package/dist/read.d.ts +5 -5
  45. package/dist/read.js +3 -3
  46. package/dist/script.d.ts +32 -4
  47. package/dist/script.d.ts.map +1 -1
  48. package/dist/script.js +0 -0
  49. package/dist/script.js.map +1 -1
  50. package/dist/{shapes-BWifcHDV.js → shapes-DoJBPrwN.js} +104 -65
  51. package/dist/shapes-DoJBPrwN.js.map +1 -0
  52. package/dist/{slide-YuSCGa45.d.ts → slide-BTfn1Pyp.d.ts} +99 -16
  53. package/dist/slide-BTfn1Pyp.d.ts.map +1 -0
  54. package/dist/{st-enums-CgadEyPM.js → st-enums-evQG2A7Z.js} +2 -2
  55. package/dist/{st-enums-CgadEyPM.js.map → st-enums-evQG2A7Z.js.map} +1 -1
  56. package/dist/{text-120VFSDm.js → text-C4P9MNdf.js} +168 -85
  57. package/dist/text-C4P9MNdf.js.map +1 -0
  58. package/dist/{units-B-JUKwCS.js → units-C7QM1KgH.js} +2 -2
  59. package/dist/{units-B-JUKwCS.js.map → units-C7QM1KgH.js.map} +1 -1
  60. package/dist/{units-internal-CiFWZWk4.js → units-internal-CR8s8YQa.js} +3 -3
  61. package/dist/{units-internal-CiFWZWk4.js.map → units-internal-CR8s8YQa.js.map} +1 -1
  62. package/dist/zip.d.ts +2 -2
  63. package/dist/zip.js +1 -1
  64. package/package.json +18 -17
  65. package/skills/ts-pptx-upstream/SKILL.md +340 -0
  66. package/dist/errors-BENA-Xuw.d.ts.map +0 -1
  67. package/dist/errors-DGE9zh3U.js.map +0 -1
  68. package/dist/fit-DGSwMMNs.js.map +0 -1
  69. package/dist/html-dom--J-Xuucf.js.map +0 -1
  70. package/dist/presentation-CTVPpiwP.d.ts.map +0 -1
  71. package/dist/presentation-DAcOfzsP.js.map +0 -1
  72. package/dist/shapes-BWifcHDV.js.map +0 -1
  73. package/dist/slide-YuSCGa45.d.ts.map +0 -1
  74. package/dist/text-120VFSDm.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { t as CustomPropertyValue } from "./pres-2WsBGimU.js";
2
- import { c as ImportSlideMastersOptions, d as LayoutHandle, f as SlideSize, l as ImportSlideOptions, o as FromTemplateOptions, p as SlideSource, r as EmbeddedFontInfo, s as ImportShapeOptions, t as AppendSlidesOptions, u as ImportedSlideMaster } from "./presentation-types-BVw0EknS.js";
1
+ import { t as CustomPropertyValue } from "./pres-C-EU3SkN.js";
2
+ import { c as ImportSlideMastersOptions, d as LayoutHandle, f as SlideSize, l as ImportSlideOptions, o as FromTemplateOptions, p as SlideSource, r as EmbeddedFontInfo, s as ImportShapeOptions, t as AppendSlidesOptions, u as ImportedSlideMaster } from "./presentation-types-Dj4riuDs.js";
3
3
  import { a as Part, i as Relationships, n as OpcPackage, o as Element, t as OpcInput } from "./package-CaOLXSNi.js";
4
4
  //#region src/read/oxml/theme.d.ts
5
5
  /**
@@ -778,7 +778,7 @@ declare class Run {
778
778
  * below the run's own `a:rPr` and above the placeholder/`p:defaultTextStyle`
779
779
  * chain. Absent when the shape has no `p:style/a:fontRef`.
780
780
  */
781
- fontRef?: (StyleFontRef | null) | undefined);
781
+ fontRef?: StyleFontRef | null | undefined);
782
782
  /** The run's text (`a:t`), verbatim — whitespace is not normalized. */
783
783
  get text(): string;
784
784
  set text(value: string);
@@ -1084,13 +1084,41 @@ declare class TextFrame {
1084
1084
  markDirty(): void;
1085
1085
  }
1086
1086
  //#endregion
1087
+ //#region src/read/api/shapes/host.d.ts
1088
+ /** The part-level surface a {@link import('./base.js').Shape} resolves against. */
1089
+ interface ShapeHost {
1090
+ /** The OPC part holding the shape tree (`p:sld` / `p:sldLayout` / `p:sldMaster`). */
1091
+ readonly part: Part;
1092
+ /** Partname of {@link part}. */
1093
+ readonly partName: string;
1094
+ /** The package the host belongs to, for reaching a referenced part (image, chart, …). */
1095
+ readonly opc: OpcPackage;
1096
+ /** {@link part}'s relationships — image embeds, hyperlinks, chart references. */
1097
+ readonly relationships: Relationships;
1098
+ /** The host's resolved colour/font context, backing every `resolved*` getter. */
1099
+ themeContext(): ThemeContext;
1100
+ /** The shape anywhere in this host's tree with the given drawing id, or `undefined`. */
1101
+ shapeByIdDeep(id: number): AnyShape | undefined;
1102
+ }
1103
+ //#endregion
1087
1104
  //#region src/read/api/shapes/base.d.ts
1088
- /** Common base for every shape in a slide's shape tree. */
1105
+ /** Common base for every shape in a shape tree — a slide's, a layout's, or a master's. */
1089
1106
  declare abstract class Shape {
1090
1107
  #private;
1091
1108
  protected readonly element: Element;
1092
- readonly slide: Slide;
1093
- constructor(element: Element, slide: Slide);
1109
+ /**
1110
+ * The part that owns this shape's tree — a `Slide`, a `SlideLayout`, or a
1111
+ * `SlideMaster`. Narrow it with `instanceof` when you need the concrete class;
1112
+ * {@link ShapeHost.partName} tells the tiers apart without one.
1113
+ */
1114
+ readonly host: ShapeHost;
1115
+ constructor(element: Element,
1116
+ /**
1117
+ * The part that owns this shape's tree — a `Slide`, a `SlideLayout`, or a
1118
+ * `SlideMaster`. Narrow it with `instanceof` when you need the concrete class;
1119
+ * {@link ShapeHost.partName} tells the tiers apart without one.
1120
+ */
1121
+ host: ShapeHost);
1094
1122
  /** Which concrete shape kind this is. */
1095
1123
  abstract readonly shapeType: ShapeType;
1096
1124
  /** The transform element (`a:xfrm` or `p:xfrm`) carrying this shape's geometry, or `null` if inherited. */
@@ -1098,7 +1126,7 @@ declare abstract class Shape {
1098
1126
  /** The transform element, creating it (and its container) in document order if absent. */
1099
1127
  protected abstract getOrAddXfrm(): Element;
1100
1128
  /**
1101
- * Mark the owning slide part dirty so `save()` reserializes it. Public
1129
+ * Mark the owning host's part dirty so `save()` reserializes it. Public
1102
1130
  * because {@link element_} hands out the live DOM node: the hatch and the
1103
1131
  * obligation that comes with it belong on the same object.
1104
1132
  */
@@ -1340,20 +1368,20 @@ declare abstract class Shape {
1340
1368
  get lineEnds(): LineEnds | null;
1341
1369
  /**
1342
1370
  * The shape's outer drop shadow (`spPr/a:effectLst/a:outerShdw`), resolved
1343
- * against the slide theme, or `null` when the shape has no outer shadow. The
1371
+ * against the host's theme, or `null` when the shape has no outer shadow. The
1344
1372
  * soft brand shadows the eye reads as "floating" panels live here and are
1345
1373
  * invisible in geometry/fill alone.
1346
1374
  */
1347
1375
  get shadow(): OuterShadow | null;
1348
1376
  /**
1349
1377
  * The shape's **inner** shadow (`spPr/a:effectLst/a:innerShdw`), resolved against
1350
- * the slide theme, or `null` when the shape has no inner shadow. The inset
1378
+ * the host's theme, or `null` when the shape has no inner shadow. The inset
1351
1379
  * counterpart of {@link shadow}: the write-side `shadow: { type: 'inner' }`
1352
1380
  * emits it, and it is invisible in geometry/fill alone.
1353
1381
  */
1354
1382
  get innerShadow(): InnerShadow | null;
1355
1383
  /**
1356
- * The shape's glow halo (`spPr/a:effectLst/a:glow`), resolved against the slide
1384
+ * The shape's glow halo (`spPr/a:effectLst/a:glow`), resolved against the host's
1357
1385
  * theme, or `null` when the shape has no glow. Same element the write-side text
1358
1386
  * glow emits, so its {@link Glow.radiusPt} and colour round-trip.
1359
1387
  */
@@ -1372,7 +1400,7 @@ declare abstract class Shape {
1372
1400
  /**
1373
1401
  * The shape's pattern (hatch) fill (`spPr/a:pattFill`), or `null` when the fill
1374
1402
  * is not a pattern. Surfaces the {@link PatternFill.preset} name and both
1375
- * colours resolved against the slide theme — the pattern counterpart of
1403
+ * colours resolved against the host's theme — the pattern counterpart of
1376
1404
  * {@link resolvedFill}, which reports `null` for a non-solid fill and so drops a
1377
1405
  * hatched surface entirely.
1378
1406
  */
@@ -1388,7 +1416,7 @@ declare abstract class Shape {
1388
1416
  */
1389
1417
  get pictureFill(): PictureFill | null;
1390
1418
  /**
1391
- * The shape's solid fill resolved against the slide's theme
1419
+ * The shape's solid fill resolved against the host's theme
1392
1420
  * ({@link Slide.themeContext}) to a literal hex — the resolved counterpart of
1393
1421
  * {@link fillColor}/{@link fillSchemeColor}, which report the raw reference.
1394
1422
  * `null` when the shape has no `a:solidFill` (a gradient/none/inherited fill)
@@ -1403,7 +1431,7 @@ declare abstract class Shape {
1403
1431
  */
1404
1432
  get resolvedFill(): ResolvedColor | null;
1405
1433
  /**
1406
- * The shape's line/border solid fill resolved against the slide's theme to a
1434
+ * The shape's line/border solid fill resolved against the host's theme to a
1407
1435
  * literal hex — the resolved counterpart of {@link lineColor}/{@link lineSchemeColor}.
1408
1436
  * `null` when the shape has no `a:ln/a:solidFill` or it cannot be made literal.
1409
1437
  * Like {@link resolvedFill}, the result carries `effectiveHex` (the base colour
@@ -1433,8 +1461,8 @@ declare abstract class Shape {
1433
1461
  */
1434
1462
  get placeholder(): PlaceholderRef | null;
1435
1463
  /**
1436
- * Remove this shape from its parent (the slide's shape tree, or an enclosing
1437
- * group) and mark the owning slide part dirty. The proxy is dead afterwards.
1464
+ * Remove this shape from its parent (the host's shape tree, or an enclosing
1465
+ * group) and mark the owning host's part dirty. The proxy is dead afterwards.
1438
1466
  */
1439
1467
  delete(): void;
1440
1468
  /** Escape hatch: the underlying shape element. After mutating it call {@link markDirty}, or `save()` writes the original bytes. */
@@ -1444,7 +1472,7 @@ declare abstract class Shape {
1444
1472
  //#region src/read/api/shapes/autoshape.d.ts
1445
1473
  /** An auto shape, text box, or placeholder (`p:sp`). The only kind that holds text. */
1446
1474
  declare class AutoShape extends Shape {
1447
- readonly shapeType: "autoShape";
1475
+ readonly shapeType: 'autoShape';
1448
1476
  protected xfrm(): Element | null;
1449
1477
  protected getOrAddXfrm(): Element;
1450
1478
  get hasTextFrame(): boolean;
@@ -1470,19 +1498,19 @@ declare class AutoShape extends Shape {
1470
1498
  /** A picture (`p:pic`). */
1471
1499
  declare class Picture extends Shape {
1472
1500
  #private;
1473
- readonly shapeType: "picture";
1501
+ readonly shapeType: 'picture';
1474
1502
  protected xfrm(): Element | null;
1475
1503
  protected getOrAddXfrm(): Element;
1476
1504
  protected get supportsFill(): boolean;
1477
1505
  /** Relationship id of the embedded image (`p:blipFill/a:blip/@r:embed`), or `null`. */
1478
1506
  get imageRelId(): string | null;
1479
1507
  /**
1480
- * Repoint the blip at a relationship id already present in the slide's
1508
+ * Repoint the blip at a relationship id already present in the owning part's
1481
1509
  * relationships, without minting a new media part. The caller owns ensuring
1482
1510
  * the id exists and targets an image; use {@link setImage} to add fresh bytes.
1483
1511
  */
1484
1512
  set imageRelId(value: string);
1485
- /** Absolute partname of the embedded image, resolved via the slide's relationships, or `null`. */
1513
+ /** Absolute partname of the embedded image, resolved via the owning part's relationships, or `null`. */
1486
1514
  get imagePartName(): string | null;
1487
1515
  /**
1488
1516
  * Relationship id of the embedded **vector (SVG)** image, read from the
@@ -1493,7 +1521,7 @@ declare class Picture extends Shape {
1493
1521
  * so a reader that wants the real drawn art must consult both.
1494
1522
  */
1495
1523
  get svgRelId(): string | null;
1496
- /** Absolute partname of the embedded SVG image, resolved via the slide's relationships, or `null`. */
1524
+ /** Absolute partname of the embedded SVG image, resolved via the owning part's relationships, or `null`. */
1497
1525
  get svgPartName(): string | null;
1498
1526
  /**
1499
1527
  * Which drawable media this picture carries:
@@ -1548,7 +1576,7 @@ declare class Picture extends Shape {
1548
1576
  /**
1549
1577
  * Replace this picture's image with new bytes. Mints a fresh media part under
1550
1578
  * `/ppt/media/`, registers its content type, wires an `image` relationship
1551
- * from the owning slide, and repoints the blip's `@r:embed` at it.
1579
+ * from the owning part, and repoints the blip's `@r:embed` at it.
1552
1580
  *
1553
1581
  * Copy-on-write: the previous media part is never mutated or removed, so any
1554
1582
  * other picture sharing it (common after `importSlide`/dedup) is unaffected;
@@ -1582,7 +1610,7 @@ declare class Picture extends Shape {
1582
1610
  /** A connector / line (`p:cxnSp`). */
1583
1611
  declare class Connector extends Shape {
1584
1612
  #private;
1585
- readonly shapeType: "connector";
1613
+ readonly shapeType: 'connector';
1586
1614
  protected xfrm(): Element | null;
1587
1615
  protected getOrAddXfrm(): Element;
1588
1616
  /**
@@ -1924,12 +1952,12 @@ declare class ChartExAxis {
1924
1952
  //#region src/read/api/table-edit.d.ts
1925
1953
  /** The four edges plus the two diagonals, keyed as {@link TableCellEdge} names them. */
1926
1954
  declare const EDGE_QNAMES: {
1927
- readonly left: "a:lnL";
1928
- readonly right: "a:lnR";
1929
- readonly top: "a:lnT";
1930
- readonly bottom: "a:lnB";
1931
- readonly tlToBr: "a:lnTlToBr";
1932
- readonly blToTr: "a:lnBlToTr";
1955
+ readonly left: 'a:lnL';
1956
+ readonly right: 'a:lnR';
1957
+ readonly top: 'a:lnT';
1958
+ readonly bottom: 'a:lnB';
1959
+ readonly tlToBr: 'a:lnTlToBr';
1960
+ readonly blToTr: 'a:lnBlToTr';
1933
1961
  };
1934
1962
  /** Which border of a cell an edit addresses. */
1935
1963
  type TableCellEdge = keyof typeof EDGE_QNAMES;
@@ -2224,7 +2252,7 @@ declare class TableRow {
2224
2252
  /** The owning slide's theme colour context, threaded to each {@link TableCell}. */
2225
2253
  themeColors?: ThemeContext | undefined,
2226
2254
  /** The table's style-resolution context, threaded to each cell for {@link TableCell.resolvedFill}. */
2227
- style?: (TableCellStyleContext | null) | undefined,
2255
+ style?: TableCellStyleContext | null | undefined,
2228
2256
  /** This row's zero-based index in the table, for style-graph banding/edge conditions. */
2229
2257
  rowIndex?: number,
2230
2258
  /** The owning slide's relationships, threaded to each cell for {@link TableCell.pictureFill}. */
@@ -2257,7 +2285,7 @@ declare class TableCell {
2257
2285
  /** The owning slide's theme colour context, threaded to the cell's text for `Run.resolvedColor`. */
2258
2286
  themeColors?: ThemeContext | undefined,
2259
2287
  /** The table's style-resolution context, for the {@link resolvedFill} style-graph fallback. */
2260
- style?: (TableCellStyleContext | null) | undefined,
2288
+ style?: TableCellStyleContext | null | undefined,
2261
2289
  /** This cell's zero-based row index in the table. */
2262
2290
  rowIndex?: number,
2263
2291
  /** This cell's zero-based column index in its row. */
@@ -2384,6 +2412,24 @@ declare class TableCell {
2384
2412
  * `a:tcPr` is empty or absent, whatever the style graph would render it as.
2385
2413
  */
2386
2414
  get hasOwnFill(): boolean;
2415
+ /**
2416
+ * `true` when the cell sets an explicit no-fill (`a:tcPr/a:noFill`) — a deliberately
2417
+ * transparent cell showing the table background (or the slide) through. The cell-side
2418
+ * counterpart of {@link import('./shapes.js').AutoShape.fillNoFill}, and what
2419
+ * {@link noFill} writes.
2420
+ *
2421
+ * {@link hasOwnFill} is not this question: it is `true` for *any* `EG_FillProperties`
2422
+ * child, so on its own it cannot separate a suppressed fill from a gradient or an image
2423
+ * one — and every colour accessor ({@link resolvedFill}, {@link fillColor},
2424
+ * {@link fillSchemeColor}) reports `null` for a no-fill cell exactly as it does for a
2425
+ * cell that inherits its shading from the table style. Deriving it as "has a fill of its
2426
+ * own, and no accessor recognises it" instead of reading it has two failure modes: it
2427
+ * folds `a:grpFill` in with `a:noFill`, and its meaning changes silently the day a
2428
+ * further fill kind gets an accessor. The two paint completely differently — an
2429
+ * inherited banding colour versus nothing at all — so a consumer that cannot tell them
2430
+ * apart paints a transparent cell in the style's shading.
2431
+ */
2432
+ get fillNoFill(): boolean;
2387
2433
  /**
2388
2434
  * The cell's picture (image) fill (`a:tcPr/a:blipFill`), or `null` when the cell
2389
2435
  * is not image-filled. The cell counterpart of
@@ -2505,7 +2551,7 @@ declare class TableCell {
2505
2551
  /** A graphic frame (`p:graphicFrame`) — host for tables and charts. */
2506
2552
  declare class GraphicFrame extends Shape {
2507
2553
  #private;
2508
- readonly shapeType: "graphicFrame";
2554
+ readonly shapeType: 'graphicFrame';
2509
2555
  protected xfrm(): Element | null;
2510
2556
  protected getOrAddXfrm(): Element;
2511
2557
  protected getOrAddProperties(): ShapeProperties;
@@ -2537,7 +2583,7 @@ declare class GraphicFrame extends Shape {
2537
2583
  */
2538
2584
  declare class GroupShape extends Shape {
2539
2585
  #private;
2540
- readonly shapeType: "group";
2586
+ readonly shapeType: 'group';
2541
2587
  protected xfrm(): Element | null;
2542
2588
  protected getOrAddXfrm(): Element;
2543
2589
  protected properties(): Element | null;
@@ -2826,6 +2872,13 @@ declare class Theme {
2826
2872
  * and text style from. Geometry getters read the placeholder's *own* `a:xfrm`,
2827
2873
  * which a master/layout placeholder carries explicitly (so it round-trips, unlike a
2828
2874
  * notes placeholder's inherited geometry).
2875
+ *
2876
+ * This is the identity-and-geometry view. The same `p:sp` also appears in
2877
+ * {@link SlideMaster.shapes} / {@link SlideLayout.shapes} as an `AutoShape`, which
2878
+ * additionally carries the paint surface (`resolvedFill`, `resolvedLine`,
2879
+ * `presetGeometry`, `rotation`, `absoluteFrame`) and reports its `p:ph` through
2880
+ * `AutoShape.placeholder`. Read a placeholder here to *place* it; read it there to
2881
+ * *draw* it.
2829
2882
  */
2830
2883
  declare class Placeholder {
2831
2884
  #private;
@@ -2870,20 +2923,25 @@ declare class Placeholder {
2870
2923
  /**
2871
2924
  * A deck's slide master (`slideMasterN.xml`) as a modeled object. Exposes the
2872
2925
  * property tiers a bound slide inherits: the {@link colorMap} (token → theme slot),
2873
- * its {@link theme}, its {@link placeholders} (with geometry), its own
2874
- * {@link background}, and the {@link layouts} that build on it. Reachable from
2875
- * {@link SlideLayout.master} and `Slide.master`.
2926
+ * its {@link theme}, its {@link shapes} and the {@link placeholders} subset of them,
2927
+ * its own {@link background}, and the {@link layouts} that build on it. Reachable
2928
+ * from {@link SlideLayout.master} and `Slide.master`.
2876
2929
  */
2877
- declare class SlideMaster {
2930
+ declare class SlideMaster implements ShapeHost {
2878
2931
  #private;
2879
- private readonly opc;
2932
+ /** The package the master belongs to, for reaching its layouts, theme, and media. */
2933
+ readonly opc: OpcPackage;
2880
2934
  /** The master's OPC part (`/ppt/slideMasters/slideMasterN.xml`). */
2881
2935
  readonly part: Part;
2882
- constructor(opc: OpcPackage,
2936
+ constructor(
2937
+ /** The package the master belongs to, for reaching its layouts, theme, and media. */
2938
+ opc: OpcPackage,
2883
2939
  /** The master's OPC part (`/ppt/slideMasters/slideMasterN.xml`). */
2884
2940
  part: Part);
2885
2941
  /** Partname of the master part. */
2886
2942
  get partName(): string;
2943
+ /** This master part's relationships (its layouts, its theme, image embeds, …). */
2944
+ get relationships(): Relationships;
2887
2945
  /** The master's authoring name (`p:cSld/@name`), or `''` when unnamed (the writer's default). */
2888
2946
  get name(): string;
2889
2947
  /** The master's theme (via its `theme` relationship), or `null` when absent. */
@@ -2895,6 +2953,18 @@ declare class SlideMaster {
2895
2953
  * A token the map omits reads `null`.
2896
2954
  */
2897
2955
  get colorMap(): Record<ColorMapToken, string | null>;
2956
+ /**
2957
+ * Every shape in the master's `p:cSld/p:spTree`, in document order — the same
2958
+ * `AnyShape` union `Slide.shapes` returns, so shape-walking code applies
2959
+ * unchanged. This is where a template's non-placeholder furniture lives: the
2960
+ * header band, the rule under the title, the logo. Whether a given slide draws
2961
+ * them is `Slide.showMasterSp` (and, for a layout, {@link SlideLayout.showMasterSp}).
2962
+ *
2963
+ * {@link placeholders} is the filtered view of the same tree.
2964
+ */
2965
+ get shapes(): AnyShape[];
2966
+ /** The shape anywhere in the master's tree with the given drawing id, or `undefined`. */
2967
+ shapeByIdDeep(id: number): AnyShape | undefined;
2898
2968
  /** The master's placeholder shapes (`p:sp` carrying a `p:ph`), in document order. */
2899
2969
  get placeholders(): Placeholder[];
2900
2970
  /** The layouts built on this master (via `p:sldLayoutIdLst` → its relationships), in list order. */
@@ -2915,19 +2985,24 @@ declare class SlideMaster {
2915
2985
  * A deck's slide layout (`slideLayoutN.xml`) as a modeled object — the gallery entry
2916
2986
  * a slide binds to. Exposes its {@link name}, its {@link type} (import-only; the
2917
2987
  * writer authors none), its {@link master} (and, through it, the {@link theme}), its
2918
- * {@link placeholders} (with geometry), and its own {@link background}. Reachable
2919
- * from `Slide.layout` and {@link SlideMaster.layouts}.
2988
+ * {@link shapes} and the {@link placeholders} subset of them, and its own
2989
+ * {@link background}. Reachable from `Slide.layout` and {@link SlideMaster.layouts}.
2920
2990
  */
2921
- declare class SlideLayout {
2991
+ declare class SlideLayout implements ShapeHost {
2922
2992
  #private;
2923
- private readonly opc;
2993
+ /** The package the layout belongs to, for reaching its master, theme, and media. */
2994
+ readonly opc: OpcPackage;
2924
2995
  /** The layout's OPC part (`/ppt/slideLayouts/slideLayoutN.xml`). */
2925
2996
  readonly part: Part;
2926
- constructor(opc: OpcPackage,
2997
+ constructor(
2998
+ /** The package the layout belongs to, for reaching its master, theme, and media. */
2999
+ opc: OpcPackage,
2927
3000
  /** The layout's OPC part (`/ppt/slideLayouts/slideLayoutN.xml`). */
2928
3001
  part: Part);
2929
3002
  /** Partname of the layout part. */
2930
3003
  get partName(): string;
3004
+ /** This layout part's relationships (its master, image embeds, hyperlinks, …). */
3005
+ get relationships(): Relationships;
2931
3006
  /** The layout's authoring name (`p:cSld/@name`, e.g. `Title and Content`), or `''` when unnamed. */
2932
3007
  get name(): string;
2933
3008
  /**
@@ -2936,10 +3011,31 @@ declare class SlideLayout {
2936
3011
  * authored deck reads `null`; an imported deck carries PowerPoint's value.
2937
3012
  */
2938
3013
  get type(): string | null;
3014
+ /**
3015
+ * Whether this layout draws the master's non-placeholder shapes
3016
+ * (`p:sldLayout/@showMasterSp`). `xsd:boolean` defaulting to `true`, so an absent
3017
+ * attribute means shown — the layout-tier counterpart of `Slide.showMasterSp`,
3018
+ * and the one PowerPoint actually writes on a section-divider or full-bleed
3019
+ * layout. A renderer resolving what to paint under a slide's own shapes has to
3020
+ * consult both: the slide's flag, then its layout's.
3021
+ */
3022
+ get showMasterSp(): boolean;
2939
3023
  /** The master this layout is built on (via its `slideMaster` relationship), or `null` when absent. */
2940
3024
  get master(): SlideMaster | null;
2941
3025
  /** The theme this layout resolves against, via its {@link master}, or `null`. */
2942
3026
  get theme(): Theme | null;
3027
+ /**
3028
+ * Every shape in the layout's `p:cSld/p:spTree`, in document order — the same
3029
+ * `AnyShape` union `Slide.shapes` returns, so shape-walking code applies
3030
+ * unchanged. The write API authors non-placeholder shapes here: every
3031
+ * `defineSlideMaster({ objects })` member that is not a `placeholder` (a `rect`,
3032
+ * a `line`, an `image`, a `chart`, a `text` box) lands in this tree.
3033
+ *
3034
+ * {@link placeholders} is the filtered view of the same tree.
3035
+ */
3036
+ get shapes(): AnyShape[];
3037
+ /** The shape anywhere in the layout's tree with the given drawing id, or `undefined`. */
3038
+ shapeByIdDeep(id: number): AnyShape | undefined;
2943
3039
  /** The layout's placeholder shapes (`p:sp` carrying a `p:ph`), in document order. */
2944
3040
  get placeholders(): Placeholder[];
2945
3041
  /**
@@ -3042,7 +3138,7 @@ interface AddPictureOptions {
3042
3138
  /** MIME content type (e.g. `image/png`); sniffed alongside `extension` when omitted. */
3043
3139
  contentType?: string;
3044
3140
  }
3045
- declare class Slide {
3141
+ declare class Slide implements ShapeHost {
3046
3142
  #private;
3047
3143
  readonly presentation: Presentation;
3048
3144
  /** The slide's OPC part (`/ppt/slides/slideN.xml`). */
@@ -3071,6 +3167,12 @@ declare class Slide {
3071
3167
  markDirty(): void;
3072
3168
  /** This slide part's relationships (image embeds, layout, hyperlinks, …). */
3073
3169
  get relationships(): Relationships;
3170
+ /**
3171
+ * The deck's OPC package. Convenience for `presentation.opc`, and the member
3172
+ * {@link ShapeHost} names so a shape can reach a referenced part (an image, a
3173
+ * chart) the same way whether it lives on a slide, a layout, or a master.
3174
+ */
3175
+ get opc(): OpcPackage;
3074
3176
  /**
3075
3177
  * The slide's resolved theme context (`clrMap` + `clrScheme` + the theme
3076
3178
  * `fmtScheme` + `fontScheme`, plus the layout/master roots), walked once from
@@ -3099,6 +3201,19 @@ declare class Slide {
3099
3201
  * Marks the slide part dirty.
3100
3202
  */
3101
3203
  set hidden(value: boolean);
3204
+ /**
3205
+ * Whether this slide draws the master's non-placeholder shapes
3206
+ * (`p:sld/@showMasterSp`). `xsd:boolean` defaulting to `true`, so an absent
3207
+ * attribute means shown — the same shape as {@link hidden}.
3208
+ *
3209
+ * This is the switch that decides whether {@link SlideMaster.shapes} belongs on
3210
+ * *this* slide. A slide the author gave a full-bleed image or a section divider
3211
+ * usually sets it to `0`, and a renderer that paints the master's band and logo
3212
+ * anyway puts the template's furniture on top of a slide that deliberately hid
3213
+ * it. Placeholders are unaffected: the flag suppresses only the master's
3214
+ * decorative shapes.
3215
+ */
3216
+ get showMasterSp(): boolean;
3102
3217
  /**
3103
3218
  * The slide's show transition (`p:transition`), decoded into a typed model, or
3104
3219
  * `null` when the slide has none. Handles both PowerPoint forms: the bare
@@ -3672,5 +3787,5 @@ declare class Presentation {
3672
3787
  save(): Promise<Uint8Array>;
3673
3788
  }
3674
3789
  //#endregion
3675
- export { Chart as $, GroupShape as A, Recolor as At, Table as B, PictureFill as Bt, CommentAuthor as C, CustomGeometryPath as Ct, NotesPlaceholder as D, LineEnd as Dt, ModernCommentAuthor as E, InnerShadow as Et, isPicture as F, PatternFill as Ft, TableConditionFlags as G, resolveColorElement as Gt, TableCellBorderEdit as H, GradientFill as Ht, GraphicFrame as I, BackgroundFill as It, ChartExAxis as J, TableCellEdge as K, ColorContext as Kt, CellBorder as L, BackgroundSource as Lt, isConnector as M, Reflection as Mt, isGraphicFrame as N, ShapeType as Nt, NotesSlide as O, LineEnds as Ot, isGroupShape as P, SoftEdge as Pt, AxisNumberFormat as Q, CellBorders as R, SlideBackground as Rt, Comment as S, CustomGeometry as St, ModernComment as T, Glow as Tt, TableRow as U, GradientStop as Ut, TableCell as V, PictureFillTile as Vt, ResolvedTableStyle as W, ResolvedColor as Wt, ChartExLegend as X, ChartExDataLabels as Y, ChartExSeries as Z, ThemeColorSlot as _, RunHyperlink as _t, readCustomProperties as a, ChartSeries as at, Tag as b, ChildFrame as bt, Slide as c, AutoShape as ct, TransitionSpeed as d, BodyProperties as dt, ChartAxis as et, ColorMapToken as f, BulletDetail as ft, Theme as g, Run as gt, SlideMaster as h, Paragraph as ht, readCoreProperties as i, ChartLine as it, isAutoShape as j, RecolorColor as jt, AnyShape as k, OuterShadow as kt, TransitionInfo as l, Shape as lt, SlideLayout as m, LineSpacing as mt, CoreProperties as n, ChartFill as nt, AddPictureOptions as o, Connector as ot, Placeholder as p, BulletStyle as pt, ChartEx as q, CustomProperty as r, ChartLegend as rt, AddTextBoxOptions as s, Picture as st, Presentation as t, ChartDataLabels as tt, TransitionInput as u, AutofitMode as ut, ThemeFontFace as v, TextFrame as vt, CommentSchema as w, GeometryCommand as wt, readTagsForPart as x, ConnectionSite as xt, ThemeFontScheme as y, AbsoluteFrame as yt, CellThreeD as z, FillRect as zt };
3676
- //# sourceMappingURL=presentation-CTVPpiwP.d.ts.map
3790
+ export { Chart as $, GroupShape as A, OuterShadow as At, Table as B, FillRect as Bt, CommentAuthor as C, CustomGeometry as Ct, NotesPlaceholder as D, InnerShadow as Dt, ModernCommentAuthor as E, Glow as Et, isPicture as F, SoftEdge as Ft, TableConditionFlags as G, ResolvedColor as Gt, TableCellBorderEdit as H, PictureFillTile as Ht, GraphicFrame as I, PatternFill as It, ChartExAxis as J, TableCellEdge as K, resolveColorElement as Kt, CellBorder as L, BackgroundFill as Lt, isConnector as M, RecolorColor as Mt, isGraphicFrame as N, Reflection as Nt, NotesSlide as O, LineEnd as Ot, isGroupShape as P, ShapeType as Pt, AxisNumberFormat as Q, CellBorders as R, BackgroundSource as Rt, Comment as S, ConnectionSite as St, ModernComment as T, GeometryCommand as Tt, TableRow as U, GradientFill as Ut, TableCell as V, PictureFill as Vt, ResolvedTableStyle as W, GradientStop as Wt, ChartExLegend as X, ChartExDataLabels as Y, ChartExSeries as Z, ThemeColorSlot as _, Run as _t, readCustomProperties as a, ChartSeries as at, Tag as b, AbsoluteFrame as bt, Slide as c, AutoShape as ct, TransitionSpeed as d, AutofitMode as dt, ChartAxis as et, ColorMapToken as f, BodyProperties as ft, Theme as g, Paragraph as gt, SlideMaster as h, LineSpacing as ht, readCoreProperties as i, ChartLine as it, isAutoShape as j, Recolor as jt, AnyShape as k, LineEnds as kt, TransitionInfo as l, Shape as lt, SlideLayout as m, BulletStyle as mt, CoreProperties as n, ChartFill as nt, AddPictureOptions as o, Connector as ot, Placeholder as p, BulletDetail as pt, ChartEx as q, ColorContext as qt, CustomProperty as r, ChartLegend as rt, AddTextBoxOptions as s, Picture as st, Presentation as t, ChartDataLabels as tt, TransitionInput as u, ShapeHost as ut, ThemeFontFace as v, RunHyperlink as vt, CommentSchema as w, CustomGeometryPath as wt, readTagsForPart as x, ChildFrame as xt, ThemeFontScheme as y, TextFrame as yt, CellThreeD as z, SlideBackground as zt };
3791
+ //# sourceMappingURL=presentation-Osx1cDdJ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-Osx1cDdJ.d.ts","names":[],"sources":["../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/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"],"mappings":";;;;;;;;;;UA8DiB;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,OAAO;;;;;UChCS;EAChB;EACA;EACA;EACA;;;;;;;UAQgB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;UAcgB;;EAEhB;;EAEA;;EAEA;;EAEA,SAAS;;EAET,UAAU;;EAEV,MAAM;;EAEN;;EAEA;;EAEA;;;;;KC1CW;;;;;;;;;;;KAYA;EACP;EAAe,OAAO;;EACtB;EAAkB,UAAU;;EAC5B;EAAe,SAAS;EAAa;EAAsB;;EAC3D;EAAiB;EAAuB,YAAY;EAAsB,YAAY;;EACtF;;;;;;;;;;;KAWO;EACP;EAAe,QAAQ;EAAkB,OAAO;;EAChD;EAAkB,QAAQ;EAAkB,UAAU;;EACtD;EAAe,QAAQ;EAAkB,SAAS;EAAa;EAAsB;;EAEvF;EACA,QAAQ;EACR;EACA,YAAY;EACZ,YAAY;;EAGZ;EACA,QAAQ;EACR;EACA,OAAO;EACP,cAAc;;EAEZ;EAAc,QAAQ;;;;;;;;;UCrCV;EAChB,OAAO;EACP;EACA;;;;;;;;;;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a,SAAS,sBAAsB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;EAmL/E,YAAY,QAAQ,OAAO,QAAQ,OAAO,oBAAoB,UAAS,qBAA0B;;;;;;;;EAiBjG,aAAa,QAAQ,OAAO,QAAQ,OAAO,wBAAwB,UAAS,qBAA0B;;EA0LhG,QAAQ,QAAQ"}
@@ -4,7 +4,7 @@
4
4
  * (`font` first, then these). Iterate in this order everywhere so the read- and
5
5
  * write-side emitters agree on element order.
6
6
  */
7
- declare const EMBEDDED_FONT_SLOTS: readonly ["regular", "bold", "italic", "boldItalic"];
7
+ declare const EMBEDDED_FONT_SLOTS: readonly ['regular', 'bold', 'italic', 'boldItalic'];
8
8
  type EmbeddedFontSlot = (typeof EMBEDDED_FONT_SLOTS)[number];
9
9
  /** One embeddable face: a slot plus the raw font bytes (absent in pure read-side merges). */
10
10
  interface EmbeddedFontFace {
@@ -535,4 +535,4 @@ interface FromTemplateOptions {
535
535
  }
536
536
  //#endregion
537
537
  export { ExtractedSlides as a, ImportSlideMastersOptions as c, LayoutHandle as d, SlideSize as f, ExtractedSlide as i, ImportSlideOptions as l, EmbeddedFontSlot as m, EmbeddedFontFaceInfo as n, FromTemplateOptions as o, SlideSource as p, EmbeddedFontInfo as r, ImportShapeOptions as s, AppendSlidesOptions as t, ImportedSlideMaster as u };
538
- //# sourceMappingURL=presentation-types-BVw0EknS.d.ts.map
538
+ //# sourceMappingURL=presentation-types-Dj4riuDs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-types-BVw0EknS.d.ts","names":[],"sources":["../src/embedded-fonts.ts","../src/read/api/presentation-types.ts"],"mappings":";;;;;;cA8Ba;KACD,2BAA2B;;UAGtB;EAChB,MAAM;EACN,QAAQ;;;UAIQ;;EAEhB;EACA;EACA;EACA;EACA,OAAO;;;;;UCnCS;EAChB;EACA;EACA;EACA;;;;;;;;;UAUgB;;EAEhB;;EAEA;;EAEA,OAAO;;;UAIS;;EAEhB;;EAEA;;;UAIgB;;;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Ed;;EAEA;;;UAIS;;EAET;;EAEA;;EAEA;;;UAIgB;EAChB;EACA;EACA,QAAQ;;;;;;EAMR,eAAe;;;;;;;;;;;EAWf;IAAgB;IAAa;;;;;;;UAOb;EAChB,cAAc;IAAS;MAA2C,QAAQ;;;UAI1D;;EAEhB,iBAAiB;;;;;EAKjB;;EAEA;;;UAIgB;;;;;;;EAOhB"}
package/dist/read.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { t as CustomPropertyValue } from "./pres-2WsBGimU.js";
2
- import { a as ExtractedSlides, c as ImportSlideMastersOptions, d as LayoutHandle, f as SlideSize, i as ExtractedSlide, l as ImportSlideOptions, n as EmbeddedFontFaceInfo, o as FromTemplateOptions, p as SlideSource, r as EmbeddedFontInfo, s as ImportShapeOptions, t as AppendSlidesOptions, u as ImportedSlideMaster } from "./presentation-types-BVw0EknS.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-BENA-Xuw.js";
1
+ import { t as CustomPropertyValue } from "./pres-C-EU3SkN.js";
2
+ import { a as ExtractedSlides, c as ImportSlideMastersOptions, d as LayoutHandle, f as SlideSize, i as ExtractedSlide, l as ImportSlideOptions, n as EmbeddedFontFaceInfo, o as FromTemplateOptions, p as SlideSource, r as EmbeddedFontInfo, s as ImportShapeOptions, t as AppendSlidesOptions, u as ImportedSlideMaster } from "./presentation-types-Dj4riuDs.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
  import { a as Part, i as Relationships, n as OpcPackage, r as Relationship, s as ContentTypes, t as OpcInput } from "./package-CaOLXSNi.js";
5
- import { $ as Chart, A as GroupShape, At as Recolor, B as Table, Bt as PictureFill, C as CommentAuthor, Ct as CustomGeometryPath, D as NotesPlaceholder, Dt as LineEnd, E as ModernCommentAuthor, Et as InnerShadow, F as isPicture, Ft as PatternFill, G as TableConditionFlags, Gt as resolveColorElement, H as TableCellBorderEdit, Ht as GradientFill, I as GraphicFrame, It as BackgroundFill, J as ChartExAxis, K as TableCellEdge, Kt as ColorContext, L as CellBorder, Lt as BackgroundSource, M as isConnector, Mt as Reflection, N as isGraphicFrame, Nt as ShapeType, O as NotesSlide, Ot as LineEnds, P as isGroupShape, Pt as SoftEdge, Q as AxisNumberFormat, R as CellBorders, Rt as SlideBackground, S as Comment, St as CustomGeometry, T as ModernComment, Tt as Glow, U as TableRow, Ut as GradientStop, V as TableCell, Vt as PictureFillTile, W as ResolvedTableStyle, Wt as ResolvedColor, X as ChartExLegend, Y as ChartExDataLabels, Z as ChartExSeries, _ as ThemeColorSlot, _t as RunHyperlink, a as readCustomProperties, at as ChartSeries, b as Tag, bt as ChildFrame, c as Slide, ct as AutoShape, d as TransitionSpeed, dt as BodyProperties, et as ChartAxis, f as ColorMapToken, ft as BulletDetail, g as Theme, gt as Run, h as SlideMaster, ht as Paragraph, i as readCoreProperties, it as ChartLine, j as isAutoShape, jt as RecolorColor, k as AnyShape, kt as OuterShadow, l as TransitionInfo, lt as Shape, m as SlideLayout, mt as LineSpacing, n as CoreProperties, nt as ChartFill, o as AddPictureOptions, ot as Connector, p as Placeholder, pt as BulletStyle, q as ChartEx, r as CustomProperty, rt as ChartLegend, s as AddTextBoxOptions, st as Picture, t as Presentation, tt as ChartDataLabels, u as TransitionInput, ut as AutofitMode, v as ThemeFontFace, vt as TextFrame, w as CommentSchema, wt as GeometryCommand, x as readTagsForPart, xt as ConnectionSite, y as ThemeFontScheme, yt as AbsoluteFrame, z as CellThreeD, zt as FillRect } from "./presentation-CTVPpiwP.js";
5
+ import { $ as Chart, A as GroupShape, At as OuterShadow, B as Table, Bt as FillRect, C as CommentAuthor, Ct as CustomGeometry, D as NotesPlaceholder, Dt as InnerShadow, E as ModernCommentAuthor, Et as Glow, F as isPicture, Ft as SoftEdge, G as TableConditionFlags, Gt as ResolvedColor, H as TableCellBorderEdit, Ht as PictureFillTile, I as GraphicFrame, It as PatternFill, J as ChartExAxis, K as TableCellEdge, Kt as resolveColorElement, L as CellBorder, Lt as BackgroundFill, M as isConnector, Mt as RecolorColor, N as isGraphicFrame, Nt as Reflection, O as NotesSlide, Ot as LineEnd, P as isGroupShape, Pt as ShapeType, Q as AxisNumberFormat, R as CellBorders, Rt as BackgroundSource, S as Comment, St as ConnectionSite, T as ModernComment, Tt as GeometryCommand, U as TableRow, Ut as GradientFill, V as TableCell, Vt as PictureFill, W as ResolvedTableStyle, Wt as GradientStop, X as ChartExLegend, Y as ChartExDataLabels, Z as ChartExSeries, _ as ThemeColorSlot, _t as Run, a as readCustomProperties, at as ChartSeries, b as Tag, bt as AbsoluteFrame, c as Slide, ct as AutoShape, d as TransitionSpeed, dt as AutofitMode, et as ChartAxis, f as ColorMapToken, ft as BodyProperties, g as Theme, gt as Paragraph, h as SlideMaster, ht as LineSpacing, i as readCoreProperties, it as ChartLine, j as isAutoShape, jt as Recolor, k as AnyShape, kt as LineEnds, l as TransitionInfo, lt as Shape, m as SlideLayout, mt as BulletStyle, n as CoreProperties, nt as ChartFill, o as AddPictureOptions, ot as Connector, p as Placeholder, pt as BulletDetail, q as ChartEx, qt as ColorContext, r as CustomProperty, rt as ChartLegend, s as AddTextBoxOptions, st as Picture, t as Presentation, tt as ChartDataLabels, u as TransitionInput, ut as ShapeHost, v as ThemeFontFace, vt as RunHyperlink, w as CommentSchema, wt as CustomGeometryPath, x as readTagsForPart, xt as ChildFrame, y as ThemeFontScheme, yt as TextFrame, z as CellThreeD, zt as SlideBackground } from "./presentation-Osx1cDdJ.js";
6
6
  //#region src/read/opc/partnames.d.ts
7
7
  /** Partname of the `.rels` part holding `sourcePartName`'s relationships ('/' = package). */
8
8
  declare function relsPartNameFor(sourcePartName: string): string;
@@ -69,5 +69,5 @@ interface EffectiveColor {
69
69
  */
70
70
  declare function applyColorTransforms(baseHex: string, transforms: ColorTransform[]): EffectiveColor;
71
71
  //#endregion
72
- 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, 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 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 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
+ 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, 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 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 };
73
73
  //# sourceMappingURL=read.d.ts.map
package/dist/read.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as TsPptxError, i as PackageReadError, n as InvalidOptionError, o as UnsupportedFeatureError, r as MediaError, t as InternalError } from "./errors-DGE9zh3U.js";
2
- import { A as resolveColorElement, C as Paragraph, I as applyColorTransforms, S as Shape, T as TextFrame, _ as ChartAxis, _t as resolveRelativePartName, a as isGraphicFrame, b as Picture, d as TableCell, f as TableRow, g as Chart, gt as relsPartNameFor, h as ChartExSeries, i as isConnector, l as GraphicFrame, m as ChartExAxis, o as isGroupShape, p as ChartEx, r as isAutoShape, s as isPicture, t as GroupShape, u as Table, v as ChartSeries, w as Run, x as AutoShape, y as Connector } from "./shapes-BWifcHDV.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-DAcOfzsP.js";
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 Shape, E as TextFrame, L as applyColorTransforms, S as AutoShape, T as Run, _ as Chart, _t as relsPartNameFor, a as isConnector, b as Connector, c as isPicture, d as Table, f as TableCell, g as ChartExSeries, h as ChartExAxis, i as isAutoShape, j as resolveColorElement, m as ChartEx, o as isGraphicFrame, p as TableRow, s as isGroupShape, t as GroupShape, u as GraphicFrame, v as ChartAxis, vt as resolveRelativePartName, w as Paragraph, x as Picture, y as ChartSeries } from "./shapes-DoJBPrwN.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-CxnUVhK9.js";
4
4
  export { AutoShape, Chart, ChartAxis, ChartEx, ChartExAxis, ChartExSeries, ChartSeries, Connector, ContentTypes, 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 { 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-BENA-Xuw.js";
2
- import { t as Presentation } from "./presentation-CTVPpiwP.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
+ import { t as Presentation } from "./presentation-Osx1cDdJ.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
@@ -66,6 +66,25 @@ interface FidelityNote {
66
66
  /** Why, in a sentence, for a human reading the emitted script's header. */
67
67
  detail: string;
68
68
  }
69
+ /**
70
+ * Namespace for a loss recorded against a shape on a **slide layout** rather than on a slide,
71
+ * prepended to the construct by {@link layoutShapeScope}.
72
+ *
73
+ * The chrome mapper reuses the slide shape mapper wholesale — a rectangle on a layout is
74
+ * transcribed by the same code that transcribes one on a slide, which is what keeps the two
75
+ * from drifting. That sharing brings the slide vocabulary with it: a themed outline on a
76
+ * layout records `line.width` exactly as a slide's would. Left unmarked, those notes would be
77
+ * wrong twice over. A template-anchored script would report them, though it never rebuilds a
78
+ * layout and loses nothing; and the round trip would let one excuse a *slide* difference,
79
+ * because a layout note carries no slide number and a name like "Rectangle 7" repeats between
80
+ * the tiers. The prefix keeps the shared vocabulary and states which tier it is about.
81
+ *
82
+ * `layout.` rather than `master.`, which is how the other chrome constructs are spelled: those
83
+ * are named after the `defineSlideMaster` call that authors them, while these name the source
84
+ * tier the loss is on — and a master's own decoration is not re-authored at all, so a note
85
+ * under this prefix is always about a layout.
86
+ */
87
+ declare const LAYOUT_NOTE_PREFIX = "layout.";
69
88
  //#endregion
70
89
  //#region src/script/ir.d.ts
71
90
  /**
@@ -537,7 +556,11 @@ interface RoundTripReport {
537
556
  */
538
557
  unmatchedNotes: FidelityNote[];
539
558
  }
540
- /** Every note construct this table knows how to match, for a test to check against. */
559
+ /**
560
+ * Every note construct this table knows how to match, for a test to check against. The
561
+ * `layout.` spellings are not listed — they resolve through {@link isKnownNoteConstruct},
562
+ * which is what a corpus check should use.
563
+ */
541
564
  declare function knownNoteConstructs(): string[];
542
565
  /**
543
566
  * Compare the deck a script was generated from against the deck it produced.
@@ -548,6 +571,11 @@ declare function knownNoteConstructs(): string[];
548
571
  * IR's own list would both over- and under-exclude.
549
572
  */
550
573
  declare function diffDeckIr(expected: CanonicalDeck, actual: CanonicalDeck, notes: FidelityNote[]): RoundTripReport;
574
+ /**
575
+ * `true` when the coverage table can match this construct — directly or through the
576
+ * layout-shape fallback. The check a corpus test runs over every note both printers emit.
577
+ */
578
+ declare function isKnownNoteConstruct(construct: string): boolean;
551
579
  //#endregion
552
- export { type AssetIr, type AssetMode, type AssetRef, type BackgroundIr, type CallIr, type CanonicalCall, type CanonicalChrome, type CanonicalDeck, type CanonicalSlide, type Cause, type ChromeIr, type DeckIr, type DeckPropsIr, type DifferenceKind, type Disposition, type ErrorCode, type FidelityNote, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type IrDifference, type IrValue, type MasterIr, MediaError, type MediaErrorCode, PackageReadError, type PackageReadErrorCode, type PrintScriptOptions, type PrintStandaloneScriptOptions, type PrintedScript, type RoundTripReport, type SlideIr, type SlideLayoutIr, type SlideSource, type ThemeIr, type TransitionIr, type TransitionSoundIr, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, canonicalDeckIr, diffDeckIr, isAssetRef, knownNoteConstructs, printScript, printStandaloneScript, readModelToIr };
580
+ export { type AssetIr, type AssetMode, type AssetRef, type BackgroundIr, type CallIr, type CanonicalCall, type CanonicalChrome, type CanonicalDeck, type CanonicalSlide, type Cause, type ChromeIr, type DeckIr, type DeckPropsIr, type DifferenceKind, type Disposition, type ErrorCode, type FidelityNote, InternalError, type InternalErrorCode, InvalidOptionError, type InvalidOptionErrorCode, type IrDifference, type IrValue, LAYOUT_NOTE_PREFIX, type MasterIr, MediaError, type MediaErrorCode, PackageReadError, type PackageReadErrorCode, type PrintScriptOptions, type PrintStandaloneScriptOptions, type PrintedScript, type RoundTripReport, type SlideIr, type SlideLayoutIr, type SlideSource, type ThemeIr, type TransitionIr, type TransitionSoundIr, type TsPptxCode, TsPptxError, type TsPptxErrorOptions, UnsupportedFeatureError, type UnsupportedFeatureErrorCode, canonicalDeckIr, diffDeckIr, isAssetRef, isKnownNoteConstruct, knownNoteConstructs, printScript, printStandaloneScript, readModelToIr };
553
581
  //# sourceMappingURL=script.d.ts.map