@shbernal/ts-pptx 4.0.1 → 4.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 (139) hide show
  1. package/README.md +147 -114
  2. package/dist/anim-presets-Qbgh8uut.js +55 -0
  3. package/dist/anim-presets-Qbgh8uut.js.map +1 -0
  4. package/dist/{autopage-odPz7zZO.js → autopage-DqZ37VpL.js} +11 -12
  5. package/dist/autopage-DqZ37VpL.js.map +1 -0
  6. package/dist/{binary-string-CKVAYI3M.js → binary-string-Ba8VM3b9.js} +3 -4
  7. package/dist/binary-string-Ba8VM3b9.js.map +1 -0
  8. package/dist/{body-insets-Dw_BeWD_.js → body-insets-BDHymJvz.js} +7 -9
  9. package/dist/body-insets-BDHymJvz.js.map +1 -0
  10. package/dist/browser.d.ts +24 -16
  11. package/dist/browser.d.ts.map +1 -1
  12. package/dist/browser.js +19 -19
  13. package/dist/browser.js.map +1 -1
  14. package/dist/{image-size-CvN2iCA4.js → chart-metadata-CwiTTcJq.js} +634 -537
  15. package/dist/chart-metadata-CwiTTcJq.js.map +1 -0
  16. package/dist/{clip-Bl01BPcN.d.ts → clip-ISfCMtWA.d.ts} +6 -10
  17. package/dist/clip-ISfCMtWA.d.ts.map +1 -0
  18. package/dist/{notes-Dh12JAbn.js → comments-CKIZYRbZ.js} +530 -401
  19. package/dist/comments-CKIZYRbZ.js.map +1 -0
  20. package/dist/{diagnostics-D8ot4Ei7.d.ts → diagnostics-MoA4MBq5.d.ts} +55 -53
  21. package/dist/diagnostics-MoA4MBq5.d.ts.map +1 -0
  22. package/dist/{embedded-fonts-DarT9aoa.d.ts → embedded-fonts-U7HIIhPO.d.ts} +4 -6
  23. package/dist/embedded-fonts-U7HIIhPO.d.ts.map +1 -0
  24. package/dist/{entry-compose-DCnvBZz2.d.ts → entry-compose-CiakSt-f.d.ts} +62 -81
  25. package/dist/entry-compose-CiakSt-f.d.ts.map +1 -0
  26. package/dist/{errors-C4oENPcu.js → entry-errors-JMthgJ2g.js} +45 -29
  27. package/dist/entry-errors-JMthgJ2g.js.map +1 -0
  28. package/dist/{table-cell-margins-EVg0EwxT.js → enums-BP9wsb9Q.js} +44 -47
  29. package/dist/enums-BP9wsb9Q.js.map +1 -0
  30. package/dist/{enums-BUKTUB6V.d.ts → enums-PcXr3o3J.d.ts} +13 -14
  31. package/dist/{enums-BUKTUB6V.d.ts.map → enums-PcXr3o3J.d.ts.map} +1 -1
  32. package/dist/families.d.ts +24 -26
  33. package/dist/families.d.ts.map +1 -1
  34. package/dist/families.js +3 -4
  35. package/dist/{fit-Cb7naFj6.js → fit-Bpmzep6O.js} +64 -56
  36. package/dist/fit-Bpmzep6O.js.map +1 -0
  37. package/dist/{font-metrics-v5fn7s7e.d.ts → font-metrics-DTppw4t3.d.ts} +62 -38
  38. package/dist/font-metrics-DTppw4t3.d.ts.map +1 -0
  39. package/dist/{grid-DikTjFey.js → grid-DUIMxjfl.js} +23 -26
  40. package/dist/grid-DUIMxjfl.js.map +1 -0
  41. package/dist/{html-dom-Iuog2wdK.js → html-dom-LZCgntnJ.js} +46 -47
  42. package/dist/html-dom-LZCgntnJ.js.map +1 -0
  43. package/dist/html.d.ts +53 -9
  44. package/dist/html.d.ts.map +1 -1
  45. package/dist/html.js +12 -13
  46. package/dist/html.js.map +1 -1
  47. package/dist/index.d.ts +21 -13
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +15 -15
  50. package/dist/index.js.map +1 -1
  51. package/dist/inspect.d.ts +16 -18
  52. package/dist/inspect.d.ts.map +1 -1
  53. package/dist/inspect.js +18 -19
  54. package/dist/inspect.js.map +1 -1
  55. package/dist/{text-anchor-CrYXAfUu.js → lock-attrs-CSQnFDHP.js} +62 -12
  56. package/dist/lock-attrs-CSQnFDHP.js.map +1 -0
  57. package/dist/math.d.ts +2 -4
  58. package/dist/math.d.ts.map +1 -1
  59. package/dist/math.js +12 -13
  60. package/dist/math.js.map +1 -1
  61. package/dist/measure.d.ts +23 -12
  62. package/dist/measure.d.ts.map +1 -1
  63. package/dist/measure.js +3 -3
  64. package/dist/node.d.ts +21 -13
  65. package/dist/node.d.ts.map +1 -1
  66. package/dist/node.js +12 -12
  67. package/dist/node.js.map +1 -1
  68. package/dist/{options-internal-WqgMf720.js → options-internal-BWgmLPdx.js} +4 -5
  69. package/dist/options-internal-BWgmLPdx.js.map +1 -0
  70. package/dist/{package-J49Ck6S2.d.ts → package-CANBWuSm.d.ts} +9 -13
  71. package/dist/package-CANBWuSm.d.ts.map +1 -0
  72. package/dist/{playbtn-CUqQdoDf.js → playbtn-BQZFJir9.js} +4 -5
  73. package/dist/playbtn-BQZFJir9.js.map +1 -0
  74. package/dist/{pres-C6qgOFAa.d.ts → pres-BkEkUAEM.d.ts} +410 -237
  75. package/dist/pres-BkEkUAEM.d.ts.map +1 -0
  76. package/dist/{presentation-DGYlAWhl.js → presentation-4Ggq0_Xa.js} +470 -315
  77. package/dist/presentation-4Ggq0_Xa.js.map +1 -0
  78. package/dist/{presentation-types-8jLQHI4M.d.ts → presentation-types-BgnZR-0a.d.ts} +1119 -468
  79. package/dist/presentation-types-BgnZR-0a.d.ts.map +1 -0
  80. package/dist/read.d.ts +18 -13
  81. package/dist/read.d.ts.map +1 -1
  82. package/dist/read.js +4 -4
  83. package/dist/script.d.ts +116 -65
  84. package/dist/script.d.ts.map +1 -1
  85. package/dist/script.js +2700 -780
  86. package/dist/script.js.map +1 -1
  87. package/dist/{shapes-re0KyQk_.js → shapes-CAPOjU0Q.js} +1564 -491
  88. package/dist/shapes-CAPOjU0Q.js.map +1 -0
  89. package/dist/{slide-Dx2ZeVZ6.d.ts → slide-BmT4kMoO.d.ts} +102 -89
  90. package/dist/slide-BmT4kMoO.d.ts.map +1 -0
  91. package/dist/{slide-size-BalTjFuv.js → slide-size-SkScz1ig.js} +2 -3
  92. package/dist/{slide-size-BalTjFuv.js.map → slide-size-SkScz1ig.js.map} +1 -1
  93. package/dist/{table-dom-BTDP3lEP.js → table-dom-BYga4FYY.js} +4 -5
  94. package/dist/{table-dom-BTDP3lEP.js.map → table-dom-BYga4FYY.js.map} +1 -1
  95. package/dist/{text-sN64Otf_.js → text-CU08xJGs.js} +393 -344
  96. package/dist/text-CU08xJGs.js.map +1 -0
  97. package/dist/{transition-speed-kUEWDWTx.js → transition-speed-CNJ0fSpQ.js} +2 -3
  98. package/dist/{transition-speed-kUEWDWTx.js.map → transition-speed-CNJ0fSpQ.js.map} +1 -1
  99. package/dist/{units-internal-XJlf-hOl.js → units-internal-BR3a4cIi.js} +34 -32
  100. package/dist/units-internal-BR3a4cIi.js.map +1 -0
  101. package/dist/{zip-CKd8ihcf.js → zip-7JTh61LX.js} +8 -10
  102. package/dist/zip-7JTh61LX.js.map +1 -0
  103. package/dist/{zip-C0leZZMj.d.ts → zip-uUjs9Cqx.d.ts} +4 -6
  104. package/dist/zip-uUjs9Cqx.d.ts.map +1 -0
  105. package/dist/zip.d.ts +3 -3
  106. package/dist/zip.js +3 -3
  107. package/dist/{zoom-DPUHh85d.js → zoom-CSSeOwM8.js} +1204 -620
  108. package/dist/zoom-CSSeOwM8.js.map +1 -0
  109. package/package.json +27 -28
  110. package/skills/{ts-pptx-upstream → pptx-ts-upstream}/SKILL.md +37 -84
  111. package/dist/autopage-odPz7zZO.js.map +0 -1
  112. package/dist/binary-string-CKVAYI3M.js.map +0 -1
  113. package/dist/body-insets-Dw_BeWD_.js.map +0 -1
  114. package/dist/clip-Bl01BPcN.d.ts.map +0 -1
  115. package/dist/diagnostics-D8ot4Ei7.d.ts.map +0 -1
  116. package/dist/embedded-fonts-DarT9aoa.d.ts.map +0 -1
  117. package/dist/entry-compose-DCnvBZz2.d.ts.map +0 -1
  118. package/dist/errors-C4oENPcu.js.map +0 -1
  119. package/dist/fit-Cb7naFj6.js.map +0 -1
  120. package/dist/font-metrics-v5fn7s7e.d.ts.map +0 -1
  121. package/dist/grid-DikTjFey.js.map +0 -1
  122. package/dist/html-dom-Iuog2wdK.js.map +0 -1
  123. package/dist/image-size-CvN2iCA4.js.map +0 -1
  124. package/dist/notes-Dh12JAbn.js.map +0 -1
  125. package/dist/options-internal-WqgMf720.js.map +0 -1
  126. package/dist/package-J49Ck6S2.d.ts.map +0 -1
  127. package/dist/playbtn-CUqQdoDf.js.map +0 -1
  128. package/dist/pres-C6qgOFAa.d.ts.map +0 -1
  129. package/dist/presentation-DGYlAWhl.js.map +0 -1
  130. package/dist/presentation-types-8jLQHI4M.d.ts.map +0 -1
  131. package/dist/shapes-re0KyQk_.js.map +0 -1
  132. package/dist/slide-Dx2ZeVZ6.d.ts.map +0 -1
  133. package/dist/table-cell-margins-EVg0EwxT.js.map +0 -1
  134. package/dist/text-anchor-CrYXAfUu.js.map +0 -1
  135. package/dist/text-sN64Otf_.js.map +0 -1
  136. package/dist/units-internal-XJlf-hOl.js.map +0 -1
  137. package/dist/zip-C0leZZMj.d.ts.map +0 -1
  138. package/dist/zip-CKd8ihcf.js.map +0 -1
  139. package/dist/zoom-DPUHh85d.js.map +0 -1
@@ -1,4 +1,4 @@
1
- //#region src/ooxml/slide-size.ts
1
+ // src/ooxml/slide-size.ts
2
2
  /**
3
3
  * The slide size a presentation has when `presentation.xml` declares none.
4
4
  *
@@ -82,7 +82,6 @@ function presentationFormatLabel(widthEmu, heightEmu) {
82
82
  function slideSizeType(widthEmu, heightEmu) {
83
83
  return standardSlideSize(widthEmu, heightEmu)?.type;
84
84
  }
85
- //#endregion
86
85
  export { presentationFormatLabel as n, slideSizeType as r, ABSENT_SLIDE_SIZE_EMU as t };
87
86
 
88
- //# sourceMappingURL=slide-size-BalTjFuv.js.map
87
+ //# sourceMappingURL=slide-size-SkScz1ig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slide-size-BalTjFuv.js","names":[],"sources":["../src/ooxml/slide-size.ts"],"sourcesContent":["/**\n * The slide size a presentation has when `presentation.xml` declares none.\n *\n * `p:sldSz` is optional in `CT_Presentation` (`minOccurs=\"0\"`), and the schema says nothing about\n * what its absence means: `cx` and `cy` are required only when the element is there. So the answer\n * is PowerPoint's. A deck with `p:sldSz` removed opens at 720 × 540 pt, the 10in × 7.5in on-screen\n * 4:3 size (`ppSlideSizeOnScreen`), measured over COM against a control copy that kept its\n * 960 × 540 pt declaration. That is `LAYOUT_4x3`, not the write path's `LAYOUT_16x9` default and\n * not `LAYOUT_WIDE`.\n *\n * Anything that has to name a size for such a deck takes this one. The script converter and\n * `inspect` each had their own, and they disagreed.\n */\nexport const ABSENT_SLIDE_SIZE_EMU: Readonly<{ widthEmu: number; heightEmu: number }> = Object.freeze({\n\twidthEmu: 9144000,\n\theightEmu: 6858000,\n})\n\n/** The `ST_SlideSizeType` values a written deck can carry; `custom` is the schema default. */\nexport type SlideSizeType = 'screen4x3' | 'screen16x9' | 'screen16x10'\n\n/**\n * The standard slide sizes, each with the label PowerPoint shows for it, as `docProps/app.xml`'s\n * `<PresentationFormat>` spells it, and the `p:sldSz/@type` PowerPoint writes for it.\n *\n * The labels are PowerPoint's own, read back from decks it re-saved, and three of them follow\n * `@type` rather than the dimensions: a deck re-saved from `type=\"screen16x9\"` comes back\n * `On-screen Show (16:9)`, while the same dimensions set through `PageSetup`, which writes no type,\n * come back `Custom`. `LAYOUT_WIDE`'s 13.333in × 7.5in is recognised as `Widescreen` from its\n * dimensions alone, and PowerPoint writes it with no `type` at all. Anything else is `Custom`.\n *\n * One table for both, so the label `app.xml` states and the type `presentation.xml` declares\n * cannot disagree about a deck.\n *\n * Matched on exact EMU rather than on aspect ratio: the ratio of 10in × 7.5in and of\n * 13.333in × 10in is the same, and PowerPoint labels only the first of them 4:3.\n */\nconst STANDARD_SLIDE_SIZES: ReadonlyArray<\n\tReadonly<{ cx: number; cy: number; label: string; type: SlideSizeType | undefined }>\n> = Object.freeze([\n\t{ cx: 9144000, cy: 6858000, label: 'On-screen Show (4:3)', type: 'screen4x3' },\n\t{ cx: 9144000, cy: 5143500, label: 'On-screen Show (16:9)', type: 'screen16x9' },\n\t{ cx: 9144000, cy: 5715000, label: 'On-screen Show (16:10)', type: 'screen16x10' },\n\t{ cx: 12192000, cy: 6858000, label: 'Widescreen', type: undefined },\n])\n\nfunction standardSlideSize(widthEmu: number, heightEmu: number) {\n\treturn STANDARD_SLIDE_SIZES.find(({ cx, cy }) => cx === widthEmu && cy === heightEmu)\n}\n\n/**\n * `<PresentationFormat>` for a deck of this size, or `Custom` for one that matches no standard\n * size. `app.xml` used to say `On-screen Show (16:9)` whatever the deck.\n * @param widthEmu - the deck's slide width in EMU\n * @param heightEmu - the deck's slide height in EMU\n */\nexport function presentationFormatLabel(widthEmu: number, heightEmu: number): string {\n\treturn standardSlideSize(widthEmu, heightEmu)?.label ?? 'Custom'\n}\n\n/**\n * `p:sldSz/@type` for a deck of this size, or `undefined` where PowerPoint writes none: at the\n * widescreen size, and at any size that is not standard.\n *\n * Taken from the dimensions, not from the layout's name, so a `defineLayout` at exactly\n * 10in × 5.625in is typed as the on-screen 16:9 size it is, as its `app.xml` label already says.\n * @param widthEmu - the deck's slide width in EMU\n * @param heightEmu - the deck's slide height in EMU\n */\nexport function slideSizeType(widthEmu: number, heightEmu: number): SlideSizeType | undefined {\n\treturn standardSlideSize(widthEmu, heightEmu)?.type\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,wBAA2E,OAAO,OAAO;CACrG,UAAU;CACV,WAAW;AACZ,CAAC;;;;;;;;;;;;;;;;;AAqBD,MAAM,uBAEF,OAAO,OAAO;CACjB;EAAE,IAAI;EAAS,IAAI;EAAS,OAAO;EAAwB,MAAM;CAAY;CAC7E;EAAE,IAAI;EAAS,IAAI;EAAS,OAAO;EAAyB,MAAM;CAAa;CAC/E;EAAE,IAAI;EAAS,IAAI;EAAS,OAAO;EAA0B,MAAM;CAAc;CACjF;EAAE,IAAI;EAAU,IAAI;EAAS,OAAO;EAAc,MAAM,KAAA;CAAU;AACnE,CAAC;AAED,SAAS,kBAAkB,UAAkB,WAAmB;CAC/D,OAAO,qBAAqB,MAAM,EAAE,IAAI,SAAS,OAAO,YAAY,OAAO,SAAS;AACrF;;;;;;;AAQA,SAAgB,wBAAwB,UAAkB,WAA2B;CACpF,OAAO,kBAAkB,UAAU,SAAS,CAAC,EAAE,SAAS;AACzD;;;;;;;;;;AAWA,SAAgB,cAAc,UAAkB,WAA8C;CAC7F,OAAO,kBAAkB,UAAU,SAAS,CAAC,EAAE;AAChD"}
1
+ {"version":3,"file":"slide-size-SkScz1ig.js","names":[],"sources":["../src/ooxml/slide-size.ts"],"sourcesContent":["/**\n * The slide size a presentation has when `presentation.xml` declares none.\n *\n * `p:sldSz` is optional in `CT_Presentation` (`minOccurs=\"0\"`), and the schema says nothing about\n * what its absence means: `cx` and `cy` are required only when the element is there. So the answer\n * is PowerPoint's. A deck with `p:sldSz` removed opens at 720 × 540 pt, the 10in × 7.5in on-screen\n * 4:3 size (`ppSlideSizeOnScreen`), measured over COM against a control copy that kept its\n * 960 × 540 pt declaration. That is `LAYOUT_4x3`, not the write path's `LAYOUT_16x9` default and\n * not `LAYOUT_WIDE`.\n *\n * Anything that has to name a size for such a deck takes this one. The script converter and\n * `inspect` each had their own, and they disagreed.\n */\nexport const ABSENT_SLIDE_SIZE_EMU: Readonly<{ widthEmu: number; heightEmu: number }> = Object.freeze({\n\twidthEmu: 9144000,\n\theightEmu: 6858000,\n})\n\n/** The `ST_SlideSizeType` values a written deck can carry; `custom` is the schema default. */\nexport type SlideSizeType = 'screen4x3' | 'screen16x9' | 'screen16x10'\n\n/**\n * The standard slide sizes, each with the label PowerPoint shows for it, as `docProps/app.xml`'s\n * `<PresentationFormat>` spells it, and the `p:sldSz/@type` PowerPoint writes for it.\n *\n * The labels are PowerPoint's own, read back from decks it re-saved, and three of them follow\n * `@type` rather than the dimensions: a deck re-saved from `type=\"screen16x9\"` comes back\n * `On-screen Show (16:9)`, while the same dimensions set through `PageSetup`, which writes no type,\n * come back `Custom`. `LAYOUT_WIDE`'s 13.333in × 7.5in is recognised as `Widescreen` from its\n * dimensions alone, and PowerPoint writes it with no `type` at all. Anything else is `Custom`.\n *\n * One table for both, so the label `app.xml` states and the type `presentation.xml` declares\n * cannot disagree about a deck.\n *\n * Matched on exact EMU rather than on aspect ratio: the ratio of 10in × 7.5in and of\n * 13.333in × 10in is the same, and PowerPoint labels only the first of them 4:3.\n */\nconst STANDARD_SLIDE_SIZES: ReadonlyArray<\n\tReadonly<{ cx: number; cy: number; label: string; type: SlideSizeType | undefined }>\n> = Object.freeze([\n\t{ cx: 9144000, cy: 6858000, label: 'On-screen Show (4:3)', type: 'screen4x3' },\n\t{ cx: 9144000, cy: 5143500, label: 'On-screen Show (16:9)', type: 'screen16x9' },\n\t{ cx: 9144000, cy: 5715000, label: 'On-screen Show (16:10)', type: 'screen16x10' },\n\t{ cx: 12192000, cy: 6858000, label: 'Widescreen', type: undefined },\n])\n\nfunction standardSlideSize(widthEmu: number, heightEmu: number) {\n\treturn STANDARD_SLIDE_SIZES.find(({ cx, cy }) => cx === widthEmu && cy === heightEmu)\n}\n\n/**\n * `<PresentationFormat>` for a deck of this size, or `Custom` for one that matches no standard\n * size. `app.xml` used to say `On-screen Show (16:9)` whatever the deck.\n * @param widthEmu - the deck's slide width in EMU\n * @param heightEmu - the deck's slide height in EMU\n */\nexport function presentationFormatLabel(widthEmu: number, heightEmu: number): string {\n\treturn standardSlideSize(widthEmu, heightEmu)?.label ?? 'Custom'\n}\n\n/**\n * `p:sldSz/@type` for a deck of this size, or `undefined` where PowerPoint writes none: at the\n * widescreen size, and at any size that is not standard.\n *\n * Taken from the dimensions, not from the layout's name, so a `defineLayout` at exactly\n * 10in × 5.625in is typed as the on-screen 16:9 size it is, as its `app.xml` label already says.\n * @param widthEmu - the deck's slide width in EMU\n * @param heightEmu - the deck's slide height in EMU\n */\nexport function slideSizeType(widthEmu: number, heightEmu: number): SlideSizeType | undefined {\n\treturn standardSlideSize(widthEmu, heightEmu)?.type\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,wBAA2E,OAAO,OAAO;CACrG,UAAU;CACV,WAAW;AACZ,CAAC;;;;;;;;;;;;;;;;;AAqBD,MAAM,uBAEF,OAAO,OAAO;CACjB;EAAE,IAAI;EAAS,IAAI;EAAS,OAAO;EAAwB,MAAM;CAAY;CAC7E;EAAE,IAAI;EAAS,IAAI;EAAS,OAAO;EAAyB,MAAM;CAAa;CAC/E;EAAE,IAAI;EAAS,IAAI;EAAS,OAAO;EAA0B,MAAM;CAAc;CACjF;EAAE,IAAI;EAAU,IAAI;EAAS,OAAO;EAAc,MAAM,KAAA;CAAU;AACnE,CAAC;AAED,SAAS,kBAAkB,UAAkB,WAAmB;CAC/D,OAAO,qBAAqB,MAAM,EAAE,IAAI,SAAS,OAAO,YAAY,OAAO,SAAS;AACrF;;;;;;;AAQA,SAAgB,wBAAwB,UAAkB,WAA2B;CACpF,OAAO,kBAAkB,UAAU,SAAS,CAAC,EAAE,SAAS;AACzD;;;;;;;;;;AAWA,SAAgB,cAAc,UAAkB,WAA8C;CAC7F,OAAO,kBAAkB,UAAU,SAAS,CAAC,EAAE;AAChD"}
@@ -1,7 +1,7 @@
1
- import { t as genTableToSlides } from "./html-dom-Iuog2wdK.js";
2
- //#region src/families/table-dom.ts
1
+ import { t as genTableToSlides } from "./html-dom-LZCgntnJ.js";
2
+ // src/families/table-dom.ts
3
3
  /**
4
- * ts-pptx: the table family's live-DOM half
4
+ * pptx-ts: the table family's live-DOM half
5
5
  *
6
6
  * `tableToSlides` reproduces a rendered HTML `<table>` as a PowerPoint table, resolving the element
7
7
  * id against the global `document`. It is the table family's, but it is composed separately because
@@ -15,7 +15,6 @@ const tableDomFamily = {
15
15
  genTableToSlides(ctx.pres, eleId, options);
16
16
  } }
17
17
  };
18
- //#endregion
19
18
  export { tableDomFamily as t };
20
19
 
21
- //# sourceMappingURL=table-dom-BTDP3lEP.js.map
20
+ //# sourceMappingURL=table-dom-BYga4FYY.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-dom-BTDP3lEP.js","names":[],"sources":["../src/families/table-dom.ts"],"sourcesContent":["/**\n * ts-pptx: the table family's live-DOM half\n *\n * `tableToSlides` reproduces a rendered HTML `<table>` as a PowerPoint table, resolving the element\n * id against the global `document`. It is the table family's, but it is composed separately because\n * it is the browser entry's alone: wiring it into `families/table.ts` would put `gen/table/html-dom.ts`\n * in the graph of every Node program that draws a table, and wiring it into the entry directly would\n * make it the one thing a browser tier could not drop.\n */\n\nimport { genTableToSlides } from '../gen/table/html-dom.js'\nimport type { ConstructFamily } from './shared.js'\n\nexport const tableDomFamily = {\n\tname: 'table',\n\tpresentationAuthors: {\n\t\ttableToSlides(ctx, eleId, options) {\n\t\t\t// @note `options.verbose` (a documented dev-only flag on TableToSlidesProps) is read\n\t\t\t// inside genTableToSlides to trace the auto-paging layout process.\n\t\t\tgenTableToSlides(ctx.pres, eleId, options)\n\t\t},\n\t},\n} satisfies ConstructFamily\n"],"mappings":";;;;;;;;;;;AAaA,MAAa,iBAAiB;CAC7B,MAAM;CACN,qBAAqB,EACpB,cAAc,KAAK,OAAO,SAAS;EAGlC,iBAAiB,IAAI,MAAM,OAAO,OAAO;CAC1C,EACD;AACD"}
1
+ {"version":3,"file":"table-dom-BYga4FYY.js","names":[],"sources":["../src/families/table-dom.ts"],"sourcesContent":["/**\n * pptx-ts: the table family's live-DOM half\n *\n * `tableToSlides` reproduces a rendered HTML `<table>` as a PowerPoint table, resolving the element\n * id against the global `document`. It is the table family's, but it is composed separately because\n * it is the browser entry's alone: wiring it into `families/table.ts` would put `gen/table/html-dom.ts`\n * in the graph of every Node program that draws a table, and wiring it into the entry directly would\n * make it the one thing a browser tier could not drop.\n */\n\nimport { genTableToSlides } from '../gen/table/html-dom.js'\nimport type { ConstructFamily } from './shared.js'\n\nexport const tableDomFamily = {\n\tname: 'table',\n\tpresentationAuthors: {\n\t\ttableToSlides(ctx, eleId, options) {\n\t\t\t// @note `options.verbose` (a documented dev-only flag on TableToSlidesProps) is read\n\t\t\t// inside genTableToSlides to trace the auto-paging layout process.\n\t\t\tgenTableToSlides(ctx.pres, eleId, options)\n\t\t},\n\t},\n} satisfies ConstructFamily\n"],"mappings":";;;;;;;;;;;AAaA,MAAa,iBAAiB;CAC7B,MAAM;CACN,qBAAqB,EACpB,cAAc,KAAK,OAAO,SAAS;EAGlC,iBAAiB,IAAI,MAAM,OAAO,OAAO;CAC1C,EACD;AACD"}