@silurus/ooxml 0.78.0 → 0.78.1
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 +1 -1
- package/dist/{canvas-viewer-mechanics-ChxLdOJg.js → canvas-viewer-mechanics-B4K_t5X_.js} +1 -1
- package/dist/{document-pull-client-xsdVDuVD.js → document-pull-client-5AakVD6e.js} +3137 -3016
- package/dist/{docx-CZC3j4s4.js → docx-bjhRwb2u.js} +4 -4
- package/dist/docx.mjs +3 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-HuZyTARz.js → line-distribute-BVFW1-Hs.js} +1 -1
- package/dist/{line-metrics-z9AdgPaZ.js → line-metrics-DS0NS2Iq.js} +1720 -1686
- package/dist/node.mjs +7 -7
- package/dist/{pptx-c3UgGKIs.js → pptx-D1rCrHGR.js} +5 -5
- package/dist/pptx.mjs +4 -4
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-yhFUeiYl.js → render-DhlT5jxZ.js} +1 -1
- package/dist/render-worker-host-CtJo7hc9.js +27 -0
- package/dist/render-worker-host-D8vv-Asx.js +27 -0
- package/dist/render-worker-host-DAjG9nmw.js +27 -0
- package/dist/{resource-measurement-5g27Av6n.js → resource-measurement-BA-4Q-II.js} +1 -1
- package/dist/{session-BOuXp10X.js → session-C_HGxbRD.js} +2 -2
- package/dist/{slide-pull-client-DKckZrLx.js → slide-pull-client-BiC4sVGi.js} +641 -579
- package/dist/types/docx.d.ts +6 -2
- package/dist/types/index.d.ts +13 -4
- package/dist/types/node.d.ts +10 -1
- package/dist/types/pptx.d.ts +6 -2
- package/dist/types/xlsx.d.ts +11 -2
- package/dist/{worksheet-pull-client-CMDRPZ5E.js → worksheet-pull-client-BnvgeqfG.js} +2 -2
- package/dist/{xlsx-BAScjxlC.js → xlsx-BG_WYSc0.js} +484 -449
- package/dist/xlsx.mjs +4 -4
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-BzxTAscX.js +0 -27
- package/dist/render-worker-host-CBjWHxMb.js +0 -27
- package/dist/render-worker-host-Ivhx3KII.js +0 -27
package/dist/types/docx.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface MathRenderer {
|
|
|
10
10
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-
|
|
13
|
+
//#region dist/.types-work/hyperlink-DpimohAS.d.ts
|
|
14
14
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
15
|
interface MathRun {
|
|
16
16
|
kind: 'run';
|
|
@@ -407,6 +407,10 @@ interface ChartTextBox {
|
|
|
407
407
|
paragraphs: ChartTextParagraph[];
|
|
408
408
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
409
409
|
wrap?: 'none' | 'square' | string | null;
|
|
410
|
+
lIns?: number;
|
|
411
|
+
tIns?: number;
|
|
412
|
+
rIns?: number;
|
|
413
|
+
bIns?: number;
|
|
410
414
|
}
|
|
411
415
|
interface ChartexBoxSeries {
|
|
412
416
|
name: string;
|
|
@@ -620,7 +624,7 @@ interface FindHighlightColors {
|
|
|
620
624
|
active?: string;
|
|
621
625
|
}
|
|
622
626
|
//#endregion
|
|
623
|
-
//#region dist/.types-work/docx-
|
|
627
|
+
//#region dist/.types-work/docx-CeTl3Vq2.d.ts
|
|
624
628
|
interface DocxDocumentModel {
|
|
625
629
|
section: SectionProps;
|
|
626
630
|
body: BodyElement[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface MathRenderer {
|
|
|
10
10
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-
|
|
13
|
+
//#region dist/.types-work/hyperlink-DpimohAS.d.ts
|
|
14
14
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
15
|
interface MathRun {
|
|
16
16
|
kind: 'run';
|
|
@@ -629,6 +629,10 @@ interface ChartTextBox {
|
|
|
629
629
|
paragraphs: ChartTextParagraph[];
|
|
630
630
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
631
631
|
wrap?: 'none' | 'square' | string | null;
|
|
632
|
+
lIns?: number;
|
|
633
|
+
tIns?: number;
|
|
634
|
+
rIns?: number;
|
|
635
|
+
bIns?: number;
|
|
632
636
|
}
|
|
633
637
|
interface ChartexBoxSeries {
|
|
634
638
|
name: string;
|
|
@@ -842,7 +846,7 @@ interface FindHighlightColors {
|
|
|
842
846
|
active?: string;
|
|
843
847
|
}
|
|
844
848
|
//#endregion
|
|
845
|
-
//#region dist/.types-work/docx-
|
|
849
|
+
//#region dist/.types-work/docx-CeTl3Vq2.d.ts
|
|
846
850
|
interface DocxDocumentModel {
|
|
847
851
|
section: SectionProps;
|
|
848
852
|
body: BodyElement[];
|
|
@@ -1902,7 +1906,7 @@ declare namespace docx_d_exports {
|
|
|
1902
1906
|
export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartRun, ChartSeries, ChartSeriesDataLabels, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, ColSpec, CollectPageRunsOptions, ColumnsSpec, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxDocument, DocxDocumentModel, DocxElementContext, DocxElementContextOptions, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxPagePoint, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxSelectionContext, DocxSelectionContextOptions, DocxSelectionRunLocator, DocxSelectionSourceLocator, DocxTextRun, DocxTextRunInfo, DocxTextSelectionContext, DocxViewer, DocxViewerOptions, Duotone$1 as Duotone, EmbeddedFontRef, FieldRun, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, FramePr, GradientFill, GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageRun, LegendManualLayout, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, NoteRef, NumberingInfo, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$1 as PathCmd, PatternFill, RenderPageOptions, RenderPageToBitmapOptions, RubyAnnotation, RunRevision, SecondaryValueAxis, SectionGeom, SectionProps, ShapeFill$1 as ShapeFill, ShapeRun, ShapeStrokeFill, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, SolidFill, TabStop, TableBorders, TblpPr, TextPath, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, isOoxmlDecodedImageLimitError, noteText, openExternalHyperlink, readDocxTextSelectionContext };
|
|
1903
1907
|
}
|
|
1904
1908
|
//#endregion
|
|
1905
|
-
//#region dist/.types-work/pptx-
|
|
1909
|
+
//#region dist/.types-work/pptx-BlL9ibzB.d.ts
|
|
1906
1910
|
interface BlipBullet {
|
|
1907
1911
|
type: 'blip';
|
|
1908
1912
|
imagePath: string;
|
|
@@ -2540,7 +2544,7 @@ declare namespace pptx_d_exports {
|
|
|
2540
2544
|
export { ArrowEnd, AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartDataLabelOverride, ChartDataPointOverride, ChartElement, ChartErrBars, ChartExElementStyle, ChartLabelBox, ChartManualLayout, ChartModel, ChartRect, ChartSeries, ChartSeriesDataLabels, ChartTextBox, ChartTextParagraph, ChartTextRun, ChartTrendline, ChartType, ChartexBoxSeries, ChartexBoxWhisker, ChartexSunburst, ChartexSunburstRow, ChartexTreemap, DimOptions, Duotone$1 as Duotone, EquationRun, Fill, FillRect, FindHighlightColors, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop$1 as GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, LegendManualLayout, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MatchRunSlice, MathAccent, MathArray, MathBar, MathBorderBox, MathBox, MathDelimiter, MathFraction, MathFunc, MathGroup, MathGroupChr, MathLimit, MathNary, MathNode, MathPhant, MathRadical, MathRenderer, MathRun, MathSPre, MathScript, MathStyle, MathSvg, MediaElement, NoFill, OoxmlDecodedImageLimitError, OoxmlDecodedImageLimitMetric, OoxmlError, OoxmlErrorCode, OoxmlErrorStage, OoxmlFormat, OoxmlResourceLimit, OoxmlResourceLimitError, OoxmlResourceLimitErrorDetails, OoxmlResourceLimits, OoxmlResourceMetric, OoxmlResourceMetrics, OoxmlResourceMetricsCheckpoint, OoxmlResourceName, OoxmlResourcePolicySnapshot, OoxmlResourceUsageSnapshot, OoxmlResourceViolation, Paragraph, PathCmd$2 as PathCmd, PatternFill, PictureElement, PptxComment, PptxElementContext, PptxElementContextOptions, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxSelectionContext, PptxSelectionContextOptions, PptxSelectionRunLocator, PptxSlidePoint, PptxTextRunInfo, PptxTextSelectionContext, PptxViewer, PptxViewerOptions, PresentSlideOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, SecondaryValueAxis, Shadow, ShapeElement, Slide, SlideElement, SlideElementOrigin, SlideElementSource, SlideRenderOptions, SoftEdge, SolidFill, Sp3d, SpaceLine, Stroke, TabStop$1 as TabStop, TableCell, TableElement, TableRow, TextBody, TextOutline, TextRect, TextRun, TextRunCallback, TextRunData, TextSelectionContextOptions, TileInfo, ViewerContextMenuEvent, ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
2541
2545
|
}
|
|
2542
2546
|
//#endregion
|
|
2543
|
-
//#region dist/.types-work/xlsx-
|
|
2547
|
+
//#region dist/.types-work/xlsx-Cog67KEJ.d.ts
|
|
2544
2548
|
type ShapeFill = Exclude<Fill, {
|
|
2545
2549
|
fillType: 'image';
|
|
2546
2550
|
} | {
|
|
@@ -2569,6 +2573,11 @@ interface Worksheet {
|
|
|
2569
2573
|
name: string;
|
|
2570
2574
|
rows: Row[];
|
|
2571
2575
|
colWidths: Record<number, number>;
|
|
2576
|
+
colWidthRanges?: Array<{
|
|
2577
|
+
min: number;
|
|
2578
|
+
max: number;
|
|
2579
|
+
width: number;
|
|
2580
|
+
}>;
|
|
2572
2581
|
rowHeights: Record<number, number>;
|
|
2573
2582
|
colOutlineLevels?: Record<number, number>;
|
|
2574
2583
|
colCollapsed?: Record<number, boolean>;
|
package/dist/types/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/hyperlink-
|
|
1
|
+
//#region dist/.types-work/hyperlink-DpimohAS.d.ts
|
|
2
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
3
|
interface MathRun {
|
|
4
4
|
kind: 'run';
|
|
@@ -606,6 +606,10 @@ interface ChartTextBox {
|
|
|
606
606
|
paragraphs: ChartTextParagraph[];
|
|
607
607
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
608
608
|
wrap?: 'none' | 'square' | string | null;
|
|
609
|
+
lIns?: number;
|
|
610
|
+
tIns?: number;
|
|
611
|
+
rIns?: number;
|
|
612
|
+
bIns?: number;
|
|
609
613
|
}
|
|
610
614
|
interface ChartexBoxSeries {
|
|
611
615
|
name: string;
|
|
@@ -1794,6 +1798,11 @@ interface Worksheet {
|
|
|
1794
1798
|
name: string;
|
|
1795
1799
|
rows: Row[];
|
|
1796
1800
|
colWidths: Record<number, number>;
|
|
1801
|
+
colWidthRanges?: Array<{
|
|
1802
|
+
min: number;
|
|
1803
|
+
max: number;
|
|
1804
|
+
width: number;
|
|
1805
|
+
}>;
|
|
1797
1806
|
rowHeights: Record<number, number>;
|
|
1798
1807
|
colOutlineLevels?: Record<number, number>;
|
|
1799
1808
|
colCollapsed?: Record<number, boolean>;
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface MathRenderer {
|
|
|
10
10
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-
|
|
13
|
+
//#region dist/.types-work/hyperlink-DpimohAS.d.ts
|
|
14
14
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
15
|
interface MathRun {
|
|
16
16
|
kind: 'run';
|
|
@@ -629,6 +629,10 @@ interface ChartTextBox {
|
|
|
629
629
|
paragraphs: ChartTextParagraph[];
|
|
630
630
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
631
631
|
wrap?: 'none' | 'square' | string | null;
|
|
632
|
+
lIns?: number;
|
|
633
|
+
tIns?: number;
|
|
634
|
+
rIns?: number;
|
|
635
|
+
bIns?: number;
|
|
632
636
|
}
|
|
633
637
|
interface ChartexBoxSeries {
|
|
634
638
|
name: string;
|
|
@@ -842,7 +846,7 @@ interface FindHighlightColors {
|
|
|
842
846
|
active?: string;
|
|
843
847
|
}
|
|
844
848
|
//#endregion
|
|
845
|
-
//#region dist/.types-work/pptx-
|
|
849
|
+
//#region dist/.types-work/pptx-BlL9ibzB.d.ts
|
|
846
850
|
interface BlipBullet {
|
|
847
851
|
type: 'blip';
|
|
848
852
|
imagePath: string;
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface MathRenderer {
|
|
|
10
10
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region dist/.types-work/hyperlink-
|
|
13
|
+
//#region dist/.types-work/hyperlink-DpimohAS.d.ts
|
|
14
14
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
15
|
interface MathRun {
|
|
16
16
|
kind: 'run';
|
|
@@ -432,6 +432,10 @@ interface ChartTextBox {
|
|
|
432
432
|
paragraphs: ChartTextParagraph[];
|
|
433
433
|
verticalAnchor?: 't' | 'ctr' | 'b' | 'just' | 'dist' | string | null;
|
|
434
434
|
wrap?: 'none' | 'square' | string | null;
|
|
435
|
+
lIns?: number;
|
|
436
|
+
tIns?: number;
|
|
437
|
+
rIns?: number;
|
|
438
|
+
bIns?: number;
|
|
435
439
|
}
|
|
436
440
|
interface ChartexBoxSeries {
|
|
437
441
|
name: string;
|
|
@@ -636,7 +640,7 @@ interface FindHighlightColors {
|
|
|
636
640
|
active?: string;
|
|
637
641
|
}
|
|
638
642
|
//#endregion
|
|
639
|
-
//#region dist/.types-work/xlsx-
|
|
643
|
+
//#region dist/.types-work/xlsx-Cog67KEJ.d.ts
|
|
640
644
|
type ShapeFill = Exclude<Fill, {
|
|
641
645
|
fillType: 'image';
|
|
642
646
|
} | {
|
|
@@ -665,6 +669,11 @@ interface Worksheet {
|
|
|
665
669
|
name: string;
|
|
666
670
|
rows: Row[];
|
|
667
671
|
colWidths: Record<number, number>;
|
|
672
|
+
colWidthRanges?: Array<{
|
|
673
|
+
min: number;
|
|
674
|
+
max: number;
|
|
675
|
+
width: number;
|
|
676
|
+
}>;
|
|
668
677
|
rowHeights: Record<number, number>;
|
|
669
678
|
colOutlineLevels?: Record<number, number>;
|
|
670
679
|
colCollapsed?: Record<number, boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, gn as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-
|
|
2
|
-
import { n as h, r as g, t as _ } from "./resource-measurement-
|
|
1
|
+
import { $ as e, F as t, I as n, N as r, P as i, Q as a, X as o, Y as s, Z as c, et as l, gn as u, nt as d, ot as f, rt as p, tt as m } from "./line-metrics-DS0NS2Iq.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-BA-4Q-II.js";
|
|
3
3
|
import { t as v } from "./transfer-DCu4c2BL.js";
|
|
4
4
|
//#region packages/xlsx/src/worksheet-resource-limits.ts
|
|
5
5
|
var y = d, b = e, x = l, S = m, C = a, w = s, T = o, E = c, D = Object.freeze({
|