pptx-svelte-viewer 4.2.0 → 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 +32 -0
- package/dist/{AiChatPanel-fey6hh2R.js → AiChatPanel-6uxswiBd.js} +2 -2
- package/dist/{export-DoyAdIHl.js → export-CVIAWQ_T.js} +8054 -7902
- 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 +230 -2
- package/dist/index.js +34 -34
- package/dist/internals.d.ts +182 -1
- package/dist/internals.js +23 -23
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{transition-overlay-BcUomRXK.js → transition-overlay-BmUNA9xJ.js} +45610 -39284
- package/dist/{translator-D7duxy6A.js → translator-BZ6HUBWJ.js} +2 -2
- package/dist/viewer/index.d.ts +291 -4
- package/dist/viewer/index.js +9 -9
- package/package.json +1 -1
- package/dist/canvas_emf-converter-CKs-EBwD.js +0 -5
package/dist/i18n/de.cjs
CHANGED
|
@@ -389,7 +389,7 @@ var translations3 = {
|
|
|
389
389
|
"pptx.animation.catalogPreset.entr27": "Abspann",
|
|
390
390
|
"pptx.animation.catalogPreset.entr28": "Nach oben schweben",
|
|
391
391
|
"pptx.animation.catalogPreset.entr29": "Windrad",
|
|
392
|
-
"pptx.animation.catalogPreset.entr30": "
|
|
392
|
+
"pptx.animation.catalogPreset.entr30": "Einschweben",
|
|
393
393
|
"pptx.animation.catalogPreset.entr31": "Ausdehnen",
|
|
394
394
|
"pptx.animation.catalogPreset.entr32": "Peitschen",
|
|
395
395
|
"pptx.animation.catalogPreset.entr33": "Ankommen",
|
|
@@ -458,7 +458,7 @@ var translations3 = {
|
|
|
458
458
|
"pptx.animation.catalogPreset.exit27": "Abspann",
|
|
459
459
|
"pptx.animation.catalogPreset.exit28": "Nach unten schweben",
|
|
460
460
|
"pptx.animation.catalogPreset.exit29": "Windrad",
|
|
461
|
-
"pptx.animation.catalogPreset.exit30": "
|
|
461
|
+
"pptx.animation.catalogPreset.exit30": "Hinausschweben",
|
|
462
462
|
"pptx.animation.catalogPreset.exit31": "Zusammenziehen",
|
|
463
463
|
"pptx.animation.catalogPreset.exit32": "Peitschen",
|
|
464
464
|
"pptx.animation.catalogPreset.exit33": "Weggehen",
|
package/dist/i18n/de.mjs
CHANGED
|
@@ -363,7 +363,7 @@ var translations3 = {
|
|
|
363
363
|
"pptx.animation.catalogPreset.entr27": "Abspann",
|
|
364
364
|
"pptx.animation.catalogPreset.entr28": "Nach oben schweben",
|
|
365
365
|
"pptx.animation.catalogPreset.entr29": "Windrad",
|
|
366
|
-
"pptx.animation.catalogPreset.entr30": "
|
|
366
|
+
"pptx.animation.catalogPreset.entr30": "Einschweben",
|
|
367
367
|
"pptx.animation.catalogPreset.entr31": "Ausdehnen",
|
|
368
368
|
"pptx.animation.catalogPreset.entr32": "Peitschen",
|
|
369
369
|
"pptx.animation.catalogPreset.entr33": "Ankommen",
|
|
@@ -432,7 +432,7 @@ var translations3 = {
|
|
|
432
432
|
"pptx.animation.catalogPreset.exit27": "Abspann",
|
|
433
433
|
"pptx.animation.catalogPreset.exit28": "Nach unten schweben",
|
|
434
434
|
"pptx.animation.catalogPreset.exit29": "Windrad",
|
|
435
|
-
"pptx.animation.catalogPreset.exit30": "
|
|
435
|
+
"pptx.animation.catalogPreset.exit30": "Hinausschweben",
|
|
436
436
|
"pptx.animation.catalogPreset.exit31": "Zusammenziehen",
|
|
437
437
|
"pptx.animation.catalogPreset.exit32": "Peitschen",
|
|
438
438
|
"pptx.animation.catalogPreset.exit33": "Weggehen",
|
package/dist/i18n/es.cjs
CHANGED
|
@@ -389,7 +389,7 @@ var translations3 = {
|
|
|
389
389
|
"pptx.animation.catalogPreset.entr27": "Cr\xE9ditos",
|
|
390
390
|
"pptx.animation.catalogPreset.entr28": "Flotar hacia arriba",
|
|
391
391
|
"pptx.animation.catalogPreset.entr29": "Molinillo",
|
|
392
|
-
"pptx.animation.catalogPreset.entr30": "
|
|
392
|
+
"pptx.animation.catalogPreset.entr30": "Flotar hacia dentro",
|
|
393
393
|
"pptx.animation.catalogPreset.entr31": "Expandir",
|
|
394
394
|
"pptx.animation.catalogPreset.entr32": "Latigazo",
|
|
395
395
|
"pptx.animation.catalogPreset.entr33": "Llegar",
|
|
@@ -458,7 +458,7 @@ var translations3 = {
|
|
|
458
458
|
"pptx.animation.catalogPreset.exit27": "Cr\xE9ditos",
|
|
459
459
|
"pptx.animation.catalogPreset.exit28": "Flotar hacia abajo",
|
|
460
460
|
"pptx.animation.catalogPreset.exit29": "Molinillo",
|
|
461
|
-
"pptx.animation.catalogPreset.exit30": "
|
|
461
|
+
"pptx.animation.catalogPreset.exit30": "Flotar hacia fuera",
|
|
462
462
|
"pptx.animation.catalogPreset.exit31": "Encoger",
|
|
463
463
|
"pptx.animation.catalogPreset.exit32": "Latigazo",
|
|
464
464
|
"pptx.animation.catalogPreset.exit33": "Salir",
|
package/dist/i18n/es.mjs
CHANGED
|
@@ -363,7 +363,7 @@ var translations3 = {
|
|
|
363
363
|
"pptx.animation.catalogPreset.entr27": "Cr\xE9ditos",
|
|
364
364
|
"pptx.animation.catalogPreset.entr28": "Flotar hacia arriba",
|
|
365
365
|
"pptx.animation.catalogPreset.entr29": "Molinillo",
|
|
366
|
-
"pptx.animation.catalogPreset.entr30": "
|
|
366
|
+
"pptx.animation.catalogPreset.entr30": "Flotar hacia dentro",
|
|
367
367
|
"pptx.animation.catalogPreset.entr31": "Expandir",
|
|
368
368
|
"pptx.animation.catalogPreset.entr32": "Latigazo",
|
|
369
369
|
"pptx.animation.catalogPreset.entr33": "Llegar",
|
|
@@ -432,7 +432,7 @@ var translations3 = {
|
|
|
432
432
|
"pptx.animation.catalogPreset.exit27": "Cr\xE9ditos",
|
|
433
433
|
"pptx.animation.catalogPreset.exit28": "Flotar hacia abajo",
|
|
434
434
|
"pptx.animation.catalogPreset.exit29": "Molinillo",
|
|
435
|
-
"pptx.animation.catalogPreset.exit30": "
|
|
435
|
+
"pptx.animation.catalogPreset.exit30": "Flotar hacia fuera",
|
|
436
436
|
"pptx.animation.catalogPreset.exit31": "Encoger",
|
|
437
437
|
"pptx.animation.catalogPreset.exit32": "Latigazo",
|
|
438
438
|
"pptx.animation.catalogPreset.exit33": "Salir",
|
package/dist/i18n/fr.cjs
CHANGED
|
@@ -389,7 +389,7 @@ var translations3 = {
|
|
|
389
389
|
"pptx.animation.catalogPreset.entr27": "G\xE9n\xE9rique",
|
|
390
390
|
"pptx.animation.catalogPreset.entr28": "Flotter vers le haut",
|
|
391
391
|
"pptx.animation.catalogPreset.entr29": "Moulinet",
|
|
392
|
-
"pptx.animation.catalogPreset.entr30": "
|
|
392
|
+
"pptx.animation.catalogPreset.entr30": "Flotter vers l'int\xE9rieur",
|
|
393
393
|
"pptx.animation.catalogPreset.entr31": "D\xE9velopper",
|
|
394
394
|
"pptx.animation.catalogPreset.entr32": "Fouet",
|
|
395
395
|
"pptx.animation.catalogPreset.entr33": "Arriv\xE9e",
|
|
@@ -458,7 +458,7 @@ var translations3 = {
|
|
|
458
458
|
"pptx.animation.catalogPreset.exit27": "G\xE9n\xE9rique",
|
|
459
459
|
"pptx.animation.catalogPreset.exit28": "Flotter vers le bas",
|
|
460
460
|
"pptx.animation.catalogPreset.exit29": "Moulinet",
|
|
461
|
-
"pptx.animation.catalogPreset.exit30": "
|
|
461
|
+
"pptx.animation.catalogPreset.exit30": "Flotter vers l'ext\xE9rieur",
|
|
462
462
|
"pptx.animation.catalogPreset.exit31": "Contracter",
|
|
463
463
|
"pptx.animation.catalogPreset.exit32": "Fouet",
|
|
464
464
|
"pptx.animation.catalogPreset.exit33": "D\xE9part",
|
package/dist/i18n/fr.mjs
CHANGED
|
@@ -363,7 +363,7 @@ var translations3 = {
|
|
|
363
363
|
"pptx.animation.catalogPreset.entr27": "G\xE9n\xE9rique",
|
|
364
364
|
"pptx.animation.catalogPreset.entr28": "Flotter vers le haut",
|
|
365
365
|
"pptx.animation.catalogPreset.entr29": "Moulinet",
|
|
366
|
-
"pptx.animation.catalogPreset.entr30": "
|
|
366
|
+
"pptx.animation.catalogPreset.entr30": "Flotter vers l'int\xE9rieur",
|
|
367
367
|
"pptx.animation.catalogPreset.entr31": "D\xE9velopper",
|
|
368
368
|
"pptx.animation.catalogPreset.entr32": "Fouet",
|
|
369
369
|
"pptx.animation.catalogPreset.entr33": "Arriv\xE9e",
|
|
@@ -432,7 +432,7 @@ var translations3 = {
|
|
|
432
432
|
"pptx.animation.catalogPreset.exit27": "G\xE9n\xE9rique",
|
|
433
433
|
"pptx.animation.catalogPreset.exit28": "Flotter vers le bas",
|
|
434
434
|
"pptx.animation.catalogPreset.exit29": "Moulinet",
|
|
435
|
-
"pptx.animation.catalogPreset.exit30": "
|
|
435
|
+
"pptx.animation.catalogPreset.exit30": "Flotter vers l'ext\xE9rieur",
|
|
436
436
|
"pptx.animation.catalogPreset.exit31": "Contracter",
|
|
437
437
|
"pptx.animation.catalogPreset.exit32": "Fouet",
|
|
438
438
|
"pptx.animation.catalogPreset.exit33": "D\xE9part",
|
package/dist/i18n/zh-CN.cjs
CHANGED
|
@@ -390,7 +390,7 @@ var translations4 = {
|
|
|
390
390
|
"pptx.animation.catalogPreset.entr27": "\u5B57\u5E55\u5F0F",
|
|
391
391
|
"pptx.animation.catalogPreset.entr28": "\u6D6E\u8D77",
|
|
392
392
|
"pptx.animation.catalogPreset.entr29": "\u98CE\u8F66",
|
|
393
|
-
"pptx.animation.catalogPreset.entr30": "\
|
|
393
|
+
"pptx.animation.catalogPreset.entr30": "\u6D6E\u5165",
|
|
394
394
|
"pptx.animation.catalogPreset.entr31": "\u6269\u5C55",
|
|
395
395
|
"pptx.animation.catalogPreset.entr32": "\u97AD\u6253",
|
|
396
396
|
"pptx.animation.catalogPreset.entr33": "\u5230\u8FBE",
|
|
@@ -458,7 +458,7 @@ var translations4 = {
|
|
|
458
458
|
"pptx.animation.catalogPreset.exit27": "\u5B57\u5E55\u5F0F",
|
|
459
459
|
"pptx.animation.catalogPreset.exit28": "\u5411\u4E0B\u6D6E\u52A8",
|
|
460
460
|
"pptx.animation.catalogPreset.exit29": "\u98CE\u8F66",
|
|
461
|
-
"pptx.animation.catalogPreset.exit30": "\
|
|
461
|
+
"pptx.animation.catalogPreset.exit30": "\u6D6E\u51FA",
|
|
462
462
|
"pptx.animation.catalogPreset.exit31": "\u6536\u62E2",
|
|
463
463
|
"pptx.animation.catalogPreset.exit32": "\u97AD\u6253",
|
|
464
464
|
"pptx.animation.catalogPreset.exit33": "\u79BB\u53BB",
|
package/dist/i18n/zh-CN.mjs
CHANGED
|
@@ -364,7 +364,7 @@ var translations4 = {
|
|
|
364
364
|
"pptx.animation.catalogPreset.entr27": "\u5B57\u5E55\u5F0F",
|
|
365
365
|
"pptx.animation.catalogPreset.entr28": "\u6D6E\u8D77",
|
|
366
366
|
"pptx.animation.catalogPreset.entr29": "\u98CE\u8F66",
|
|
367
|
-
"pptx.animation.catalogPreset.entr30": "\
|
|
367
|
+
"pptx.animation.catalogPreset.entr30": "\u6D6E\u5165",
|
|
368
368
|
"pptx.animation.catalogPreset.entr31": "\u6269\u5C55",
|
|
369
369
|
"pptx.animation.catalogPreset.entr32": "\u97AD\u6253",
|
|
370
370
|
"pptx.animation.catalogPreset.entr33": "\u5230\u8FBE",
|
|
@@ -432,7 +432,7 @@ var translations4 = {
|
|
|
432
432
|
"pptx.animation.catalogPreset.exit27": "\u5B57\u5E55\u5F0F",
|
|
433
433
|
"pptx.animation.catalogPreset.exit28": "\u5411\u4E0B\u6D6E\u52A8",
|
|
434
434
|
"pptx.animation.catalogPreset.exit29": "\u98CE\u8F66",
|
|
435
|
-
"pptx.animation.catalogPreset.exit30": "\
|
|
435
|
+
"pptx.animation.catalogPreset.exit30": "\u6D6E\u51FA",
|
|
436
436
|
"pptx.animation.catalogPreset.exit31": "\u6536\u62E2",
|
|
437
437
|
"pptx.animation.catalogPreset.exit32": "\u97AD\u6253",
|
|
438
438
|
"pptx.animation.catalogPreset.exit33": "\u79BB\u53BB",
|
package/dist/i18n.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1397,6 +1397,32 @@ interface TextStyle {
|
|
|
1397
1397
|
* @see element-paragraph-geometry.ts
|
|
1398
1398
|
*/
|
|
1399
1399
|
resolvedParagraphGeometry?: TextStyle;
|
|
1400
|
+
/**
|
|
1401
|
+
* Snapshot of the ELEMENT-scope `a:bodyPr` properties (vertical anchor,
|
|
1402
|
+
* text direction, columns, overflow, autofit, body insets, text wrap, and
|
|
1403
|
+
* the boolean/rotation attributes) as the load pipeline resolved them.
|
|
1404
|
+
*
|
|
1405
|
+
* A shape's own `a:bodyPr` is parsed first, then whatever it left
|
|
1406
|
+
* `undefined` is back-filled from the placeholder / layout / master
|
|
1407
|
+
* defaults (`applyPlaceholderBodyDefaults`), and a placeholder shape with
|
|
1408
|
+
* no `a:bodyPr` of its own has the INHERITED one parsed as if it were its
|
|
1409
|
+
* own. None of those three sources is distinguishable at
|
|
1410
|
+
* `element.textStyle` once the cascade finishes, so a writer that
|
|
1411
|
+
* re-emits every defined field turns an inherited anchor, inset, autofit
|
|
1412
|
+
* mode or `rtlCol` into a value pinned on the slide forever (and an
|
|
1413
|
+
* inherited `a:normAutofit` with no scale gets written back as
|
|
1414
|
+
* `a:spAutoFit`, flipping AutoSize from "shrink text" to "resize shape").
|
|
1415
|
+
*
|
|
1416
|
+
* Present only on an `element.textStyle` that came from a parsed deck.
|
|
1417
|
+
* The save path diffs the live style against this snapshot: a field that
|
|
1418
|
+
* still matches is an inheritance artefact and the writer leaves the
|
|
1419
|
+
* underlying `a:bodyPr` attribute untouched (whatever it already is,
|
|
1420
|
+
* present or absent); a field that differs was authored or has since
|
|
1421
|
+
* been edited and is written out.
|
|
1422
|
+
*
|
|
1423
|
+
* @see element-body-properties.ts
|
|
1424
|
+
*/
|
|
1425
|
+
resolvedBodyProperties?: TextStyle;
|
|
1400
1426
|
fontFamily?: string;
|
|
1401
1427
|
fontSize?: number;
|
|
1402
1428
|
/** When true, some form of autofit is in effect; see {@link autoFitMode} for which. */
|
|
@@ -1579,6 +1605,16 @@ interface TextStyle {
|
|
|
1579
1605
|
align: 'l' | 'ctr' | 'r' | 'dec';
|
|
1580
1606
|
leader?: 'none' | 'dot' | 'hyphen' | 'underscore';
|
|
1581
1607
|
}>;
|
|
1608
|
+
/**
|
|
1609
|
+
* True when the paragraph's own `a:pPr` authored an EMPTY `<a:tabLst/>`
|
|
1610
|
+
* (explicitly "no tab stops", overriding whatever the cascade would
|
|
1611
|
+
* otherwise supply) rather than omitting the element entirely (inherit).
|
|
1612
|
+
* fast-xml-parser gives a childless element as the empty string, so
|
|
1613
|
+
* `tabLst` and no-`tabLst` are otherwise indistinguishable once `tabStops`
|
|
1614
|
+
* comes back empty either way. Paragraph-scope only; not part of the
|
|
1615
|
+
* element-level geometry cascade.
|
|
1616
|
+
*/
|
|
1617
|
+
tabStopsExplicitEmpty?: boolean;
|
|
1582
1618
|
/** Body text wrapping mode from `a:bodyPr/@wrap`. */
|
|
1583
1619
|
textWrap?: 'square' | 'none';
|
|
1584
1620
|
/** Preset text warp type from `a:bodyPr/a:prstTxWarp`. */
|
|
@@ -1621,6 +1657,20 @@ interface TextStyle {
|
|
|
1621
1657
|
* serialised back on save, so it never disturbs the round-trip typefaces.
|
|
1622
1658
|
*/
|
|
1623
1659
|
scriptFallbackFont?: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* Set alongside {@link scriptFallbackFont} when the resolved {@link fontFamily}
|
|
1662
|
+
* came only from the paragraph/list-style/theme CASCADE (the run's own
|
|
1663
|
+
* `a:rPr` authored no `a:latin`/`a:ea`/`a:cs` of its own). A run always
|
|
1664
|
+
* inherits SOME font this way (typically the theme's `+mn-lt`), so without
|
|
1665
|
+
* this flag `fontFamily` was indistinguishable from a run that genuinely
|
|
1666
|
+
* chose that font itself, and the renderer never applied the theme's
|
|
1667
|
+
* per-script override (see #83): `+mn-lt` names only the LATIN member of
|
|
1668
|
+
* the font scheme and was never meant to cover text in a different
|
|
1669
|
+
* dominant script. An explicit `a:latin`/`a:ea`/`a:cs` authored on the run
|
|
1670
|
+
* itself still always wins; only the cascade default yields to the
|
|
1671
|
+
* script-specific override.
|
|
1672
|
+
*/
|
|
1673
|
+
fontFamilyIsCascadeDefault?: boolean;
|
|
1624
1674
|
/** Text language from `a:rPr/@lang`. */
|
|
1625
1675
|
language?: string;
|
|
1626
1676
|
/** Hyperlink mouse-over target from `a:hlinkMouseOver`. */
|
|
@@ -1973,6 +2023,18 @@ interface BulletInfo {
|
|
|
1973
2023
|
/** When true, `<a:buSzTx/>` was specified — inherit the bullet size from
|
|
1974
2024
|
* the run text font size. */
|
|
1975
2025
|
sizeInherit?: boolean;
|
|
2026
|
+
/**
|
|
2027
|
+
* True when this bullet resolution came from the paragraph's OWN `a:pPr`
|
|
2028
|
+
* rather than the shape's `a:lstStyle`, an inherited placeholder, or the
|
|
2029
|
+
* master's `a:defPPr` / `p:txStyles`. `resolveParagraphBulletInfo` walks
|
|
2030
|
+
* that cascade and returns the first match, so without this flag a
|
|
2031
|
+
* writer that re-emits every resolved `BulletInfo` in full pins an
|
|
2032
|
+
* inherited bullet (e.g. a master `buFont="Arial"` / `buChar="•"`) onto
|
|
2033
|
+
* every paragraph's own `a:pPr` the moment the slide is rewritten. The
|
|
2034
|
+
* save path only writes the bullet group when this is `true`, mirroring
|
|
2035
|
+
* how `paragraphProperties` gates every other per-paragraph field.
|
|
2036
|
+
*/
|
|
2037
|
+
ownedByParagraph?: boolean;
|
|
1976
2038
|
}
|
|
1977
2039
|
/**
|
|
1978
2040
|
* A single text run within a paragraph.
|
|
@@ -2015,6 +2077,23 @@ interface TextSegment {
|
|
|
2015
2077
|
fieldParagraphPropertiesXml?: XmlObject;
|
|
2016
2078
|
/** Raw OMML XML node for equation segments (from `a14:m` / `m:oMathPara`). */
|
|
2017
2079
|
equationXml?: Record<string, unknown>;
|
|
2080
|
+
/**
|
|
2081
|
+
* The ORIGINAL top-level paragraph child that carried this equation,
|
|
2082
|
+
* captured verbatim at parse time and keyed by its own tag: `{ 'a14:m':
|
|
2083
|
+
* ... }`, `{ 'm:oMathPara': ... }`, `{ 'm:oMath': ... }`, or `{
|
|
2084
|
+
* 'mc:AlternateContent': ... }` for an equation authored behind a
|
|
2085
|
+
* Choice/Fallback switch. `equationXml` above is the resolved math content
|
|
2086
|
+
* used for rendering (unwrapped one level for `a14:m`/`mc:AlternateContent`
|
|
2087
|
+
* sources); this field exists solely so the writer can re-emit an UNTOUCHED
|
|
2088
|
+
* equation byte-for-byte, Choice and Fallback both, instead of collapsing
|
|
2089
|
+
* it to a bare math element PowerPoint's own writer never produces.
|
|
2090
|
+
* `undefined` for a freshly inserted or edited equation, which the writer
|
|
2091
|
+
* instead reconstructs from `equationXml` (always `{ 'm:oMathPara': ... }`
|
|
2092
|
+
* or `{ 'm:oMath': ... }` for those cases). Any code that replaces
|
|
2093
|
+
* `equationXml` on an existing segment must drop this field, or the writer
|
|
2094
|
+
* would keep re-emitting the equation's OLD XML instead of the edit.
|
|
2095
|
+
*/
|
|
2096
|
+
equationSourceXml?: Record<string, unknown>;
|
|
2018
2097
|
/**
|
|
2019
2098
|
* Optional equation number for numbered equations (e.g. "(1)", "(2.3)").
|
|
2020
2099
|
* When present, the equation is rendered centered with the number right-aligned.
|
|
@@ -2299,6 +2378,24 @@ interface PptxShapeProperties {
|
|
|
2299
2378
|
*/
|
|
2300
2379
|
interface PlaceholderTextLevelStyle {
|
|
2301
2380
|
fontFamily?: string;
|
|
2381
|
+
/**
|
|
2382
|
+
* The RAW `a:defRPr/a:latin/@typeface` string (verbatim: a theme alias
|
|
2383
|
+
* such as `+mj-lt`/`+mn-lt`, or a literal face name) {@link fontFamily}
|
|
2384
|
+
* was resolved from. Master/layout text styles are parsed once and
|
|
2385
|
+
* cached, so `fontFamily` is a resolved-for-display snapshot; re-emitting
|
|
2386
|
+
* it as the literal name on every save (the master-level analogue of
|
|
2387
|
+
* `colorChoiceXml` below) flattens the theme alias the moment ANYTHING
|
|
2388
|
+
* about the deck is rewritten, even when this level was never touched.
|
|
2389
|
+
* Absent when the level declares no `a:latin`.
|
|
2390
|
+
*/
|
|
2391
|
+
fontTypefaceXml?: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* Snapshot of {@link fontFamily} exactly as parsed, before any edit. The
|
|
2394
|
+
* save path diffs the live value against this: unchanged means re-emit
|
|
2395
|
+
* {@link fontTypefaceXml} verbatim (preserve the alias); different means
|
|
2396
|
+
* a genuine edit, so the new literal name is written instead.
|
|
2397
|
+
*/
|
|
2398
|
+
resolvedFontFamily?: string;
|
|
2302
2399
|
fontSize?: number;
|
|
2303
2400
|
bold?: boolean;
|
|
2304
2401
|
italic?: boolean;
|
|
@@ -2348,8 +2445,32 @@ interface PlaceholderTextLevelStyle {
|
|
|
2348
2445
|
tabStops?: TextStyle['tabStops'];
|
|
2349
2446
|
lineSpacing?: number;
|
|
2350
2447
|
lineSpacingExactPt?: number;
|
|
2448
|
+
/**
|
|
2449
|
+
* Space before the paragraph in px, resolved from EITHER `a:spcPts`
|
|
2450
|
+
* (absolute) or `a:spcPct` (a percentage of this level's own `a:defRPr`
|
|
2451
|
+
* font size) - the OOXML source is not distinguishable from this field
|
|
2452
|
+
* alone. See {@link spaceBeforePercent} / {@link resolvedSpaceBefore}.
|
|
2453
|
+
*/
|
|
2351
2454
|
spaceBefore?: number;
|
|
2352
2455
|
spaceAfter?: number;
|
|
2456
|
+
/**
|
|
2457
|
+
* Snapshot of {@link spaceBefore} / {@link spaceAfter} exactly as parsed.
|
|
2458
|
+
* Diffed the same way as {@link resolvedFontFamily}: unchanged means the
|
|
2459
|
+
* writer re-emits the ORIGINAL form (`a:spcPct` when
|
|
2460
|
+
* {@link spaceBeforePercent} / {@link spaceAfterPercent} is set); a value
|
|
2461
|
+
* that has since moved away from the snapshot is a genuine edit and is
|
|
2462
|
+
* always written as `a:spcPts`, since an editor works in absolute units.
|
|
2463
|
+
*/
|
|
2464
|
+
resolvedSpaceBefore?: number;
|
|
2465
|
+
resolvedSpaceAfter?: number;
|
|
2466
|
+
/**
|
|
2467
|
+
* The raw `a:spcPct` fraction (e.g. `0.2` for 20%) {@link spaceBefore} /
|
|
2468
|
+
* {@link spaceAfter} was resolved from, when the source used percentage
|
|
2469
|
+
* spacing rather than `a:spcPts`. Absent when the source used `a:spcPts`
|
|
2470
|
+
* (or authored no spacing at all).
|
|
2471
|
+
*/
|
|
2472
|
+
spaceBeforePercent?: number;
|
|
2473
|
+
spaceAfterPercent?: number;
|
|
2353
2474
|
/** Default tab interval in CSS pixels (`a:lvlXpPr/@defTabSz`). */
|
|
2354
2475
|
defaultTabSize?: number;
|
|
2355
2476
|
/** Whether East Asian line-breaking rules are enabled. */
|
|
@@ -5082,6 +5203,18 @@ interface PptxSmartArtLayoutDefinition {
|
|
|
5082
5203
|
rootNode: PptxSmartArtLayoutNode;
|
|
5083
5204
|
/** Original definition retained for constraint evaluation and foreign rules. */
|
|
5084
5205
|
rawXml?: XmlObject;
|
|
5206
|
+
/**
|
|
5207
|
+
* The un-parsed layout-definition part text (starting at `<dgm:layoutDef>`,
|
|
5208
|
+
* XML declaration included). `rawXml` above loses the document order of
|
|
5209
|
+
* differently-named siblings (the package-wide `fast-xml-parser`
|
|
5210
|
+
* configuration groups children into one array per tag), which the
|
|
5211
|
+
* per-point DiagramML engine (`core/utils/smartart-engine/`) needs to
|
|
5212
|
+
* execute a `layoutNode` body's `forEach`/`choose`/`constrLst` statements
|
|
5213
|
+
* in their real declared sequence - see that package's `ordered-xml.ts`.
|
|
5214
|
+
* `undefined` when the part could not be read (matches `rawXml`'s own
|
|
5215
|
+
* optionality); the engine falls back to the legacy interpreter then.
|
|
5216
|
+
*/
|
|
5217
|
+
rawXmlText?: string;
|
|
5085
5218
|
}
|
|
5086
5219
|
//#endregion
|
|
5087
5220
|
//#region src/core/types/smart-art-node.d.ts
|
|
@@ -6194,6 +6327,20 @@ interface PptxTableData {
|
|
|
6194
6327
|
* present when there is at least one effect.
|
|
6195
6328
|
*/
|
|
6196
6329
|
tableEffects?: ParsedTableStyleEffect[];
|
|
6330
|
+
/**
|
|
6331
|
+
* Table-cell-context default text size in points, resolved from the
|
|
6332
|
+
* slide's master `p:otherStyle` (ECMA-376 §19.3.1.42 CT_TextListStyle,
|
|
6333
|
+
* §19.3.1.52 for `p:txStyles`). PowerPoint sizes a table cell's text off
|
|
6334
|
+
* this master default (commonly 18pt) whenever neither the run nor the
|
|
6335
|
+
* (size-less) table style provides one; without it, cell text without an
|
|
6336
|
+
* explicit `a:rPr@sz` fell back to the browser's own default font size
|
|
6337
|
+
* (16px / 12pt) instead. A render-only hint: it is not part of any
|
|
6338
|
+
* individual cell's parsed style and is never written back on save, so
|
|
6339
|
+
* resaving an unstyled cell does not bake in an explicit size that was
|
|
6340
|
+
* never authored. `undefined` when no master/otherStyle size resolves
|
|
6341
|
+
* (renderers should leave the browser default in place in that case).
|
|
6342
|
+
*/
|
|
6343
|
+
defaultCellFontSize?: number;
|
|
6197
6344
|
}
|
|
6198
6345
|
/**
|
|
6199
6346
|
* A single fill reference within a table style section.
|
|
@@ -6219,6 +6366,14 @@ interface ParsedTableStyleFill {
|
|
|
6219
6366
|
tint?: number;
|
|
6220
6367
|
/** Shade value (0-100 000). */
|
|
6221
6368
|
shade?: number;
|
|
6369
|
+
/**
|
|
6370
|
+
* Alpha (opacity) value (0-100 000, where 100 000 is fully opaque) from an
|
|
6371
|
+
* `a:alpha` child of `a:schemeClr`/`a:srgbClr`. Several built-in table
|
|
6372
|
+
* styles (e.g. "Light Style 1/3", "Themed Style 1/2") band their rows with
|
|
6373
|
+
* a partially transparent tint of the theme colour rather than a tint/shade
|
|
6374
|
+
* blend.
|
|
6375
|
+
*/
|
|
6376
|
+
alpha?: number;
|
|
6222
6377
|
/** Explicit sRGB hex colour (e.g. `#FF8800`) from `a:srgbClr`. */
|
|
6223
6378
|
color?: string;
|
|
6224
6379
|
/** The fill was `a:noFill`: renders transparent and clears lower layers. */
|
|
@@ -7054,6 +7209,20 @@ interface ContentPartInkStroke {
|
|
|
7054
7209
|
* NAMES differ.
|
|
7055
7210
|
*/
|
|
7056
7211
|
tiltEncoding?: 'vector' | 'azimuthAltitude';
|
|
7212
|
+
/**
|
|
7213
|
+
* Per-point timestamps (milliseconds), decoded from the source InkML
|
|
7214
|
+
* trace's `T` channel when it declared one.
|
|
7215
|
+
*
|
|
7216
|
+
* Absent for the overwhelming majority of real decks: PowerPoint's own
|
|
7217
|
+
* SaveAs output declares only `X`/`Y` and has no per-point time channel at
|
|
7218
|
+
* all (see `contentpart-real-ink-roundtrip.test.ts`'s fixture), so this is
|
|
7219
|
+
* populated only for InkML sources that genuinely author one (a captured
|
|
7220
|
+
* digitizer session, OneNote, a Surface Hub export). When present, ink
|
|
7221
|
+
* replay ("watch the ink get drawn") uses each stroke's own first/last
|
|
7222
|
+
* timestamp to time its reveal instead of the fixed per-stroke cascade; see
|
|
7223
|
+
* `pptx-viewer-shared`'s `render/ink-replay-timeline.ts`.
|
|
7224
|
+
*/
|
|
7225
|
+
pointTimestamps?: number[];
|
|
7057
7226
|
}
|
|
7058
7227
|
/**
|
|
7059
7228
|
* A content-part element wrapped in `mc:AlternateContent`.
|
|
@@ -7098,6 +7267,28 @@ interface ZoomPptxElement extends PptxElementBase, PptxImageProperties {
|
|
|
7098
7267
|
summaryTargets?: SummaryZoomTarget[];
|
|
7099
7268
|
/** Layout mode authored on the Summary Zoom container. */
|
|
7100
7269
|
summaryLayout?: 'grid' | 'fixed';
|
|
7270
|
+
/**
|
|
7271
|
+
* `zmPr/@returnToParent` (MS-PPTX `CT_ZoomObjectProperties`, shared by all
|
|
7272
|
+
* three Zoom kinds): whether continuing forward from the destination slide
|
|
7273
|
+
* during a live show returns to this Zoom's origin slide instead of
|
|
7274
|
+
* advancing linearly through the deck. OOXML default is `true` when the
|
|
7275
|
+
* attribute is present but this codebase leaves it `undefined` when the
|
|
7276
|
+
* source XML omits it, so a round-trip never fabricates the attribute.
|
|
7277
|
+
* For `zoomType: 'summary'`, this mirrors the first tile's own value; see
|
|
7278
|
+
* {@link SummaryZoomTarget.returnToParent} for the per-tile value.
|
|
7279
|
+
*/
|
|
7280
|
+
returnToParent?: boolean;
|
|
7281
|
+
/**
|
|
7282
|
+
* `zmPr/@transitionDur` (MS-PPTX `CT_ZoomObjectProperties`): the
|
|
7283
|
+
* zoom-transition length in milliseconds. PowerPoint's own writer emits a
|
|
7284
|
+
* unitless decimal-millisecond value for every OOXML `ST_UniversalTimeOffset`
|
|
7285
|
+
* this codebase has observed (see the media-trim/-fade parsers), so this
|
|
7286
|
+
* follows the same convention rather than the full TIMEOFFSET grammar's
|
|
7287
|
+
* unit suffixes. Undefined uses the destination slide's own transition.
|
|
7288
|
+
* For `zoomType: 'summary'`, this mirrors the first tile's own value; see
|
|
7289
|
+
* {@link SummaryZoomTarget.transitionDurationMs} for the per-tile value.
|
|
7290
|
+
*/
|
|
7291
|
+
transitionDurationMs?: number;
|
|
7101
7292
|
}
|
|
7102
7293
|
/** A single section tile within a PowerPoint Summary Zoom container. */
|
|
7103
7294
|
interface SummaryZoomTarget extends PptxImageProperties {
|
|
@@ -7113,6 +7304,10 @@ interface SummaryZoomTarget extends PptxImageProperties {
|
|
|
7113
7304
|
offsetFactorY?: number;
|
|
7114
7305
|
scaleFactorX?: number;
|
|
7115
7306
|
scaleFactorY?: number;
|
|
7307
|
+
/** This tile's own `zmPr/@returnToParent`; see {@link ZoomPptxElement.returnToParent}. */
|
|
7308
|
+
returnToParent?: boolean;
|
|
7309
|
+
/** This tile's own `zmPr/@transitionDur` in milliseconds; see {@link ZoomPptxElement.transitionDurationMs}. */
|
|
7310
|
+
transitionDurationMs?: number;
|
|
7116
7311
|
rawXml?: XmlObject;
|
|
7117
7312
|
}
|
|
7118
7313
|
/**
|
|
@@ -8103,6 +8298,17 @@ interface PptxAttributeAnimation {
|
|
|
8103
8298
|
* IS consulted regardless of this field's value. Absent means `lin`.
|
|
8104
8299
|
*/
|
|
8105
8300
|
calcMode?: 'discrete' | 'lin' | 'fmla';
|
|
8301
|
+
/**
|
|
8302
|
+
* `p:anim/@_p14:bounceEnd` (Office 2010 `p14` extension attribute,
|
|
8303
|
+
* MS-OI29500), normalized to a 0-1 fraction of this behaviour's own
|
|
8304
|
+
* duration. PowerPoint's Fly In "Bounce End" effect option writes this on
|
|
8305
|
+
* the position-ramp `p:anim` node(s): the fraction of the duration at
|
|
8306
|
+
* which the primary travel completes, with the remainder spent bouncing
|
|
8307
|
+
* and settling at the final value. Mirrored verbatim by PowerPoint onto
|
|
8308
|
+
* the enclosing `p:cTn/@_p14:presetBounceEnd`. Absent for every animation
|
|
8309
|
+
* that doesn't use this effect option (the overwhelming majority).
|
|
8310
|
+
*/
|
|
8311
|
+
bounceEnd?: number;
|
|
8106
8312
|
}
|
|
8107
8313
|
/** Signed HSL channel deltas parsed from `p:animClr/p:by/p:hsl`. */
|
|
8108
8314
|
interface PptxHslColorDelta {
|
|
@@ -8184,7 +8390,19 @@ interface PptxTextAnimationTarget {
|
|
|
8184
8390
|
* These map directly to OOXML condition event attribute values
|
|
8185
8391
|
* (ISO/IEC 29500-1 S19.5.28 CT_TLTimeCondition).
|
|
8186
8392
|
*/
|
|
8187
|
-
type AnimationConditionEvent = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio' | 'onDblClick';
|
|
8393
|
+
type AnimationConditionEvent = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick' | 'onMouseOver' | 'onMouseOut' | 'onNext' | 'onPrev' | 'onStopAudio' | 'onDblClick' | 'onMediaBookmark';
|
|
8394
|
+
/**
|
|
8395
|
+
* `p14:bmkTgt` (Office 2010 `p14` extension, MS-OI29500): names the specific
|
|
8396
|
+
* media element and bookmark an `evt="onMediaBookmark"` condition fires for.
|
|
8397
|
+
* `bookmarkName` matches a `p14:bmk/@_name` on that media element's own
|
|
8398
|
+
* `p14:bmkLst` (see `MediaBookmark.label` in `core/types/elements.ts`).
|
|
8399
|
+
*/
|
|
8400
|
+
interface PptxMediaBookmarkTarget {
|
|
8401
|
+
/** `p14:bmkTgt/@_spid`: the media element's shape id. */
|
|
8402
|
+
shapeId: string;
|
|
8403
|
+
/** `p14:bmkTgt/@_bmkName`: the bookmark's name. */
|
|
8404
|
+
bookmarkName: string;
|
|
8405
|
+
}
|
|
8188
8406
|
/**
|
|
8189
8407
|
* Structured representation of a single OOXML animation condition
|
|
8190
8408
|
* from `p:cond` elements inside `p:stCondLst` or `p:endCondLst`.
|
|
@@ -8204,6 +8422,11 @@ type AnimationConditionEvent = 'onBegin' | 'onEnd' | 'begin' | 'end' | 'onClick'
|
|
|
8204
8422
|
interface AnimationCondition {
|
|
8205
8423
|
/** Event that triggers the condition. */
|
|
8206
8424
|
event?: AnimationConditionEvent;
|
|
8425
|
+
/**
|
|
8426
|
+
* The media element/bookmark this condition fires for, when
|
|
8427
|
+
* {@link event} is `onMediaBookmark`. See {@link PptxMediaBookmarkTarget}.
|
|
8428
|
+
*/
|
|
8429
|
+
bookmarkTarget?: PptxMediaBookmarkTarget;
|
|
8207
8430
|
/** Delay in milliseconds (from `@_delay`). "indefinite" is represented as -1. */
|
|
8208
8431
|
delay?: number;
|
|
8209
8432
|
/** Target time node ID reference (from `@_tn`). */
|
|
@@ -9522,7 +9745,12 @@ interface PptxHeaderFooter {
|
|
|
9522
9745
|
hasDateTime?: boolean;
|
|
9523
9746
|
dateTimeText?: string;
|
|
9524
9747
|
dateTimeAuto?: boolean;
|
|
9525
|
-
/**
|
|
9748
|
+
/**
|
|
9749
|
+
* The master date placeholder's own `a:fld/@type` (e.g. "datetime2"), NOT a
|
|
9750
|
+
* format pattern. It is one of the predefined OOXML datetime field types
|
|
9751
|
+
* (`datetime1`-`datetime13`); the display pattern for each is resolved by
|
|
9752
|
+
* `resolveFieldDateText` in `packages/shared/src/render/text-field-substitution.ts`.
|
|
9753
|
+
*/
|
|
9526
9754
|
dateFormat?: string;
|
|
9527
9755
|
hasSlideNumber?: boolean;
|
|
9528
9756
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { $o as
|
|
2
|
-
import { i as I } from "./translator-
|
|
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
|
-
|
|
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
17
|
B as exportSlideAsSvg,
|
|
18
18
|
F as exportSlideToSvg,
|
|
19
19
|
V as exportSlideToSvgBlob,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
30
|
I as registerTranslations,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
};
|