@silurus/ooxml 0.5.0 → 0.6.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/README.md +12 -7
- package/dist/docx-5SgqrF74.cjs +1 -0
- package/dist/docx-BdQTKYcj.js +827 -0
- package/dist/docx.cjs +1 -1
- package/dist/docx.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/pptx-C4OquLff.cjs +1 -0
- package/dist/{pptx-BHGTs5zW.js → pptx-zFBzecSl.js} +181 -177
- package/dist/pptx.cjs +1 -1
- package/dist/pptx.mjs +1 -1
- package/dist/renderer-CkvTkvPm.cjs +1 -0
- package/dist/{renderer-CpJhtczQ.js → renderer-UsGKjfFU.js} +171 -171
- package/dist/types/docx.d.ts +11 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/pptx.d.ts +13 -0
- package/dist/types/xlsx.d.ts +8 -0
- package/dist/xlsx-8Jv9bmoU.js +1196 -0
- package/dist/xlsx-DS7QINM4.cjs +4 -0
- package/dist/xlsx.cjs +1 -1
- package/dist/xlsx.mjs +1 -1
- package/package.json +1 -1
- package/dist/docx-CGvCIxpo.cjs +0 -1
- package/dist/docx-DUycjjDQ.js +0 -809
- package/dist/pptx-CYYMOWs4.cjs +0 -1
- package/dist/renderer-ckRjuWz0.cjs +0 -1
- package/dist/xlsx-BAksLJGU.js +0 -1191
- package/dist/xlsx-Cz9qI8c9.cjs +0 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -219,6 +219,14 @@ declare interface ChartData {
|
|
|
219
219
|
catAxisTitle?: string | null;
|
|
220
220
|
/** Value axis title (c:valAx/c:title). */
|
|
221
221
|
valAxisTitle?: string | null;
|
|
222
|
+
/** True when <c:legend> is present. Absence means the legend is hidden. */
|
|
223
|
+
showLegend?: boolean;
|
|
224
|
+
/** Chart title font size in OOXML hundredths of a point (e.g. 1400 = 14pt). */
|
|
225
|
+
titleFontSizeHpt?: number | null;
|
|
226
|
+
/** Chart title font color as a hex string without '#' (srgbClr only). */
|
|
227
|
+
titleFontColor?: string | null;
|
|
228
|
+
/** Chart title font family from `<a:latin typeface>` (ECMA-376 §20.1.4.2.24). */
|
|
229
|
+
titleFontFace?: string | null;
|
|
222
230
|
}
|
|
223
231
|
|
|
224
232
|
/**
|
|
@@ -255,6 +263,10 @@ declare interface ChartElement {
|
|
|
255
263
|
catAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string;
|
|
256
264
|
/** Title font size in OOXML hundredths of a point (1600 = 16pt). null = default. */
|
|
257
265
|
titleFontSizeHpt: number | null;
|
|
266
|
+
/** Title font color as a hex string without '#'. null = default/theme. */
|
|
267
|
+
titleFontColor?: string | null;
|
|
268
|
+
/** Title font family (`<a:latin typeface>`). null = default/theme. */
|
|
269
|
+
titleFontFace?: string | null;
|
|
258
270
|
/** `<c:catAx><c:txPr>` font size (hpt). null = proportional default. */
|
|
259
271
|
catAxisFontSizeHpt: number | null;
|
|
260
272
|
/** `<c:valAx><c:txPr>` font size (hpt). null = proportional default. */
|
|
@@ -589,6 +601,11 @@ declare interface LineBreak {
|
|
|
589
601
|
declare interface LineSpacing {
|
|
590
602
|
value: number;
|
|
591
603
|
rule: 'auto' | 'exact' | 'atLeast';
|
|
604
|
+
/** True when `w:spacing/@w:line` was set on the paragraph's own pPr or on a
|
|
605
|
+
* named style (not inherited solely from docDefault). Per ECMA-376 §17.6.5,
|
|
606
|
+
* an inherited-only paragraph in a docGrid section snaps to one grid pitch
|
|
607
|
+
* per line, ignoring the multiplier. Defaults to false on JSON parse. */
|
|
608
|
+
explicit?: boolean;
|
|
592
609
|
}
|
|
593
610
|
|
|
594
611
|
/** Options for {@link PptxPresentation.load}. */
|
|
@@ -870,6 +887,7 @@ declare class PptxViewer {
|
|
|
870
887
|
private engine;
|
|
871
888
|
private readonly opts;
|
|
872
889
|
private currentSlide;
|
|
890
|
+
private handle;
|
|
873
891
|
constructor(container: HTMLElement, opts?: PptxViewerOptions);
|
|
874
892
|
/** Load a PPTX from URL or ArrayBuffer and render the first slide. */
|
|
875
893
|
load(source: string | ArrayBuffer): Promise<void>;
|
|
@@ -896,6 +914,14 @@ declare interface PptxViewerOptions extends RenderOptions {
|
|
|
896
914
|
* default — see {@link PptxPresentation.load} for privacy implications.
|
|
897
915
|
*/
|
|
898
916
|
useGoogleFonts?: boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Enable interactive audio/video playback. When true, slides are rendered
|
|
919
|
+
* via {@link PptxPresentation.presentSlide} so media elements become
|
|
920
|
+
* clickable and the viewer draws its own play/pause chrome. When false
|
|
921
|
+
* (default) the viewer renders a static slide with a non-interactive play
|
|
922
|
+
* badge over media posters.
|
|
923
|
+
*/
|
|
924
|
+
enableMediaPlayback?: boolean;
|
|
899
925
|
}
|
|
900
926
|
|
|
901
927
|
declare interface Presentation {
|
|
@@ -1012,6 +1038,12 @@ declare interface SectionProps {
|
|
|
1012
1038
|
footerDistance: number;
|
|
1013
1039
|
titlePage: boolean;
|
|
1014
1040
|
evenAndOddHeaders: boolean;
|
|
1041
|
+
/** ECMA-376 §17.6.5 w:docGrid/@w:type — "default" | "lines" | "linesAndChars" | "snapToChars". */
|
|
1042
|
+
docGridType?: string | null;
|
|
1043
|
+
/** ECMA-376 §17.6.5 w:docGrid/@w:linePitch in pt. When docGridType is "lines" or
|
|
1044
|
+
* "linesAndChars", auto line spacing multiplies against this pitch instead of
|
|
1045
|
+
* the font's natural line height. */
|
|
1046
|
+
docGridLinePitch?: number | null;
|
|
1015
1047
|
}
|
|
1016
1048
|
|
|
1017
1049
|
declare interface Shadow {
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -82,6 +82,10 @@ declare interface ChartElement {
|
|
|
82
82
|
catAxisMajorTickMark: 'cross' | 'out' | 'in' | 'none' | string;
|
|
83
83
|
/** Title font size in OOXML hundredths of a point (1600 = 16pt). null = default. */
|
|
84
84
|
titleFontSizeHpt: number | null;
|
|
85
|
+
/** Title font color as a hex string without '#'. null = default/theme. */
|
|
86
|
+
titleFontColor?: string | null;
|
|
87
|
+
/** Title font family (`<a:latin typeface>`). null = default/theme. */
|
|
88
|
+
titleFontFace?: string | null;
|
|
85
89
|
/** `<c:catAx><c:txPr>` font size (hpt). null = proportional default. */
|
|
86
90
|
catAxisFontSizeHpt: number | null;
|
|
87
91
|
/** `<c:valAx><c:txPr>` font size (hpt). null = proportional default. */
|
|
@@ -314,6 +318,7 @@ export declare class PptxViewer {
|
|
|
314
318
|
private engine;
|
|
315
319
|
private readonly opts;
|
|
316
320
|
private currentSlide;
|
|
321
|
+
private handle;
|
|
317
322
|
constructor(container: HTMLElement, opts?: PptxViewerOptions);
|
|
318
323
|
/** Load a PPTX from URL or ArrayBuffer and render the first slide. */
|
|
319
324
|
load(source: string | ArrayBuffer): Promise<void>;
|
|
@@ -340,6 +345,14 @@ export declare interface PptxViewerOptions extends RenderOptions {
|
|
|
340
345
|
* default — see {@link PptxPresentation.load} for privacy implications.
|
|
341
346
|
*/
|
|
342
347
|
useGoogleFonts?: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Enable interactive audio/video playback. When true, slides are rendered
|
|
350
|
+
* via {@link PptxPresentation.presentSlide} so media elements become
|
|
351
|
+
* clickable and the viewer draws its own play/pause chrome. When false
|
|
352
|
+
* (default) the viewer renders a static slide with a non-interactive play
|
|
353
|
+
* badge over media posters.
|
|
354
|
+
*/
|
|
355
|
+
enableMediaPlayback?: boolean;
|
|
343
356
|
}
|
|
344
357
|
|
|
345
358
|
export declare interface Presentation {
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -173,6 +173,14 @@ declare interface ChartData {
|
|
|
173
173
|
catAxisTitle?: string | null;
|
|
174
174
|
/** Value axis title (c:valAx/c:title). */
|
|
175
175
|
valAxisTitle?: string | null;
|
|
176
|
+
/** True when <c:legend> is present. Absence means the legend is hidden. */
|
|
177
|
+
showLegend?: boolean;
|
|
178
|
+
/** Chart title font size in OOXML hundredths of a point (e.g. 1400 = 14pt). */
|
|
179
|
+
titleFontSizeHpt?: number | null;
|
|
180
|
+
/** Chart title font color as a hex string without '#' (srgbClr only). */
|
|
181
|
+
titleFontColor?: string | null;
|
|
182
|
+
/** Chart title font family from `<a:latin typeface>` (ECMA-376 §20.1.4.2.24). */
|
|
183
|
+
titleFontFace?: string | null;
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
declare interface ConditionalFormat {
|