@silurus/ooxml 0.76.2 → 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 +144 -32
- package/dist/{canvas-viewer-mechanics-CwVSOYke.js → canvas-viewer-mechanics-D5zXbOrS.js} +319 -153
- package/dist/{document-pull-client-B-3_7_YS.js → document-pull-client-CC8pPuzi.js} +2361 -2253
- package/dist/{docx-C6B98B4-.js → docx-Dg9N9OX4.js} +623 -202
- package/dist/docx.mjs +4 -4
- 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-BFP7Isgf.js +2123 -0
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-CLcpSi0m.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-B4Y54cbT.js → session-DxAVpIP-.js} +2 -2
- package/dist/{slide-pull-client-WCuYCjio.js → slide-pull-client-Lag44QA8.js} +1173 -876
- package/dist/types/docx.d.ts +172 -28
- package/dist/types/index.d.ts +498 -88
- package/dist/types/node.d.ts +133 -22
- package/dist/types/pptx.d.ts +166 -10
- package/dist/types/xlsx.d.ts +248 -54
- package/dist/{worksheet-pull-client-YzjJMOns.js → worksheet-pull-client-D74b_23i.js} +2 -2
- package/dist/{xlsx-EykJ9tPV.js → xlsx-Bik59Raj.js} +2090 -1224
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/pptx-CKAk5e-J.js +0 -1735
- package/dist/render-worker-host-Bkf1jUcW.js +0 -27
- package/dist/render-worker-host-CKOmXdyr.js +0 -27
- package/dist/render-worker-host-Dpv-nKHY.js +0 -27
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-JmvHU-7y.d.ts
|
|
14
14
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
15
15
|
interface MathRun {
|
|
16
16
|
kind: 'run';
|
|
@@ -135,6 +135,12 @@ type PathCmd = {
|
|
|
135
135
|
y2: number;
|
|
136
136
|
x: number;
|
|
137
137
|
y: number;
|
|
138
|
+
} | {
|
|
139
|
+
cmd: 'quadBezTo';
|
|
140
|
+
x1: number;
|
|
141
|
+
y1: number;
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
138
144
|
} | {
|
|
139
145
|
cmd: 'arcTo';
|
|
140
146
|
wr: number;
|
|
@@ -161,6 +167,12 @@ interface GradientFill {
|
|
|
161
167
|
stops: GradientStop[];
|
|
162
168
|
angle: number;
|
|
163
169
|
gradType: string;
|
|
170
|
+
scaled?: boolean;
|
|
171
|
+
path?: 'shape' | 'circle' | 'rect' | string;
|
|
172
|
+
fillToRect?: FillRect;
|
|
173
|
+
tileRect?: FillRect;
|
|
174
|
+
flip?: 'none' | 'x' | 'y' | 'xy' | string;
|
|
175
|
+
rotWithShape?: boolean;
|
|
164
176
|
}
|
|
165
177
|
interface PatternFill {
|
|
166
178
|
fillType: 'pattern';
|
|
@@ -197,6 +209,12 @@ interface Shadow {
|
|
|
197
209
|
blur: number;
|
|
198
210
|
dist: number;
|
|
199
211
|
dir: number;
|
|
212
|
+
sx?: number;
|
|
213
|
+
sy?: number;
|
|
214
|
+
kx?: number;
|
|
215
|
+
ky?: number;
|
|
216
|
+
algn?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
|
|
217
|
+
rotWithShape?: boolean;
|
|
200
218
|
}
|
|
201
219
|
interface Glow {
|
|
202
220
|
color: string;
|
|
@@ -231,7 +249,14 @@ interface Stroke {
|
|
|
231
249
|
fillType: 'none';
|
|
232
250
|
}>;
|
|
233
251
|
dashStyle?: string;
|
|
234
|
-
|
|
252
|
+
customDash?: ReadonlyArray<{
|
|
253
|
+
dash: number;
|
|
254
|
+
space: number;
|
|
255
|
+
}>;
|
|
256
|
+
lineCap?: 'butt' | 'round' | 'square';
|
|
257
|
+
lineJoin?: 'round' | 'bevel' | 'miter';
|
|
258
|
+
miterLimit?: number;
|
|
259
|
+
alignment?: 'ctr' | 'in';
|
|
235
260
|
headEnd?: ArrowEnd;
|
|
236
261
|
tailEnd?: ArrowEnd;
|
|
237
262
|
cmpd?: string;
|
|
@@ -277,6 +302,9 @@ type Bullet$1 = {
|
|
|
277
302
|
numType: string;
|
|
278
303
|
startAt: number | null;
|
|
279
304
|
color: string | null;
|
|
305
|
+
sizePct?: number | null;
|
|
306
|
+
sizePts?: number;
|
|
307
|
+
fontFamily?: string | null;
|
|
280
308
|
};
|
|
281
309
|
interface TabStop {
|
|
282
310
|
pos: number;
|
|
@@ -331,6 +359,7 @@ interface TextRunData {
|
|
|
331
359
|
hyperlink?: string;
|
|
332
360
|
hyperlinkAction?: string;
|
|
333
361
|
shadow?: Shadow;
|
|
362
|
+
reflection?: Reflection;
|
|
334
363
|
outline?: TextOutline;
|
|
335
364
|
highlight?: string;
|
|
336
365
|
}
|
|
@@ -602,9 +631,14 @@ interface LegendManualLayout {
|
|
|
602
631
|
w: number;
|
|
603
632
|
h: number;
|
|
604
633
|
}
|
|
634
|
+
interface ChartRect {
|
|
635
|
+
x: number;
|
|
636
|
+
y: number;
|
|
637
|
+
w: number;
|
|
638
|
+
h: number;
|
|
639
|
+
}
|
|
605
640
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
606
641
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
607
|
-
type OoxmlErrorSource = 'container' | 'zip-part' | 'parser' | 'serializer' | 'layout' | 'renderer' | 'worker';
|
|
608
642
|
declare class OoxmlError extends Error {
|
|
609
643
|
readonly code: OoxmlErrorCode;
|
|
610
644
|
constructor(code: OoxmlErrorCode, message: string);
|
|
@@ -705,7 +739,15 @@ type HyperlinkTarget = {
|
|
|
705
739
|
};
|
|
706
740
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
707
741
|
//#endregion
|
|
708
|
-
//#region dist/.types-work/find-highlight-
|
|
742
|
+
//#region dist/.types-work/find-highlight-DcNlrW8O.d.ts
|
|
743
|
+
interface TextSelectionContextOptions {
|
|
744
|
+
readonly maxTextCharacters?: number;
|
|
745
|
+
readonly maxRunLocators?: number;
|
|
746
|
+
}
|
|
747
|
+
interface ViewerContextMenuEvent<TContext> {
|
|
748
|
+
readonly originalEvent: MouseEvent;
|
|
749
|
+
getContext(): Promise<TContext | null>;
|
|
750
|
+
}
|
|
709
751
|
interface AutoResizeOptions {
|
|
710
752
|
pauseWhenHidden?: boolean;
|
|
711
753
|
}
|
|
@@ -736,7 +778,7 @@ interface FindHighlightColors {
|
|
|
736
778
|
active?: string;
|
|
737
779
|
}
|
|
738
780
|
//#endregion
|
|
739
|
-
//#region dist/.types-work/pptx-
|
|
781
|
+
//#region dist/.types-work/pptx-DjMlRXaq.d.ts
|
|
740
782
|
interface BlipBullet {
|
|
741
783
|
type: 'blip';
|
|
742
784
|
imagePath: string;
|
|
@@ -773,11 +815,16 @@ interface Slide {
|
|
|
773
815
|
partName?: string;
|
|
774
816
|
background: Fill | null;
|
|
775
817
|
elements: SlideElement[];
|
|
818
|
+
elementSources?: SlideElementSource[];
|
|
776
819
|
notes?: string;
|
|
777
820
|
comments?: PptxComment[];
|
|
778
821
|
hidden?: boolean;
|
|
779
822
|
parseError?: string;
|
|
780
823
|
}
|
|
824
|
+
type SlideElementOrigin = 'master' | 'layout' | 'slide';
|
|
825
|
+
interface SlideElementSource {
|
|
826
|
+
origin: SlideElementOrigin;
|
|
827
|
+
}
|
|
781
828
|
interface DimOptions {
|
|
782
829
|
color: string;
|
|
783
830
|
opacity: number;
|
|
@@ -875,6 +922,7 @@ interface Sp3d {
|
|
|
875
922
|
extrusionH?: number;
|
|
876
923
|
contourW?: number;
|
|
877
924
|
contourClr?: string;
|
|
925
|
+
extrusionClr?: string;
|
|
878
926
|
prstMaterial: string;
|
|
879
927
|
bevelT?: Bevel3d;
|
|
880
928
|
bevelB?: Bevel3d;
|
|
@@ -957,6 +1005,8 @@ interface PictureElement {
|
|
|
957
1005
|
sp3d?: Sp3d;
|
|
958
1006
|
}
|
|
959
1007
|
interface PptxTextRunInfo {
|
|
1008
|
+
elementIndex?: number;
|
|
1009
|
+
origin?: SlideElementOrigin;
|
|
960
1010
|
shapeId?: string;
|
|
961
1011
|
text: string;
|
|
962
1012
|
inShapeX: number;
|
|
@@ -987,6 +1037,68 @@ interface PresentationHandle {
|
|
|
987
1037
|
pause(mediaPath?: string): void;
|
|
988
1038
|
destroy(): void;
|
|
989
1039
|
}
|
|
1040
|
+
interface PptxSelectionRunLocator {
|
|
1041
|
+
readonly slideIndex: number;
|
|
1042
|
+
readonly runIndex: number;
|
|
1043
|
+
readonly shapeId?: string;
|
|
1044
|
+
readonly elementIndex?: number;
|
|
1045
|
+
readonly origin?: SlideElementOrigin;
|
|
1046
|
+
}
|
|
1047
|
+
interface PptxTextSelectionContext {
|
|
1048
|
+
readonly format: 'pptx';
|
|
1049
|
+
readonly kind: 'text';
|
|
1050
|
+
readonly text: string;
|
|
1051
|
+
readonly slideIndexes: readonly number[];
|
|
1052
|
+
readonly shapeIds: readonly string[];
|
|
1053
|
+
readonly runs: readonly PptxSelectionRunLocator[];
|
|
1054
|
+
readonly truncated: boolean;
|
|
1055
|
+
readonly truncationReasons: readonly ('text' | 'runs')[];
|
|
1056
|
+
readonly textCharacters: number;
|
|
1057
|
+
readonly maxTextCharacters: number;
|
|
1058
|
+
readonly maxRunLocators: number;
|
|
1059
|
+
}
|
|
1060
|
+
declare function readPptxTextSelectionContext(root: HTMLElement, selection: Selection | null, options?: TextSelectionContextOptions): PptxTextSelectionContext | null;
|
|
1061
|
+
type PptxSelectionContextOptions = TextSelectionContextOptions;
|
|
1062
|
+
interface PptxSlidePoint {
|
|
1063
|
+
readonly x: number;
|
|
1064
|
+
readonly y: number;
|
|
1065
|
+
}
|
|
1066
|
+
interface PptxElementContextOptions {
|
|
1067
|
+
readonly tolerance?: number;
|
|
1068
|
+
readonly maxTextCharacters?: number;
|
|
1069
|
+
}
|
|
1070
|
+
interface PptxElementContext {
|
|
1071
|
+
readonly format: 'pptx';
|
|
1072
|
+
readonly kind: 'element';
|
|
1073
|
+
readonly slideIndex: number;
|
|
1074
|
+
readonly elementIndex: number;
|
|
1075
|
+
readonly origin: SlideElementOrigin | 'unknown';
|
|
1076
|
+
readonly elementType: SlideElement['type'];
|
|
1077
|
+
readonly point: PptxSlidePoint;
|
|
1078
|
+
readonly bounds: Readonly<{
|
|
1079
|
+
x: number;
|
|
1080
|
+
y: number;
|
|
1081
|
+
width: number;
|
|
1082
|
+
height: number;
|
|
1083
|
+
rotation: number;
|
|
1084
|
+
flipH: boolean;
|
|
1085
|
+
flipV: boolean;
|
|
1086
|
+
}>;
|
|
1087
|
+
readonly shapeId?: string;
|
|
1088
|
+
readonly name?: string;
|
|
1089
|
+
readonly geometry?: string;
|
|
1090
|
+
readonly text?: string;
|
|
1091
|
+
readonly mimeType?: string;
|
|
1092
|
+
readonly mediaKind?: 'audio' | 'video';
|
|
1093
|
+
readonly rowCount?: number;
|
|
1094
|
+
readonly columnCount?: number;
|
|
1095
|
+
readonly seriesCount?: number;
|
|
1096
|
+
readonly truncated: boolean;
|
|
1097
|
+
readonly truncationReasons: readonly ('text')[];
|
|
1098
|
+
readonly textCharacters: number;
|
|
1099
|
+
readonly maxTextCharacters: number;
|
|
1100
|
+
}
|
|
1101
|
+
type PptxSelectionContext = PptxTextSelectionContext | PptxElementContext;
|
|
990
1102
|
type LoadOptions = LoadOptions$1 & {
|
|
991
1103
|
mode?: 'main' | 'worker';
|
|
992
1104
|
};
|
|
@@ -1002,6 +1114,8 @@ interface RenderSlideOptions {
|
|
|
1002
1114
|
onTextRun?: TextRunCallback;
|
|
1003
1115
|
skipMediaControls?: boolean;
|
|
1004
1116
|
dim?: DimOptions;
|
|
1117
|
+
}
|
|
1118
|
+
interface PresentSlideOptions extends Omit<RenderSlideOptions, 'skipMediaControls'> {
|
|
1005
1119
|
onError?: (error: Error) => void;
|
|
1006
1120
|
}
|
|
1007
1121
|
declare class PptxPresentation {
|
|
@@ -1037,16 +1151,17 @@ declare class PptxPresentation {
|
|
|
1037
1151
|
renderSlide(canvas: HTMLCanvasElement | OffscreenCanvas, slideIndex: number, opts?: RenderSlideOptions): Promise<void>;
|
|
1038
1152
|
renderSlideToBitmap(slideIndex: number, opts?: RenderSlideToBitmapOptions): Promise<ImageBitmap>;
|
|
1039
1153
|
collectSlideRuns(slideIndex: number, width?: number): Promise<PptxTextRunInfo[]>;
|
|
1154
|
+
getElementContextAt(slideIndex: number, point: PptxSlidePoint, options?: PptxElementContextOptions): Promise<PptxElementContext | null>;
|
|
1040
1155
|
getMedia(mediaPath: string): Promise<Blob>;
|
|
1041
1156
|
private _findMimeTypeForPath;
|
|
1042
1157
|
getImage(imagePath: string, mimeType: string): Promise<Blob>;
|
|
1043
1158
|
getResourceMetrics(): Promise<OoxmlResourceMetrics>;
|
|
1044
1159
|
toMarkdown(): Promise<string>;
|
|
1045
|
-
presentSlide(canvas: HTMLCanvasElement, slideIndex: number, opts?:
|
|
1160
|
+
presentSlide(canvas: HTMLCanvasElement, slideIndex: number, opts?: PresentSlideOptions): Promise<PresentationHandle>;
|
|
1046
1161
|
destroy(): void;
|
|
1047
1162
|
}
|
|
1048
1163
|
type HiddenSlideMode = 'show' | 'skip' | 'dim';
|
|
1049
|
-
interface PptxViewerOptions extends RenderOptions, LoadOptions {
|
|
1164
|
+
interface PptxViewerOptions extends Pick<RenderOptions, 'width' | 'dpr'>, LoadOptions {
|
|
1050
1165
|
onSlideChange?: (index: number, total: number) => void;
|
|
1051
1166
|
onError?: (err: Error) => void;
|
|
1052
1167
|
zoomMin?: number;
|
|
@@ -1054,6 +1169,10 @@ interface PptxViewerOptions extends RenderOptions, LoadOptions {
|
|
|
1054
1169
|
onScaleChange?: (scale: number) => void;
|
|
1055
1170
|
enableMediaPlayback?: boolean;
|
|
1056
1171
|
enableTextSelection?: boolean;
|
|
1172
|
+
enableElementSelection?: boolean;
|
|
1173
|
+
elementHitTolerance?: number;
|
|
1174
|
+
onSelectionContextChange?: (context: PptxSelectionContext | null) => void;
|
|
1175
|
+
onContextMenu?: (event: ViewerContextMenuEvent<PptxSelectionContext>) => void;
|
|
1057
1176
|
findHighlightColors?: FindHighlightColors;
|
|
1058
1177
|
hiddenSlideMode?: HiddenSlideMode;
|
|
1059
1178
|
hiddenSlideDim?: Partial<DimOptions>;
|
|
@@ -1067,6 +1186,7 @@ declare class PptxViewer implements ZoomableViewer {
|
|
|
1067
1186
|
private _scale;
|
|
1068
1187
|
private textLayer;
|
|
1069
1188
|
private highlightLayer;
|
|
1189
|
+
private elementLayer;
|
|
1070
1190
|
private _find;
|
|
1071
1191
|
private _measureCtx;
|
|
1072
1192
|
private readonly presentationOwner;
|
|
@@ -1081,6 +1201,13 @@ declare class PptxViewer implements ZoomableViewer {
|
|
|
1081
1201
|
private readonly renderDispatcher;
|
|
1082
1202
|
private readonly errorRouter;
|
|
1083
1203
|
private destroyed;
|
|
1204
|
+
private selectionChangeListener;
|
|
1205
|
+
private selectionContextKey;
|
|
1206
|
+
private elementClickListener;
|
|
1207
|
+
private contextMenuListener;
|
|
1208
|
+
private elementContext;
|
|
1209
|
+
private elementHitGeneration;
|
|
1210
|
+
private readonly elementHitTolerance;
|
|
1084
1211
|
static fromPresentation(canvas: HTMLCanvasElement, presentation: PptxPresentation, opts?: Omit<PptxViewerOptions, keyof LoadOptions>): Omit<PptxViewer, 'load'>;
|
|
1085
1212
|
constructor(canvas: HTMLCanvasElement, opts?: PptxViewerOptions);
|
|
1086
1213
|
load(source: string | ArrayBuffer): Promise<void>;
|
|
@@ -1124,9 +1251,17 @@ declare class PptxViewer implements ZoomableViewer {
|
|
|
1124
1251
|
private _resolveInternalSlideIndex;
|
|
1125
1252
|
private _reportRenderError;
|
|
1126
1253
|
getResourceMetrics(): Promise<OoxmlResourceMetrics>;
|
|
1254
|
+
getSelectionContext(options?: PptxSelectionContextOptions): PptxSelectionContext | null;
|
|
1255
|
+
private _emitSelectionContextChange;
|
|
1256
|
+
private _setElementContext;
|
|
1257
|
+
private _invalidateElementSelection;
|
|
1258
|
+
private _redrawElementOutline;
|
|
1259
|
+
private _onElementClick;
|
|
1260
|
+
private _onContextMenu;
|
|
1261
|
+
private _resolveContextAt;
|
|
1127
1262
|
destroy(): void;
|
|
1128
1263
|
}
|
|
1129
|
-
interface PptxScrollViewerOptions extends
|
|
1264
|
+
interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr'>, LoadOptions {
|
|
1130
1265
|
width?: number;
|
|
1131
1266
|
gap?: number;
|
|
1132
1267
|
paddingTop?: number;
|
|
@@ -1135,6 +1270,10 @@ interface PptxScrollViewerOptions extends Omit<RenderSlideOptions, 'onTextRun'>,
|
|
|
1135
1270
|
paddingRight?: number;
|
|
1136
1271
|
overscan?: number;
|
|
1137
1272
|
enableTextSelection?: boolean;
|
|
1273
|
+
enableElementSelection?: boolean;
|
|
1274
|
+
elementHitTolerance?: number;
|
|
1275
|
+
onSelectionContextChange?: (context: PptxSelectionContext | null) => void;
|
|
1276
|
+
onContextMenu?: (event: ViewerContextMenuEvent<PptxSelectionContext>) => void;
|
|
1138
1277
|
findHighlightColors?: FindHighlightColors;
|
|
1139
1278
|
enableMediaPlayback?: boolean;
|
|
1140
1279
|
mediaOverscan?: number;
|
|
@@ -1169,6 +1308,13 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1169
1308
|
private _lastRange;
|
|
1170
1309
|
private _lastTopIndex;
|
|
1171
1310
|
private _scrollListener;
|
|
1311
|
+
private _selectionChangeListener;
|
|
1312
|
+
private _selectionContextKey;
|
|
1313
|
+
private _elementClickListener;
|
|
1314
|
+
private _contextMenuListener;
|
|
1315
|
+
private _elementContext;
|
|
1316
|
+
private _elementHitGeneration;
|
|
1317
|
+
private readonly _elementHitTolerance;
|
|
1172
1318
|
private _destroyed;
|
|
1173
1319
|
private readonly _slideInFlight;
|
|
1174
1320
|
private _renderEpoch;
|
|
@@ -1191,6 +1337,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1191
1337
|
private _fitWidthPx;
|
|
1192
1338
|
private _baseScale;
|
|
1193
1339
|
relayout(): void;
|
|
1340
|
+
private _relayout;
|
|
1194
1341
|
private _recomputeHeights;
|
|
1195
1342
|
private _gap;
|
|
1196
1343
|
private _overscan;
|
|
@@ -1247,9 +1394,18 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1247
1394
|
private _onResize;
|
|
1248
1395
|
get topVisibleSlide(): number;
|
|
1249
1396
|
getResourceMetrics(): Promise<OoxmlResourceMetrics>;
|
|
1397
|
+
getSelectionContext(options?: PptxSelectionContextOptions): PptxSelectionContext | null;
|
|
1398
|
+
private _emitSelectionContextChange;
|
|
1399
|
+
private _setElementContext;
|
|
1400
|
+
private _invalidateElementSelection;
|
|
1401
|
+
private _redrawElementOutlines;
|
|
1402
|
+
private _redrawElementOutlineForSlot;
|
|
1403
|
+
private _onElementClick;
|
|
1404
|
+
private _onContextMenu;
|
|
1405
|
+
private _resolveContextAt;
|
|
1250
1406
|
destroy(): void;
|
|
1251
1407
|
}
|
|
1252
|
-
declare function buildPptxTextLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], cssWidth: number, cssHeight: number, onHyperlinkClick?: (target: HyperlinkTarget) => void): void;
|
|
1408
|
+
declare function buildPptxTextLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], cssWidth: number, cssHeight: number, onHyperlinkClick?: (target: HyperlinkTarget) => void, slideIndex?: number): void;
|
|
1253
1409
|
interface PptxHighlightMatch {
|
|
1254
1410
|
slices: MatchRunSlice[];
|
|
1255
1411
|
active: boolean;
|
|
@@ -1257,4 +1413,4 @@ interface PptxHighlightMatch {
|
|
|
1257
1413
|
type PptxHighlightColors = FindHighlightColors;
|
|
1258
1414
|
declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
|
|
1259
1415
|
//#endregion
|
|
1260
|
-
export { type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartElement, type ChartModel, type ChartSeries, type DimOptions, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LightRig, type LineBreak, type LoadOptions, type MediaElement, type NoFill, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type
|
|
1416
|
+
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartElement, 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 DimOptions, type Duotone, type EquationRun, type Fill, type FillRect, type FindHighlightColors, type FindMatch, type FindMatchesOptions, type Glow, type GradientFill, type GradientStop, type HiddenSlideMode, type HyperlinkTarget, type ImageFill, type LegendManualLayout, type LightRig, type LineBreak, type LoadOptions, type MatchRunSlice, 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 MediaElement, type NoFill, 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 Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxElementContext, type PptxElementContextOptions, type PptxHighlightColors, type PptxHighlightMatch, type PptxMatchLocation, PptxPresentation, PptxScrollViewer, type PptxScrollViewerOptions, type PptxSelectionContext, type PptxSelectionContextOptions, type PptxSelectionRunLocator, type PptxSlidePoint, type PptxTextRunInfo, type PptxTextSelectionContext, PptxViewer, type PptxViewerOptions, type PresentSlideOptions, type Presentation, type PresentationHandle, type Reflection, type RenderOptions, type RenderSlideOptions, type RenderSlideToBitmapOptions, type Rot3d, type Scene3d, type SecondaryValueAxis, type Shadow, type ShapeElement, type Slide, type SlideElement, type SlideElementOrigin, type SlideElementSource, type SlideRenderOptions, type SoftEdge, type SolidFill, type Sp3d, type SpaceLine, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, type TileInfo, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|