pptx-svelte-viewer 3.14.0 → 3.16.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 +42 -0
- package/dist/{AiChatPanel-gabKC2I2.js → AiChatPanel-DQF9jifM.js} +1 -1
- package/dist/{export-BcVW1Iq0.js → export-DXOzPc77.js} +94099 -80753
- package/dist/index.d.ts +59 -3
- package/dist/index.js +1 -1
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/viewer/components/inspector/table-data-grid-responsive.d.ts +15 -0
- package/dist/viewer/components/inspector/table-data-grid-responsive.d.ts.map +1 -0
- package/dist/viewer/export/export-gif.d.ts +5 -2
- package/dist/viewer/export/export-gif.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +59 -3
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/state/glyph-outline-cache.svelte.d.ts +27 -0
- package/dist/viewer/state/glyph-outline-cache.svelte.d.ts.map +1 -0
- package/dist/viewer/state/presentation-loader.svelte.d.ts.map +1 -1
- package/dist/viewer/state/viewer-effects.svelte.d.ts.map +1 -1
- package/dist/viewer/state/window-viewport.svelte.d.ts +18 -0
- package/dist/viewer/state/window-viewport.svelte.d.ts.map +1 -0
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -4662,7 +4662,7 @@ interface PptxSmartArtNumericRule extends PptxSmartArtConstraintTarget {
|
|
|
4662
4662
|
rawXml?: XmlObject;
|
|
4663
4663
|
}
|
|
4664
4664
|
//#endregion
|
|
4665
|
-
//#region src/core/types/smart-art-layout-
|
|
4665
|
+
//#region src/core/types/smart-art-layout-primitives.d.ts
|
|
4666
4666
|
interface PptxSmartArtLocalizedText {
|
|
4667
4667
|
value: string;
|
|
4668
4668
|
language?: string;
|
|
@@ -4737,6 +4737,8 @@ interface PptxSmartArtLayoutNodeShape {
|
|
|
4737
4737
|
*/
|
|
4738
4738
|
lkTxEntry?: boolean;
|
|
4739
4739
|
}
|
|
4740
|
+
//#endregion
|
|
4741
|
+
//#region src/core/types/smart-art-layout-definition.d.ts
|
|
4740
4742
|
/** Identity and ordering metadata from DiagramML CT_LayoutNode. */
|
|
4741
4743
|
interface PptxSmartArtLayoutNode {
|
|
4742
4744
|
name?: string;
|
|
@@ -4852,6 +4854,30 @@ interface PptxSmartArtLayoutNode {
|
|
|
4852
4854
|
* interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
|
|
4853
4855
|
*/
|
|
4854
4856
|
chooseGuard?: PptxSmartArtWhen[];
|
|
4857
|
+
/**
|
|
4858
|
+
* ROUND 42: the forEach iterator active WHEN EACH ENTRY of {@link
|
|
4859
|
+
* chooseGuard} was declared (index-parallel with it, `undefined` per
|
|
4860
|
+
* entry when no forEach was active at that point) - NOT the same as
|
|
4861
|
+
* {@link forEachOrigin}, which is always this NODE's own single nearest
|
|
4862
|
+
* enclosing forEach, however deep. A `dgm:if` declared ABOVE a `dgm:forEach`
|
|
4863
|
+
* that this node's own branch happens to descend through afterwards needs
|
|
4864
|
+
* ITS OWN, SHALLOWER anchor for a `func="cnt"`/`"maxDepth"`-family
|
|
4865
|
+
* `@axis` condition, not this node's deeper one - `funnel--flat3.pptx`'s
|
|
4866
|
+
* `item1`/`item2`/`item3` (`chooseGuard: [Name5's axis="ch" func="cnt"
|
|
4867
|
+
* op="gte" val="1"]`, declared directly under the composite root, BEFORE
|
|
4868
|
+
* each item's own per-item `dgm:forEach axis="ch" st="2"/"3"/"4" cnt="1"`)
|
|
4869
|
+
* is exactly this shape: evaluating Name5's condition anchored to item1's
|
|
4870
|
+
* OWN forEach binding (one specific data point, with no children of its
|
|
4871
|
+
* own in a flat dataset) wrongly resolves its `axis="ch"` child count to
|
|
4872
|
+
* 0 instead of the diagram's real top-level count, dropping the item
|
|
4873
|
+
* entirely - `chooseGuardOrigins[i]` for that entry is `undefined`
|
|
4874
|
+
* (Name5 sits above ANY forEach), so the guard correctly stays
|
|
4875
|
+
* root-relative. See `smartart-layout-interpreter-composite-
|
|
4876
|
+
* candidates.ts`'s `guardAllows`, the one production consumer.
|
|
4877
|
+
* `undefined` whenever {@link chooseGuard} itself is (no enclosing
|
|
4878
|
+
* choose at all).
|
|
4879
|
+
*/
|
|
4880
|
+
chooseGuardOrigins?: (PptxSmartArtIteratorAttributes | undefined)[];
|
|
4855
4881
|
/**
|
|
4856
4882
|
* The chain of every enclosing `dgm:choose`'s own GROUP identity + this
|
|
4857
4883
|
* node's ordinal position within it + THAT branch's own condition,
|
|
@@ -4887,11 +4913,20 @@ interface PptxSmartArtLayoutNode {
|
|
|
4887
4913
|
* enclosing choose (a direct child, or a `dgm:forEach`-only path) -
|
|
4888
4914
|
* every PRE-EXISTING caller that does not consult this field is
|
|
4889
4915
|
* unaffected by its mere presence.
|
|
4916
|
+
*
|
|
4917
|
+
* ROUND 42: `origin` is the forEach iterator active when THIS branch's
|
|
4918
|
+
* own `dgm:if`/`dgm:else` was declared (the SAME "declaration time, not
|
|
4919
|
+
* whatever descendant ends up carrying it" concept {@link
|
|
4920
|
+
* chooseGuardOrigins} exists for) - the anchor a `func="cnt"`/`"maxDepth"`
|
|
4921
|
+
* -family condition in `guard` needs, NOT a representative member's own
|
|
4922
|
+
* (possibly deeper) `forEachOrigin`. See `smartart-layout-interpreter-
|
|
4923
|
+
* composite-choose-groups.ts`'s `winningOrdinalFor`, the one consumer.
|
|
4890
4924
|
*/
|
|
4891
4925
|
chooseGroups?: {
|
|
4892
4926
|
id: string;
|
|
4893
4927
|
ordinal: number;
|
|
4894
4928
|
guard?: PptxSmartArtWhen;
|
|
4929
|
+
origin?: PptxSmartArtIteratorAttributes;
|
|
4895
4930
|
}[];
|
|
4896
4931
|
/**
|
|
4897
4932
|
* Every `dgm:presOf` candidate reachable through a `dgm:choose`/`dgm:if`/
|
|
@@ -4933,6 +4968,24 @@ interface PptxSmartArtLayoutNode {
|
|
|
4933
4968
|
guard: PptxSmartArtWhen[];
|
|
4934
4969
|
rule: PptxSmartArtNumericRule;
|
|
4935
4970
|
}[];
|
|
4971
|
+
/**
|
|
4972
|
+
* ROUND 39: every `dgm:constr` reachable through a `dgm:choose`/`dgm:if`/
|
|
4973
|
+
* `dgm:else` wrapping THIS node's `constrLst` (a genuinely count/position
|
|
4974
|
+
* -branched constraint set, e.g. `basic-venn--flat3.pptx`'s composite
|
|
4975
|
+
* `Name9` choose, one `ctrX`/`ctrY`/`w`/`h` per data-point-count branch
|
|
4976
|
+
* for `circ1`/`circ1Tx`/...), each tagged with its guard chain - the SAME
|
|
4977
|
+
* shape {@link presentationOfCandidates}/{@link ruleCandidates} use,
|
|
4978
|
+
* applied to `dgm:constr`. `undefined` when not choose-guarded
|
|
4979
|
+
* (`allConstraints`/`constraints` above then carry the one set, the
|
|
4980
|
+
* common case). See `smartart-constraint-branch-index.ts`'s
|
|
4981
|
+
* `selectConstraints` for how the guard is evaluated against the real
|
|
4982
|
+
* diagram, and that module's own doc comment for why `allConstraints`'s
|
|
4983
|
+
* pre-existing blind union of every branch is not enough on its own.
|
|
4984
|
+
*/
|
|
4985
|
+
constraintCandidates?: {
|
|
4986
|
+
guard: PptxSmartArtWhen[];
|
|
4987
|
+
constraint: PptxSmartArtConstraint;
|
|
4988
|
+
}[];
|
|
4936
4989
|
}
|
|
4937
4990
|
/** Metadata and root node from DiagramML CT_DiagramDefinition. */
|
|
4938
4991
|
interface PptxSmartArtLayoutDefinition {
|
|
@@ -12158,8 +12211,11 @@ interface ExportGifOptions {
|
|
|
12158
12211
|
slideTimingsMs?: number[];
|
|
12159
12212
|
/**
|
|
12160
12213
|
* Longest allowed output side in pixels; frames are scaled down
|
|
12161
|
-
* proportionally.
|
|
12162
|
-
*
|
|
12214
|
+
* proportionally. Defaults to the shared `GIF_POST_CAPTURE_MAX_SIDE`
|
|
12215
|
+
* (1920px; see `resolveExportCaptureDecision`'s `postCaptureMaxSide` for
|
|
12216
|
+
* `'gif'`), matching every other binding. GIF encoding cost grows with
|
|
12217
|
+
* pixel count: every pixel is matched against a 256-colour palette per
|
|
12218
|
+
* frame.
|
|
12163
12219
|
*/
|
|
12164
12220
|
maxDimension?: number;
|
|
12165
12221
|
/** Capture-phase progress callback: `(currentSlide, totalSlides)`. */
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DXOzPc77.js";
|
|
2
2
|
import { i as R } from "./translator-DTR0k69d.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
export {
|