pptx-svelte-viewer 3.11.0 → 3.13.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 +44 -0
- package/dist/{AiChatPanel-B1rO3ai7.js → AiChatPanel-CqDsw-0W.js} +1 -1
- package/dist/{export-DUAHiVMc.js → export-Txp0tpwN.js} +39083 -35624
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +111 -17
- package/dist/index.js +2 -2
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{translator-ysng3Lpf.js → translator-DTR0k69d.js} +5 -0
- package/dist/viewer/index.d.ts +173 -17
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/presentation/animation-playback.svelte.d.ts +8 -0
- package/dist/viewer/presentation/animation-playback.svelte.d.ts.map +1 -1
- package/dist/viewer/presentation/presentation-controller.svelte.d.ts +13 -1
- package/dist/viewer/presentation/presentation-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/presentation/use-morph-transition-overlay.svelte.d.ts +216 -0
- package/dist/viewer/presentation/use-morph-transition-overlay.svelte.d.ts.map +1 -0
- package/dist/viewer/state/create-viewer-state-presentation.svelte.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/i18n.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4815,14 +4815,16 @@ interface PptxSmartArtLayoutNode {
|
|
|
4815
4815
|
*/
|
|
4816
4816
|
forEachOrigin?: PptxSmartArtIteratorAttributes;
|
|
4817
4817
|
/**
|
|
4818
|
-
* The
|
|
4819
|
-
*
|
|
4820
|
-
* reached it via
|
|
4821
|
-
* child, a `dgm:else` branch
|
|
4822
|
-
* `dgm:forEach`, which sets
|
|
4823
|
-
*
|
|
4824
|
-
*
|
|
4825
|
-
*
|
|
4818
|
+
* The conditions of EVERY enclosing `dgm:if` this node was found through,
|
|
4819
|
+
* outermost first, when `nestedLayoutNodes` (`smartart-layout-
|
|
4820
|
+
* definition.ts`) reached it via one or more `dgm:choose`'s `if` branches
|
|
4821
|
+
* (as opposed to a direct child, a `dgm:else` branch contributing no
|
|
4822
|
+
* condition of its own - see below - or a `dgm:forEach`, which sets
|
|
4823
|
+
* {@link forEachOrigin} instead). ALL must hold (evaluate `!== false`,
|
|
4824
|
+
* per {@link chooseGuard}'s own AND semantics - see `evaluateWhen`) for
|
|
4825
|
+
* this node's branch to be genuinely live. A caller that already has the
|
|
4826
|
+
* data-model node list can use this instead of treating every
|
|
4827
|
+
* choose-flattened branch as unconditionally present
|
|
4826
4828
|
* (`nestedLayoutNodes`' pre-existing "flatten every branch" convention,
|
|
4827
4829
|
* still the default when this is absent or a caller does not evaluate
|
|
4828
4830
|
* it) - e.g. `cycle-matrix--fallback-n2.pptx`'s `child1group`..
|
|
@@ -4830,15 +4832,107 @@ interface PptxSmartArtLayoutNode {
|
|
|
4830
4832
|
* having its own child (`axis="ch ch" st="N 1" cnt="1 0" func="cnt"
|
|
4831
4833
|
* op="gte" val="1"`).
|
|
4832
4834
|
*
|
|
4833
|
-
*
|
|
4834
|
-
*
|
|
4835
|
-
*
|
|
4836
|
-
*
|
|
4837
|
-
*
|
|
4838
|
-
*
|
|
4839
|
-
*
|
|
4840
|
-
|
|
4841
|
-
|
|
4835
|
+
* A CHAIN, not a single condition, because a node can sit inside NESTED
|
|
4836
|
+
* `dgm:choose`s whose OWN conditions are each individually necessary -
|
|
4837
|
+
* `sub-step-process--hier5.pptx`'s `chLin1`..`chLin7` each sit inside
|
|
4838
|
+
* BOTH an outer `dgm:if func="pos" op="equ" val="N"` (which one of the
|
|
4839
|
+
* 7 hand-duplicated per-position templates this is) AND an inner,
|
|
4840
|
+
* nearly-vacuous `dgm:if func="cnt" op="gte" val="1"` (has >= 1 point at
|
|
4841
|
+
* all) - keeping only the NEAREST (inner) one, as an earlier single-
|
|
4842
|
+
* condition design did, loses the ONE piece of information (the outer
|
|
4843
|
+
* `pos` guard) that actually discriminates `chLin1` from `chLin2`.
|
|
4844
|
+
*
|
|
4845
|
+
* A `dgm:else` branch contributes NO condition of its own (ECMA-376
|
|
4846
|
+
* defines it as "none of the sibling ifs matched", which would need the
|
|
4847
|
+
* FULL sibling list's conditions negated and ANDed together, not a
|
|
4848
|
+
* single condition - no gallery fixture measured needs an else branch's
|
|
4849
|
+
* own guard yet, so it is left unconditional, matching the pre-existing
|
|
4850
|
+
* flatten-everything behaviour) but does NOT clear any OUTER ancestor
|
|
4851
|
+
* guard already accumulated before it. Evaluate with `smartart-layout-
|
|
4852
|
+
* interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
|
|
4853
|
+
*/
|
|
4854
|
+
chooseGuard?: PptxSmartArtWhen[];
|
|
4855
|
+
/**
|
|
4856
|
+
* The chain of every enclosing `dgm:choose`'s own GROUP identity + this
|
|
4857
|
+
* node's ordinal position within it + THAT branch's own condition,
|
|
4858
|
+
* outermost first - identifies WHICH `dgm:choose` instance and WHERE
|
|
4859
|
+
* within its own `dgm:if`/`dgm:else` list this node's branch sits, unlike
|
|
4860
|
+
* {@link chooseGuard} (a flat AND-chain of every condition with no group/
|
|
4861
|
+
* position identity, and no entry at all for a `dgm:else` branch, which
|
|
4862
|
+
* has no condition of its own - see that field's doc comment). `id` is a
|
|
4863
|
+
* synthetic, process-unique identifier assigned per `dgm:choose` instance
|
|
4864
|
+
* during flattening (`smartart-layout-definition-nesting.ts`'s
|
|
4865
|
+
* `nestedLayoutNodes`, a monotonic counter - NOT round-tripped, NOT the
|
|
4866
|
+
* choose's own `@_name`, which is not guaranteed unique across a whole
|
|
4867
|
+
* layoutDef); `ordinal` is 0-based document order within that ONE choose
|
|
4868
|
+
* (every `dgm:if` in order, then `dgm:else` last, if present); `guard` is
|
|
4869
|
+
* that branch's OWN condition (`undefined` for a `dgm:else` entry, which
|
|
4870
|
+
* has none - deliberately kept PER-ENTRY rather than cross-referenced by
|
|
4871
|
+
* index against {@link chooseGuard}, whose own length can diverge from
|
|
4872
|
+
* this chain's whenever an ancestor `dgm:else` contributed a group
|
|
4873
|
+
* position but no guard).
|
|
4874
|
+
*
|
|
4875
|
+
* Lets a consumer recover ECMA-376's real `dgm:choose` semantics - "the
|
|
4876
|
+
* FIRST branch whose condition holds wins, siblings never coexist" -
|
|
4877
|
+
* from the flattened `.children` array, where that grouping would
|
|
4878
|
+
* otherwise be lost: `balance--hier5.pptx`'s `balance_NN`/`left_NN_M`/
|
|
4879
|
+
* `right_NN_M` family (127 members across ~30 NESTED `dgm:choose`
|
|
4880
|
+
* instances, not one flat 127-branch choose) needs first-match-wins
|
|
4881
|
+
* WITHIN each individual choose to resolve to the single genuinely-live
|
|
4882
|
+
* arrangement, not the "every guard-true node is an independent
|
|
4883
|
+
* candidate" reading `smartart-layout-interpreter-composite-choose.ts`'s
|
|
4884
|
+
* `collectRawCandidates` used before this field existed - see that
|
|
4885
|
+
* module's own consumer of this field for the actual selection rule.
|
|
4886
|
+
* `undefined` (or an empty array) for a node reached without any
|
|
4887
|
+
* enclosing choose (a direct child, or a `dgm:forEach`-only path) -
|
|
4888
|
+
* every PRE-EXISTING caller that does not consult this field is
|
|
4889
|
+
* unaffected by its mere presence.
|
|
4890
|
+
*/
|
|
4891
|
+
chooseGroups?: {
|
|
4892
|
+
id: string;
|
|
4893
|
+
ordinal: number;
|
|
4894
|
+
guard?: PptxSmartArtWhen;
|
|
4895
|
+
}[];
|
|
4896
|
+
/**
|
|
4897
|
+
* Every `dgm:presOf` candidate reachable through a `dgm:choose`/`dgm:if`/
|
|
4898
|
+
* `dgm:else` wrapping THIS node's OWN presOf (as opposed to
|
|
4899
|
+
* {@link chooseGuard}, which gates the layoutNode's own EXISTENCE), each
|
|
4900
|
+
* tagged with the FULL chain of enclosing `dgm:if` conditions that select
|
|
4901
|
+
* it (`guard`, empty for an unconditional or `dgm:else`-reached
|
|
4902
|
+
* candidate), in document order (every `dgm:if` then `dgm:else` last).
|
|
4903
|
+
* `undefined` when this node's presOf is not choose-guarded at all (the
|
|
4904
|
+
* overwhelmingly common case) - {@link presentationOf} already carries
|
|
4905
|
+
* the one-and-only value then. Exists for a genuinely conditional presOf
|
|
4906
|
+
* where TWO OR MORE branches each declare a real, DIFFERENT axis
|
|
4907
|
+
* (`funnel--flat3.pptx`'s `item1`/`item2`/`item3`, one literal axis per
|
|
4908
|
+
* data-point count): `smartart-layout-definition-constraints.ts`'s
|
|
4909
|
+
* `choosePresentationOf` (feeding {@link presentationOf}) can only ever
|
|
4910
|
+
* guess ONE branch statically, at parse time, with no diagram to
|
|
4911
|
+
* evaluate against; this field lets an interpret-time caller with the
|
|
4912
|
+
* actual diagram (`smartart-layout-interpreter-when.ts`'s
|
|
4913
|
+
* `resolvePresentationOf`, the one consumer) pick the branch PowerPoint's
|
|
4914
|
+
* own runtime would, first-match-wins.
|
|
4915
|
+
*/
|
|
4916
|
+
presentationOfCandidates?: {
|
|
4917
|
+
guard: PptxSmartArtWhen[];
|
|
4918
|
+
presentationOf: PptxSmartArtIteratorAttributes;
|
|
4919
|
+
}[];
|
|
4920
|
+
/**
|
|
4921
|
+
* SESSION 17: every `dgm:rule` reachable through a `dgm:choose`/`dgm:if`/
|
|
4922
|
+
* `dgm:else` wrapping THIS node's `ruleLst` (a genuinely count-gated rule
|
|
4923
|
+
* set, e.g. `diverging-radial`'s own `w for="ch" forName="node"` ceiling:
|
|
4924
|
+
* 6 `dgm:if cnt<=N` branches, each its own `fact`), tagged with its guard
|
|
4925
|
+
* chain - the SAME shape {@link presentationOfCandidates} uses for
|
|
4926
|
+
* choose-guarded `presOf`, applied to `dgm:rule`. `undefined` when not
|
|
4927
|
+
* choose-guarded (`rules` above then carries the one set, the common
|
|
4928
|
+
* case). See `smartart-layout-interpreter-cycle-hub-ratio.ts`'s
|
|
4929
|
+
* `resolveHubToNodeRatio` (COM-verified live mechanism, not a guess) for
|
|
4930
|
+
* how the guard is evaluated against the real satellite count.
|
|
4931
|
+
*/
|
|
4932
|
+
ruleCandidates?: {
|
|
4933
|
+
guard: PptxSmartArtWhen[];
|
|
4934
|
+
rule: PptxSmartArtNumericRule;
|
|
4935
|
+
}[];
|
|
4842
4936
|
}
|
|
4843
4937
|
/** Metadata and root node from DiagramML CT_DiagramDefinition. */
|
|
4844
4938
|
interface PptxSmartArtLayoutDefinition {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, G as a, J as t, K as o, Q as i, W as r, X as n, Y as l, Z as S, a as d, at as m, c as p, ct as T, dt as v, et as P, ft as g, it as u, l as h, lt as c, mt as A, nt as C, o as N, ot as f, pt as k, q as D, rt as E, s as x, st as b, t as B, tt as I, u as O, ut as _ } from "./export-
|
|
2
|
-
import { i as R } from "./translator-
|
|
1
|
+
import { $ as e, G as a, J as t, K as o, Q as i, W as r, X as n, Y as l, Z as S, a as d, at as m, c as p, ct as T, dt as v, et as P, ft as g, it as u, l as h, lt as c, mt as A, nt as C, o as N, ot as f, pt as k, q as D, rt as E, s as x, st as b, t as B, tt as I, u as O, ut as _ } from "./export-Txp0tpwN.js";
|
|
2
|
+
import { i as R } from "./translator-DTR0k69d.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
export {
|
|
5
5
|
r as PPTX_OPEN_ACCEPT,
|