pptx-svelte-viewer 2.12.1 → 2.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/dist/index.d.ts CHANGED
@@ -2485,6 +2485,14 @@ interface PptxChartSeries {
2485
2485
  * `c:dispBlanksAs` (gap / zero / span) using this mask.
2486
2486
  */
2487
2487
  blanks?: boolean[];
2488
+ /**
2489
+ * ECMA-376 number-format code for this series' values, resolved from
2490
+ * `c:ser/c:dLbls/c:numFmt/@formatCode` and falling back to the value cache's
2491
+ * own `c:numCache/c:formatCode` (which is what `@sourceLinked="1"` means).
2492
+ * Data labels render through it: a percentage series caches fractions, so
2493
+ * without the code `0.52` reaches the label where PowerPoint shows `52%`.
2494
+ */
2495
+ numberFormat?: string;
2488
2496
  color?: string;
2489
2497
  trendlines?: PptxChartTrendline[];
2490
2498
  errBars?: PptxChartErrBars[];
@@ -2591,6 +2599,16 @@ interface PptxChartStyle {
2591
2599
  hasTitle?: boolean;
2592
2600
  /** Whether gridlines are visible. */
2593
2601
  hasGridlines?: boolean;
2602
+ /**
2603
+ * Chart-area fill from `c:chartSpace/c:spPr`: a resolved colour, or the
2604
+ * literal `'none'` when the source declares `<a:noFill/>`. Absent when the
2605
+ * chart says nothing, in which case the renderer picks its own default.
2606
+ * PowerPoint decks routinely set `a:noFill` so the chart floats on the slide
2607
+ * background; painting a panel behind it boxes the chart in.
2608
+ */
2609
+ chartAreaFill?: string;
2610
+ /** Plot-area fill from `c:plotArea/c:spPr`. See {@link chartAreaFill}. */
2611
+ plotAreaFill?: string;
2594
2612
  /** Whether data labels are shown. */
2595
2613
  hasDataLabels?: boolean;
2596
2614
  /** Chart-level data-label content/position options (when `hasDataLabels`). */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, G as a, H as o, J as t, K as i, Q as r, U as l, V as n, W as m, X as S, Y as d, Z as p, a as v, c as g, l as h, o as T, q as u, s as x, t as A, z as f } from "./export-DpdIHj93.js";
1
+ import { B as e, G as a, H as o, J as t, K as i, Q as r, U as l, V as n, W as m, X as S, Y as d, Z as p, a as v, c as g, l as h, o as T, q as u, s as x, t as A, z as f } from "./export-BAvoKLTO.js";
2
2
  import { i as P } from "./translator-DqUAMimH.js";
3
3
  import "./i18n.js";
4
4
  export {
@@ -2486,6 +2486,14 @@ interface PptxChartSeries {
2486
2486
  * `c:dispBlanksAs` (gap / zero / span) using this mask.
2487
2487
  */
2488
2488
  blanks?: boolean[];
2489
+ /**
2490
+ * ECMA-376 number-format code for this series' values, resolved from
2491
+ * `c:ser/c:dLbls/c:numFmt/@formatCode` and falling back to the value cache's
2492
+ * own `c:numCache/c:formatCode` (which is what `@sourceLinked="1"` means).
2493
+ * Data labels render through it: a percentage series caches fractions, so
2494
+ * without the code `0.52` reaches the label where PowerPoint shows `52%`.
2495
+ */
2496
+ numberFormat?: string;
2489
2497
  color?: string;
2490
2498
  trendlines?: PptxChartTrendline[];
2491
2499
  errBars?: PptxChartErrBars[];
@@ -2592,6 +2600,16 @@ interface PptxChartStyle {
2592
2600
  hasTitle?: boolean;
2593
2601
  /** Whether gridlines are visible. */
2594
2602
  hasGridlines?: boolean;
2603
+ /**
2604
+ * Chart-area fill from `c:chartSpace/c:spPr`: a resolved colour, or the
2605
+ * literal `'none'` when the source declares `<a:noFill/>`. Absent when the
2606
+ * chart says nothing, in which case the renderer picks its own default.
2607
+ * PowerPoint decks routinely set `a:noFill` so the chart floats on the slide
2608
+ * background; painting a panel behind it boxes the chart in.
2609
+ */
2610
+ chartAreaFill?: string;
2611
+ /** Plot-area fill from `c:plotArea/c:spPr`. See {@link chartAreaFill}. */
2612
+ plotAreaFill?: string;
2595
2613
  /** Whether data labels are shown. */
2596
2614
  hasDataLabels?: boolean;
2597
2615
  /** Chart-level data-label content/position options (when `hasDataLabels`). */
@@ -1,4 +1,4 @@
1
- import { $ as s, D as e, O as a, a as i, c as t, d as l, et as S, f as n, g as v, i as d, k as o, l as b, n as g, o as p, r as c, s as x, t as w, u as T } from "../export-DpdIHj93.js";
1
+ import { $ as s, D as e, O as a, a as i, c as t, d as l, et as S, f as n, g as v, i as d, k as o, l as b, n as g, o as p, r as c, s as x, t as w, u as T } from "../export-BAvoKLTO.js";
2
2
  var m = o, P = a, V = e;
3
3
  export {
4
4
  w as PowerPointViewer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "Svelte 5 PowerPoint viewer and editor component: render, edit, present, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "office",