@silurus/ooxml 0.6.0 → 0.8.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.
@@ -221,12 +221,18 @@ declare interface ChartData {
221
221
  valAxisTitle?: string | null;
222
222
  /** True when <c:legend> is present. Absence means the legend is hidden. */
223
223
  showLegend?: boolean;
224
+ /** `<c:legendPos val>` — "r"|"l"|"t"|"b"|"tr". null/undefined = default ("r"). */
225
+ legendPos?: 'r' | 'l' | 't' | 'b' | 'tr' | null;
224
226
  /** Chart title font size in OOXML hundredths of a point (e.g. 1400 = 14pt). */
225
227
  titleFontSizeHpt?: number | null;
226
228
  /** Chart title font color as a hex string without '#' (srgbClr only). */
227
229
  titleFontColor?: string | null;
228
230
  /** Chart title font family from `<a:latin typeface>` (ECMA-376 §20.1.4.2.24). */
229
231
  titleFontFace?: string | null;
232
+ /** Category axis tick-label font size in hpt (ECMA-376 §21.2.2.17 c:txPr). */
233
+ catAxisFontSizeHpt?: number | null;
234
+ /** Value axis tick-label font size in hpt. */
235
+ valAxisFontSizeHpt?: number | null;
230
236
  }
231
237
 
232
238
  /**
@@ -296,6 +302,14 @@ declare interface ChartSeries {
296
302
  * `ChartModel.categories` as X.
297
303
  */
298
304
  categories?: string[] | null;
305
+ /**
306
+ * Resolved marker visibility for line/scatter series. ECMA-376 §21.2.2.32
307
+ * `<c:marker><c:symbol>` defaults to "none" for line charts unless the
308
+ * chart-level `<c:marker val="1"/>` or a per-series symbol opts in. When
309
+ * undefined/null the renderer uses its own default (visible) so callers
310
+ * that don't parse markers (e.g. pptx today) keep their existing behavior.
311
+ */
312
+ showMarker?: boolean | null;
299
313
  }
300
314
 
301
315
  declare interface ConditionalFormat {
@@ -1085,6 +1099,11 @@ declare interface ShapeElement {
1085
1099
  adj3: number | null;
1086
1100
  /** Fourth adjustment value from prstGeom avLst (e.g. callout tip y). Range 0–100000. */
1087
1101
  adj4: number | null;
1102
+ /** adj5-adj8: extra polyline vertices for callouts like accentBorderCallout3. */
1103
+ adj5: number | null;
1104
+ adj6: number | null;
1105
+ adj7: number | null;
1106
+ adj8: number | null;
1088
1107
  /** Drop shadow from effectLst > outerShdw (null if not present). */
1089
1108
  shadow: Shadow | null;
1090
1109
  }
@@ -1378,6 +1397,9 @@ declare interface XlsxChartSeries {
1378
1397
  values: (number | null)[];
1379
1398
  /** Explicit fill color hex (from c:spPr). Undefined = use palette. */
1380
1399
  color?: string | null;
1400
+ /** Marker visibility resolved from `<c:marker>`/chart-level default
1401
+ * (ECMA-376 §21.2.2.32). */
1402
+ showMarker?: boolean;
1381
1403
  }
1382
1404
 
1383
1405
  declare class XlsxViewer {
@@ -115,6 +115,14 @@ declare interface ChartSeries {
115
115
  * `ChartModel.categories` as X.
116
116
  */
117
117
  categories?: string[] | null;
118
+ /**
119
+ * Resolved marker visibility for line/scatter series. ECMA-376 §21.2.2.32
120
+ * `<c:marker><c:symbol>` defaults to "none" for line charts unless the
121
+ * chart-level `<c:marker val="1"/>` or a per-series symbol opts in. When
122
+ * undefined/null the renderer uses its own default (visible) so callers
123
+ * that don't parse markers (e.g. pptx today) keep their existing behavior.
124
+ */
125
+ showMarker?: boolean | null;
118
126
  }
119
127
 
120
128
  export declare type Fill = SolidFill | NoFill | GradientFill;
@@ -453,6 +461,11 @@ export declare interface ShapeElement {
453
461
  adj3: number | null;
454
462
  /** Fourth adjustment value from prstGeom avLst (e.g. callout tip y). Range 0–100000. */
455
463
  adj4: number | null;
464
+ /** adj5-adj8: extra polyline vertices for callouts like accentBorderCallout3. */
465
+ adj5: number | null;
466
+ adj6: number | null;
467
+ adj7: number | null;
468
+ adj8: number | null;
456
469
  /** Drop shadow from effectLst > outerShdw (null if not present). */
457
470
  shadow: Shadow | null;
458
471
  }
@@ -175,12 +175,18 @@ declare interface ChartData {
175
175
  valAxisTitle?: string | null;
176
176
  /** True when <c:legend> is present. Absence means the legend is hidden. */
177
177
  showLegend?: boolean;
178
+ /** `<c:legendPos val>` — "r"|"l"|"t"|"b"|"tr". null/undefined = default ("r"). */
179
+ legendPos?: 'r' | 'l' | 't' | 'b' | 'tr' | null;
178
180
  /** Chart title font size in OOXML hundredths of a point (e.g. 1400 = 14pt). */
179
181
  titleFontSizeHpt?: number | null;
180
182
  /** Chart title font color as a hex string without '#' (srgbClr only). */
181
183
  titleFontColor?: string | null;
182
184
  /** Chart title font family from `<a:latin typeface>` (ECMA-376 §20.1.4.2.24). */
183
185
  titleFontFace?: string | null;
186
+ /** Category axis tick-label font size in hpt (ECMA-376 §21.2.2.17 c:txPr). */
187
+ catAxisFontSizeHpt?: number | null;
188
+ /** Value axis tick-label font size in hpt. */
189
+ valAxisFontSizeHpt?: number | null;
184
190
  }
185
191
 
186
192
  declare interface ConditionalFormat {
@@ -375,6 +381,9 @@ declare interface XlsxChartSeries {
375
381
  values: (number | null)[];
376
382
  /** Explicit fill color hex (from c:spPr). Undefined = use palette. */
377
383
  color?: string | null;
384
+ /** Marker visibility resolved from `<c:marker>`/chart-level default
385
+ * (ECMA-376 §21.2.2.32). */
386
+ showMarker?: boolean;
378
387
  }
379
388
 
380
389
  export declare class XlsxViewer {