@silurus/ooxml 0.77.0 → 0.77.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-DTkBvITv.js → canvas-viewer-mechanics-D5zXbOrS.js} +1 -1
- package/dist/{document-pull-client-iWr8-S7P.js → document-pull-client-CC8pPuzi.js} +1799 -1769
- package/dist/{docx-B1gYS6eU.js → docx-Dg9N9OX4.js} +14 -14
- package/dist/docx.mjs +3 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-C1r2zvji.js → line-distribute-BtfPlM2A.js} +133 -72
- package/dist/{line-metrics-BdCACYlq.js → line-metrics-B66x33iy.js} +1446 -1340
- package/dist/node.mjs +7 -7
- package/dist/{pptx-CQjtK_o7.js → pptx-BFP7Isgf.js} +38 -38
- package/dist/pptx.mjs +4 -4
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-Ca80nlG5.js → render-D-cOpMLV.js} +1 -1
- package/dist/render-worker-host-BzpMoFRr.js +27 -0
- package/dist/render-worker-host-CdZ5hW2X.js +27 -0
- package/dist/render-worker-host-quqYq02i.js +27 -0
- package/dist/{resource-measurement-E_S_iau4.js → resource-measurement-CVfVTQrt.js} +1 -1
- package/dist/{session-KvKxQAeL.js → session-DxAVpIP-.js} +2 -2
- package/dist/{slide-pull-client-BXb67StB.js → slide-pull-client-Lag44QA8.js} +1171 -878
- package/dist/types/docx.d.ts +46 -3
- package/dist/types/index.d.ts +104 -8
- package/dist/types/node.d.ts +99 -3
- package/dist/types/pptx.d.ts +32 -2
- package/dist/types/xlsx.d.ts +88 -3
- package/dist/{worksheet-pull-client-YzjJMOns.js → worksheet-pull-client-D74b_23i.js} +2 -2
- package/dist/{xlsx-RLCmd1Bm.js → xlsx-Bik59Raj.js} +1106 -1075
- package/dist/xlsx.mjs +4 -4
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-BozYMmxO.js +0 -27
- package/dist/render-worker-host-C96AiK8e.js +0 -27
- package/dist/render-worker-host-EHG5j8FK.js +0 -27
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-JmvHU-7y.d.ts
|
|
14
14
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
15
|
interface MathRun {
|
|
16
16
|
kind: 'run';
|
|
@@ -115,6 +115,68 @@ interface MathBorderBox {
|
|
|
115
115
|
base: MathNode[];
|
|
116
116
|
}
|
|
117
117
|
type MathNode = MathRun | MathFraction | MathScript | MathNary | MathDelimiter | MathRadical | MathLimit | MathArray | MathGroupChr | MathBar | MathAccent | MathFunc | MathGroup | MathPhant | MathSPre | MathBox | MathBorderBox;
|
|
118
|
+
interface Duotone$1 {
|
|
119
|
+
clr1: string;
|
|
120
|
+
clr2: string;
|
|
121
|
+
}
|
|
122
|
+
type Fill = SolidFill | NoFill | GradientFill | PatternFill | ImageFill;
|
|
123
|
+
interface SolidFill {
|
|
124
|
+
fillType: 'solid';
|
|
125
|
+
color: string;
|
|
126
|
+
}
|
|
127
|
+
interface NoFill {
|
|
128
|
+
fillType: 'none';
|
|
129
|
+
}
|
|
130
|
+
interface GradientStop {
|
|
131
|
+
position: number;
|
|
132
|
+
color: string;
|
|
133
|
+
}
|
|
134
|
+
interface GradientFill {
|
|
135
|
+
fillType: 'gradient';
|
|
136
|
+
stops: GradientStop[];
|
|
137
|
+
angle: number;
|
|
138
|
+
gradType: string;
|
|
139
|
+
scaled?: boolean;
|
|
140
|
+
path?: 'shape' | 'circle' | 'rect' | string;
|
|
141
|
+
fillToRect?: FillRect;
|
|
142
|
+
tileRect?: FillRect;
|
|
143
|
+
flip?: 'none' | 'x' | 'y' | 'xy' | string;
|
|
144
|
+
rotWithShape?: boolean;
|
|
145
|
+
}
|
|
146
|
+
interface PatternFill {
|
|
147
|
+
fillType: 'pattern';
|
|
148
|
+
fg: string;
|
|
149
|
+
bg: string;
|
|
150
|
+
preset: string;
|
|
151
|
+
}
|
|
152
|
+
interface FillRect {
|
|
153
|
+
l?: number;
|
|
154
|
+
t?: number;
|
|
155
|
+
r?: number;
|
|
156
|
+
b?: number;
|
|
157
|
+
}
|
|
158
|
+
interface TileInfo {
|
|
159
|
+
tx: number;
|
|
160
|
+
ty: number;
|
|
161
|
+
sx: number;
|
|
162
|
+
sy: number;
|
|
163
|
+
flip: string;
|
|
164
|
+
algn?: string;
|
|
165
|
+
}
|
|
166
|
+
interface ImageFill {
|
|
167
|
+
fillType: 'image';
|
|
168
|
+
imagePath: string;
|
|
169
|
+
mimeType: string;
|
|
170
|
+
fillRect?: FillRect;
|
|
171
|
+
tile?: TileInfo;
|
|
172
|
+
alpha?: number;
|
|
173
|
+
duotone?: Duotone$1;
|
|
174
|
+
}
|
|
175
|
+
interface ArrowEnd {
|
|
176
|
+
type: string;
|
|
177
|
+
w: string;
|
|
178
|
+
len: string;
|
|
179
|
+
}
|
|
118
180
|
type SpaceLine = {
|
|
119
181
|
type: 'pct';
|
|
120
182
|
val: number;
|
|
@@ -510,7 +572,12 @@ interface FindHighlightColors {
|
|
|
510
572
|
active?: string;
|
|
511
573
|
}
|
|
512
574
|
//#endregion
|
|
513
|
-
//#region dist/.types-work/xlsx-
|
|
575
|
+
//#region dist/.types-work/xlsx-3u8ip-lC.d.ts
|
|
576
|
+
type ShapeFill = Exclude<Fill, {
|
|
577
|
+
fillType: 'image';
|
|
578
|
+
} | {
|
|
579
|
+
fillType: 'none';
|
|
580
|
+
}>;
|
|
514
581
|
interface Workbook {
|
|
515
582
|
sheets: SheetMeta[];
|
|
516
583
|
date1904?: boolean;
|
|
@@ -805,8 +872,26 @@ interface ShapeInfo {
|
|
|
805
872
|
flipH?: boolean;
|
|
806
873
|
flipV?: boolean;
|
|
807
874
|
fillColor?: string;
|
|
875
|
+
fill?: ShapeFill;
|
|
808
876
|
strokeColor?: string;
|
|
809
877
|
strokeWidth: number;
|
|
878
|
+
strokeFill?: Exclude<Fill, {
|
|
879
|
+
fillType: 'image';
|
|
880
|
+
} | {
|
|
881
|
+
fillType: 'none';
|
|
882
|
+
}>;
|
|
883
|
+
strokeDashStyle?: string;
|
|
884
|
+
strokeCustomDash?: Array<{
|
|
885
|
+
dash: number;
|
|
886
|
+
space: number;
|
|
887
|
+
}>;
|
|
888
|
+
strokeLineCap?: 'butt' | 'round' | 'square';
|
|
889
|
+
strokeLineJoin?: 'round' | 'bevel' | 'miter';
|
|
890
|
+
strokeMiterLimit?: number;
|
|
891
|
+
strokeAlignment?: 'ctr' | 'in';
|
|
892
|
+
strokeCmpd?: string;
|
|
893
|
+
strokeHeadEnd?: ArrowEnd;
|
|
894
|
+
strokeTailEnd?: ArrowEnd;
|
|
810
895
|
geom: ShapeGeom;
|
|
811
896
|
text?: ShapeText;
|
|
812
897
|
}
|
|
@@ -1699,4 +1784,4 @@ declare class XlsxSheetViewer implements ZoomableViewer {
|
|
|
1699
1784
|
}
|
|
1700
1785
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
1701
1786
|
//#endregion
|
|
1702
|
-
export { type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartErrBars, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartRect, type ChartSeries, type ChartSeriesDataLabels, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexSunburst, type ChartexSunburstRow, type ConditionalFormat, type DataValidation, type DefinedName, type Duotone, type Dxf, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type GradientFillSpec, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, type MathAccent, type MathArray, type MathBar, type MathBorderBox, type MathBox, type MathDelimiter, type MathFraction, type MathFunc, type MathGroup, type MathGroupChr, type MathLimit, type MathNary, type MathNode, type MathPhant, type MathRadical, type MathRenderer, type MathRun, type MathSPre, type MathScript, type MathStyle, type MathSvg, type MergeCell, type NumFmt, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlErrorStage, type OoxmlFormat, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetric, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourceName, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlResourceViolation, type OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportToBitmapOptions, type ResolvedList, type Row, type Run, type RunFont, type SecondaryValueAxis, type ShapeAnchor, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type SpaceLine, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewerContextMenuEvent, type ViewportRange, type Workbook, type Worksheet, type WorksheetCellRange, type XlsxComment, type XlsxCopyResult, type XlsxElementAnchorMarker, type XlsxElementContext, type XlsxMatchLocation, type XlsxRangeSelectionContext, type XlsxRenderViewportOptions, type XlsxScrollToCellOptions, type XlsxSelectionArea, type XlsxSelectionContext, type XlsxSelectionContextCell, type XlsxSelectionContextOptions, type XlsxSelectionInput, type XlsxSelectionState, XlsxSheetViewer, type XlsxSheetViewerOptions, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, type XlsxViewportOffset, XlsxWorkbook, type ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
1787
|
+
export { type ArrowEnd, type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartErrBars, type ChartLabelBox, type ChartManualLayout, type ChartModel, type ChartRect, type ChartSeries, type ChartSeriesDataLabels, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexSunburst, type ChartexSunburstRow, type ConditionalFormat, type DataValidation, type DefinedName, type Duotone, type Dxf, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type GradientFill, type GradientFillSpec, type GradientStop, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, MAX_SELECTION_AREAS, MAX_SELECTION_CONTEXT_CELLS, MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, type MathAccent, type MathArray, type MathBar, type MathBorderBox, type MathBox, type MathDelimiter, type MathFraction, type MathFunc, type MathGroup, type MathGroupChr, type MathLimit, type MathNary, type MathNode, type MathPhant, type MathRadical, type MathRenderer, type MathRun, type MathSPre, type MathScript, type MathStyle, type MathSvg, type MergeCell, type NumFmt, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlErrorStage, type OoxmlFormat, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetric, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourceName, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlResourceViolation, type OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PatternFill, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportToBitmapOptions, type ResolvedList, type Row, type Run, type RunFont, type SecondaryValueAxis, type ShapeAnchor, type ShapeFill, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type SolidFill, type SpaceLine, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewerContextMenuEvent, type ViewportRange, type Workbook, type Worksheet, type WorksheetCellRange, type XlsxComment, type XlsxCopyResult, type XlsxElementAnchorMarker, type XlsxElementContext, type XlsxMatchLocation, type XlsxRangeSelectionContext, type XlsxRenderViewportOptions, type XlsxScrollToCellOptions, type XlsxSelectionArea, type XlsxSelectionContext, type XlsxSelectionContextCell, type XlsxSelectionContextOptions, type XlsxSelectionInput, type XlsxSelectionState, XlsxSheetViewer, type XlsxSheetViewerOptions, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, type XlsxViewportOffset, XlsxWorkbook, type ZoomableViewer, autoResize, isOoxmlDecodedImageLimitError, openExternalHyperlink, resolveSharedStrings };
|
|
@@ -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,
|
|
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-B66x33iy.js";
|
|
2
|
+
import { n as h, r as g, t as _ } from "./resource-measurement-CVfVTQrt.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({
|