pptx-svelte-viewer 2.17.4 → 2.17.6
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 +4 -0
- package/dist/{AiChatPanel-C_ClcMvc.js → AiChatPanel-CRcBTZ7y.js} +1 -1
- package/dist/{export-Dq9kB8Ea.js → export-CGQQBmh7.js} +17533 -17400
- package/dist/index.d.ts +17 -0
- package/dist/index.js +1 -1
- package/dist/viewer/index.d.ts +17 -0
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/render/smartart-view.d.ts +3 -11
- package/dist/viewer/render/smartart-view.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1937,6 +1937,17 @@ interface PlaceholderTextLevelStyle {
|
|
|
1937
1937
|
bold?: boolean;
|
|
1938
1938
|
italic?: boolean;
|
|
1939
1939
|
color?: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* The `a:defRPr/a:solidFill` node this level's {@link color} came from.
|
|
1942
|
+
*
|
|
1943
|
+
* Master and layout text styles are parsed and cached before any slide is,
|
|
1944
|
+
* so a scheme alias such as `tx1` was resolved through the map that was
|
|
1945
|
+
* active then. A slide carrying `p:clrMapOvr` routes the same alias
|
|
1946
|
+
* somewhere else, so the alias has to be resolved again against the slide
|
|
1947
|
+
* that is inheriting it; {@link color} is only the reading taken at parse
|
|
1948
|
+
* time. Absent when the level declares no colour, or declares a literal one.
|
|
1949
|
+
*/
|
|
1950
|
+
colorChoiceXml?: XmlObject;
|
|
1940
1951
|
bulletChar?: string;
|
|
1941
1952
|
bulletAutoNumType?: string;
|
|
1942
1953
|
bulletFontFamily?: string;
|
|
@@ -3714,6 +3725,12 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
|
|
|
3714
3725
|
skewX?: number;
|
|
3715
3726
|
/** Skew along the Y axis in degrees. */
|
|
3716
3727
|
skewY?: number;
|
|
3728
|
+
/**
|
|
3729
|
+
* The cached shape declares `a:noFill`. Renderers must leave it unpainted
|
|
3730
|
+
* rather than substituting a palette colour, because these shapes usually sit
|
|
3731
|
+
* on top of a painted shape whose fill has to stay visible.
|
|
3732
|
+
*/
|
|
3733
|
+
fillNone?: boolean;
|
|
3717
3734
|
/** Solid fill colour (hex). */
|
|
3718
3735
|
fillColor?: string;
|
|
3719
3736
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, G as o, H as a, J as t, K as i, Q as r, U as l, W as n, X as S, Y as m, Z as d, a as p, at as v, c as g, et as T, it as h, l as u, nt as k, o as D, ot as c, q as f, rt as x, s as A, t as C, tt as b } from "./export-
|
|
1
|
+
import { $ as e, G as o, H as a, J as t, K as i, Q as r, U as l, W as n, X as S, Y as m, Z as d, a as p, at as v, c as g, et as T, it as h, l as u, nt as k, o as D, ot as c, q as f, rt as x, s as A, t as C, tt as b } from "./export-CGQQBmh7.js";
|
|
2
2
|
import { i as V } from "./translator-CZy5sxU0.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
export {
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1938,6 +1938,17 @@ interface PlaceholderTextLevelStyle {
|
|
|
1938
1938
|
bold?: boolean;
|
|
1939
1939
|
italic?: boolean;
|
|
1940
1940
|
color?: string;
|
|
1941
|
+
/**
|
|
1942
|
+
* The `a:defRPr/a:solidFill` node this level's {@link color} came from.
|
|
1943
|
+
*
|
|
1944
|
+
* Master and layout text styles are parsed and cached before any slide is,
|
|
1945
|
+
* so a scheme alias such as `tx1` was resolved through the map that was
|
|
1946
|
+
* active then. A slide carrying `p:clrMapOvr` routes the same alias
|
|
1947
|
+
* somewhere else, so the alias has to be resolved again against the slide
|
|
1948
|
+
* that is inheriting it; {@link color} is only the reading taken at parse
|
|
1949
|
+
* time. Absent when the level declares no colour, or declares a literal one.
|
|
1950
|
+
*/
|
|
1951
|
+
colorChoiceXml?: XmlObject;
|
|
1941
1952
|
bulletChar?: string;
|
|
1942
1953
|
bulletAutoNumType?: string;
|
|
1943
1954
|
bulletFontFamily?: string;
|
|
@@ -3715,6 +3726,12 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
|
|
|
3715
3726
|
skewX?: number;
|
|
3716
3727
|
/** Skew along the Y axis in degrees. */
|
|
3717
3728
|
skewY?: number;
|
|
3729
|
+
/**
|
|
3730
|
+
* The cached shape declares `a:noFill`. Renderers must leave it unpainted
|
|
3731
|
+
* rather than substituting a palette colour, because these shapes usually sit
|
|
3732
|
+
* on top of a painted shape whose fill has to stay visible.
|
|
3733
|
+
*/
|
|
3734
|
+
fillNone?: boolean;
|
|
3718
3735
|
/** Solid fill colour (hex). */
|
|
3719
3736
|
fillColor?: string;
|
|
3720
3737
|
/**
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, O as a, a as s, c as t, ct as i, d as l, f as S, g as n, i as v, k as o, l as d, n as b, o as c, r as g, s as p, st as x, t as w, u as T } from "../export-
|
|
1
|
+
import { A as e, O as a, a as s, c as t, ct as i, d as l, f as S, g as n, i as v, k as o, l as d, n as b, o as c, r as g, s as p, st as x, t as w, u as T } from "../export-CGQQBmh7.js";
|
|
2
2
|
var m = e, A = o, P = a;
|
|
3
3
|
export {
|
|
4
4
|
w as PowerPointViewer,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SmartArtPptxElement } from 'pptx-viewer-core';
|
|
2
|
-
import { DiagramBuildState, RenderedNode, RenderedShape, SmartArtLayoutResult } from 'pptx-viewer-shared';
|
|
2
|
+
import { DiagramBuildState, RenderedNode, RenderedShape, SmartArtLayoutResult, SvgTextLine } from 'pptx-viewer-shared';
|
|
3
3
|
/**
|
|
4
4
|
* View-model resolution for `smartArt` elements (port of the vanilla
|
|
5
5
|
* binding's `renderSmartArtElement`). Palette / stroke / shadow / layout
|
|
@@ -47,15 +47,7 @@ export declare function smartArtAriaLabel(element: SmartArtPptxElement): string
|
|
|
47
47
|
*/
|
|
48
48
|
export declare function buildSmartArtView(element: SmartArtPptxElement, build?: DiagramBuildState): SmartArtView;
|
|
49
49
|
/** One rendered line of a multi-line SVG label; `y` offsets the node centre. */
|
|
50
|
-
export
|
|
51
|
-
|
|
52
|
-
y: number;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Split node text on `\n` and compute per-line y offsets (in SVG px) that
|
|
56
|
-
* centre the block around the node centre y (offset 0). Single-line text
|
|
57
|
-
* produces one entry with y=0, preserving `dominant-baseline="central"`
|
|
58
|
-
* behaviour exactly (mirrors Vue's / vanilla's `textLines`).
|
|
59
|
-
*/
|
|
50
|
+
export type { SvgTextLine };
|
|
51
|
+
/** Split a label on newlines and centre the block on the node centre (offset 0). */
|
|
60
52
|
export declare function svgTextLines(text: string, fontSize: number): SvgTextLine[];
|
|
61
53
|
//# sourceMappingURL=smartart-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartart-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/smartart-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,mBAAmB,EAAiB,MAAM,kBAAkB,CAAC;AAC7F,OAAO,KAAK,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,oBAAoB,EAEpB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"smartart-view.d.ts","sourceRoot":"","sources":["../../../src/viewer/render/smartart-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,mBAAmB,EAAiB,MAAM,kBAAkB,CAAC;AAC7F,OAAO,KAAK,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,oBAAoB,EAEpB,WAAW,EACX,MAAM,oBAAoB,CAAC;AAgB5B;;;;;GAKG;AAEH,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,oEAAoE,CAAC;AAEpG,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,YAAY,CAAC;AAEnD,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