@office-kit/pptx 0.24.0 → 0.24.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @office-kit/pptx
2
2
 
3
+ ## 0.24.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 44afe47: Fixed: `getCoreProperties` returned `null`, and `setCoreProperties` added a second core-properties part and relationship, for packages that store core properties somewhere other than `/docProps/core.xml` (e.g. `package/services/metadata/core-properties/….psmdcp`) (#457). Core and extended properties are now found through the package's root relationships, as OPC specifies, so `getExtendedProperties` / `setExtendedProperties` also work when `app.xml` lives elsewhere. A `/docProps/core.xml` part that no relationship points at is no longer read as the core properties, and a core-properties relationship whose target escapes the package root (`../…`) now throws instead of being ignored.
8
+ - 5de41e0: Fixed: `duplicateSlide`, `addSlideImage` and other edits could save XML with an unbound `r:` (or other) prefix when the template declared that prefix on individual elements instead of the part root, so the saved file failed to load (#456). The writer now declares any prefix a new element or attribute uses that is not already in scope.
9
+
3
10
  ## 0.24.0
4
11
 
5
12
  ### Minor Changes
@@ -557,13 +557,46 @@ const rawName = (prefix, localName) => prefix === "" ? localName : `${prefix}:${
557
557
  const writeAttr = (a) => {
558
558
  return ` ${rawName(a.name.prefix, a.name.localName)}="${escapeAttr$1(a.value)}"`;
559
559
  };
560
- const writeElement = (e, parts) => {
560
+ const DOCUMENT_SCOPE = new Map([["xml", NS.xml]]);
561
+ const missingDecls = (e, scope) => {
562
+ let added = null;
563
+ for (let i = -1; i < e.attrs.length; i++) {
564
+ const name = i < 0 ? e.name : e.attrs[i].name;
565
+ if (i >= 0 && name.prefix === "") continue;
566
+ const own = e.prefixDecls.get(name.prefix) ?? added?.get(name.prefix);
567
+ if (own === void 0) {
568
+ if ((scope.get(name.prefix) ?? "") === name.namespaceURI) continue;
569
+ added ??= /* @__PURE__ */ new Map();
570
+ added.set(name.prefix, name.namespaceURI);
571
+ } else if (own !== name.namespaceURI) throw new Error(`prefix "${name.prefix}" on <${rawName(e.name.prefix, e.name.localName)}> is bound to both ${own} and ${name.namespaceURI}`);
572
+ }
573
+ return added;
574
+ };
575
+ const writeDecls = (decls, parts) => {
576
+ for (const [prefix, uri] of decls) {
577
+ const decl = prefix === "" ? "xmlns" : `xmlns:${prefix}`;
578
+ parts.push(` ${decl}="${escapeAttr$1(uri)}"`);
579
+ }
580
+ };
581
+ const withDecls = (scope, decls) => {
582
+ if (decls.size === 0) return scope;
583
+ const next = new Map(scope);
584
+ for (const [prefix, uri] of decls) next.set(prefix, uri);
585
+ return next;
586
+ };
587
+ const writeElement = (e, parts, scope) => {
561
588
  const name = rawName(e.name.prefix, e.name.localName);
562
589
  parts.push("<");
563
590
  parts.push(name);
564
- for (const [prefix, uri] of e.prefixDecls) {
565
- const decl = prefix === "" ? "xmlns" : `xmlns:${prefix}`;
566
- parts.push(` ${decl}="${escapeAttr$1(uri)}"`);
591
+ writeDecls(e.prefixDecls, parts);
592
+ let childScope = scope;
593
+ if (scope) {
594
+ const added = missingDecls(e, scope);
595
+ childScope = withDecls(scope, e.prefixDecls);
596
+ if (added) {
597
+ writeDecls(added, parts);
598
+ childScope = withDecls(childScope, added);
599
+ }
567
600
  }
568
601
  for (const a of e.attrs) parts.push(writeAttr(a));
569
602
  if (e.children.length === 0) {
@@ -571,15 +604,15 @@ const writeElement = (e, parts) => {
571
604
  return;
572
605
  }
573
606
  parts.push(">");
574
- for (const child of e.children) writeNode(child, parts);
607
+ for (const child of e.children) writeNode(child, parts, childScope);
575
608
  parts.push("</");
576
609
  parts.push(name);
577
610
  parts.push(">");
578
611
  };
579
- const writeNode = (n, parts) => {
612
+ const writeNode = (n, parts, scope) => {
580
613
  switch (n.kind) {
581
614
  case "element":
582
- writeElement(n, parts);
615
+ writeElement(n, parts, scope);
583
616
  return;
584
617
  case "text":
585
618
  parts.push(escapeText$1(n.data));
@@ -605,6 +638,7 @@ const writeNode = (n, parts) => {
605
638
  return;
606
639
  }
607
640
  };
641
+ const XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>";
608
642
  const writeDeclaration = (doc, parts) => {
609
643
  if (!doc.decl) return;
610
644
  parts.push("<?xml version=\"");
@@ -625,15 +659,15 @@ const writeDeclaration = (doc, parts) => {
625
659
  const serializeXml = (doc, options = {}) => {
626
660
  const parts = [];
627
661
  if (doc.decl) writeDeclaration(doc, parts);
628
- else if (options.standaloneDeclaration ?? true) parts.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
629
- for (const p of doc.prolog) writeNode(p, parts);
630
- writeElement(doc.root, parts);
631
- for (const e of doc.epilog) writeNode(e, parts);
662
+ else if (options.standaloneDeclaration ?? true) parts.push(XML_DECLARATION);
663
+ for (const p of doc.prolog) writeNode(p, parts, null);
664
+ writeElement(doc.root, parts, DOCUMENT_SCOPE);
665
+ for (const e of doc.epilog) writeNode(e, parts, null);
632
666
  return parts.join("");
633
667
  };
634
668
  const serializeFragment = (element) => {
635
669
  const parts = [];
636
- writeElement(element, parts);
670
+ writeElement(element, parts, null);
637
671
  return parts.join("");
638
672
  };
639
673
  //#endregion
@@ -30601,7 +30635,7 @@ const relsPartNameFor = (name) => {
30601
30635
  };
30602
30636
  /**
30603
30637
  * Resolves a relationship Target (which may be relative) against a base part
30604
- * name. Returns the absolute part name (always starts with `/`).
30638
+ * name, or against `PACKAGE_ROOT` for a package-root relationship. Returns the absolute part name (always starts with `/`).
30605
30639
  *
30606
30640
  * `target` is from a Relationship element's `Target` attribute when
30607
30641
  * `TargetMode="Internal"`. External targets must not be passed through here.
@@ -30609,7 +30643,7 @@ const relsPartNameFor = (name) => {
30609
30643
  const resolveTarget = (basePart, target) => {
30610
30644
  if (target === "") throw new Error("relationship target is empty");
30611
30645
  if (target.startsWith("/")) return partName(target);
30612
- const baseDir = dirname(basePart);
30646
+ const baseDir = basePart === "/" ? "/" : dirname(basePart);
30613
30647
  const stack = baseDir === "/" ? [] : baseDir.slice(1).split("/");
30614
30648
  for (const segment of target.split("/")) {
30615
30649
  if (segment === "" || segment === ".") continue;
@@ -40784,6 +40818,14 @@ const setShapeHyperlink = (shape, url, tooltip, options) => {
40784
40818
  };
40785
40819
  //#endregion
40786
40820
  //#region src/api/fn/properties.ts
40821
+ const getRootRelPart = (pkg, type) => {
40822
+ for (const rel of pkg.rootRels()?.items ?? []) {
40823
+ if (rel.type !== type || rel.targetMode !== "Internal") continue;
40824
+ const part = pkg.getPart(resolveTarget("/", rel.target));
40825
+ if (part) return part;
40826
+ }
40827
+ return null;
40828
+ };
40787
40829
  const NS_CORE_PROPS = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties";
40788
40830
  const NS_DC = "http://purl.org/dc/elements/1.1/";
40789
40831
  const NS_DCTERMS = "http://purl.org/dc/terms/";
@@ -40838,7 +40880,7 @@ const getPresentationModified = (pres) => {
40838
40880
  return Number.isFinite(d.getTime()) ? d : null;
40839
40881
  };
40840
40882
  const getCoreProperties = (pres) => {
40841
- const part = pres[INTERNAL_PACKAGE].getPart(CORE_PROPS_PART_NAME);
40883
+ const part = getRootRelPart(pres[INTERNAL_PACKAGE], REL_TYPES.coreProperties);
40842
40884
  if (!part) return null;
40843
40885
  const root = parseXml(decode$1(part.data)).root;
40844
40886
  const read = (uri, local) => {
@@ -40952,7 +40994,7 @@ const buildEmptyCorePropsRoot = () => {
40952
40994
  */
40953
40995
  const setCoreProperties = (pres, values) => {
40954
40996
  const pkg = pres[INTERNAL_PACKAGE];
40955
- let part = pkg.getPart(CORE_PROPS_PART_NAME);
40997
+ const part = getRootRelPart(pkg, REL_TYPES.coreProperties);
40956
40998
  let root;
40957
40999
  let doc;
40958
41000
  if (part) {
@@ -40985,12 +41027,15 @@ const setCoreProperties = (pres, values) => {
40985
41027
  part.data = bytes;
40986
41028
  return;
40987
41029
  }
41030
+ pkg.removePart(CORE_PROPS_PART_NAME);
41031
+ pkg.contentTypes.overrides = pkg.contentTypes.overrides.filter((o) => !partNamesEqual(o.partName, CORE_PROPS_PART_NAME));
40988
41032
  pkg.contentTypes.overrides.push({
40989
41033
  partName: CORE_PROPS_PART_NAME,
40990
41034
  contentType: CORE_PROPS_CONTENT_TYPE
40991
41035
  });
40992
41036
  pkg.addPart(CORE_PROPS_PART_NAME, CORE_PROPS_CONTENT_TYPE, bytes);
40993
41037
  const rootRels = pkg.rootRels() ?? emptyRels();
41038
+ rootRels.items = rootRels.items.filter((r) => r.type !== REL_TYPES.coreProperties);
40994
41039
  const rId = nextRelId(rootRels.items.map((r) => r.id));
40995
41040
  rootRels.items.push({
40996
41041
  id: rId,
@@ -41001,14 +41046,13 @@ const setCoreProperties = (pres, values) => {
41001
41046
  pkg.setRootRels(rootRels);
41002
41047
  };
41003
41048
  const NS_EXT_PROPS = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";
41004
- const EXT_PROPS_PART_NAME = partName("/docProps/app.xml");
41005
41049
  /**
41006
41050
  * Reads `/docProps/app.xml`. Returns `null` if the package has no
41007
41051
  * extended-properties part. Each field is `null` when the
41008
41052
  * corresponding element is absent or empty.
41009
41053
  */
41010
41054
  const getExtendedProperties = (pres) => {
41011
- const part = pres[INTERNAL_PACKAGE].getPart(EXT_PROPS_PART_NAME);
41055
+ const part = getRootRelPart(pres[INTERNAL_PACKAGE], REL_TYPES.extendedProperties);
41012
41056
  if (!part) return null;
41013
41057
  const root = parseXml(decode$1(part.data)).root;
41014
41058
  const read = (local) => {
@@ -41064,8 +41108,8 @@ const EXT_PROP_FIELDS = [
41064
41108
  * are left untouched.
41065
41109
  */
41066
41110
  const setExtendedProperties = (pres, values) => {
41067
- const part = pres[INTERNAL_PACKAGE].getPart(EXT_PROPS_PART_NAME);
41068
- if (!part) throw new Error("setExtendedProperties: /docProps/app.xml not present; cannot bootstrap");
41111
+ const part = getRootRelPart(pres[INTERNAL_PACKAGE], REL_TYPES.extendedProperties);
41112
+ if (!part) throw new Error("setExtendedProperties: the package has no extended-properties part; cannot bootstrap");
41069
41113
  const doc = parseXml(decode$1(part.data));
41070
41114
  for (const field of EXT_PROP_FIELDS) {
41071
41115
  if (!(field.key in values)) continue;
@@ -50327,13 +50371,7 @@ const getShapeSlide = (shape) => shape[SHAPE_SLIDE];
50327
50371
  * sibling of `getSlideXmlString`; useful for snapshot tests, bug
50328
50372
  * reports, and before/after dumps during transformations.
50329
50373
  */
50330
- const getShapeXmlString = (shape) => serializeXml({
50331
- kind: "document",
50332
- decl: null,
50333
- root: shape[SHAPE_ELEMENT],
50334
- prolog: [],
50335
- epilog: []
50336
- });
50374
+ const getShapeXmlString = (shape) => XML_DECLARATION + serializeFragment(shape[SHAPE_ELEMENT]);
50337
50375
  /**
50338
50376
  * Returns the 0-based document-order index of `shape` on its slide,
50339
50377
  * or `-1` when the shape is stale (e.g. after a `removeShape` that
@@ -55422,8 +55460,8 @@ const getShapeImageIntrinsicSize = (shape) => {
55422
55460
  };
55423
55461
  //#endregion
55424
55462
  //#region src/api/index.ts
55425
- const VERSION = "0.24.0";
55463
+ const VERSION = "0.24.1";
55426
55464
  //#endregion
55427
55465
  export { getHandoutMasterPlaceholders as $, findSlidesByLayoutPartName as $a, getShapeChartCategories as $c, getShapeStrokeCap as $i, getSlideLayouts as $l, findShapesByEffect as $n, getSlideNotesTextFormats as $o, getShapePlaceholderIdx as $r, getTableCellText3D as $s, replaceTextInNotes as $t, isShapeLocked as A, setParagraphBullet as Aa, getThumbnail as Ac, setShapeGradientFill as Ai, getSlideMasterShapes as Al, getShapeTextAutoFitParams as An, clearAllHyperlinks as Ao, getSlidesWithEmptyPlaceholders as Ar, getPresentationSummary as As, findSlidesByText as At, getSlideComments as Au, addSectionHeaderSlide as B, getSlideTitle as Ba, touchModified as Bc, setShapeStroke as Bi, setSlideLayoutBackground as Bl, setShapeText as Bn, getAllNotes as Bo, getMaxShapeIdInPresentation as Br, getTableBackgroundEffective as Bs, getSlideIndex as Bt, savePresentation as Bu, ungroupShapes as C, getShapeRunClickAction as Ca, setTableCellTextDirection as Cc, getShapePatternFill as Ci, getSlideLayoutBackgroundPatternFill as Cl, removeSlideAnimation as Cn, SLIDE_SIZE_16_10 as Co, findSlidePlaceholders as Cr, getShapeMediaPlayback as Cs, setSlideMasterPreserved as Ct, getCommentStatus as Cu, setShapeTextLanguage as D, getShapeRunText as Da, setTableStyleFlags as Dc, setShapeAdjustValues as Di, getSlideMasterBackgroundGradientFill as Dl, getShapeText3D as Dn, getSlideSize as Do, getShapesBounds as Dr, getMediaParts as Ds, findSlideByText as Dt, getPresentationCommentCountsBySlide as Du, getShapeTextLanguage as E, getShapeRunHyperlinkTooltip as Ea, setTableRowHeight as Ec, getShapeStrokeSketch as Ei, getSlideMasterBackground as El, getShapeBodyPrEffective as En, getPresentationFirstSlideNumber as Eo, getShapeXmlString as Er, compactPackage as Es, findSlideByPartName as Et, getPresentationCommentCountsByAuthor as Eu, resetSlideLayout as F, setParagraphTabs as Fa, getPresentationCreated as Fc, setShapePosition as Fi, setSlideBackgroundImageOpacity as Fl, getShapeTextMargins as Fn, findSlidesWithChartTrendlines as Fo, findShapesAtPoint as Fr, slidesUsingMediaPart as Fs, getPresentationTextLength as Ft, getPresentationTheme as Fu, duplicateSlideAt as G, findShapesWithAnimation as Ga, setShapeRunFormat as Gc, setShapeStrokeJoin as Gi, findSlideLayoutByPartName as Gl, setShapeTextColumns as Gn, getPresentationHyperlinkCountsBySlide as Go, getShapeBoundsResolved as Gr, getTableCellBorders as Gs, getSlideText as Gt, asColor as Gu, addSlideAt as H, setSlidePlaceholders as Ha, getShapeHyperlink as Hc, setShapeStrokeCap as Hi, setSlideLayoutPlaceholderBounds as Hl, setShapeTextAnchor as Hn, getDistinctHyperlinkUrls as Ho, getShapeAdjustValues as Hr, getTableCellAlignment as Hs, getSlideLayoutCount as Ht, BUILTIN_TABLE_STYLES as Hu, resetSlidePlaceholderGeometry as I, setParagraphTypography as Ia, getPresentationModified as Ic, setShapePreset as Ii, setSlideBackgroundPatternFill as Il, getShapeTextWrap as In, getAllCharts as Io, findShapesInRect as Ir, validatePresentation as Is, getPresentationTextLengthsBySlide as It, setPresentationFonts as Iu, moveSlide as J, setShapeAnimation as Ja, findChartsBySeriesName as Jc, getShapeFillColor as Ji, getSlideLayoutPartName$1 as Jl, setShapeTextFlat as Jn, getPresentationNotesText as Jo, getShapeDescription as Jr, getTableCellParagraphs as Js, getSlides as Jt, inches as Ju, importSlide as K, getShapeAnimation as Ka, addSlideChart as Kc, setShapeStrokeSketch as Ki, findSlideLayoutByType as Kl, setShapeTextDirection as Kn, getPresentationNotesLength as Ko, getShapeCenter as Kr, getTableCellFill as Ks, getSlideTextLength as Kt, cm as Ku, resetSlidePlaceholderTextFormatting as L, setShapeRunHyperlink as La, incrementRevision as Lc, setShapeRotation as Li, getShapeGradientFill as Ll, setShapeAlignment as Ln, getAllComments as Lo, getGroupChildren as Lr, clearTableCellFill as Ls, getShapeAt as Lt, setPresentationTheme as Lu, setShapeLocked as M, setParagraphLevel as Ma, setThumbnail as Mc, setShapeNoFill as Mi, setSlideBackgroundGradientFill as Ml, getShapeTextColumns as Mn, clearSlideHyperlinks as Mo, setSlideLayout as Mr, listPackageParts as Ms, getOutlineText as Mt, setCommentStatus as Mu, addMissingSlidePlaceholders as N, setParagraphLineSpacing as Na, getCoreProperties as Nc, setShapeNoStroke as Ni, setSlideBackgroundImage as Nl, getShapeTextDirection as Nn, findSlidesByHyperlink as No, translateShapes as Nr, readPackagePart as Ns, getPresentationShapeCountsBySlide as Nt, setCommentText as Nu, setShapeCustomGeometry as O, isParagraphBulletPicture as Oa, setTableStyleId as Oc, setShapeFill as Oi, getSlideMasterBackgroundImageBytes as Ol, getShapeTextAnchor as On, setSlideSize as Oo, getSlideLayout as Or, getOrphanMediaPartNames as Os, findSlideByTitle as Ot, getPresentationCommenters as Ou, addSlidePlaceholder as P, setParagraphSpacing as Pa, getExtendedProperties as Pc, setShapePatternFill as Pi, setSlideBackgroundImageFillLayout as Pl, getShapeTextFlat as Pn, findSlidesWithChartKind as Po, centerShapeOnSlide as Pr, setMediaPartBytes as Ps, getPresentationText as Pt, getPresentationFonts as Pu, swapSlides as Q, findSlidesByLayoutName as Qa, getPresentationChartKindCounts as Qc, getShapeStroke as Qi, getSlideLayoutUsageCountsByType as Ql, clearShapeEffects as Qn, getSlideNotesParagraphEndFormat as Qo, getShapeName as Qr, getTableCellText as Qs, isSlideLayoutBackgroundGraphicsHidden as Qt, addBlankSlide as R, setShapeRunText as Ra, setCoreProperties as Rc, setShapeSize as Ri, getShapeGradientFillEffective as Rl, setShapeBulletStyle as Rn, getAllHyperlinks as Ro, getGroupTransform as Rr, getPresentationTableCountsBySlide as Rs, getSlideAt as Rt, createPresentation as Ru, groupShapes as S, getShapeParagraphElements as Sa, setTableCellText as Sc, clearShapeStroke as Si, getSlideLayoutBackgroundImageBytes as Sl, moveSlideAnimation as Sn, setShapeImageRecolor as So, findSlidePlaceholderByIdx as Sr, getShapeMedia as Ss, setSlideMasterPlaceholderIncluded as St, getCommentSlide as Su, getParagraphElementLanguages as T, getShapeRunHyperlink as Ta, setTableColumnWidth as Tc, getShapeStrokeDash as Ti, getSlideLayoutShapes as Tl, appendShapeText as Tn, SLIDE_SIZE_4_3 as To, getShapeSlide as Tr, _internalPackageOf as Ts, setSlideSections as Tt, getCommentsSortedByDate as Tu, addTitleSlide as U, setSlideTitle as Ua, getShapeRunFormatEffective as Uc, setShapeStrokeCompound as Ui, findLayoutsWithPlaceholderType as Ul, setShapeTextAutoFit as Un, getEmptySlides as Uo, getShapeAltTitle as Ur, getTableCellAnchor as Us, getSlideOutline as Ut, BUILTIN_PICTURE_STYLES as Uu, addSlide as V, setSlideBody as Va, getParagraphPropertiesEffective as Vc, setShapeStrokeArrow as Vi, setSlideLayoutName as Vl, setShapeText3D as Vn, getAllTables as Vo, getPresetGeometry as Vr, getTableCell as Vs, getSlideInfo as Vt, COMMENT_STATUSES as Vu, duplicateSlide as W, clearSlideAnimations as Wa, setShapeHyperlink as Wc, setShapeStrokeDash as Wi, findSlideLayout as Wl, setShapeTextBodyRotationDeg as Wn, getHiddenSlides as Wo, getShapeBounds as Wr, getTableCellAppearanceEffective as Ws, getSlidePartName as Wt, toWritableTextFormat as Wu, reverseSlides as X, findOverlappingShapePairs as Xa, findChartsWithTrendlines as Xc, getShapeFillEffective as Xi, getSlideLayoutType as Xl, setShapeTextMargins as Xn, getSlideNotesLength as Xo, getShapeId as Xr, getTableCellRunFormatEffective as Xs, isSlideBackgroundGraphicsHidden as Xt, pt as Xu, removeSlide as Y, findFlippedShapes as Ya, findChartsWithDataLabels as Yc, getShapeFillColorResolved as Yi, getSlideLayoutPlaceholders as Yl, setShapeTextFormat as Yn, getSlideNotes as Yo, getShapeFlip as Yr, getTableCellPosition as Ys, getSlidesByLayout as Yt, mm as Yu, sortSlides as Z, findShapesOutsideCanvas as Za, getPresentationChartCountsBySlide as Zc, getShapeFillOpacity as Zi, getSlideLayoutUsageCounts as Zl, setShapeTextWrap as Zn, getSlideNotesLineBreaks as Zo, getShapeKind as Zr, getTableCellSpan as Zs, isSlideHidden as Zt, resetShapeVideoFormatting as _, getParagraphLevel as _a, setTableCellBorders as _c, setShapeBounds as _i, getSlideBackgroundImageOpacity as _l, getShapeZIndex as _n, resetShapeImageColorEffects as _o, findShapesByName as _r, getSlideTransitionSound as _s, removeSlideMaster as _t, getCommentAuthors as _u, getCollapsedOutlineSlides as a, getShapeStrokeJoin as aa, getTableSize as ac, getShapeText as ai, setChartSpec as al, setSlideBackgroundGraphicsHidden as an, getShapeImageBytes as ao, setShapeGlow as ar, getSlidesWithOverlap as as, setNotesMasterPlaceholderIncluded as at, setCustomShows as au, setShapeImageCompressionState as b, getShapeHyperlinkTooltip as ba, setTableCellMargins as bc, shapesOverlap as bi, getSlideLayoutBackground as bl, sendShapeToBack as bn, setShapeImageCrop as bo, findShapesWithHyperlinks as br, addSlideMedia as bs, setSlideLayoutTitleIncluded as bt, getCommentParent as bu, getGridSpacing as c, getShapeRunFormat as ca, insertTableColumn as cc, getSlideMasterPartNames as ci, applySlideBackgroundToAll as cl, addSlideImage as cn, getShapeImageDuotone as co, setShapeShadow as cr, hasSlideNotes as cs, setSlideShowProperties as ct, clearAllSlideComments as cu, setDrawingGuidesVisible as d, getParagraphAlignment as da, isTableShape as dc, isShapeHidden as di, getSlideBackground as dl, addSlideTable as dn, getShapeImageLinkUrl as do, findShapeById as dr, resolveSlideNotesTextColor as ds, addSlideMaster as dt, findCommentsAfter as du, getShapeStrokeColor as ea, getTableCellTextDirection as ec, getShapePlaceholderType as ei, getShapeChartKind as el, replaceTextInPresentation as en, findSlidesByLayoutType as eo, getShape3D as er, getSlidesWithCharts as es, getHandoutSlidesPerPage as et, getUnusedSlideLayouts as eu, setGridSpacing as f, getParagraphBullet as fa, mergeTableCells as fc, isShapePlaceholder as fi, getSlideBackgroundGradientFill as fl, addSlideTextBox as fn, getShapeImageOpacity as fo, findShapeByName as fr, setSlideNotes as fs, getSlideMasterLayouts as ft, findCommentsBefore as fu, setSlideMasterBackgroundStyle as g, getParagraphIndent as ga, setTableCellAnchor as gc, setShapeAltTitle as gi, getSlideBackgroundImageIntrinsicSize as gl, copyShape as gn, isShapeImageGrayscale as go, findShapesByKind as gr, getSlideTransition as gs, removeSlideLayout as gt, getCommentAuthor as gu, getSlideMasterBackgroundStyles as h, getParagraphEndFormat as ha, setTableCellAlignment as hc, renameShape as hi, getSlideBackgroundImageFillLayout as hl, clearSlideShapes as hn, hasShapeText as ho, findShapesByHyperlink as hr, clearSlideTransition as hs, isSlideMasterPreserved as ht, findSlidesWithCommentsByAuthor as hu, setShapeImageFillLayout as i, getShapeStrokeGradient as ia, getTableRowHeights as ic, getShapeSize as ii, getSlideCharts as il, searchSlides as in, getShapeImageBrightness as io, setShape3D as ir, getSlidesWithNotes as is, setHandoutSlidesPerPage as it, getCustomShows as iu, setShapeAspectRatioLocked as j, setParagraphIndent as ja, removeThumbnail as jc, setShapeImageFill as ji, setSlideBackground as jl, getShapeTextBodyRotationDeg as jn, clearAllSlideNotes as jo, replaceTokensInSlide as jr, getSlideMediaPartNames as js, getAllShapes as jt, removeSlideComment as ju, isShapeAspectRatioLocked as k, setParagraphAlignment as ka, splitTableCell as kc, setShapeFlip as ki, getSlideMasterBackgroundPatternFill as kl, getShapeTextAutoFit as kn, appendSlideNotes as ko, getSlideShapes as kr, getPackageSize as ks, findSlidesByNotes as kt, getSlideCommentAuthors as ku, getSnapToGrid as l, resolveDrawingColor as la, insertTableRow as lc, getSlideMasterUsageCounts as li, clearSlideBackground as ll, addSlideLine as ln, getShapeImageFillBytes as lo, setShapeSoftEdge as lr, removeSlideNotes as ls, addSlideLayout as lt, clearSlideComments as lu, setSnapToGrid as m, getParagraphBulletStyle as ma, removeTableRow as mc, pointInShape as mi, getSlideBackgroundImageCrop as ml, bringShapeToFront as mn, hasShapeImage as mo, findShapeInPresentation as mr, transformSlideNotesCase as ms, getSlideMasterPlaceholders as mt, findCommentsByText as mu, getShapeImageFillLayout as n, getShapeStrokeCompound as na, getTableColumnWidths as nc, getShapePreset as ni, getShapeChartSeriesValues as nl, replaceTextInSlideNotes as nn, getShapeImageArtisticEffect as no, getShapeEffects as nr, getSlidesWithHyperlinks as ns, getNotesPageSize as nt, getShapeClickAction as nu, getDrawingGuides as o, getShapeStrokeOpacity as oa, getTableStyleFlags as oc, getSlideMasterCount as oi, getEffectiveColorMap as ol, setSlideHidden as on, getShapeImageContrast as oo, setShapeInnerShadow as or, getSlidesWithTables as os, setNotesPageOrientation as ot, setShapeImage as ou, setSlideOutlineCollapsed as p, getParagraphBulletImageBytes as pa, removeTableColumn as pc, isShapeTextBox as pi, getSlideBackgroundImageBytes as pl, bringShapeForward as pn, getShapeImagePartName as po, findShapeByText as pr, setSlideNotesFormat as ps, getSlideMasterName as pt, findCommentsByAuthor as pu, mergePresentations as q, getSlideAnimations as qa, findChartByKind as qc, getShapeFill as qi, getSlideLayoutName as ql, setShapeTextField as qn, getPresentationNotesLengthsBySlide as qo, getShapeCustomGeometry as qr, getTableCellMargins as qs, getSlideXmlString as qt, emu as qu, getShapeImageIntrinsicSize as r, getShapeStrokeEffective as ra, getTableDimensions as rc, getShapeRotation as ri, getShapeChartSpec as rl, replaceTokensInPresentation as rn, getShapeImageBiLevelThreshold as ro, getShapeEffectsEffective as rr, getSlidesWithImages as rs, setHandoutMasterPlaceholderIncluded as rt, setShapeClickAction as ru, getDrawingGuidesVisible as s, getShapeStrokeWidth as sa, getTableStyleId as sc, getSlideMasterPartName as si, resolveDeckBodyTextColor as sl, slideHasAnimations as sn, getShapeImageCrop as so, setShapeReflection as sr, getVisibleSlides as ss, getSlideShowProperties as st, addSlideComment as su, VERSION as t, getShapeStrokeColorResolved as ta, getTableCells as tc, getShapePosition as ti, getShapeChartSeriesNames as tl, replaceTextInSlide as tn, getPresentationImageCountsBySlide as to, getShapeEffect as tr, getSlidesWithComments as ts, getNotesMasterPlaceholders as tt, isChartSpec as tu, setDrawingGuides as u, resolveDrawingColorOpacity as ua, isChartShape as uc, getUnusedSlideMasters as ui, copySlideBackground as ul, addSlideShape as un, getShapeImageFormat as uo, findEmptyPlaceholders as ur, replaceHyperlink as us, addSlideLayoutPlaceholder as ut, findCommentAuthorByName as uu, getShapeImageCompressionState as v, getParagraphLineSpacing as va, setTableCellClickAction as vc, setShapeDescription as vi, getSlideBackgroundPatternFill as vl, removeShape as vn, setShapeImageBrightness as vo, findShapesByPreset as vr, setSlideTransition as vs, setSlideLayoutBackgroundGraphicsHidden as vt, getCommentDate as vu, setShapeStyle as w, getShapeRunCount as wa, setTableCellTextFormat as wc, getShapeStrokeArrow as wi, getSlideLayoutBackgroundShapes as wl, updateSlideAnimation as wn, SLIDE_SIZE_16_9 as wo, getShapeIndex as wr, setShapeMediaPlayback as ws, getSlideSections as wt, getCommentText as wu, setShapePictureStyle as x, getShapeParagraphCount as xa, setTableCellParagraphs as xc, clearShapeFill as xi, getSlideLayoutBackgroundGradientFill as xl, setShapeZIndex as xn, setShapeImageOpacity as xo, findSlidePlaceholder as xr, findShapesWithMedia as xs, setSlideMasterName as xt, getCommentPosition as xu, getShapePictureStyle as y, getParagraphSpacing as ya, setTableCellFill as yc, setShapeHidden as yi, getSlideColorMapOverride as yl, sendShapeBackward as yn, setShapeImageContrast as yo, findShapesByText as yr, setSlideTransitionSound as ys, setSlideLayoutFootersIncluded as yt, getCommentFormat as yu, addContentSlide as z, getSlideBody as za, setExtendedProperties as zc, setShapeSlideBackgroundFill as zi, clearSlideLayoutBackground as zl, setShapeParagraphs as zn, getAllImages as zo, getMaxShapeId as zr, getSlideTables as zs, getSlideCount as zt, loadPresentation as zu };
55428
55466
 
55429
- //# sourceMappingURL=api-BNwRBemN.js.map
55467
+ //# sourceMappingURL=api-BSdL1LrI.js.map