pptx-svelte-viewer 4.1.6 → 4.3.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/CHANGELOG.md +38 -0
- package/dist/{AiChatPanel-C4TquPtV.js → AiChatPanel-6uxswiBd.js} +6 -6
- package/dist/{export-CKRGg8D0.js → export-CVIAWQ_T.js} +13054 -13068
- package/dist/i18n/de.cjs +2 -2
- package/dist/i18n/de.mjs +2 -2
- package/dist/i18n/es.cjs +2 -2
- package/dist/i18n/es.mjs +2 -2
- package/dist/i18n/fr.cjs +2 -2
- package/dist/i18n/fr.mjs +2 -2
- package/dist/i18n/zh-CN.cjs +2 -2
- package/dist/i18n/zh-CN.mjs +2 -2
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +278 -3
- package/dist/index.js +38 -38
- package/dist/internals.d.ts +230 -2
- package/dist/internals.js +21 -21
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{transition-overlay-DIPxa90i.js → transition-overlay-BmUNA9xJ.js} +60119 -51929
- package/dist/{translator-D7duxy6A.js → translator-BZ6HUBWJ.js} +2 -2
- package/dist/viewer/index.d.ts +357 -23
- package/dist/viewer/index.js +6 -6
- package/package.json +1 -1
- package/dist/canvas_emf-converter-CKs-EBwD.js +0 -5
- package/dist/smartart-3d-D1MLYTBe.js +0 -290
package/dist/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
1
|
+
import { $o as e, $u as a, Hd as o, Iu as t, Ml as r, No as i, Oc as l, Ol as n, Qo as S, Qt as m, Sl as d, Wm as p, Ys as v, _h as T, bh as h, jl as g, mp as P, ns as u, os as c, rn as C, sc as N, sp as A, ts as E, vh as b, vl as f, xh as k, yh as x } from "./transition-overlay-BmUNA9xJ.js";
|
|
2
|
+
import { i as I } from "./translator-BZ6HUBWJ.js";
|
|
3
|
+
import { a as _, c as B, l as F, o as y, s as L, t as R, u as V } from "./export-CVIAWQ_T.js";
|
|
4
4
|
import "./i18n.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
6
|
+
m as PPTX_OPEN_ACCEPT,
|
|
7
|
+
C as PRESENTATION_OPEN_EXTENSIONS,
|
|
8
|
+
R as PowerPointViewer,
|
|
9
|
+
i as createImageElementFromFile,
|
|
10
|
+
S as defaultCssVars,
|
|
11
|
+
e as defaultRadius,
|
|
12
|
+
E as defaultThemeColors,
|
|
13
|
+
u as deleteAutosaveSnapshot,
|
|
14
|
+
c as describeCollaborationShellState,
|
|
15
|
+
y as exportAllSlidesToSvg,
|
|
16
|
+
L as exportAllSlidesToSvgBlobs,
|
|
17
|
+
B as exportSlideAsSvg,
|
|
18
|
+
F as exportSlideToSvg,
|
|
19
|
+
V as exportSlideToSvgBlob,
|
|
20
|
+
v as forgetSessionDeck,
|
|
21
|
+
N as getAutosaveSnapshot,
|
|
22
|
+
l as getSessionTabId,
|
|
23
|
+
f as isLegacyBinaryPresentation,
|
|
24
|
+
d as isSupportedPresentationFile,
|
|
25
|
+
n as listAutosaveSnapshots,
|
|
26
|
+
g as loadPresentationDeck,
|
|
27
|
+
r as loadSessionDeck,
|
|
28
|
+
t as parsePresentationSessionId,
|
|
29
|
+
a as presentationBaseName,
|
|
30
|
+
I as registerTranslations,
|
|
31
|
+
o as rememberSessionDeck,
|
|
32
|
+
_ as renderToCanvas,
|
|
33
|
+
A as restoreSessionDeck,
|
|
34
|
+
P as savedPresentationFileName,
|
|
35
|
+
p as themeToCssVars,
|
|
36
|
+
T as vermilionDarkColors,
|
|
37
|
+
b as vermilionDarkTheme,
|
|
38
|
+
x as vermilionLightColors,
|
|
39
|
+
h as vermilionLightTheme,
|
|
40
|
+
k as vermilionRadius
|
|
41
41
|
};
|
package/dist/internals.d.ts
CHANGED
|
@@ -1394,6 +1394,32 @@ interface TextStyle {
|
|
|
1394
1394
|
* @see element-paragraph-geometry.ts
|
|
1395
1395
|
*/
|
|
1396
1396
|
resolvedParagraphGeometry?: TextStyle;
|
|
1397
|
+
/**
|
|
1398
|
+
* Snapshot of the ELEMENT-scope `a:bodyPr` properties (vertical anchor,
|
|
1399
|
+
* text direction, columns, overflow, autofit, body insets, text wrap, and
|
|
1400
|
+
* the boolean/rotation attributes) as the load pipeline resolved them.
|
|
1401
|
+
*
|
|
1402
|
+
* A shape's own `a:bodyPr` is parsed first, then whatever it left
|
|
1403
|
+
* `undefined` is back-filled from the placeholder / layout / master
|
|
1404
|
+
* defaults (`applyPlaceholderBodyDefaults`), and a placeholder shape with
|
|
1405
|
+
* no `a:bodyPr` of its own has the INHERITED one parsed as if it were its
|
|
1406
|
+
* own. None of those three sources is distinguishable at
|
|
1407
|
+
* `element.textStyle` once the cascade finishes, so a writer that
|
|
1408
|
+
* re-emits every defined field turns an inherited anchor, inset, autofit
|
|
1409
|
+
* mode or `rtlCol` into a value pinned on the slide forever (and an
|
|
1410
|
+
* inherited `a:normAutofit` with no scale gets written back as
|
|
1411
|
+
* `a:spAutoFit`, flipping AutoSize from "shrink text" to "resize shape").
|
|
1412
|
+
*
|
|
1413
|
+
* Present only on an `element.textStyle` that came from a parsed deck.
|
|
1414
|
+
* The save path diffs the live style against this snapshot: a field that
|
|
1415
|
+
* still matches is an inheritance artefact and the writer leaves the
|
|
1416
|
+
* underlying `a:bodyPr` attribute untouched (whatever it already is,
|
|
1417
|
+
* present or absent); a field that differs was authored or has since
|
|
1418
|
+
* been edited and is written out.
|
|
1419
|
+
*
|
|
1420
|
+
* @see element-body-properties.ts
|
|
1421
|
+
*/
|
|
1422
|
+
resolvedBodyProperties?: TextStyle;
|
|
1397
1423
|
fontFamily?: string;
|
|
1398
1424
|
fontSize?: number;
|
|
1399
1425
|
/** When true, some form of autofit is in effect; see {@link autoFitMode} for which. */
|
|
@@ -1576,6 +1602,16 @@ interface TextStyle {
|
|
|
1576
1602
|
align: 'l' | 'ctr' | 'r' | 'dec';
|
|
1577
1603
|
leader?: 'none' | 'dot' | 'hyphen' | 'underscore';
|
|
1578
1604
|
}>;
|
|
1605
|
+
/**
|
|
1606
|
+
* True when the paragraph's own `a:pPr` authored an EMPTY `<a:tabLst/>`
|
|
1607
|
+
* (explicitly "no tab stops", overriding whatever the cascade would
|
|
1608
|
+
* otherwise supply) rather than omitting the element entirely (inherit).
|
|
1609
|
+
* fast-xml-parser gives a childless element as the empty string, so
|
|
1610
|
+
* `tabLst` and no-`tabLst` are otherwise indistinguishable once `tabStops`
|
|
1611
|
+
* comes back empty either way. Paragraph-scope only; not part of the
|
|
1612
|
+
* element-level geometry cascade.
|
|
1613
|
+
*/
|
|
1614
|
+
tabStopsExplicitEmpty?: boolean;
|
|
1579
1615
|
/** Body text wrapping mode from `a:bodyPr/@wrap`. */
|
|
1580
1616
|
textWrap?: 'square' | 'none';
|
|
1581
1617
|
/** Preset text warp type from `a:bodyPr/a:prstTxWarp`. */
|
|
@@ -1618,6 +1654,20 @@ interface TextStyle {
|
|
|
1618
1654
|
* serialised back on save, so it never disturbs the round-trip typefaces.
|
|
1619
1655
|
*/
|
|
1620
1656
|
scriptFallbackFont?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Set alongside {@link scriptFallbackFont} when the resolved {@link fontFamily}
|
|
1659
|
+
* came only from the paragraph/list-style/theme CASCADE (the run's own
|
|
1660
|
+
* `a:rPr` authored no `a:latin`/`a:ea`/`a:cs` of its own). A run always
|
|
1661
|
+
* inherits SOME font this way (typically the theme's `+mn-lt`), so without
|
|
1662
|
+
* this flag `fontFamily` was indistinguishable from a run that genuinely
|
|
1663
|
+
* chose that font itself, and the renderer never applied the theme's
|
|
1664
|
+
* per-script override (see #83): `+mn-lt` names only the LATIN member of
|
|
1665
|
+
* the font scheme and was never meant to cover text in a different
|
|
1666
|
+
* dominant script. An explicit `a:latin`/`a:ea`/`a:cs` authored on the run
|
|
1667
|
+
* itself still always wins; only the cascade default yields to the
|
|
1668
|
+
* script-specific override.
|
|
1669
|
+
*/
|
|
1670
|
+
fontFamilyIsCascadeDefault?: boolean;
|
|
1621
1671
|
/** Text language from `a:rPr/@lang`. */
|
|
1622
1672
|
language?: string;
|
|
1623
1673
|
/** Hyperlink mouse-over target from `a:hlinkMouseOver`. */
|
|
@@ -1970,6 +2020,18 @@ interface BulletInfo {
|
|
|
1970
2020
|
/** When true, `<a:buSzTx/>` was specified — inherit the bullet size from
|
|
1971
2021
|
* the run text font size. */
|
|
1972
2022
|
sizeInherit?: boolean;
|
|
2023
|
+
/**
|
|
2024
|
+
* True when this bullet resolution came from the paragraph's OWN `a:pPr`
|
|
2025
|
+
* rather than the shape's `a:lstStyle`, an inherited placeholder, or the
|
|
2026
|
+
* master's `a:defPPr` / `p:txStyles`. `resolveParagraphBulletInfo` walks
|
|
2027
|
+
* that cascade and returns the first match, so without this flag a
|
|
2028
|
+
* writer that re-emits every resolved `BulletInfo` in full pins an
|
|
2029
|
+
* inherited bullet (e.g. a master `buFont="Arial"` / `buChar="•"`) onto
|
|
2030
|
+
* every paragraph's own `a:pPr` the moment the slide is rewritten. The
|
|
2031
|
+
* save path only writes the bullet group when this is `true`, mirroring
|
|
2032
|
+
* how `paragraphProperties` gates every other per-paragraph field.
|
|
2033
|
+
*/
|
|
2034
|
+
ownedByParagraph?: boolean;
|
|
1973
2035
|
}
|
|
1974
2036
|
/**
|
|
1975
2037
|
* A single text run within a paragraph.
|
|
@@ -2012,6 +2074,23 @@ interface TextSegment {
|
|
|
2012
2074
|
fieldParagraphPropertiesXml?: XmlObject;
|
|
2013
2075
|
/** Raw OMML XML node for equation segments (from `a14:m` / `m:oMathPara`). */
|
|
2014
2076
|
equationXml?: Record<string, unknown>;
|
|
2077
|
+
/**
|
|
2078
|
+
* The ORIGINAL top-level paragraph child that carried this equation,
|
|
2079
|
+
* captured verbatim at parse time and keyed by its own tag: `{ 'a14:m':
|
|
2080
|
+
* ... }`, `{ 'm:oMathPara': ... }`, `{ 'm:oMath': ... }`, or `{
|
|
2081
|
+
* 'mc:AlternateContent': ... }` for an equation authored behind a
|
|
2082
|
+
* Choice/Fallback switch. `equationXml` above is the resolved math content
|
|
2083
|
+
* used for rendering (unwrapped one level for `a14:m`/`mc:AlternateContent`
|
|
2084
|
+
* sources); this field exists solely so the writer can re-emit an UNTOUCHED
|
|
2085
|
+
* equation byte-for-byte, Choice and Fallback both, instead of collapsing
|
|
2086
|
+
* it to a bare math element PowerPoint's own writer never produces.
|
|
2087
|
+
* `undefined` for a freshly inserted or edited equation, which the writer
|
|
2088
|
+
* instead reconstructs from `equationXml` (always `{ 'm:oMathPara': ... }`
|
|
2089
|
+
* or `{ 'm:oMath': ... }` for those cases). Any code that replaces
|
|
2090
|
+
* `equationXml` on an existing segment must drop this field, or the writer
|
|
2091
|
+
* would keep re-emitting the equation's OLD XML instead of the edit.
|
|
2092
|
+
*/
|
|
2093
|
+
equationSourceXml?: Record<string, unknown>;
|
|
2015
2094
|
/**
|
|
2016
2095
|
* Optional equation number for numbered equations (e.g. "(1)", "(2.3)").
|
|
2017
2096
|
* When present, the equation is rendered centered with the number right-aligned.
|
|
@@ -4998,6 +5077,18 @@ interface PptxSmartArtLayoutDefinition {
|
|
|
4998
5077
|
rootNode: PptxSmartArtLayoutNode;
|
|
4999
5078
|
/** Original definition retained for constraint evaluation and foreign rules. */
|
|
5000
5079
|
rawXml?: XmlObject;
|
|
5080
|
+
/**
|
|
5081
|
+
* The un-parsed layout-definition part text (starting at `<dgm:layoutDef>`,
|
|
5082
|
+
* XML declaration included). `rawXml` above loses the document order of
|
|
5083
|
+
* differently-named siblings (the package-wide `fast-xml-parser`
|
|
5084
|
+
* configuration groups children into one array per tag), which the
|
|
5085
|
+
* per-point DiagramML engine (`core/utils/smartart-engine/`) needs to
|
|
5086
|
+
* execute a `layoutNode` body's `forEach`/`choose`/`constrLst` statements
|
|
5087
|
+
* in their real declared sequence - see that package's `ordered-xml.ts`.
|
|
5088
|
+
* `undefined` when the part could not be read (matches `rawXml`'s own
|
|
5089
|
+
* optionality); the engine falls back to the legacy interpreter then.
|
|
5090
|
+
*/
|
|
5091
|
+
rawXmlText?: string;
|
|
5001
5092
|
}
|
|
5002
5093
|
//#endregion
|
|
5003
5094
|
//#region src/core/types/smart-art-node.d.ts
|
|
@@ -5236,7 +5327,6 @@ interface PptxSmartArtNode {
|
|
|
5236
5327
|
}
|
|
5237
5328
|
//#endregion
|
|
5238
5329
|
//#region src/core/types/smart-art-style-definition.d.ts
|
|
5239
|
-
/** Editable metadata shared by DiagramML quick-style and color definitions. */
|
|
5240
5330
|
interface PptxSmartArtDefinitionText {
|
|
5241
5331
|
value: string;
|
|
5242
5332
|
language?: string;
|
|
@@ -5336,6 +5426,17 @@ interface PptxSmartArtQuickStyle extends PptxSmartArtDefinitionMetadata {
|
|
|
5336
5426
|
effectIntensity?: string;
|
|
5337
5427
|
/** Ordered CT_StyleLabel metadata. Complex style payload remains preserved XML. */
|
|
5338
5428
|
labels?: PptxSmartArtQuickStyleLabel[];
|
|
5429
|
+
/**
|
|
5430
|
+
* Whole-diagram 3D scene (camera preset/rotation/zoom/fov, light rig,
|
|
5431
|
+
* backdrop) from the quick style's own `dgm:styleDef/dgm:scene3d`, present
|
|
5432
|
+
* for the "Scene" quick styles (Brick, Flat, Metallic, Sunset, Bird's Eye
|
|
5433
|
+
* Scene). One camera renders the whole diagram; per-shape `a:scene3d` is
|
|
5434
|
+
* absent for those styles (see `PptxSmartArtDrawingShape.scene3d`). Each
|
|
5435
|
+
* `dgm:styleLbl` also carries its own per-label `dgm:scene3d`/`dgm:sp3d`,
|
|
5436
|
+
* but PowerPoint bakes those fully resolved onto each cached shape's own
|
|
5437
|
+
* `dsp:spPr/a:sp3d`, so only the diagram-level scene is exposed here.
|
|
5438
|
+
*/
|
|
5439
|
+
scene3d?: Pptx3DScene;
|
|
5339
5440
|
}
|
|
5340
5441
|
//#endregion
|
|
5341
5442
|
//#region src/core/types/smart-art.d.ts
|
|
@@ -5536,6 +5637,29 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
|
|
|
5536
5637
|
textFrameY?: number;
|
|
5537
5638
|
textFrameWidth?: number;
|
|
5538
5639
|
textFrameHeight?: number;
|
|
5640
|
+
/**
|
|
5641
|
+
* 3D scene (camera/light rig/backdrop) from `dsp:spPr/a:scene3d`, when this
|
|
5642
|
+
* cached shape carries its own per-shape camera. Bevel quick styles
|
|
5643
|
+
* (Polished, Inset, Cartoon, Powder) cache one per shape (always
|
|
5644
|
+
* `orthographicFront`, so the 2D layout stays undistorted). Scene quick
|
|
5645
|
+
* styles (Brick, Flat, Metallic, Sunset, Bird's Eye) instead put ONE camera
|
|
5646
|
+
* on the whole diagram (see `PptxSmartArtQuickStyle.scene3d`) and leave this
|
|
5647
|
+
* undefined on every shape.
|
|
5648
|
+
*/
|
|
5649
|
+
scene3d?: Pptx3DScene;
|
|
5650
|
+
/**
|
|
5651
|
+
* 3D extrusion/bevel/contour/material from `dsp:spPr/a:sp3d`. PowerPoint
|
|
5652
|
+
* caches this fully resolved (from the quick style's per-label `dgm:sp3d`)
|
|
5653
|
+
* on every shape for every non-flat quick style, bevel or scene alike.
|
|
5654
|
+
*/
|
|
5655
|
+
shape3d?: Pptx3DShape;
|
|
5656
|
+
/**
|
|
5657
|
+
* Text-body 3D extrusion/bevel from `dsp:txBody/a:bodyPr/a:sp3d`. Rare:
|
|
5658
|
+
* present when a quick style extrudes the label text itself off the shape
|
|
5659
|
+
* face (e.g. Bird's Eye Scene: `extrusionH="28000"`), rather than only the
|
|
5660
|
+
* shape body.
|
|
5661
|
+
*/
|
|
5662
|
+
text3d?: Text3DStyle;
|
|
5539
5663
|
}
|
|
5540
5664
|
/**
|
|
5541
5665
|
* Presentation layout variables from `dgm:prSet/dgm:presLayoutVars` (data model)
|
|
@@ -6053,6 +6177,20 @@ interface PptxTableData {
|
|
|
6053
6177
|
* present when there is at least one effect.
|
|
6054
6178
|
*/
|
|
6055
6179
|
tableEffects?: ParsedTableStyleEffect[];
|
|
6180
|
+
/**
|
|
6181
|
+
* Table-cell-context default text size in points, resolved from the
|
|
6182
|
+
* slide's master `p:otherStyle` (ECMA-376 §19.3.1.42 CT_TextListStyle,
|
|
6183
|
+
* §19.3.1.52 for `p:txStyles`). PowerPoint sizes a table cell's text off
|
|
6184
|
+
* this master default (commonly 18pt) whenever neither the run nor the
|
|
6185
|
+
* (size-less) table style provides one; without it, cell text without an
|
|
6186
|
+
* explicit `a:rPr@sz` fell back to the browser's own default font size
|
|
6187
|
+
* (16px / 12pt) instead. A render-only hint: it is not part of any
|
|
6188
|
+
* individual cell's parsed style and is never written back on save, so
|
|
6189
|
+
* resaving an unstyled cell does not bake in an explicit size that was
|
|
6190
|
+
* never authored. `undefined` when no master/otherStyle size resolves
|
|
6191
|
+
* (renderers should leave the browser default in place in that case).
|
|
6192
|
+
*/
|
|
6193
|
+
defaultCellFontSize?: number;
|
|
6056
6194
|
}
|
|
6057
6195
|
/**
|
|
6058
6196
|
* A single fill reference within a table style section.
|
|
@@ -6078,6 +6216,14 @@ interface ParsedTableStyleFill {
|
|
|
6078
6216
|
tint?: number;
|
|
6079
6217
|
/** Shade value (0-100 000). */
|
|
6080
6218
|
shade?: number;
|
|
6219
|
+
/**
|
|
6220
|
+
* Alpha (opacity) value (0-100 000, where 100 000 is fully opaque) from an
|
|
6221
|
+
* `a:alpha` child of `a:schemeClr`/`a:srgbClr`. Several built-in table
|
|
6222
|
+
* styles (e.g. "Light Style 1/3", "Themed Style 1/2") band their rows with
|
|
6223
|
+
* a partially transparent tint of the theme colour rather than a tint/shade
|
|
6224
|
+
* blend.
|
|
6225
|
+
*/
|
|
6226
|
+
alpha?: number;
|
|
6081
6227
|
/** Explicit sRGB hex colour (e.g. `#FF8800`) from `a:srgbClr`. */
|
|
6082
6228
|
color?: string;
|
|
6083
6229
|
/** The fill was `a:noFill`: renders transparent and clears lower layers. */
|
|
@@ -6705,6 +6851,20 @@ interface ContentPartInkStroke {
|
|
|
6705
6851
|
* NAMES differ.
|
|
6706
6852
|
*/
|
|
6707
6853
|
tiltEncoding?: 'vector' | 'azimuthAltitude';
|
|
6854
|
+
/**
|
|
6855
|
+
* Per-point timestamps (milliseconds), decoded from the source InkML
|
|
6856
|
+
* trace's `T` channel when it declared one.
|
|
6857
|
+
*
|
|
6858
|
+
* Absent for the overwhelming majority of real decks: PowerPoint's own
|
|
6859
|
+
* SaveAs output declares only `X`/`Y` and has no per-point time channel at
|
|
6860
|
+
* all (see `contentpart-real-ink-roundtrip.test.ts`'s fixture), so this is
|
|
6861
|
+
* populated only for InkML sources that genuinely author one (a captured
|
|
6862
|
+
* digitizer session, OneNote, a Surface Hub export). When present, ink
|
|
6863
|
+
* replay ("watch the ink get drawn") uses each stroke's own first/last
|
|
6864
|
+
* timestamp to time its reveal instead of the fixed per-stroke cascade; see
|
|
6865
|
+
* `pptx-viewer-shared`'s `render/ink-replay-timeline.ts`.
|
|
6866
|
+
*/
|
|
6867
|
+
pointTimestamps?: number[];
|
|
6708
6868
|
}
|
|
6709
6869
|
/**
|
|
6710
6870
|
* A content-part element wrapped in `mc:AlternateContent`.
|
|
@@ -6749,6 +6909,28 @@ interface ZoomPptxElement extends PptxElementBase, PptxImageProperties {
|
|
|
6749
6909
|
summaryTargets?: SummaryZoomTarget[];
|
|
6750
6910
|
/** Layout mode authored on the Summary Zoom container. */
|
|
6751
6911
|
summaryLayout?: 'grid' | 'fixed';
|
|
6912
|
+
/**
|
|
6913
|
+
* `zmPr/@returnToParent` (MS-PPTX `CT_ZoomObjectProperties`, shared by all
|
|
6914
|
+
* three Zoom kinds): whether continuing forward from the destination slide
|
|
6915
|
+
* during a live show returns to this Zoom's origin slide instead of
|
|
6916
|
+
* advancing linearly through the deck. OOXML default is `true` when the
|
|
6917
|
+
* attribute is present but this codebase leaves it `undefined` when the
|
|
6918
|
+
* source XML omits it, so a round-trip never fabricates the attribute.
|
|
6919
|
+
* For `zoomType: 'summary'`, this mirrors the first tile's own value; see
|
|
6920
|
+
* {@link SummaryZoomTarget.returnToParent} for the per-tile value.
|
|
6921
|
+
*/
|
|
6922
|
+
returnToParent?: boolean;
|
|
6923
|
+
/**
|
|
6924
|
+
* `zmPr/@transitionDur` (MS-PPTX `CT_ZoomObjectProperties`): the
|
|
6925
|
+
* zoom-transition length in milliseconds. PowerPoint's own writer emits a
|
|
6926
|
+
* unitless decimal-millisecond value for every OOXML `ST_UniversalTimeOffset`
|
|
6927
|
+
* this codebase has observed (see the media-trim/-fade parsers), so this
|
|
6928
|
+
* follows the same convention rather than the full TIMEOFFSET grammar's
|
|
6929
|
+
* unit suffixes. Undefined uses the destination slide's own transition.
|
|
6930
|
+
* For `zoomType: 'summary'`, this mirrors the first tile's own value; see
|
|
6931
|
+
* {@link SummaryZoomTarget.transitionDurationMs} for the per-tile value.
|
|
6932
|
+
*/
|
|
6933
|
+
transitionDurationMs?: number;
|
|
6752
6934
|
}
|
|
6753
6935
|
/** A single section tile within a PowerPoint Summary Zoom container. */
|
|
6754
6936
|
interface SummaryZoomTarget extends PptxImageProperties {
|
|
@@ -6764,6 +6946,10 @@ interface SummaryZoomTarget extends PptxImageProperties {
|
|
|
6764
6946
|
offsetFactorY?: number;
|
|
6765
6947
|
scaleFactorX?: number;
|
|
6766
6948
|
scaleFactorY?: number;
|
|
6949
|
+
/** This tile's own `zmPr/@returnToParent`; see {@link ZoomPptxElement.returnToParent}. */
|
|
6950
|
+
returnToParent?: boolean;
|
|
6951
|
+
/** This tile's own `zmPr/@transitionDur` in milliseconds; see {@link ZoomPptxElement.transitionDurationMs}. */
|
|
6952
|
+
transitionDurationMs?: number;
|
|
6767
6953
|
rawXml?: XmlObject;
|
|
6768
6954
|
}
|
|
6769
6955
|
/**
|
|
@@ -7484,6 +7670,17 @@ interface PptxAttributeAnimation {
|
|
|
7484
7670
|
* IS consulted regardless of this field's value. Absent means `lin`.
|
|
7485
7671
|
*/
|
|
7486
7672
|
calcMode?: 'discrete' | 'lin' | 'fmla';
|
|
7673
|
+
/**
|
|
7674
|
+
* `p:anim/@_p14:bounceEnd` (Office 2010 `p14` extension attribute,
|
|
7675
|
+
* MS-OI29500), normalized to a 0-1 fraction of this behaviour's own
|
|
7676
|
+
* duration. PowerPoint's Fly In "Bounce End" effect option writes this on
|
|
7677
|
+
* the position-ramp `p:anim` node(s): the fraction of the duration at
|
|
7678
|
+
* which the primary travel completes, with the remainder spent bouncing
|
|
7679
|
+
* and settling at the final value. Mirrored verbatim by PowerPoint onto
|
|
7680
|
+
* the enclosing `p:cTn/@_p14:presetBounceEnd`. Absent for every animation
|
|
7681
|
+
* that doesn't use this effect option (the overwhelming majority).
|
|
7682
|
+
*/
|
|
7683
|
+
bounceEnd?: number;
|
|
7487
7684
|
}
|
|
7488
7685
|
/** Signed HSL channel deltas parsed from `p:animClr/p:by/p:hsl`. */
|
|
7489
7686
|
interface PptxHslColorDelta {
|
|
@@ -7565,7 +7762,19 @@ interface PptxTextAnimationTarget {
|
|
|
7565
7762
|
* These map directly to OOXML condition event attribute values
|
|
7566
7763
|
* (ISO/IEC 29500-1 S19.5.28 CT_TLTimeCondition).
|
|
7567
7764
|
*/
|
|
7568
|
-
type AnimationConditionEvent = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio' | 'onDblClick';
|
|
7765
|
+
type AnimationConditionEvent = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio' | 'onDblClick' | 'onMediaBookmark';
|
|
7766
|
+
/**
|
|
7767
|
+
* `p14:bmkTgt` (Office 2010 `p14` extension, MS-OI29500): names the specific
|
|
7768
|
+
* media element and bookmark an `evt="onMediaBookmark"` condition fires for.
|
|
7769
|
+
* `bookmarkName` matches a `p14:bmk/@_name` on that media element's own
|
|
7770
|
+
* `p14:bmkLst` (see `MediaBookmark.label` in `core/types/elements.ts`).
|
|
7771
|
+
*/
|
|
7772
|
+
interface PptxMediaBookmarkTarget {
|
|
7773
|
+
/** `p14:bmkTgt/@_spid`: the media element's shape id. */
|
|
7774
|
+
shapeId: string;
|
|
7775
|
+
/** `p14:bmkTgt/@_bmkName`: the bookmark's name. */
|
|
7776
|
+
bookmarkName: string;
|
|
7777
|
+
}
|
|
7569
7778
|
/**
|
|
7570
7779
|
* Structured representation of a single OOXML animation condition
|
|
7571
7780
|
* from `p:cond` elements inside `p:stCondLst` or `p:endCondLst`.
|
|
@@ -7585,6 +7794,11 @@ type AnimationConditionEvent = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick'
|
|
|
7585
7794
|
interface AnimationCondition {
|
|
7586
7795
|
/** Event that triggers the condition. */
|
|
7587
7796
|
event?: AnimationConditionEvent;
|
|
7797
|
+
/**
|
|
7798
|
+
* The media element/bookmark this condition fires for, when
|
|
7799
|
+
* {@link event} is `onMediaBookmark`. See {@link PptxMediaBookmarkTarget}.
|
|
7800
|
+
*/
|
|
7801
|
+
bookmarkTarget?: PptxMediaBookmarkTarget;
|
|
7588
7802
|
/** Delay in milliseconds (from `@_delay`). "indefinite" is represented as -1. */
|
|
7589
7803
|
delay?: number;
|
|
7590
7804
|
/** Target time node ID reference (from `@_tn`). */
|
|
@@ -8384,6 +8598,20 @@ declare const P14_TRANSITION_KEYFRAMES_ALL = "\n/* ── Conveyor (translate X
|
|
|
8384
8598
|
*/
|
|
8385
8599
|
declare function getP14TransitionAnimations(type: PptxTransitionType, durationMs: number, direction: string | undefined, orient?: string | undefined, pattern?: string | undefined): SlideTransitionAnimations | undefined;
|
|
8386
8600
|
//#endregion
|
|
8601
|
+
//#region src/web-components/select-value.d.ts
|
|
8602
|
+
/** Public DOM shape used by all bindings; the element is not a native select. */
|
|
8603
|
+
interface PptxUiSelectElement extends HTMLElement {
|
|
8604
|
+
value: string;
|
|
8605
|
+
disabled: boolean;
|
|
8606
|
+
readonly options: HTMLOptionElement[];
|
|
8607
|
+
selectedIndex: number;
|
|
8608
|
+
}
|
|
8609
|
+
declare global {
|
|
8610
|
+
interface HTMLElementTagNameMap {
|
|
8611
|
+
'pptx-ui-select': PptxUiSelectElement;
|
|
8612
|
+
}
|
|
8613
|
+
}
|
|
8614
|
+
//#endregion
|
|
8387
8615
|
//#region src/render/slide-transition-cinematic.d.ts
|
|
8388
8616
|
/**
|
|
8389
8617
|
* Resolve a p15 cinematic transition to its CSS `animation` descriptors, or
|
package/dist/internals.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $f as a, $n as T, Ac as i, Ef as n, G as t, Jt as S, Kf as e, Mn as A, Pt as E, Tf as _, Vf as o, Yt as I, ft as r, hn as N, jn as R, ot as O, qt as M, rp as D, rt as l, sr as P, t as L, uc as F, xc as K } from "./transition-overlay-BmUNA9xJ.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
t as CINEMATIC_TRANSITION_KEYFRAMES,
|
|
4
|
+
l as DEFAULT_MORPH_DURATION_MS,
|
|
5
|
+
O as DEFAULT_TRANSITION_DURATION_MS,
|
|
6
|
+
r as EASE,
|
|
7
|
+
E as INSTANT,
|
|
8
|
+
M as P14_TRANSITION_KEYFRAMES,
|
|
9
|
+
S as P14_TRANSITION_KEYFRAMES_2,
|
|
10
|
+
I as P14_TRANSITION_KEYFRAMES_ALL,
|
|
11
11
|
L as PresentationTransitionOverlay,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
N as RANDOM_ELIGIBLE_TYPES,
|
|
13
|
+
R as SLIDE_TRANSITION_KEYFRAMES,
|
|
14
|
+
A as SLIDE_TRANSITION_KEYFRAMES_CSS,
|
|
15
|
+
T as TRANSITION_SPEED_DURATION_MS,
|
|
16
|
+
P as WHEEL_SPOKE_COUNTS,
|
|
17
|
+
F as getCinematicTransitionAnimations,
|
|
18
|
+
K as getP14TransitionAnimations,
|
|
19
19
|
i as getSlideTransitionAnimations,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
_ as resolveDirection,
|
|
21
|
+
n as resolveDirection8,
|
|
22
|
+
o as resolveOrientation,
|
|
23
23
|
e as resolveSlideTransition,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
a as resolveTransitionDurationMs,
|
|
25
|
+
D as resolveWheelSpokeCount
|
|
26
26
|
};
|