@shbernal/ts-pptx 3.3.0 → 3.4.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/dist/{autopage-D1sqK6j7.js → autopage-BYlTzX-l.js} +8 -5
- package/dist/autopage-BYlTzX-l.js.map +1 -0
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +11 -11
- package/dist/browser.js.map +1 -1
- package/dist/{diagnostics-B2yWpcjB.d.ts → diagnostics-B0OmTOoz.d.ts} +38 -6
- package/dist/diagnostics-B0OmTOoz.d.ts.map +1 -0
- package/dist/{diagnostics-H1QzgRSw.js → diagnostics-CPVADSL1.js} +29 -3
- package/dist/{diagnostics-H1QzgRSw.js.map → diagnostics-CPVADSL1.js.map} +1 -1
- package/dist/{fit-CYJ1jkQI.js → fit-TjpNbMru.js} +3 -3
- package/dist/{fit-CYJ1jkQI.js.map → fit-TjpNbMru.js.map} +1 -1
- package/dist/{html-dom-CzewEdE1.js → html-dom-yUSdCExA.js} +5 -5
- package/dist/html-dom-yUSdCExA.js.map +1 -0
- package/dist/html.d.ts +2 -2
- package/dist/html.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +16 -33
- package/dist/index.js.map +1 -1
- package/dist/inspect.js +5 -4
- package/dist/inspect.js.map +1 -1
- package/dist/measure.d.ts +1 -1
- package/dist/measure.js +1 -1
- package/dist/{st-enums-bVnezkMJ.js → namespaces-Sy_m7Nhd.js} +288 -200
- package/dist/namespaces-Sy_m7Nhd.js.map +1 -0
- package/dist/node.d.ts +4 -4
- package/dist/node.js +7 -19
- package/dist/node.js.map +1 -1
- package/dist/{notes-SCvpJz0l.js → notes-bWApshah.js} +221 -140
- package/dist/notes-bWApshah.js.map +1 -0
- package/dist/{pres-Cb-1xDne.d.ts → pres-Dybf7ZUl.d.ts} +2 -2
- package/dist/{pres-Cb-1xDne.d.ts.map → pres-Dybf7ZUl.d.ts.map} +1 -1
- package/dist/{presentation-DeKTJGHf.js → presentation-3rAKKRfm.js} +154 -230
- package/dist/presentation-3rAKKRfm.js.map +1 -0
- package/dist/{presentation-types-B50aOUFI.d.ts → presentation-types-D7cgT-eG.d.ts} +191 -16
- package/dist/presentation-types-D7cgT-eG.d.ts.map +1 -0
- package/dist/read.d.ts +3 -3
- package/dist/read.js +3 -3
- package/dist/script.d.ts +1 -1
- package/dist/script.d.ts.map +1 -1
- package/dist/script.js +67 -40
- package/dist/script.js.map +1 -1
- package/dist/{shapes-BXVgsk0F.js → shapes-Dyw5bxwO.js} +371 -52
- package/dist/shapes-Dyw5bxwO.js.map +1 -0
- package/dist/{slide-DWw9UoI6.d.ts → slide-B_aInw3N.d.ts} +208 -180
- package/dist/slide-B_aInw3N.d.ts.map +1 -0
- package/dist/{text-uM-zGton.js → text-DSN3anEh.js} +3563 -3437
- package/dist/text-DSN3anEh.js.map +1 -0
- package/dist/{units-internal-CGf4VrXy.js → units-internal-DNvK2I6o.js} +54 -34
- package/dist/{units-internal-CGf4VrXy.js.map → units-internal-DNvK2I6o.js.map} +1 -1
- package/package.json +4 -4
- package/dist/autopage-D1sqK6j7.js.map +0 -1
- package/dist/diagnostics-B2yWpcjB.d.ts.map +0 -1
- package/dist/html-dom-CzewEdE1.js.map +0 -1
- package/dist/notes-SCvpJz0l.js.map +0 -1
- package/dist/presentation-DeKTJGHf.js.map +0 -1
- package/dist/presentation-types-B50aOUFI.d.ts.map +0 -1
- package/dist/shapes-BXVgsk0F.js.map +0 -1
- package/dist/slide-DWw9UoI6.d.ts.map +0 -1
- package/dist/st-enums-bVnezkMJ.js.map +0 -1
- package/dist/text-uM-zGton.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CustomPropertyValue } from "./pres-
|
|
1
|
+
import { t as CustomPropertyValue } from "./pres-Dybf7ZUl.js";
|
|
2
2
|
import { a as Part, i as Relationships, n as OpcPackage, o as Element, t as OpcInput } from "./package-CaOLXSNi.js";
|
|
3
3
|
//#region src/embedded-fonts.d.ts
|
|
4
4
|
/**
|
|
@@ -1143,10 +1143,16 @@ declare abstract class Shape {
|
|
|
1143
1143
|
host: ShapeHost);
|
|
1144
1144
|
/** Which concrete shape kind this is. */
|
|
1145
1145
|
abstract readonly shapeType: ShapeType;
|
|
1146
|
-
/**
|
|
1147
|
-
|
|
1146
|
+
/**
|
|
1147
|
+
* The transform element carrying this shape's geometry, or `null` if inherited.
|
|
1148
|
+
*
|
|
1149
|
+
* Defaults to `p:spPr/a:xfrm`, which is where three of the four shape kinds keep it
|
|
1150
|
+
* (`p:sp`, `p:pic`, `p:cxnSp`). {@link GraphicFrame} overrides it: a `p:graphicFrame`
|
|
1151
|
+
* has no `p:spPr` and carries a `p:xfrm` of its own directly.
|
|
1152
|
+
*/
|
|
1153
|
+
protected xfrm(): Element | null;
|
|
1148
1154
|
/** The transform element, creating it (and its container) in document order if absent. */
|
|
1149
|
-
protected
|
|
1155
|
+
protected getOrAddXfrm(): Element;
|
|
1150
1156
|
/**
|
|
1151
1157
|
* Mark the owning host's part dirty so `save()` reserializes it. Public
|
|
1152
1158
|
* because {@link element_} hands out the live DOM node: the hatch and the
|
|
@@ -1495,8 +1501,6 @@ declare abstract class Shape {
|
|
|
1495
1501
|
/** An auto shape, text box, or placeholder (`p:sp`). The only kind that holds text. */
|
|
1496
1502
|
declare class AutoShape extends Shape {
|
|
1497
1503
|
readonly shapeType: 'autoShape';
|
|
1498
|
-
protected xfrm(): Element | null;
|
|
1499
|
-
protected getOrAddXfrm(): Element;
|
|
1500
1504
|
get hasTextFrame(): boolean;
|
|
1501
1505
|
get textFrame(): TextFrame | null;
|
|
1502
1506
|
/**
|
|
@@ -1521,8 +1525,6 @@ declare class AutoShape extends Shape {
|
|
|
1521
1525
|
declare class Picture extends Shape {
|
|
1522
1526
|
#private;
|
|
1523
1527
|
readonly shapeType: 'picture';
|
|
1524
|
-
protected xfrm(): Element | null;
|
|
1525
|
-
protected getOrAddXfrm(): Element;
|
|
1526
1528
|
protected get supportsFill(): boolean;
|
|
1527
1529
|
/** Relationship id of the embedded image (`p:blipFill/a:blip/@r:embed`), or `null`. */
|
|
1528
1530
|
get imageRelId(): string | null;
|
|
@@ -1633,8 +1635,6 @@ declare class Picture extends Shape {
|
|
|
1633
1635
|
declare class Connector extends Shape {
|
|
1634
1636
|
#private;
|
|
1635
1637
|
readonly shapeType: 'connector';
|
|
1636
|
-
protected xfrm(): Element | null;
|
|
1637
|
-
protected getOrAddXfrm(): Element;
|
|
1638
1638
|
/**
|
|
1639
1639
|
* The connector's **start**-point shape binding (`p:nvCxnSpPr/p:cNvCxnSpPr/a:stCxn`),
|
|
1640
1640
|
* or `null` when the start point is unbound (a bare `p:cNvCxnSpPr`, i.e. a
|
|
@@ -1971,6 +1971,158 @@ declare class ChartExAxis {
|
|
|
1971
1971
|
markDirty(): void;
|
|
1972
1972
|
}
|
|
1973
1973
|
//#endregion
|
|
1974
|
+
//#region src/read/api/diagram.d.ts
|
|
1975
|
+
/**
|
|
1976
|
+
* `ST_PtType` — what a `dgm:pt` is.
|
|
1977
|
+
*
|
|
1978
|
+
* - `node` — a user-authored node, and the default when `@type` is absent.
|
|
1979
|
+
* - `asst` — an assistant node (an org chart's off-branch box); user content too.
|
|
1980
|
+
* - `doc` — the data model's single root; carries the layout/style/colour preset ids.
|
|
1981
|
+
* - `pres` — generated by the layout engine to position a node; never user content.
|
|
1982
|
+
* - `parTrans` / `sibTrans` — the two transition points of an edge, which a few layouts
|
|
1983
|
+
* (arrow processes, org-chart branches) let the user type a label into.
|
|
1984
|
+
*/
|
|
1985
|
+
type DiagramPointType = 'node' | 'asst' | 'doc' | 'pres' | 'parTrans' | 'sibTrans';
|
|
1986
|
+
/**
|
|
1987
|
+
* `ST_CxnType` — what a `dgm:cxn` asserts. `parOf` (the default) is the parent/child edge of
|
|
1988
|
+
* the user's tree; `presOf` and `presParOf` bind a node to the generated `pres` point that
|
|
1989
|
+
* draws it, and are the layout engine's bookkeeping rather than structure.
|
|
1990
|
+
*/
|
|
1991
|
+
type DiagramConnectionType = 'parOf' | 'presOf' | 'presParOf' | 'unknownRelationship';
|
|
1992
|
+
/**
|
|
1993
|
+
* One edge of a diagram's data model (`dgm:cxn`) — an attribute-only element, so it reads as
|
|
1994
|
+
* plain data rather than as a proxy.
|
|
1995
|
+
*
|
|
1996
|
+
* The ids are `ST_ModelId` GUIDs matching a {@link DiagramPoint.modelId}. `parOf` edges are
|
|
1997
|
+
* the tree a reader cares about: `sourceId` is the parent, `destinationId` the child, and
|
|
1998
|
+
* `sourceOrder` the child's position among its siblings.
|
|
1999
|
+
*/
|
|
2000
|
+
interface DiagramConnection {
|
|
2001
|
+
/** This edge's own id (`@modelId`). */
|
|
2002
|
+
modelId: string | null;
|
|
2003
|
+
/** What the edge asserts (`@type`); `parOf` when absent, its schema default. */
|
|
2004
|
+
type: DiagramConnectionType;
|
|
2005
|
+
/** The `@srcId` end — the parent, for a `parOf` edge. */
|
|
2006
|
+
sourceId: string | null;
|
|
2007
|
+
/** The `@destId` end — the child, for a `parOf` edge. */
|
|
2008
|
+
destinationId: string | null;
|
|
2009
|
+
/** The child's index among its siblings (`@srcOrd`). */
|
|
2010
|
+
sourceOrder: number | null;
|
|
2011
|
+
/** The parent's index as seen from the child (`@destOrd`). */
|
|
2012
|
+
destinationOrder: number | null;
|
|
2013
|
+
/** The `parTrans` point labelling this edge (`@parTransId`), or `null` when unset. */
|
|
2014
|
+
parentTransitionId: string | null;
|
|
2015
|
+
/** The `sibTrans` point labelling this edge (`@sibTransId`), or `null` when unset. */
|
|
2016
|
+
siblingTransitionId: string | null;
|
|
2017
|
+
/** The layout preset this edge belongs to (`@presId`), set on generated edges only. */
|
|
2018
|
+
presentationId: string | null;
|
|
2019
|
+
}
|
|
2020
|
+
/** One point (`dgm:pt`) of a diagram's data model. */
|
|
2021
|
+
declare class DiagramPoint {
|
|
2022
|
+
#private;
|
|
2023
|
+
private readonly pt;
|
|
2024
|
+
/** The diagram data part, so a text edit marks the right part dirty. */
|
|
2025
|
+
private readonly part;
|
|
2026
|
+
private readonly themeContext?;
|
|
2027
|
+
private readonly relationships?;
|
|
2028
|
+
constructor(pt: Element,
|
|
2029
|
+
/** The diagram data part, so a text edit marks the right part dirty. */
|
|
2030
|
+
part: Part, themeContext?: ThemeContext | undefined, relationships?: Relationships | undefined);
|
|
2031
|
+
/** This point's id (`@modelId`), which connections reference. */
|
|
2032
|
+
get modelId(): string | null;
|
|
2033
|
+
/** What kind of point this is (`@type`); `node` when absent, its schema default. */
|
|
2034
|
+
get type(): DiagramPointType;
|
|
2035
|
+
/**
|
|
2036
|
+
* For a transition point, the edge it labels (`@cxnId`), or `null`. The schema's default
|
|
2037
|
+
* is the literal `0`, which means "none" rather than naming a point, so it reads `null`.
|
|
2038
|
+
*/
|
|
2039
|
+
get connectionId(): string | null;
|
|
2040
|
+
/**
|
|
2041
|
+
* Whether this point is an unfilled prompt (`dgm:prSet/@phldr`) — a node PowerPoint draws
|
|
2042
|
+
* with a grey placeholder string and treats as empty. Excluded from {@link Diagram.text}:
|
|
2043
|
+
* a layout that stores its prompt in `dgm:t` would otherwise extract as content.
|
|
2044
|
+
*/
|
|
2045
|
+
get isPlaceholder(): boolean;
|
|
2046
|
+
/** The prompt string a placeholder point displays (`dgm:prSet/@phldrT`), or `null`. */
|
|
2047
|
+
get placeholderText(): string | null;
|
|
2048
|
+
/**
|
|
2049
|
+
* This point's text body (`dgm:t`) as a {@link TextFrame}, or `null` when the point
|
|
2050
|
+
* carries none. It is an `a:CT_TextBody` like any other, so `paragraphs`, `runs` and the
|
|
2051
|
+
* `resolved*` getters all apply.
|
|
2052
|
+
*/
|
|
2053
|
+
get textFrame(): TextFrame | null;
|
|
2054
|
+
/** This point's text, paragraphs joined by `\n`; `''` when it carries none. */
|
|
2055
|
+
get text(): string;
|
|
2056
|
+
/** Escape hatch: the underlying `dgm:pt` element. After mutating it call {@link Diagram.markDirty}. */
|
|
2057
|
+
get element_(): Element;
|
|
2058
|
+
}
|
|
2059
|
+
/** A SmartArt graphic frame's diagram, backed by its `dgm:dataModel` part. */
|
|
2060
|
+
declare class Diagram {
|
|
2061
|
+
#private;
|
|
2062
|
+
/** The diagram's data part (`/ppt/diagrams/data{N}.xml`), whose root is `dgm:dataModel`. */
|
|
2063
|
+
readonly part: Part;
|
|
2064
|
+
/** The frame's `dgm:relIds`, which names the other three parts by relationship id. */
|
|
2065
|
+
private readonly relIds;
|
|
2066
|
+
private readonly opc;
|
|
2067
|
+
/** Relationships of the part holding the frame — what `dgm:relIds` resolves against. */
|
|
2068
|
+
private readonly frameRelationships;
|
|
2069
|
+
private readonly themeContext?;
|
|
2070
|
+
constructor(
|
|
2071
|
+
/** The diagram's data part (`/ppt/diagrams/data{N}.xml`), whose root is `dgm:dataModel`. */
|
|
2072
|
+
part: Part,
|
|
2073
|
+
/** The frame's `dgm:relIds`, which names the other three parts by relationship id. */
|
|
2074
|
+
relIds: Element, opc: OpcPackage,
|
|
2075
|
+
/** Relationships of the part holding the frame — what `dgm:relIds` resolves against. */
|
|
2076
|
+
frameRelationships: Relationships, themeContext?: ThemeContext | undefined);
|
|
2077
|
+
/** Partname of the diagram data part. */
|
|
2078
|
+
get partName(): string;
|
|
2079
|
+
/**
|
|
2080
|
+
* Every point (`dgm:ptLst/dgm:pt`) in document order, unfiltered — generated `pres`
|
|
2081
|
+
* points and the `doc` root included. Filter on {@link DiagramPoint.type} for the user's
|
|
2082
|
+
* nodes; {@link text} is the shortcut for the common case.
|
|
2083
|
+
*/
|
|
2084
|
+
get points(): DiagramPoint[];
|
|
2085
|
+
/** Every edge (`dgm:cxnLst/dgm:cxn`) in document order. */
|
|
2086
|
+
get connections(): DiagramConnection[];
|
|
2087
|
+
/**
|
|
2088
|
+
* The diagram's text in document order, blocks joined by `\n` — the counterpart to
|
|
2089
|
+
* `TextFrame.text` for a construct that has no single text body.
|
|
2090
|
+
*
|
|
2091
|
+
* Contributing points are the ones a user can type into: everything except the generated
|
|
2092
|
+
* `pres` points, the `doc` root, and any point flagged as an unfilled placeholder. A
|
|
2093
|
+
* point with no text contributes no blank line. Transition labels (`parTrans`/`sibTrans`)
|
|
2094
|
+
* are included where a layout has them, which is why this is not simply the node list.
|
|
2095
|
+
*/
|
|
2096
|
+
get text(): string;
|
|
2097
|
+
/**
|
|
2098
|
+
* The layout preset the diagram is drawn with (the `doc` point's `dgm:prSet/@loTypeId`),
|
|
2099
|
+
* e.g. `urn:microsoft.com/office/officeart/2005/8/layout/hList1`. This is what names the
|
|
2100
|
+
* SmartArt *kind*; {@link layoutPart} is that preset's definition.
|
|
2101
|
+
*/
|
|
2102
|
+
get layoutTypeId(): string | null;
|
|
2103
|
+
/** The quick-style preset (the `doc` point's `dgm:prSet/@qsTypeId`). */
|
|
2104
|
+
get quickStyleTypeId(): string | null;
|
|
2105
|
+
/** The colour preset (the `doc` point's `dgm:prSet/@csTypeId`). */
|
|
2106
|
+
get colorsTypeId(): string | null;
|
|
2107
|
+
/** The layout definition part (`dgm:relIds/@r:lo`), or `null` when missing from the package. */
|
|
2108
|
+
get layoutPart(): Part | null;
|
|
2109
|
+
/** The quick-style part (`dgm:relIds/@r:qs`), or `null` when missing from the package. */
|
|
2110
|
+
get quickStylePart(): Part | null;
|
|
2111
|
+
/** The colours part (`dgm:relIds/@r:cs`), or `null` when missing from the package. */
|
|
2112
|
+
get colorsPart(): Part | null;
|
|
2113
|
+
/**
|
|
2114
|
+
* The fallback drawing part (`dsp:drawing`) that renders the diagram for a consumer with
|
|
2115
|
+
* no SmartArt layout engine, or `null` when the deck carries none. It is named by an MS
|
|
2116
|
+
* extension on the data model rather than by `dgm:relIds`, so a slide holding two
|
|
2117
|
+
* diagrams still resolves each to its own drawing.
|
|
2118
|
+
*/
|
|
2119
|
+
get drawingPart(): Part | null;
|
|
2120
|
+
/** Escape hatch: the underlying `dgm:dataModel` element. After mutating it call {@link markDirty}, or `save()` writes the original bytes. */
|
|
2121
|
+
get element_(): Element | null;
|
|
2122
|
+
/** Mark the diagram data part dirty so `save()` reserializes it. Call after mutating {@link element_}. */
|
|
2123
|
+
markDirty(): void;
|
|
2124
|
+
}
|
|
2125
|
+
//#endregion
|
|
1974
2126
|
//#region src/read/api/table-edit.d.ts
|
|
1975
2127
|
/** The four edges plus the two diagonals, keyed as {@link TableCellEdge} names them. */
|
|
1976
2128
|
declare const EDGE_QNAMES: {
|
|
@@ -2570,7 +2722,7 @@ declare class TableCell {
|
|
|
2570
2722
|
}
|
|
2571
2723
|
//#endregion
|
|
2572
2724
|
//#region src/read/api/shapes/graphic-frame.d.ts
|
|
2573
|
-
/** A graphic frame (`p:graphicFrame`) — host for tables and
|
|
2725
|
+
/** A graphic frame (`p:graphicFrame`) — host for tables, charts and SmartArt diagrams. */
|
|
2574
2726
|
declare class GraphicFrame extends Shape {
|
|
2575
2727
|
#private;
|
|
2576
2728
|
readonly shapeType: 'graphicFrame';
|
|
@@ -2583,6 +2735,18 @@ declare class GraphicFrame extends Shape {
|
|
|
2583
2735
|
get hasChart(): boolean;
|
|
2584
2736
|
/** Whether this frame hosts a chartEx chart (`a:graphicData/@uri` is the chartEx URI). */
|
|
2585
2737
|
get hasChartEx(): boolean;
|
|
2738
|
+
/** Whether this frame hosts a SmartArt diagram (`a:graphicData/@uri` is the diagram URI). */
|
|
2739
|
+
get hasDiagram(): boolean;
|
|
2740
|
+
/**
|
|
2741
|
+
* The `a:graphicData/@uri` verbatim — the namespace naming what this frame hosts, or
|
|
2742
|
+
* `null` when the frame carries no `a:graphicData`.
|
|
2743
|
+
*
|
|
2744
|
+
* Every `has*` predicate is a comparison against this, so a frame whose URI matches none
|
|
2745
|
+
* of them is one the read model does not decode (an OLE object, an ink `p:contentPart`).
|
|
2746
|
+
* Reading the URI is what lets a consumer say *which* construct it could not reach
|
|
2747
|
+
* instead of inferring loss from four `false`s.
|
|
2748
|
+
*/
|
|
2749
|
+
get graphicDataUri(): string | null;
|
|
2586
2750
|
/** The hosted table, or `null` when this frame is not a table. */
|
|
2587
2751
|
get table(): Table | null;
|
|
2588
2752
|
/** The hosted chart, or `null` when this frame is not a chart or its part is missing. */
|
|
@@ -2593,6 +2757,12 @@ declare class GraphicFrame extends Shape {
|
|
|
2593
2757
|
* `cx:chart` (not the classic `c:chart`), carrying the MS `chartEx` rel id.
|
|
2594
2758
|
*/
|
|
2595
2759
|
get chartEx(): ChartEx | null;
|
|
2760
|
+
/**
|
|
2761
|
+
* The hosted SmartArt diagram, or `null` when this frame is not a diagram or its data
|
|
2762
|
+
* part is missing. The payload child is `dgm:relIds`, which names four parts by
|
|
2763
|
+
* relationship id; the `@r:dm` one is the data model this resolves.
|
|
2764
|
+
*/
|
|
2765
|
+
get diagram(): Diagram | null;
|
|
2596
2766
|
}
|
|
2597
2767
|
//#endregion
|
|
2598
2768
|
//#region src/read/api/shapes.d.ts
|
|
@@ -3294,9 +3464,14 @@ declare class Slide implements ShapeHost {
|
|
|
3294
3464
|
* All text on the slide, flattened in document order — the read-model
|
|
3295
3465
|
* counterpart to {@link TextFrame.text} one level up. Every text-bearing shape
|
|
3296
3466
|
* contributes its text, recursing into groups ({@link GroupShape}) and reading
|
|
3297
|
-
* table cells ({@link GraphicFrame.table})
|
|
3298
|
-
*
|
|
3299
|
-
*
|
|
3467
|
+
* table cells ({@link GraphicFrame.table}) and SmartArt node text
|
|
3468
|
+
* ({@link GraphicFrame.diagram}); text-free shapes (pictures, connectors, empty
|
|
3469
|
+
* boxes) contribute nothing. Blocks are joined by `\n`; within a table, cells in
|
|
3470
|
+
* a row are joined by `\t` and rows by `\n`.
|
|
3471
|
+
*
|
|
3472
|
+
* A diagram contributes for the same reason a table does: its nodes are body text
|
|
3473
|
+
* PowerPoint itself searches and spell-checks, so a slide whose whole message is a
|
|
3474
|
+
* SmartArt graphic would otherwise flatten to the empty string.
|
|
3300
3475
|
*
|
|
3301
3476
|
* This is deliberately scoped to the slide's own shape tree. It does **not**
|
|
3302
3477
|
* include speaker notes (read those via {@link notesText}) or chart data labels
|
|
@@ -4455,5 +4630,5 @@ interface FromTemplateOptions {
|
|
|
4455
4630
|
keepTemplateContentType?: boolean;
|
|
4456
4631
|
}
|
|
4457
4632
|
//#endregion
|
|
4458
|
-
export { CellThreeD as $,
|
|
4459
|
-
//# sourceMappingURL=presentation-types-
|
|
4633
|
+
export { CellThreeD as $, ShapeType as $t, Theme as A, AutofitMode as At, ModernCommentAuthor as B, ChildFrame as Bt, TransitionInfo as C, ChartLine as Ct, Placeholder as D, AutoShape as Dt, ColorMapToken as E, Picture as Et, readTagsForPart as F, Paragraph as Ft, isAutoShape as G, Glow as Gt, NotesSlide as H, CustomGeometry as Ht, Comment as I, Run as It, isGroupShape as J, LineEnds as Jt, isConnector as K, InnerShadow as Kt, CommentAuthor as L, RunHyperlink as Lt, ThemeFontFace as M, BulletDetail as Mt, ThemeFontScheme as N, BulletStyle as Nt, SlideLayout as O, Shape as Ot, Tag as P, LineSpacing as Pt, CellBorders as Q, Reflection as Qt, CommentSchema as R, TextFrame as Rt, Slide as S, ChartLegend as St, TransitionSpeed as T, Connector as Tt, AnyShape as U, CustomGeometryPath as Ut, NotesPlaceholder as V, ConnectionSite as Vt, GroupShape as W, GeometryCommand as Wt, GraphicFrame as X, Recolor as Xt, isPicture as Y, OuterShadow as Yt, CellBorder as Z, RecolorColor as Zt, CustomProperty as _, AxisNumberFormat as _t, ExtractedSlides as a, FillRect as an, TableConditionFlags as at, AddPictureOptions as b, ChartDataLabels as bt, ImportSlideMastersOptions as c, GradientFill as cn, DiagramConnection as ct, ImportedSlideMaster as d, resolveColorElement as dn, DiagramPointType as dt, SoftEdge as en, Table as et, LayoutHandle as f, ColorContext as fn, ChartEx as ft, CoreProperties as g, ChartExSeries as gt, Presentation as h, ChartExLegend as ht, ExtractedSlide as i, SlideBackground as in, ResolvedTableStyle as it, ThemeColorSlot as j, BodyProperties as jt, SlideMaster as k, ShapeHost as kt, ImportSlideOptions as l, GradientStop as ln, DiagramConnectionType as lt, SlideSource as m, ChartExDataLabels as mt, EmbeddedFontFaceInfo as n, BackgroundFill as nn, TableCellBorderEdit as nt, FromTemplateOptions as o, PictureFill as on, TableCellEdge as ot, SlideSize as p, EmbeddedFontSlot as pn, ChartExAxis as pt, isGraphicFrame as q, LineEnd as qt, EmbeddedFontInfo as r, BackgroundSource as rn, TableRow as rt, ImportShapeOptions as s, PictureFillTile as sn, Diagram as st, AppendSlidesOptions as t, PatternFill as tn, TableCell as tt, ImportSlidesRequest as u, ResolvedColor as un, DiagramPoint as ut, readCoreProperties as v, Chart as vt, TransitionInput as w, ChartSeries as wt, AddTextBoxOptions as x, ChartFill as xt, readCustomProperties as y, ChartAxis as yt, ModernComment as z, AbsoluteFrame as zt };
|
|
4634
|
+
//# sourceMappingURL=presentation-types-D7cgT-eG.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-types-D7cgT-eG.d.ts","names":[],"sources":["../src/embedded-fonts.ts","../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/diagram.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","../src/read/api/presentation-types.ts"],"mappings":";;;;;;;;cA8Ba;KACD,2BAA2B;;UAGtB;EAChB,MAAM;EACN,QAAQ;;;UAIQ;;EAEhB;EACA;EACA;EACA;EACA,OAAO;;;;;;;;;;UCgBS;EA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$t as ShapeType, A as Theme, At as AutofitMode, B as ModernCommentAuthor, Bt as ChildFrame, C as TransitionInfo, Ct as ChartLine, D as Placeholder, Dt as AutoShape, E as ColorMapToken, Et as Picture, F as readTagsForPart, Ft as Paragraph, G as isAutoShape, Gt as Glow, H as NotesSlide, Ht as CustomGeometry, I as Comment, It as Run, J as isGroupShape, Jt as LineEnds, K as isConnector, Kt as InnerShadow, L as CommentAuthor, Lt as RunHyperlink, M as ThemeFontFace, Mt as BulletDetail, N as ThemeFontScheme, Nt as BulletStyle, O as SlideLayout, Ot as Shape, P as Tag, Pt as LineSpacing, Q as CellBorders, Qt as Reflection, R as CommentSchema, Rt as TextFrame, S as Slide, St as ChartLegend, T as TransitionSpeed, Tt as Connector, U as AnyShape, Ut as CustomGeometryPath, V as NotesPlaceholder, Vt as ConnectionSite, W as GroupShape, Wt as GeometryCommand, X as GraphicFrame, Xt as Recolor, Y as isPicture, Yt as OuterShadow, Z as CellBorder, Zt as RecolorColor, _ as CustomProperty, _t as AxisNumberFormat, a as ExtractedSlides, an as FillRect, at as TableConditionFlags, b as AddPictureOptions, bt as ChartDataLabels, c as ImportSlideMastersOptions, cn as GradientFill, ct as DiagramConnection, d as ImportedSlideMaster, dn as resolveColorElement, dt as DiagramPointType, en as SoftEdge, et as Table, f as LayoutHandle, fn as ColorContext, ft as ChartEx, g as CoreProperties, gt as ChartExSeries, h as Presentation, ht as ChartExLegend, i as ExtractedSlide, in as SlideBackground, it as ResolvedTableStyle, j as ThemeColorSlot, jt as BodyProperties, k as SlideMaster, kt as ShapeHost, l as ImportSlideOptions, ln as GradientStop, lt as DiagramConnectionType, m as SlideSource, mt as ChartExDataLabels, n as EmbeddedFontFaceInfo, nn as BackgroundFill, nt as TableCellBorderEdit, o as FromTemplateOptions, on as PictureFill, ot as TableCellEdge, p as SlideSize, pt as ChartExAxis, q as isGraphicFrame, qt as LineEnd, r as EmbeddedFontInfo, rn as BackgroundSource, rt as TableRow, s as ImportShapeOptions, sn as PictureFillTile, st as Diagram, t as AppendSlidesOptions, tn as PatternFill, tt as TableCell, u as ImportSlidesRequest, un as ResolvedColor, ut as DiagramPoint, v as readCoreProperties, vt as Chart, w as TransitionInput, wt as ChartSeries, x as AddTextBoxOptions, xt as ChartFill, y as readCustomProperties, yt as ChartAxis, z as ModernComment, zt as AbsoluteFrame } from "./presentation-types-D7cgT-eG.js";
|
|
3
3
|
import { a as Part, i as Relationships, n as OpcPackage, r as Relationship, s as ContentTypes, t as OpcInput } from "./package-CaOLXSNi.js";
|
|
4
4
|
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-fB1KDJKQ.js";
|
|
5
5
|
//#region src/read/opc/partnames.d.ts
|
|
@@ -68,5 +68,5 @@ interface EffectiveColor {
|
|
|
68
68
|
*/
|
|
69
69
|
declare function applyColorTransforms(baseHex: string, transforms: ColorTransform[]): EffectiveColor;
|
|
70
70
|
//#endregion
|
|
71
|
-
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 ImportSlidesRequest, 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 };
|
|
71
|
+
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, Diagram, type DiagramConnection, type DiagramConnectionType, DiagramPoint, type DiagramPointType, 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 ImportSlidesRequest, 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 };
|
|
72
72
|
//# sourceMappingURL=read.d.ts.map
|
package/dist/read.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
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
|
|
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-
|
|
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 };
|
|
2
|
+
import { C as Picture, D as Run, Dt as relsPartNameFor, E as Paragraph, N as resolveColorElement, O as TextFrame, Ot as resolveRelativePartName, S as Connector, T as Shape, _ as ChartExAxis, a as isConnector, b as ChartAxis, c as isPicture, d as Table, f as TableCell, g as ChartEx, h as DiagramPoint, i as isAutoShape, m as Diagram, o as isGraphicFrame, p as TableRow, s as isGroupShape, t as GroupShape, u as GraphicFrame, v as ChartExSeries, w as AutoShape, x as ChartSeries, y as Chart, z as applyColorTransforms } from "./shapes-Dyw5bxwO.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-3rAKKRfm.js";
|
|
4
|
+
export { AutoShape, Chart, ChartAxis, ChartEx, ChartExAxis, ChartExSeries, ChartSeries, Connector, ContentTypes, Diagram, DiagramPoint, 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,4 +1,4 @@
|
|
|
1
|
-
import { h as Presentation } from "./presentation-types-
|
|
1
|
+
import { h as Presentation } from "./presentation-types-D7cgT-eG.js";
|
|
2
2
|
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-fB1KDJKQ.js";
|
|
3
3
|
//#region src/script/fidelity.d.ts
|
|
4
4
|
/**
|
package/dist/script.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script.d.ts","names":[],"sources":["../src/script/fidelity.ts","../src/script/ir.ts","../src/script/from-read/deck.ts","../src/script/print/common.ts","../src/script/print/script.ts","../src/script/print/standalone.ts","../src/script/verify/canonical.ts","../src/script/verify/diff.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAoBY;;;;;;;;;;;;;;;;;;;;;KAsBA;;;;;;;;UASK;;EAEhB;;EAEA;;;;;;;EAOA;EACA,aAAa;EACb,OAAO;;EAEP;;;;;;;;;;;;;;;;;;;;cAkDY;;;;;;;;;;;;UC/EI;EAChB;;;iBAIe,WAAW,iBAAiB,SAAS;;;;;;;KAUzC,6CAA6C,WAAW;GAAe,cAAc;;;UAmBhF;;EAEhB;;EAEA;EACA,OAAO;;;;;;;;;;UAWS;EAChB;EACA,MAAM;;;;;EAKN;;;;;;;;;;;;;;;;;;;;KAqBW;;;;;;;;UASK;EAChB;EACA;EACA,OAAO;;;;;;;;;;UAWS;;EAEhB,OAAO;;EAEP;;EAEA;;EAEA;;;;;;;;;;;;;UAcgB;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;KAAa;;EACb,QAAQ;;;;;;;;;;;;;UAcQ;;EAEhB;;EAEA;;EAEA;;;UAIgB;;EAEhB;EACA,QAAQ;;EAER,QAAQ;;EAER;;EAEA;EACA,aAAa;;EAEb;;;;;;EAMA,aAAa;;;;;;;;;EASb,OAAO;;;;;;;;;;UAWS;EAChB;EACA;EACA;EACA;EACA;EACA;;EAEA;KAAiB;;;;;;;;;;UAUD;;;;;EAKhB;;;;;;EAMA;KAAU,cAAc;;;;;;;UAOR;EAChB,OAAO;;EAEP,SAAS;;;UAIO;EAChB;EACA;EACA;EACA;EACA;;;;;;;;;UAUgB;EAChB;IAAa;IAAkB;;EAC/B,OAAO;;;;;EAKP,QAAQ;EACR,QAAQ;EACR,QAAQ;;;;;;;EAOR,UAAU;;;;;iBCzNK,cAAc,MAAM,eAAe;;;;KC5EvC;;;;;UAMK;;EAEhB;;;;;;EAMA,QAAQ,YAAY;;;;;;EAMpB,OAAO;;;;
|
|
1
|
+
{"version":3,"file":"script.d.ts","names":[],"sources":["../src/script/fidelity.ts","../src/script/ir.ts","../src/script/from-read/deck.ts","../src/script/print/common.ts","../src/script/print/script.ts","../src/script/print/standalone.ts","../src/script/verify/canonical.ts","../src/script/verify/diff.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;KAoBY;;;;;;;;;;;;;;;;;;;;;KAsBA;;;;;;;;UASK;;EAEhB;;EAEA;;;;;;;EAOA;EACA,aAAa;EACb,OAAO;;EAEP;;;;;;;;;;;;;;;;;;;;cAkDY;;;;;;;;;;;;UC/EI;EAChB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;;;;;;;;;;EAWA,YAAY;EACZ,OAAO;;;;;;;;;;;;UAaS;EAChB,OAAO;;EAEP,SAAS;;UAGO;EAChB;IAAa;IAAkB;;;EAE/B,OAAO;EACP,QAAQ;EACR,QAAQ;;;iBAoDO,gBAAgB,IAAI,SAAS;;;;;;;;;;;;;KCvFjC;UAsDK;;EAEhB;;EAEA;;;;;EAKA;;EAEA;;;;;;;EAOA;EACA,MAAM;;EAEN;;EAEA;;EAEA,YAAY;;UAGI;EAChB;;EAEA,aAAa;;;;;EAKb,YAAY;;EAEZ,UAAU;;EAEV,OAAO;;;;;;;;;EASP,gBAAgB;;;;;;;iBAgMD;;;;;;;;;iBAYA,WAAW,UAAU,eAAe,QAAQ,eAAe,OAAO,iBAAiB;;;;;iBAiYnF,qBAAqB"}
|
package/dist/script.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
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 {
|
|
2
|
+
import { t as OOXML_NS } from "./namespaces-Sy_m7Nhd.js";
|
|
3
|
+
import { a as isConnector, c as isPicture, i as isAutoShape, o as isGraphicFrame, s as isGroupShape } from "./shapes-Dyw5bxwO.js";
|
|
3
4
|
//#region src/script/fidelity.ts
|
|
4
5
|
/**
|
|
5
6
|
* Accumulates notes while a deck is walked, so the walk itself stays a plain
|
|
@@ -350,12 +351,8 @@ function noteUncarriedGeometry(picture, notes, subject) {
|
|
|
350
351
|
* Each check here is a standing argument for a real accessor. When one lands, the
|
|
351
352
|
* corresponding function should be deleted, not kept in sync.
|
|
352
353
|
*/
|
|
353
|
-
/** DrawingML main namespace — hosts `a:videoFile` / `a:audioFile` under `p:nvPr`. */
|
|
354
|
-
const A_NS = "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
355
354
|
/** Office MathML namespace — the equation body itself, wrapped by `a14:m` in a text run. */
|
|
356
355
|
const MATH_NS = "http://schemas.openxmlformats.org/officeDocument/2006/math";
|
|
357
|
-
/** PresentationML main namespace — `p:grpSpPr`, `p:txStyles`, `p:spTree`. */
|
|
358
|
-
const P_NS = "http://schemas.openxmlformats.org/presentationml/2006/main";
|
|
359
356
|
/** Shape-tree children that carry drawing content, as opposed to the tree's own properties. */
|
|
360
357
|
const SHAPE_ELEMENTS = /* @__PURE__ */ new Set([
|
|
361
358
|
"sp",
|
|
@@ -404,7 +401,7 @@ function children(element) {
|
|
|
404
401
|
* without this check a video converts to a static image that looks deliberate.
|
|
405
402
|
*/
|
|
406
403
|
function isAudioVideo(element) {
|
|
407
|
-
return has(element,
|
|
404
|
+
return has(element, OOXML_NS.a, "videoFile") || has(element, OOXML_NS.a, "audioFile");
|
|
408
405
|
}
|
|
409
406
|
/**
|
|
410
407
|
* `true` when this shape's text body contains an OMML equation.
|
|
@@ -431,7 +428,7 @@ function hasEquation(element) {
|
|
|
431
428
|
* would otherwise answer for its first child.
|
|
432
429
|
*/
|
|
433
430
|
function isTextBox(element) {
|
|
434
|
-
return child(child(element,
|
|
431
|
+
return child(child(element, OOXML_NS.p, "nvSpPr"), OOXML_NS.p, "cNvSpPr")?.getAttribute("txBox") === "1";
|
|
435
432
|
}
|
|
436
433
|
/**
|
|
437
434
|
* `true` when a group's child coordinate space equals its own frame, so its children are
|
|
@@ -446,12 +443,12 @@ function isTextBox(element) {
|
|
|
446
443
|
* `true` rather than unknown.
|
|
447
444
|
*/
|
|
448
445
|
function hasIdentityChildSpace(element) {
|
|
449
|
-
const xfrm = child(child(element,
|
|
446
|
+
const xfrm = child(child(element, OOXML_NS.p, "grpSpPr"), OOXML_NS.a, "xfrm");
|
|
450
447
|
if (!xfrm) return true;
|
|
451
|
-
const off = child(xfrm,
|
|
452
|
-
const ext = child(xfrm,
|
|
453
|
-
const chOff = child(xfrm,
|
|
454
|
-
const chExt = child(xfrm,
|
|
448
|
+
const off = child(xfrm, OOXML_NS.a, "off");
|
|
449
|
+
const ext = child(xfrm, OOXML_NS.a, "ext");
|
|
450
|
+
const chOff = child(xfrm, OOXML_NS.a, "chOff");
|
|
451
|
+
const chExt = child(xfrm, OOXML_NS.a, "chExt");
|
|
455
452
|
if (!off || !ext || !chOff || !chExt) return true;
|
|
456
453
|
return off.getAttribute("x") === chOff.getAttribute("x") && off.getAttribute("y") === chOff.getAttribute("y") && ext.getAttribute("cx") === chExt.getAttribute("cx") && ext.getAttribute("cy") === chExt.getAttribute("cy");
|
|
457
454
|
}
|
|
@@ -464,7 +461,7 @@ function hasIdentityChildSpace(element) {
|
|
|
464
461
|
* scheme is repainted with Office's, and this is the only way to notice.
|
|
465
462
|
*/
|
|
466
463
|
function hasFormatScheme(element) {
|
|
467
|
-
return has(element,
|
|
464
|
+
return has(element, OOXML_NS.a, "fmtScheme");
|
|
468
465
|
}
|
|
469
466
|
/**
|
|
470
467
|
* `true` when this slide master declares per-level text styles (`p:txStyles`) with content.
|
|
@@ -474,7 +471,7 @@ function hasFormatScheme(element) {
|
|
|
474
471
|
* converter and comes back as PowerPoint's built-in default.
|
|
475
472
|
*/
|
|
476
473
|
function hasTextStyles(element) {
|
|
477
|
-
return children(child(element,
|
|
474
|
+
return children(child(element, OOXML_NS.p, "txStyles")).some((group) => children(group).length > 0);
|
|
478
475
|
}
|
|
479
476
|
/**
|
|
480
477
|
* `true` when this shape is a placeholder — the tier that *reserves* a region for a slide to
|
|
@@ -492,7 +489,7 @@ function hasTextStyles(element) {
|
|
|
492
489
|
* cannot survive being flattened into loose objects.
|
|
493
490
|
*/
|
|
494
491
|
function isPlaceholderShape(element) {
|
|
495
|
-
return has(element,
|
|
492
|
+
return has(element, OOXML_NS.p, "ph");
|
|
496
493
|
}
|
|
497
494
|
/**
|
|
498
495
|
* `true` when this master or layout carries a shape that is not a placeholder — a logo, a
|
|
@@ -506,7 +503,7 @@ function isPlaceholderShape(element) {
|
|
|
506
503
|
* rather than an unconditional note.
|
|
507
504
|
*/
|
|
508
505
|
function hasDecorativeShapes(element) {
|
|
509
|
-
return children(child(child(element,
|
|
506
|
+
return children(child(child(element, OOXML_NS.p, "cSld"), OOXML_NS.p, "spTree")).some((shape) => shape.namespaceURI === OOXML_NS.p && SHAPE_ELEMENTS.has(shape.localName ?? "") && !isPlaceholderShape(shape));
|
|
510
507
|
}
|
|
511
508
|
//#endregion
|
|
512
509
|
//#region src/script/from-read/text.ts
|
|
@@ -1791,7 +1788,11 @@ function graphicFrameCall(shape, notes, assets) {
|
|
|
1791
1788
|
notes.note("chartEx.all", "dropped", "unwritable", "an extended chart (waterfall, funnel, box-and-whisker, …) has a full reader but no write-API counterpart");
|
|
1792
1789
|
return null;
|
|
1793
1790
|
}
|
|
1794
|
-
|
|
1791
|
+
if (shape.hasDiagram) {
|
|
1792
|
+
notes.note("diagram.all", "dropped", "unwritable", "a SmartArt diagram has a read surface (GraphicFrame.diagram) but no write-API counterpart");
|
|
1793
|
+
return null;
|
|
1794
|
+
}
|
|
1795
|
+
notes.note("graphicFrame.unknown", "dropped", "unread", "this graphic frame hosts none of a table, a chart or a SmartArt diagram (an OLE object or an ink annotation), which the read model does not decode");
|
|
1795
1796
|
return null;
|
|
1796
1797
|
}
|
|
1797
1798
|
/**
|
|
@@ -1840,6 +1841,28 @@ function groupCall(shape, notes, assets) {
|
|
|
1840
1841
|
* `addGroup` excludes. The tagged form is a single-key object, not a `{ type, args }` pair.
|
|
1841
1842
|
*/
|
|
1842
1843
|
function asGroupChild(call) {
|
|
1844
|
+
const shared = commonShapeVariant(call);
|
|
1845
|
+
if (shared) return shared;
|
|
1846
|
+
const [first, second] = call.args;
|
|
1847
|
+
switch (call.method) {
|
|
1848
|
+
case "addGroup": return { group: compact({
|
|
1849
|
+
children: first,
|
|
1850
|
+
options: second
|
|
1851
|
+
}) ?? {} };
|
|
1852
|
+
default: return null;
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* The three key-tagged variants both union-shaped call sites emit identically: a text box, an
|
|
1857
|
+
* auto shape, and an image. `null` when `call.method` is not one of them, which is the signal
|
|
1858
|
+
* for the caller to try its own extra arms.
|
|
1859
|
+
*
|
|
1860
|
+
* Shared rather than duplicated because this is exactly where a fourth common variant would be
|
|
1861
|
+
* added to one site and forgotten in the other. What is deliberately *not* shared is either
|
|
1862
|
+
* caller's `default`: a group child silently declines a chart, while a layout object reports it
|
|
1863
|
+
* as a fidelity loss, and that difference is the point of having two functions.
|
|
1864
|
+
*/
|
|
1865
|
+
function commonShapeVariant(call) {
|
|
1843
1866
|
const [first, second] = call.args;
|
|
1844
1867
|
switch (call.method) {
|
|
1845
1868
|
case "addText": return { text: compact({
|
|
@@ -1851,10 +1874,6 @@ function asGroupChild(call) {
|
|
|
1851
1874
|
options: second
|
|
1852
1875
|
}) ?? {} };
|
|
1853
1876
|
case "addImage": return { image: first ?? {} };
|
|
1854
|
-
case "addGroup": return { group: compact({
|
|
1855
|
-
children: first,
|
|
1856
|
-
options: second
|
|
1857
|
-
}) ?? {} };
|
|
1858
1877
|
default: return null;
|
|
1859
1878
|
}
|
|
1860
1879
|
}
|
|
@@ -1891,17 +1910,10 @@ function masterObject(shape, notes, assets) {
|
|
|
1891
1910
|
}
|
|
1892
1911
|
const call = shapeCall(shape, notes, assets);
|
|
1893
1912
|
if (!call) return null;
|
|
1913
|
+
const shared = commonShapeVariant(call);
|
|
1914
|
+
if (shared) return shared;
|
|
1894
1915
|
const [first, second] = call.args;
|
|
1895
1916
|
switch (call.method) {
|
|
1896
|
-
case "addText": return { text: compact({
|
|
1897
|
-
text: first,
|
|
1898
|
-
options: second
|
|
1899
|
-
}) ?? {} };
|
|
1900
|
-
case "addShape": return { shape: compact({
|
|
1901
|
-
type: first,
|
|
1902
|
-
options: second
|
|
1903
|
-
}) ?? {} };
|
|
1904
|
-
case "addImage": return { image: first ?? {} };
|
|
1905
1917
|
case "addChart": {
|
|
1906
1918
|
const options = second !== null && typeof second === "object" && !Array.isArray(second) && !isAssetRef(second) ? second : null;
|
|
1907
1919
|
const type = options?.["type"];
|
|
@@ -2709,6 +2721,28 @@ function wrap(text, width, continuation) {
|
|
|
2709
2721
|
if (current) lines.push(current);
|
|
2710
2722
|
return lines;
|
|
2711
2723
|
}
|
|
2724
|
+
/**
|
|
2725
|
+
* Close out a printed script: the accumulated lines as one module source, plus the
|
|
2726
|
+
* asset side-car the caller has to write beside it.
|
|
2727
|
+
*
|
|
2728
|
+
* Both tiers end this way, and the `assetMode` test is the whole reason it is worth
|
|
2729
|
+
* naming. In `'inline'` mode the bytes are already in {@link PrintedScript.code} as
|
|
2730
|
+
* `data:` literals, so the map must come back **empty** — a tier that returned them
|
|
2731
|
+
* anyway would have its caller write every image to disk as well, and the script would
|
|
2732
|
+
* ignore the files it was handed.
|
|
2733
|
+
* @param {string[]} lines - the script's lines, in order
|
|
2734
|
+
* @param {DeckIr} ir - the IR being printed, for its assets
|
|
2735
|
+
* @param {AssetMode} assetMode - how image bytes reach the script
|
|
2736
|
+
* @param {FidelityNote[]} notes - the losses that apply to this output
|
|
2737
|
+
* @returns {PrintedScript} the finished script
|
|
2738
|
+
*/
|
|
2739
|
+
function printedScript(lines, ir, assetMode, notes) {
|
|
2740
|
+
return {
|
|
2741
|
+
code: lines.join("\n"),
|
|
2742
|
+
assets: new Map(assetMode === "file" ? ir.assets.map((asset) => [asset.name, asset.bytes]) : []),
|
|
2743
|
+
notes
|
|
2744
|
+
};
|
|
2745
|
+
}
|
|
2712
2746
|
//#endregion
|
|
2713
2747
|
//#region src/script/print/script.ts
|
|
2714
2748
|
/**
|
|
@@ -2794,11 +2828,7 @@ function printScript(ir, options = {}) {
|
|
|
2794
2828
|
const assetLines = printAssetBindings(ir, assetNames, assetDir, assetMode);
|
|
2795
2829
|
if (assetLines.length > 0) lines.push("", ...assetLines);
|
|
2796
2830
|
lines.push("", "/**", " * A generator sized to the template. appendSlides compares slide sizes exactly and", " * throws when they differ, so the inches here must round-trip to the source EMU.", " */", "function generator(): TsPptx {", " const pptx = new TsPptx()", `\tpptx.defineLayout({ name: 'source', width: ${inches(ir.slideSize.widthEmu)}, height: ${inches(ir.slideSize.heightEmu)} })`, " pptx.layout = 'source'", " return pptx", "}", ...body, "", `await writeFile(here(${printString(outputPath)}), await deck.save())`, "");
|
|
2797
|
-
return
|
|
2798
|
-
code: lines.join("\n"),
|
|
2799
|
-
assets: new Map(assetMode === "file" ? ir.assets.map((asset) => [asset.name, asset.bytes]) : []),
|
|
2800
|
-
notes
|
|
2801
|
-
};
|
|
2831
|
+
return printedScript(lines, ir, assetMode, notes);
|
|
2802
2832
|
}
|
|
2803
2833
|
/**
|
|
2804
2834
|
* The slide statements, batched into generators.
|
|
@@ -2928,11 +2958,7 @@ function printStandaloneScript(ir, options = {}) {
|
|
|
2928
2958
|
if (assetLines.length > 0) lines.push("", ...assetLines);
|
|
2929
2959
|
if (masters.length > 0) lines.push("", ...masters);
|
|
2930
2960
|
lines.push(...body, "", `await pptx.writeFile({ fileName: here(${printString(outputPath)}) })`, "");
|
|
2931
|
-
return
|
|
2932
|
-
code: lines.join("\n"),
|
|
2933
|
-
assets: new Map(assetMode === "file" ? ir.assets.map((asset) => [asset.name, asset.bytes]) : []),
|
|
2934
|
-
notes
|
|
2935
|
-
};
|
|
2961
|
+
return printedScript(lines, ir, assetMode, notes);
|
|
2936
2962
|
}
|
|
2937
2963
|
/**
|
|
2938
2964
|
* The document properties the write API can set.
|
|
@@ -3267,6 +3293,7 @@ const NOTE_FIELDS = {
|
|
|
3267
3293
|
"deck.docProps": [],
|
|
3268
3294
|
"deck.docPropsDefault": [],
|
|
3269
3295
|
"deck.slideSize": ["widthEmu", "heightEmu"],
|
|
3296
|
+
"diagram.all": ["*"],
|
|
3270
3297
|
"fill.gradient.path": ["gradient", "fill"],
|
|
3271
3298
|
"fill.picture": ["fill", "color"],
|
|
3272
3299
|
"fill.picture.geometry": [],
|