@shbernal/ts-pptx 3.0.0 → 3.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.
- package/README.md +24 -0
- package/dist/{autopage-MxulehqQ.js → autopage-QQyfRtoK.js} +3 -3
- package/dist/{autopage-MxulehqQ.js.map → autopage-QQyfRtoK.js.map} +1 -1
- package/dist/browser.d.ts +5 -5
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +5 -5
- package/dist/{diagnostics-BqBTmA3a.d.ts → diagnostics-PMINsVP6.d.ts} +7 -7
- package/dist/{diagnostics-BqBTmA3a.d.ts.map → diagnostics-PMINsVP6.d.ts.map} +1 -1
- package/dist/{enums-oLLeaSW3.d.ts → enums-CoXnxiCI.d.ts} +5 -5
- package/dist/{enums-oLLeaSW3.d.ts.map → enums-CoXnxiCI.d.ts.map} +1 -1
- package/dist/{errors-BENA-Xuw.d.ts → errors-BeUEkNWL.d.ts} +24 -2
- package/dist/errors-BeUEkNWL.d.ts.map +1 -0
- package/dist/{errors-DGE9zh3U.js → errors-Bvln0H-7.js} +21 -2
- package/dist/errors-Bvln0H-7.js.map +1 -0
- package/dist/{fit-DGSwMMNs.js → fit-DhMbQG5O.js} +0 -0
- package/dist/fit-DhMbQG5O.js.map +1 -0
- package/dist/{html-dom--J-Xuucf.js → html-dom-DajBuobe.js} +5 -5
- package/dist/html-dom-DajBuobe.js.map +1 -0
- package/dist/html.d.ts +3 -3
- package/dist/html.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/inspect.d.ts +1 -1
- package/dist/inspect.js +4 -4
- package/dist/math.d.ts +1 -1
- package/dist/math.d.ts.map +1 -1
- package/dist/math.js +98 -2
- package/dist/math.js.map +1 -1
- package/dist/measure.d.ts +3 -3
- package/dist/measure.js +2 -2
- package/dist/node.d.ts +5 -5
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +4 -4
- package/dist/package-CaOLXSNi.d.ts.map +1 -1
- package/dist/{pres-2WsBGimU.d.ts → pres-BgvxhQ_m.d.ts} +3 -3
- package/dist/{pres-2WsBGimU.d.ts.map → pres-BgvxhQ_m.d.ts.map} +1 -1
- package/dist/{presentation-DAcOfzsP.js → presentation-BP1B8PCF.js} +5 -5
- package/dist/presentation-BP1B8PCF.js.map +1 -0
- package/dist/{presentation-CTVPpiwP.d.ts → presentation-DyIRDKkp.d.ts} +35 -17
- package/dist/presentation-DyIRDKkp.d.ts.map +1 -0
- package/dist/{presentation-types-BVw0EknS.d.ts → presentation-types-Dj4riuDs.d.ts} +2 -2
- package/dist/{presentation-types-BVw0EknS.d.ts.map → presentation-types-Dj4riuDs.d.ts.map} +1 -1
- package/dist/read.d.ts +4 -4
- package/dist/read.js +3 -3
- package/dist/script.d.ts +2 -2
- package/dist/script.js +0 -0
- package/dist/script.js.map +1 -1
- package/dist/{shapes-BWifcHDV.js → shapes-DMThLsZN.js} +26 -5
- package/dist/shapes-DMThLsZN.js.map +1 -0
- package/dist/{slide-YuSCGa45.d.ts → slide-BRAtT8Dl.d.ts} +8 -8
- package/dist/{slide-YuSCGa45.d.ts.map → slide-BRAtT8Dl.d.ts.map} +1 -1
- package/dist/{st-enums-CgadEyPM.js → st-enums-evQG2A7Z.js} +2 -2
- package/dist/{st-enums-CgadEyPM.js.map → st-enums-evQG2A7Z.js.map} +1 -1
- package/dist/{text-120VFSDm.js → text-B6PbMFih.js} +14 -11
- package/dist/text-B6PbMFih.js.map +1 -0
- package/dist/{units-B-JUKwCS.js → units-C7QM1KgH.js} +2 -2
- package/dist/{units-B-JUKwCS.js.map → units-C7QM1KgH.js.map} +1 -1
- package/dist/{units-internal-CiFWZWk4.js → units-internal-CR8s8YQa.js} +3 -3
- package/dist/{units-internal-CiFWZWk4.js.map → units-internal-CR8s8YQa.js.map} +1 -1
- package/dist/zip.d.ts +2 -2
- package/dist/zip.js +1 -1
- package/package.json +14 -16
- package/skills/ts-pptx-upstream/SKILL.md +247 -0
- package/dist/errors-BENA-Xuw.d.ts.map +0 -1
- package/dist/errors-DGE9zh3U.js.map +0 -1
- package/dist/fit-DGSwMMNs.js.map +0 -1
- package/dist/html-dom--J-Xuucf.js.map +0 -1
- package/dist/presentation-CTVPpiwP.d.ts.map +0 -1
- package/dist/presentation-DAcOfzsP.js.map +0 -1
- package/dist/shapes-BWifcHDV.js.map +0 -1
- package/dist/text-120VFSDm.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as warn } from "./diagnostics-DYQC7xLV.js";
|
|
2
|
-
import { i as PackageReadError, n as InvalidOptionError, o as UnsupportedFeatureError, t as InternalError } from "./errors-
|
|
3
|
-
import { C as getImageSizeFromBytes, _ as SLIDE_LAYOUT_REL, b as THEME_REL, c as TEXT_VERTICAL, d as IMAGE_REL, f as NOTES_MASTER_REL, l as checkEnumOrThrow, m as OFFICE_DOCUMENT_REL, o as TEXT_ANCHORS, s as TEXT_HORZ_OVERFLOW, v as SLIDE_MASTER_REL, x as fitSrcRectPercents } from "./st-enums-
|
|
2
|
+
import { i as PackageReadError, n as InvalidOptionError, o as UnsupportedFeatureError, t as InternalError } from "./errors-Bvln0H-7.js";
|
|
3
|
+
import { C as getImageSizeFromBytes, _ as SLIDE_LAYOUT_REL, b as THEME_REL, c as TEXT_VERTICAL, d as IMAGE_REL, f as NOTES_MASTER_REL, l as checkEnumOrThrow, m as OFFICE_DOCUMENT_REL, o as TEXT_ANCHORS, s as TEXT_HORZ_OVERFLOW, v as SLIDE_MASTER_REL, x as fitSrcRectPercents } from "./st-enums-evQG2A7Z.js";
|
|
4
4
|
import { DOMParser, MIME_TYPE, XMLSerializer, onErrorStopParsing } from "@xmldom/xmldom";
|
|
5
5
|
/** Parse an XML string strictly: any well-formedness error throws. */
|
|
6
6
|
function parseXml(xml) {
|
|
@@ -2614,7 +2614,7 @@ function setTextBodyText(txBody, value) {
|
|
|
2614
2614
|
p = createElement(doc, "a:p");
|
|
2615
2615
|
txBody.appendChild(p);
|
|
2616
2616
|
}
|
|
2617
|
-
for (const child of
|
|
2617
|
+
for (const child of childElements(p)) if (child.localName === "r" || child.localName === "br" || child.localName === "fld") p.removeChild(child);
|
|
2618
2618
|
const run = createElement(doc, "a:r");
|
|
2619
2619
|
if (rPrTemplate) run.appendChild(rPrTemplate.cloneNode(true));
|
|
2620
2620
|
const t = createElement(doc, "a:t");
|
|
@@ -3797,7 +3797,7 @@ var Chart = class {
|
|
|
3797
3797
|
for (let node = plotArea.firstChild; node; node = node.nextSibling) {
|
|
3798
3798
|
if (node.nodeType !== 1) continue;
|
|
3799
3799
|
const element = node;
|
|
3800
|
-
if (element.namespaceURI === OOXML_NS.c &&
|
|
3800
|
+
if (element.namespaceURI === OOXML_NS.c && (element.localName ?? "").endsWith("Ax")) out.push(new ChartAxis(element, this.part));
|
|
3801
3801
|
}
|
|
3802
3802
|
return out;
|
|
3803
3803
|
}
|
|
@@ -5425,6 +5425,27 @@ var TableCell = class {
|
|
|
5425
5425
|
return !!tcPr && FILL_CHOICES.some((q) => firstChild(tcPr, q));
|
|
5426
5426
|
}
|
|
5427
5427
|
/**
|
|
5428
|
+
* `true` when the cell sets an explicit no-fill (`a:tcPr/a:noFill`) — a deliberately
|
|
5429
|
+
* transparent cell showing the table background (or the slide) through. The cell-side
|
|
5430
|
+
* counterpart of {@link import('./shapes.js').AutoShape.fillNoFill}, and what
|
|
5431
|
+
* {@link noFill} writes.
|
|
5432
|
+
*
|
|
5433
|
+
* {@link hasOwnFill} is not this question: it is `true` for *any* `EG_FillProperties`
|
|
5434
|
+
* child, so on its own it cannot separate a suppressed fill from a gradient or an image
|
|
5435
|
+
* one — and every colour accessor ({@link resolvedFill}, {@link fillColor},
|
|
5436
|
+
* {@link fillSchemeColor}) reports `null` for a no-fill cell exactly as it does for a
|
|
5437
|
+
* cell that inherits its shading from the table style. Deriving it as "has a fill of its
|
|
5438
|
+
* own, and no accessor recognises it" instead of reading it has two failure modes: it
|
|
5439
|
+
* folds `a:grpFill` in with `a:noFill`, and its meaning changes silently the day a
|
|
5440
|
+
* further fill kind gets an accessor. The two paint completely differently — an
|
|
5441
|
+
* inherited banding colour versus nothing at all — so a consumer that cannot tell them
|
|
5442
|
+
* apart paints a transparent cell in the style's shading.
|
|
5443
|
+
*/
|
|
5444
|
+
get fillNoFill() {
|
|
5445
|
+
const tcPr = this.#tcPr();
|
|
5446
|
+
return !!tcPr && !!firstChild(tcPr, "a:noFill");
|
|
5447
|
+
}
|
|
5448
|
+
/**
|
|
5428
5449
|
* The cell's picture (image) fill (`a:tcPr/a:blipFill`), or `null` when the cell
|
|
5429
5450
|
* is not image-filled. The cell counterpart of
|
|
5430
5451
|
* {@link import('./shapes.js').AutoShape.pictureFill}: {@link resolvedFill}
|
|
@@ -5886,4 +5907,4 @@ function buildShapes(parent, slide) {
|
|
|
5886
5907
|
//#endregion
|
|
5887
5908
|
export { resolveColor as $, resolveColorElement as A, getOrAddChild as At, placeholderInheritedColor as B, Paragraph as C, childElements as Ct, readPatternFill as D, firstChild as Dt, spPrXfrmEmu as E, escapeXmlAttribute as Et, resolveSlideThemeParts as F, removeAttr as Ft, slideDefinesColor as G, placeholderInheritedRunProps as H, applyColorTransforms as I, removeChildrenByQName as It, fmtEntry as J, slideDefinesProp as K, LST_STYLE_LEVELS as L, replaceInParent as Lt, resolveMasterColorContext as M, intValue as Mt, resolveNotesColorContext as N, ownerDocumentOf as Nt, readPictureFill as O, firstChildElement as Ot, resolveSlideColorContext as P, parseXml as Pt, parseClrScheme as Q, RUN_PROP_NAMES as R, serializeXml as Rt, Shape as S, boolValue as St, TextFrame as T, descendantsByTag as Tt, placeholderInheritedXfrm as U, placeholderInheritedListStyles as V, placeholderOf as W, isA as X, intAttr as Y, parseClrMap as Z, ChartAxis as _, resolveRelativePartName as _t, isGraphicFrame as a, RPR_FILL_AFTER as at, Picture as b, OOXML_NS as bt, wrapShapeElement as c, SPPR_EFFECT_AFTER as ct, TableCell as d, SPPR_SCENE3D_AFTER as dt, resolveSchemeToken as et, TableRow as f, SPPR_SP3D_AFTER as ft, Chart as g, relsPartNameFor as gt, ChartExSeries as h, relativePartName as ht, isConnector as i, FILL_CHOICES as it, resolveLayoutColorContext as j, insertInOrder as jt, readGradientFill as k, getElements as kt, GraphicFrame as l, SPPR_FILL_AFTER as lt, ChartExAxis as m, partNameToZipPath as mt, buildShapes as n, styleRefLine as nt, isGroupShape as o, SHAPE_AFTER_SPPR as ot, ChartEx as p, partNameExtension as pt, SCHEME_SLOTS as q, isAutoShape as r, substitutePhClr as rt, isPicture as s, SPPR_AFTER_XFRM as st, GroupShape as t, styleRefFill as tt, Table as u, SPPR_LN_AFTER as ut, ChartSeries as v, resolveSingleRel as vt, Run as w, createElement as wt, AutoShape as x, attr as xt, Connector as y, zipPathToPartName as yt, placeholderInheritedAnchor as z, setAttr as zt };
|
|
5888
5909
|
|
|
5889
|
-
//# sourceMappingURL=shapes-
|
|
5910
|
+
//# sourceMappingURL=shapes-DMThLsZN.js.map
|