pptx-ts 4.0.0 → 4.1.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 (95) hide show
  1. package/README.md +147 -114
  2. package/dist/{autopage-odPz7zZO.js → autopage-D4kyVp11.js} +5 -5
  3. package/dist/{autopage-odPz7zZO.js.map → autopage-D4kyVp11.js.map} +1 -1
  4. package/dist/{body-insets-Dw_BeWD_.js → body-insets-kVHmjGc6.js} +2 -2
  5. package/dist/{body-insets-Dw_BeWD_.js.map → body-insets-kVHmjGc6.js.map} +1 -1
  6. package/dist/browser.d.ts +7 -7
  7. package/dist/browser.js +5 -5
  8. package/dist/{clip-Bl01BPcN.d.ts → clip-DHDlnHUq.d.ts} +2 -2
  9. package/dist/{clip-Bl01BPcN.d.ts.map → clip-DHDlnHUq.d.ts.map} +1 -1
  10. package/dist/{diagnostics-D8ot4Ei7.d.ts → diagnostics-DiMmBU8P.d.ts} +6 -6
  11. package/dist/{diagnostics-D8ot4Ei7.d.ts.map → diagnostics-DiMmBU8P.d.ts.map} +1 -1
  12. package/dist/{embedded-fonts-DarT9aoa.d.ts → embedded-fonts-CI_YGW2d.d.ts} +2 -2
  13. package/dist/{embedded-fonts-DarT9aoa.d.ts.map → embedded-fonts-CI_YGW2d.d.ts.map} +1 -1
  14. package/dist/{entry-compose-DCnvBZz2.d.ts → entry-compose-6hF9aTmT.d.ts} +19 -17
  15. package/dist/{entry-compose-DCnvBZz2.d.ts.map → entry-compose-6hF9aTmT.d.ts.map} +1 -1
  16. package/dist/{enums-BUKTUB6V.d.ts → enums-DQRpVOLh.d.ts} +3 -3
  17. package/dist/{enums-BUKTUB6V.d.ts.map → enums-DQRpVOLh.d.ts.map} +1 -1
  18. package/dist/{errors-C4oENPcu.js → errors-Da2nXCJm.js} +6 -6
  19. package/dist/{errors-C4oENPcu.js.map → errors-Da2nXCJm.js.map} +1 -1
  20. package/dist/families.d.ts +6 -6
  21. package/dist/families.js +2 -2
  22. package/dist/{fit-Cb7naFj6.js → fit-CcXbg__l.js} +10 -10
  23. package/dist/{fit-Cb7naFj6.js.map → fit-CcXbg__l.js.map} +1 -1
  24. package/dist/{font-metrics-v5fn7s7e.d.ts → font-metrics-CBGmhLo0.d.ts} +6 -6
  25. package/dist/{font-metrics-v5fn7s7e.d.ts.map → font-metrics-CBGmhLo0.d.ts.map} +1 -1
  26. package/dist/{grid-DikTjFey.js → grid-9B2w5EaY.js} +2 -2
  27. package/dist/{grid-DikTjFey.js.map → grid-9B2w5EaY.js.map} +1 -1
  28. package/dist/{html-dom-Iuog2wdK.js → html-dom-DvJmuHt2.js} +10 -10
  29. package/dist/html-dom-DvJmuHt2.js.map +1 -0
  30. package/dist/html.d.ts +3 -3
  31. package/dist/html.js +2 -2
  32. package/dist/{image-size-CvN2iCA4.js → image-size-DwDbakcl.js} +64 -5
  33. package/dist/image-size-DwDbakcl.js.map +1 -0
  34. package/dist/index.d.ts +7 -7
  35. package/dist/index.js +3 -3
  36. package/dist/inspect.d.ts +4 -4
  37. package/dist/inspect.js +4 -4
  38. package/dist/inspect.js.map +1 -1
  39. package/dist/math.d.ts +1 -1
  40. package/dist/math.js +1 -1
  41. package/dist/measure.d.ts +3 -3
  42. package/dist/measure.js +2 -2
  43. package/dist/node.d.ts +7 -7
  44. package/dist/node.js +3 -3
  45. package/dist/{notes-Dh12JAbn.js → notes-BcT571R4.js} +19 -18
  46. package/dist/notes-BcT571R4.js.map +1 -0
  47. package/dist/options-internal-WqgMf720.js.map +1 -1
  48. package/dist/{package-J49Ck6S2.d.ts → package-KoEgVwII.d.ts} +6 -2
  49. package/dist/{package-J49Ck6S2.d.ts.map → package-KoEgVwII.d.ts.map} +1 -1
  50. package/dist/{pres-C6qgOFAa.d.ts → pres-BA9_lJbY.d.ts} +32 -12
  51. package/dist/pres-BA9_lJbY.d.ts.map +1 -0
  52. package/dist/{presentation-DGYlAWhl.js → presentation-Cyl74rq2.js} +70 -35
  53. package/dist/presentation-Cyl74rq2.js.map +1 -0
  54. package/dist/{presentation-types-8jLQHI4M.d.ts → presentation-types-B3VQH4Bz.d.ts} +19 -15
  55. package/dist/presentation-types-B3VQH4Bz.d.ts.map +1 -0
  56. package/dist/read.d.ts +6 -6
  57. package/dist/read.js +3 -3
  58. package/dist/script.d.ts +2 -2
  59. package/dist/script.d.ts.map +1 -1
  60. package/dist/script.js +11 -11
  61. package/dist/script.js.map +1 -1
  62. package/dist/{shapes-re0KyQk_.js → shapes-BcyFdZpp.js} +14 -10
  63. package/dist/shapes-BcyFdZpp.js.map +1 -0
  64. package/dist/{slide-Dx2ZeVZ6.d.ts → slide-BqPtyKmb.d.ts} +12 -7
  65. package/dist/slide-BqPtyKmb.d.ts.map +1 -0
  66. package/dist/{table-cell-margins-EVg0EwxT.js → table-cell-margins-PDshga8T.js} +4 -4
  67. package/dist/{table-cell-margins-EVg0EwxT.js.map → table-cell-margins-PDshga8T.js.map} +1 -1
  68. package/dist/{table-dom-BTDP3lEP.js → table-dom-CVbvUfgh.js} +3 -3
  69. package/dist/{table-dom-BTDP3lEP.js.map → table-dom-CVbvUfgh.js.map} +1 -1
  70. package/dist/{text-KnLOtEEu.js → text-BvFFMMFQ.js} +38 -36
  71. package/dist/{text-KnLOtEEu.js.map → text-BvFFMMFQ.js.map} +1 -1
  72. package/dist/{text-anchor-CrYXAfUu.js → text-anchor-BgLPbwbL.js} +2 -2
  73. package/dist/{text-anchor-CrYXAfUu.js.map → text-anchor-BgLPbwbL.js.map} +1 -1
  74. package/dist/{units-internal-XJlf-hOl.js → units-internal-DFcUYjh3.js} +11 -6
  75. package/dist/units-internal-DFcUYjh3.js.map +1 -0
  76. package/dist/{zip-C0leZZMj.d.ts → zip-CTll_dr0.d.ts} +2 -2
  77. package/dist/{zip-C0leZZMj.d.ts.map → zip-CTll_dr0.d.ts.map} +1 -1
  78. package/dist/{zip-CKd8ihcf.js → zip-CYZ0F6BV.js} +2 -2
  79. package/dist/{zip-CKd8ihcf.js.map → zip-CYZ0F6BV.js.map} +1 -1
  80. package/dist/zip.d.ts +2 -2
  81. package/dist/zip.js +2 -2
  82. package/dist/{zoom-cX9sllpH.js → zoom-BoNyOlPm.js} +66 -52
  83. package/dist/zoom-BoNyOlPm.js.map +1 -0
  84. package/package.json +39 -31
  85. package/skills/ts-pptx-upstream/SKILL.md +18 -18
  86. package/dist/html-dom-Iuog2wdK.js.map +0 -1
  87. package/dist/image-size-CvN2iCA4.js.map +0 -1
  88. package/dist/notes-Dh12JAbn.js.map +0 -1
  89. package/dist/pres-C6qgOFAa.d.ts.map +0 -1
  90. package/dist/presentation-DGYlAWhl.js.map +0 -1
  91. package/dist/presentation-types-8jLQHI4M.d.ts.map +0 -1
  92. package/dist/shapes-re0KyQk_.js.map +0 -1
  93. package/dist/slide-Dx2ZeVZ6.d.ts.map +0 -1
  94. package/dist/units-internal-XJlf-hOl.js.map +0 -1
  95. package/dist/zoom-cX9sllpH.js.map +0 -1
@@ -1,18 +1,18 @@
1
- import { l as warn, n as InvalidOptionError, r as MediaError, t as InternalError, u as warnOnce } from "./errors-C4oENPcu.js";
2
- import { F as DEF_PRES_LAYOUT_NAME, J as SLDNUM_PLACEHOLDER_TEXT, P as DEF_PRES_LAYOUT, R as DEF_SLIDE_MARGIN_IN, U as LEVEL_MARGINS_EMU, V as LAYOUT_IDX_SERIES_BASE, X as MIN_SLIDE_MASTER_ID, a as convertRotationDegrees, n as clampRangedInput, q as SLDNUMFLDID, s as getSmartParseNumber, u as mapStated, v as resolveInsetsEmu } from "./units-internal-XJlf-hOl.js";
3
- import { A as inchesToEmu, D as emuToInches, F as EMU_PER_INCH, T as STANDARD_LAYOUTS } from "./table-cell-margins-EVg0EwxT.js";
4
- import { $t as THEME_REL, Bt as PRES_PROPS_CONTENT_TYPE, Dt as MS_MEDIA_REL, E as EMBEDDED_FONT_SLOTS, Ft as OFFICE_DOCUMENT_REL, Gt as SLIDE_LAYOUT_CONTENT_TYPE, Ht as RELATIONSHIPS_CONTENT_TYPE, Jt as SLIDE_MASTER_REL, Kt as SLIDE_LAYOUT_REL, Nt as NOTES_SLIDE_REL, Qt as THEME_CONTENT_TYPE, Vt as PRES_PROPS_REL, Wt as SLIDE_CONTENT_TYPE, Xt as TABLE_STYLES_CONTENT_TYPE, Yt as SLIDE_REL, Zt as TABLE_STYLES_REL, _t as CORE_PROPS_REL, a as textAlignToken, an as PML_ROOT_NS, at as CHARTEX_REL, bt as EXTENDED_PROPS_CONTENT_TYPE, c as checkEnumOrThrow, cn as decodeBase64ToBytes, d as xsdBool, dn as toMediaDataUri, en as VIDEO_REL, f as xsdBoolIfTrue, gt as CORE_PROPS_CONTENT_TYPE, h as stripHash, ht as COMMENT_AUTHORS_REL, in as OOXML_NS, jt as NOTES_MASTER_REL, l as checkEnumOrWarn, lt as CHART_REL, nn as VIEW_PROPS_REL, nt as TRANSITION_VARIANT_ATTRIBUTES, p as isHexColor, pt as COMMENTS_REL, qt as SLIDE_MASTER_CONTENT_TYPE, rt as AUDIO_REL, sn as bytesToBase64, tn as VIEW_PROPS_CONTENT_TYPE, tt as TRANSITION_TYPES, vt as CUSTOM_PROPS_CONTENT_TYPE, w as DEFAULT_COLOR_MAP, wt as IMAGE_REL, xt as EXTENDED_PROPS_REL, yt as CUSTOM_PROPS_REL, zt as PRESENTATION_MAIN_CONTENT_TYPE } from "./image-size-CvN2iCA4.js";
5
- import { a as avContentType, i as audioExtensionForSubtype, o as dataUriMediaType, s as imageContentType } from "./text-anchor-CrYXAfUu.js";
6
- import { At as getDuplicateObjectNames, C as targetBetweenPptSubparts, Ct as FONT_DATA_CONTENT_TYPE, D as cNvPrEl, Dt as serializeEmbeddedFontLst, Et as flattenEmbeddedFaces, G as clampParaMarginInchesEmu, It as preencodedPath, K as buAutoNumEl, N as spTreeEl, Nt as isHyperlinkRel, Ot as XML_DECL, Pt as isPreencodedPath, R as prstGeomRect, Rt as encodeXmlAttrValue, S as slidePath, St as voidEl, T as targetFromPresentation, Tt as FONT_REL_TYPE, U as clampFontSizeSz, W as clampParaIndentInchesEmu, _ as fontPath, at as fillNamesPaint, b as relsPath, bt as elOrVoid, c as themeFontDefRPr, f as relationshipsPart, g as commentPath, h as SLIDE_MASTER_PATH, ht as createColorElement, i as makeXmlNotesSlide, j as grpXfrmEl, jt as getNewRelId, kt as bracedGuid, l as externalHyperlinkRel, m as PRESENTATION_PATH, n as makeXmlNotesMaster, ot as genXmlColorSelection, p as NOTES_MASTER_PATH, q as buCharEl, s as lvlPPr, t as buildNotesSlideRels, u as relationshipEl, ut as STRETCH_FILL_RECT, v as notesSlidePath, vt as rejectEmptyColor, w as targetFromPptSubpart, wt as FONT_DATA_EXTENSION, x as slideLayoutPath, xt as raw, y as overrideName, yt as el } from "./notes-Dh12JAbn.js";
7
- import { A as renderedSlideObjects, B as pushMediaRel, C as msMediaRid, D as findLayoutPlaceholder, E as placeholderOptionsForSlide, F as warnUnauthoredChild, I as SLIDE_METHOD_FAMILIES, L as composeFamilies, M as shapeIdCount, N as addChildDefinition, O as resolveTextAnchor, P as isGroupableObject, R as familyMethodUnavailable, S as alternateContentEl, T as addTextDefinition, V as resolveImageSource, _ as chartPartNames, a as mediaFamily, b as GROUP_SHAPE_LOCK_ATTRS, c as commentsFamily, d as textFamily, f as shapeFamily, g as makeXmlCore, h as groupFamily, i as model3dFamily, j as resolveObjectNameToId, k as collectSlideShapeIds, l as chartFamily, m as imageFamily, n as tableFamily, o as measureFamily, p as notesFamily, r as oleFamily, s as connectorFamily, t as zoomFamily, u as animationsFamily, v as FMT_SCHEME_XML, w as previewRid, x as genXmlObjectLock, y as resolveImageExtent, z as requirePresentationAuthor } from "./zoom-cX9sllpH.js";
1
+ import { l as warn, n as InvalidOptionError, r as MediaError, t as InternalError, u as warnOnce } from "./errors-Da2nXCJm.js";
2
+ import { F as DEF_PRES_LAYOUT_NAME, J as SLDNUM_PLACEHOLDER_TEXT, P as DEF_PRES_LAYOUT, R as DEF_SLIDE_MARGIN_IN, U as LEVEL_MARGINS_EMU, V as LAYOUT_IDX_SERIES_BASE, X as MIN_SLIDE_MASTER_ID, a as convertRotationDegrees, n as clampRangedInput, q as SLDNUMFLDID, s as getSmartParseNumber, u as mapStated, v as resolveInsetsEmu } from "./units-internal-DFcUYjh3.js";
3
+ import { A as inchesToEmu, D as emuToInches, F as EMU_PER_INCH, T as STANDARD_LAYOUTS } from "./table-cell-margins-PDshga8T.js";
4
+ import { $t as THEME_CONTENT_TYPE, Bt as PRESENTATION_MAIN_CONTENT_TYPE, E as EMBEDDED_FONT_SLOTS, Gt as SLIDE_CONTENT_TYPE, Ht as PRES_PROPS_REL, It as OFFICE_DOCUMENT_REL, Jt as SLIDE_MASTER_CONTENT_TYPE, Kt as SLIDE_LAYOUT_CONTENT_TYPE, Mt as NOTES_MASTER_REL, Ot as MS_MEDIA_REL, Pt as NOTES_SLIDE_REL, Qt as TABLE_STYLES_REL, St as EXTENDED_PROPS_REL, Tt as IMAGE_REL, Ut as RELATIONSHIPS_CONTENT_TYPE, Vt as PRES_PROPS_CONTENT_TYPE, Xt as SLIDE_REL, Yt as SLIDE_MASTER_REL, Zt as TABLE_STYLES_CONTENT_TYPE, _t as CORE_PROPS_CONTENT_TYPE, a as textAlignToken, an as OOXML_NS, bt as CUSTOM_PROPS_REL, c as checkEnumOrThrow, cn as bytesToBase64, d as xsdBool, en as THEME_REL, f as xsdBoolIfTrue, fn as toMediaDataUri, gt as COMMENT_AUTHORS_REL, h as stripHash, it as AUDIO_REL, l as checkEnumOrWarn, ln as decodeBase64ToBytes, mt as COMMENTS_REL, nn as VIEW_PROPS_CONTENT_TYPE, nt as TRANSITION_TYPES, on as PML_ROOT_NS, ot as CHARTEX_REL, p as isHexColor, qt as SLIDE_LAYOUT_REL, rn as VIEW_PROPS_REL, rt as TRANSITION_VARIANT_ATTRIBUTES, tn as VIDEO_REL, ut as CHART_REL, vt as CORE_PROPS_REL, w as DEFAULT_COLOR_MAP, xt as EXTENDED_PROPS_CONTENT_TYPE, yt as CUSTOM_PROPS_CONTENT_TYPE } from "./image-size-DwDbakcl.js";
5
+ import { a as avContentType, i as audioExtensionForSubtype, o as dataUriMediaType, s as imageContentType } from "./text-anchor-BgLPbwbL.js";
6
+ import { At as getDuplicateObjectNames, C as targetBetweenPptSubparts, Ct as FONT_DATA_CONTENT_TYPE, D as cNvPrEl, Dt as serializeEmbeddedFontLst, Et as flattenEmbeddedFaces, G as clampParaMarginInchesEmu, It as preencodedPath, K as buAutoNumEl, N as spTreeEl, Nt as isHyperlinkRel, Ot as XML_DECL, Pt as isPreencodedPath, R as prstGeomRect, Rt as encodeXmlAttrValue, S as slidePath, St as voidEl, T as targetFromPresentation, Tt as FONT_REL_TYPE, U as clampFontSizeSz, W as clampParaIndentInchesEmu, _ as fontPath, at as fillNamesPaint, b as relsPath, bt as elOrVoid, c as themeFontDefRPr, f as relationshipsPart, g as commentPath, h as SLIDE_MASTER_PATH, ht as createColorElement, i as makeXmlNotesSlide, j as grpXfrmEl, jt as getNewRelId, kt as bracedGuid, l as externalHyperlinkRel, m as PRESENTATION_PATH, n as makeXmlNotesMaster, ot as genXmlColorSelection, p as NOTES_MASTER_PATH, q as buCharEl, s as lvlPPr, t as buildNotesSlideRels, u as relationshipEl, ut as STRETCH_FILL_RECT, v as notesSlidePath, vt as rejectEmptyColor, w as targetFromPptSubpart, wt as FONT_DATA_EXTENSION, x as slideLayoutPath, xt as raw, y as overrideName, yt as el } from "./notes-BcT571R4.js";
7
+ import { A as renderedSlideObjects, B as pushMediaRel, C as msMediaRid, D as findLayoutPlaceholder, E as placeholderOptionsForSlide, F as warnUnauthoredChild, I as SLIDE_METHOD_FAMILIES, L as composeFamilies, M as shapeIdCount, N as addChildDefinition, O as resolveTextAnchor, P as isGroupableObject, R as familyMethodUnavailable, S as alternateContentEl, T as addTextDefinition, V as resolveImageSource, _ as chartPartNames, a as mediaFamily, b as GROUP_SHAPE_LOCK_ATTRS, c as commentsFamily, d as textFamily, f as shapeFamily, g as makeXmlCore, h as groupFamily, i as model3dFamily, j as resolveObjectNameToId, k as collectSlideShapeIds, l as chartFamily, m as imageFamily, n as tableFamily, o as measureFamily, p as notesFamily, r as oleFamily, s as connectorFamily, t as zoomFamily, u as animationsFamily, v as FMT_SCHEME_XML, w as previewRid, x as genXmlObjectLock, y as resolveImageExtent, z as requirePresentationAuthor } from "./zoom-BoNyOlPm.js";
8
8
  import { n as setOrClear, t as pickDefined } from "./options-internal-WqgMf720.js";
9
- import { b as isFontCollection, g as FontMetricsRegistry, t as applyMeasuredFit, y as parseFontMetrics } from "./fit-Cb7naFj6.js";
10
- import { t as ZipWriter } from "./zip-CKd8ihcf.js";
9
+ import { b as isFontCollection, g as FontMetricsRegistry, t as applyMeasuredFit, y as parseFontMetrics } from "./fit-CcXbg__l.js";
10
+ import { t as ZipWriter } from "./zip-CYZ0F6BV.js";
11
11
  import { t as transitionSpeedForDuration } from "./transition-speed-kUEWDWTx.js";
12
12
  import { n as presentationFormatLabel, r as slideSizeType } from "./slide-size-BalTjFuv.js";
13
13
  //#region src/gen/define/background.ts
14
14
  /**
15
- * ts-pptx: Background Definition
15
+ * pptx-ts: Background Definition
16
16
  *
17
17
  * Registers an `addBackground()` image as a slide media rel (color backgrounds carry no rel);
18
18
  * the `<p:bg>` XML is emitted later at slide / layout serialize time.
@@ -272,7 +272,7 @@ var SlideBuilder = class {
272
272
  //#endregion
273
273
  //#region src/font-source.ts
274
274
  /**
275
- * ts-pptx: getting font bytes out of whatever the caller handed over.
275
+ * pptx-ts: getting font bytes out of whatever the caller handed over.
276
276
  *
277
277
  * `registerFontMetrics` and `embedFont` are two public methods on one class, forty lines apart,
278
278
  * and each resolved its source itself. They agreed on `Uint8Array` and `ArrayBuffer` and
@@ -371,7 +371,7 @@ const IMG_SVG_PLACEHOLDER = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAA
371
371
  //#endregion
372
372
  //#region src/gen/media.ts
373
373
  /**
374
- * ts-pptx: Media Methods
374
+ * pptx-ts: Media Methods
375
375
  */
376
376
  function hasEncodingPath(rel) {
377
377
  return typeof rel.path === "string" && rel.path.length > 0 && !isPreencodedPath(rel.path);
@@ -448,7 +448,7 @@ function encodeSlideMediaRels(layout, runtime, onMediaError = "throw") {
448
448
  //#endregion
449
449
  //#region src/gen/prepare.ts
450
450
  /**
451
- * ts-pptx: the pre-serialization pass
451
+ * pptx-ts: the pre-serialization pass
452
452
  *
453
453
  * Everything that must happen to authored slide state *before* any XML is built. Two callers
454
454
  * reach serialization and both need it:
@@ -1446,7 +1446,7 @@ function slideObjectRelationsToXml(slide, defaultRels, selfPath) {
1446
1446
  //#endregion
1447
1447
  //#region src/gen/slide/slide.ts
1448
1448
  /**
1449
- * ts-pptx: slide part + slide/layout rels
1449
+ * pptx-ts: slide part + slide/layout rels
1450
1450
  *
1451
1451
  * Emit a slide (`ppt/slides/slideN.xml`) and the relationship files for slides
1452
1452
  * and layouts (`slideN.xml.rels`, `slideLayoutN.xml.rels`).
@@ -1521,7 +1521,7 @@ function getLayoutIdxForSlide(slides, slideLayouts, slideNumber) {
1521
1521
  //#endregion
1522
1522
  //#region src/gen/pres/theme.ts
1523
1523
  /**
1524
- * ts-pptx: `ppt/theme/theme1.xml`
1524
+ * pptx-ts: `ppt/theme/theme1.xml`
1525
1525
  *
1526
1526
  * Emit the Office theme: the `<a:clrScheme>` (with any caller color overrides
1527
1527
  * over the default Office scheme) plus the fixed font/format schemes.
@@ -1877,7 +1877,7 @@ async function extractSlides(source, opts = {}) {
1877
1877
  //#endregion
1878
1878
  //#region src/gen/opc/app.ts
1879
1879
  /**
1880
- * ts-pptx: `docProps/app.xml`
1880
+ * pptx-ts: `docProps/app.xml`
1881
1881
  *
1882
1882
  * Emit the extended-properties part (application, slide/notes counts, heading
1883
1883
  * pairs, titles of parts, company).
@@ -1960,7 +1960,7 @@ function makeXmlApp(slides, company, presLayout) {
1960
1960
  //#endregion
1961
1961
  //#region src/gen/opc/content-types.ts
1962
1962
  /**
1963
- * ts-pptx: `[Content_Types].xml`
1963
+ * pptx-ts: `[Content_Types].xml`
1964
1964
  *
1965
1965
  * Emit the package content-types part: Default entries for the media extensions
1966
1966
  * actually used by the deck (plus the font default when faces are embedded) and
@@ -2056,7 +2056,7 @@ function makeXmlContTypes(opts) {
2056
2056
  //#endregion
2057
2057
  //#region src/gen/opc/custom-props.ts
2058
2058
  /**
2059
- * ts-pptx: `docProps/custom.xml`
2059
+ * pptx-ts: `docProps/custom.xml`
2060
2060
  *
2061
2061
  * Emit the custom-properties part from caller-supplied name/value pairs (bool,
2062
2062
  * date, number and string value types).
@@ -2089,7 +2089,7 @@ function makeXmlCustomProperties(props) {
2089
2089
  //#endregion
2090
2090
  //#region src/gen/opc/root-rels.ts
2091
2091
  /**
2092
- * ts-pptx: `_rels/.rels`
2092
+ * pptx-ts: `_rels/.rels`
2093
2093
  *
2094
2094
  * Emit the package root relationships (app/core/presentation, plus custom-props
2095
2095
  * when present).
@@ -2163,7 +2163,7 @@ function makeXmlPresentationRels(slides, embeddedFonts) {
2163
2163
  //#endregion
2164
2164
  //#region src/gen/pres/presentation.ts
2165
2165
  /**
2166
- * ts-pptx: `ppt/presentation.xml` + presProps/viewProps
2166
+ * pptx-ts: `ppt/presentation.xml` + presProps/viewProps
2167
2167
  *
2168
2168
  * Emit the presentation part (masters/notes/slide id lists, sizes, embedded-font
2169
2169
  * list, default text styles, sections) and the small presProps/viewProps parts.
@@ -2278,7 +2278,7 @@ function makeXmlTableStyles() {
2278
2278
  //#endregion
2279
2279
  //#region src/gen/slide/layout.ts
2280
2280
  /**
2281
- * ts-pptx: slide-layout part
2281
+ * pptx-ts: slide-layout part
2282
2282
  *
2283
2283
  * Emit a slide layout (`ppt/slideLayouts/slideLayoutN.xml`) from a layout object.
2284
2284
  */
@@ -2300,7 +2300,7 @@ function makeXmlLayout(layout, renderers) {
2300
2300
  //#endregion
2301
2301
  //#region src/gen/slide/master.ts
2302
2302
  /**
2303
- * ts-pptx: slide-master parts
2303
+ * pptx-ts: slide-master parts
2304
2304
  *
2305
2305
  * The slide master (`slideMaster1.xml`) and its `.rels`, plus the master text
2306
2306
  * styles (`<p:txStyles>`): per-level default values mirroring the built-in
@@ -2931,7 +2931,7 @@ async function writePackage(source, props) {
2931
2931
  //#endregion
2932
2932
  //#region src/presentation.ts
2933
2933
  /**
2934
- * ts-pptx: the presentation core
2934
+ * pptx-ts: the presentation core
2935
2935
  *
2936
2936
  * Home of {@link PresentationCore}, the class every entry point subclasses with a runtime
2937
2937
  * adapter (`index.ts`, `node.ts`, `browser.ts`). See the class doc below for the layout of
@@ -2944,7 +2944,7 @@ async function writePackage(source, props) {
2944
2944
  * the OfficeGen project (Copyright 2013 Ziv Barber). This project is likewise MIT; the full
2945
2945
  * license text is in `LICENSE` at the repository root.
2946
2946
  */
2947
- const VERSION = "4.0.0";
2947
+ const VERSION = "4.1.0";
2948
2948
  function standardLayoutToPresLayout(layout) {
2949
2949
  return {
2950
2950
  name: layout.name,
@@ -3017,7 +3017,7 @@ var PresentationCore = class {
3017
3017
  return this._layout;
3018
3018
  }
3019
3019
  /**
3020
- * ts-pptx Library Version
3020
+ * pptx-ts Library Version
3021
3021
  */
3022
3022
  _version = VERSION;
3023
3023
  get version() {
@@ -3191,11 +3191,11 @@ var PresentationCore = class {
3191
3191
  LAYOUT_16x10: standardLayoutToPresLayout(STANDARD_LAYOUTS.LAYOUT_16x10),
3192
3192
  LAYOUT_WIDE: standardLayoutToPresLayout(STANDARD_LAYOUTS.LAYOUT_WIDE)
3193
3193
  };
3194
- this._author = "ts-pptx";
3195
- this._company = "ts-pptx";
3194
+ this._author = "pptx-ts";
3195
+ this._company = "pptx-ts";
3196
3196
  this._revision = "1";
3197
- this._subject = "ts-pptx Presentation";
3198
- this._title = "ts-pptx Presentation";
3197
+ this._subject = "pptx-ts Presentation";
3198
+ this._title = "pptx-ts Presentation";
3199
3199
  const defLayout = this.#requireDefaultLayout();
3200
3200
  this._presLayout = {
3201
3201
  name: defLayout.name,
@@ -3255,7 +3255,7 @@ var PresentationCore = class {
3255
3255
  */
3256
3256
  getSections = () => this._sections;
3257
3257
  /**
3258
- * Enables the `Slide` class to set ts-pptx [Presentation] master/layout slidenumbers
3258
+ * Enables the `Slide` class to set pptx-ts [Presentation] master/layout slidenumbers
3259
3259
  * @param {SlideNumberProps} slideNum - slide number config
3260
3260
  */
3261
3261
  setSlideNumber = (slideNum) => {
@@ -3458,7 +3458,9 @@ var PresentationCore = class {
3458
3458
  /**
3459
3459
  * Export the current Presentation as ZIP content with the selected type
3460
3460
  * @param {WriteProps} props output properties
3461
- * @returns {Promise<string | ArrayBuffer | Blob | Uint8Array>} file content in selected type
3461
+ * @returns file content in the selected type: a `Blob` when `outputType` is left out, else
3462
+ * the {@link WriteOutputMap} entry for it
3463
+ * @example const bytes = await pptx.write({ outputType: 'uint8array' }) // Uint8Array, no cast
3462
3464
  */
3463
3465
  async write(props) {
3464
3466
  return await writePackage(this.packageSource(), pickDefined(props ?? {}, [
@@ -3650,7 +3652,7 @@ var PresentationCore = class {
3650
3652
  //#endregion
3651
3653
  //#region src/families/core.ts
3652
3654
  /**
3653
- * ts-pptx: the construct families every presentation carries
3655
+ * pptx-ts: the construct families every presentation carries
3654
3656
  *
3655
3657
  * The core tier. A composed presentation gets these whether it asks for them or not, so
3656
3658
  * `createPresentation()` with no families still authors text, shapes, images, groups and speaker
@@ -3672,7 +3674,7 @@ const CORE_CONSTRUCT_FAMILIES = [
3672
3674
  //#endregion
3673
3675
  //#region src/entry-compose.ts
3674
3676
  /**
3675
- * ts-pptx: composing a presentation from the construct families it actually needs
3677
+ * pptx-ts: composing a presentation from the construct families it actually needs
3676
3678
  *
3677
3679
  * The body behind each entry's `createPresentation`, and the types that describe what comes back.
3678
3680
  * It lives beside `entry-surface.ts` for the same reason that does: `index.ts`, `node.ts` and
@@ -3700,7 +3702,7 @@ function composePresentation(runtime, opts) {
3700
3702
  //#endregion
3701
3703
  //#region src/entry-families.ts
3702
3704
  /**
3703
- * ts-pptx: the construct families the three main entries are composed with
3705
+ * pptx-ts: the construct families the three main entries are composed with
3704
3706
  *
3705
3707
  * The full authoring surface, as a list: `index.ts`, `node.ts` and `browser.ts` each compose every
3706
3708
  * family, so `TsPptx` authors everything it ever has; the browser entry adds the table family's
@@ -3803,7 +3805,7 @@ async function placeholderSvgPreview(rel) {
3803
3805
  //#endregion
3804
3806
  //#region src/clip.ts
3805
3807
  /**
3806
- * ts-pptx: named clip silhouettes for images
3808
+ * pptx-ts: named clip silhouettes for images
3807
3809
  *
3808
3810
  * A `ClipShape` is declarative data — a named silhouette plus its options — and {@link clipPath}
3809
3811
  * resolves it to the freeform `points` path `addImage` emits as the `<a:custGeom>` clip mask on
@@ -3977,4 +3979,4 @@ function textRuns(runs) {
3977
3979
  //#endregion
3978
3980
  export { fetchMediaBase64 as a, ALL_CONSTRUCT_FAMILIES as c, IMG_SVG_PLACEHOLDER as d, fetchFontBytes as i, composePresentation as l, textRuns as n, isRemote as o, clipPath as r, placeholderSvgPreview as s, textRun as t, PresentationCore as u };
3979
3981
 
3980
- //# sourceMappingURL=text-KnLOtEEu.js.map
3982
+ //# sourceMappingURL=text-BvFFMMFQ.js.map