@silurus/ooxml 0.88.0 → 0.89.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 +118 -23
- package/THIRD_PARTY_NOTICES.md +7 -6
- package/dist/abort-VrnK7mdP.js +10 -0
- package/dist/assets/render-worker-CUOU6mL2.js +16 -0
- package/dist/assets/render-worker-DOqrFhSU.js +15 -0
- package/dist/assets/render-worker-DvWUdZUN.js +35 -0
- package/dist/bounded-raw-part-cache-B7JoC1CD.js +64586 -0
- package/dist/bundled-asset-url-E2nXURF9.js +15 -0
- package/dist/canvas-viewer-mechanics-DfQqRKkD.js +675 -0
- package/dist/cfb-guard-9QTRTg7f.js +528 -0
- package/dist/chart-ex.mjs +692 -688
- package/dist/comment-overlay-controller-B5_zGgG5.js +994 -0
- package/dist/comment-ui-runtime-B7ZvovcS.js +2 -0
- package/dist/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-D_sb2K6s.js} +5 -5
- package/dist/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-Jy-3goA9.js} +5 -5
- package/dist/delimited-text-worker-host-CikWU6_m.js +27 -0
- package/dist/document-model-source-BKNrXjAL.js +249 -0
- package/dist/document-pull-client-CxONDGbk.js +37833 -0
- package/dist/document-pull-worker-AMyXYpPq.js +104 -0
- package/dist/docx-D91ER1_S.js +495 -0
- package/dist/docx-DhDnKEI6.js +3563 -0
- package/dist/docx-model-source-CdrSt3hF.js +98 -0
- package/dist/docx-source-worker.mjs +455 -0
- package/dist/docx.mjs +7 -7
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/drawingml-shape-ChcGZNd8.js +310 -0
- package/dist/duotone-ekYik4ix.js +126 -0
- package/dist/emf-UT6I8rVi.js +1790 -0
- package/dist/font-preload-demand-CdJZUMCT.js +2058 -0
- package/dist/grid-geometry-uQOgViJU.js +384 -0
- package/dist/host-layout-DVMw8hDY.js +56 -0
- package/dist/host-layout-measure-CCEgaC_v.js +7 -0
- package/dist/in-process-pull-transport-DuXcPZng.js +29 -0
- package/dist/index.mjs +4 -4
- package/dist/internal-companion.mjs +12 -0
- package/dist/line-distribute-CPOV6csk.js +2716 -0
- package/dist/math.mjs +2 -2
- package/dist/mathjax-stix2.js +10 -10
- package/dist/model-source-DJGzDtGb.js +61 -0
- package/dist/model-source-kz_NkZqT.js +179 -0
- package/dist/model-source-session-Bu9CHFHc.js +71 -0
- package/dist/model-source-session-CDuijwv1.js +85 -0
- package/dist/model-source-session-sKpNiIJI.js +58 -0
- package/dist/node.mjs +7 -1327
- package/dist/{pixel-budget-9P63Bsk5.js → pixel-budget-BpTYrepD.js} +13 -10
- package/dist/plot-area-frame-CaJFvZ7p.js +8502 -0
- package/dist/pptx-CDP9dZHe.js +2936 -0
- package/dist/pptx-C_uxLVKB.js +183 -0
- package/dist/pptx-model-source-O7LhpOjz.js +37 -0
- package/dist/pptx-source-worker.mjs +446 -0
- package/dist/pptx.mjs +8 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/presentation-model-source-tmROzteR.js +77 -0
- package/dist/raster-target-YQ4G6rxo.js +42 -0
- package/dist/region-map.mjs +114 -150
- package/dist/{render-D3iqVKCo.js → render-CJVglUHl.js} +3 -3
- package/dist/{render-worker-host-B5wQfB7U.js → render-worker-host-BseIaVvm.js} +1 -1
- package/dist/{render-worker-host-D4123J27.js → render-worker-host-CyxPU4JU.js} +1 -1
- package/dist/{render-worker-host-Di3LxLc0.js → render-worker-host-aF6aWkC0.js} +1 -1
- package/dist/renderer-CkGLj0CC.js +5170 -0
- package/dist/renderer-Czw1cCC7.js +5823 -0
- package/dist/resource-measurement-mXw-WjMF.js +771 -0
- package/dist/session-Csv9maad.js +656 -0
- package/dist/slide-pull-client-DRZYwBTu.js +6515 -0
- package/dist/three-d-BK5siJgJ.js +878 -0
- package/dist/three-d.mjs +960 -945
- package/dist/{raster-target-ojDdQizC.js → tiff-contract-C6M3QcPp.js} +1 -42
- package/dist/tiff.mjs +401 -248
- package/dist/types/chart-ex.d.ts +149 -2
- package/dist/types/docx.d.ts +333 -96
- package/dist/types/index.d.ts +566 -301
- package/dist/types/internal-companion.d.ts +11 -0
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +422 -9
- package/dist/types/pptx.d.ts +302 -95
- package/dist/types/region-map.d.ts +149 -2
- package/dist/types/three-d.d.ts +149 -2
- package/dist/types/tiff.d.ts +1 -1
- package/dist/types/xlsx.d.ts +343 -132
- package/dist/wasm-loader-rlgHmcSv.js +35 -0
- package/dist/wasm-runtime-generation-DX4y0Ecl.js +97 -0
- package/dist/workbook-model-source-BTC4ISTS.js +94 -0
- package/dist/worker-source-I1cIYBel.js +22 -0
- package/dist/worker-source-SbudzjYL.js +22 -0
- package/dist/worker-source-UAi3GNcM.js +22 -0
- package/dist/worksheet-pull-client-CkHgbtyM.js +579 -0
- package/dist/xlsx-CpSDPAEU.js +5809 -0
- package/dist/xlsx-D5569TPf.js +534 -0
- package/dist/xlsx-model-source-DPSkjFic.js +309 -0
- package/dist/xlsx-source-worker.mjs +525 -0
- package/dist/xlsx.mjs +8 -7
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +42 -16
- package/dist/assets/render-worker-1uPAxMZr.js +0 -31
- package/dist/assets/render-worker-BlvJybji.js +0 -10
- package/dist/assets/render-worker-CzmiJfFL.js +0 -11
- package/dist/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
- package/dist/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
- package/dist/cjk-fallback-bLI3z70h.js +0 -46
- package/dist/comment-occurrence-C8Y2uoVr.js +0 -6
- package/dist/comment-ui-runtime-BsK8pmUT.js +0 -2
- package/dist/comments-Diid5ujN.js +0 -246
- package/dist/delimited-text-worker-host-BVY-Ecni.js +0 -27
- package/dist/document-pull-client-B9PTM-pL.js +0 -27280
- package/dist/docx-BF9WXrYH.js +0 -3103
- package/dist/dom-interaction-boundary-Cnm8DSBN.js +0 -223
- package/dist/highlight-rect-C5hkRqUr.js +0 -13
- package/dist/hyperlink-Cxzhet30.js +0 -36446
- package/dist/line-distribute-D1WNHKz_.js +0 -1023
- package/dist/line-metrics-B60C86uh.js +0 -60
- package/dist/plot-area-frame-DLTYKHNP.js +0 -4354
- package/dist/pptx-DkyYBYoL.js +0 -3065
- package/dist/renderer-B4GZb5We.js +0 -6492
- package/dist/resource-measurement-SHQCbkh2.js +0 -150
- package/dist/session-BGq81gRQ.js +0 -743
- package/dist/slide-pull-client-DiPnm240.js +0 -6253
- package/dist/source-key-DIJG8BA0.js +0 -42
- package/dist/three-d-DJBl8g8M.js +0 -1162
- package/dist/transfer-p6iCC2R7.js +0 -6
- package/dist/units-BzZ0gAxs.js +0 -4
- package/dist/worksheet-pull-client-BM8ywvbu.js +0 -458
- package/dist/xlsx-C9NVjgaV.js +0 -8484
- /package/dist/{chunk-DmhlhrBa.js → chunk-Dy4uBu1J.js} +0 -0
- /package/dist/{mathjax-DoyWZbSp.js → mathjax-BhwN6ilc.js} +0 -0
- /package/dist/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-PidH0wnP.js} +0 -0
- /package/dist/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-B52rDVKo.js} +0 -0
- /package/dist/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-CWM7jv6d.js} +0 -0
- /package/dist/{visible-index-BgiHEc1z.js → visible-index-FeVA0mGE.js} +0 -0
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-BX4Zli_Z.d.ts
|
|
2
2
|
type DecodedImageBudgetStrategy = 'adaptive' | 'strict';
|
|
3
3
|
interface ImageResourceOptions {
|
|
4
4
|
decodedByteBudget?: number;
|
|
@@ -113,6 +113,136 @@ interface Duotone {
|
|
|
113
113
|
clr1: string;
|
|
114
114
|
clr2: string;
|
|
115
115
|
}
|
|
116
|
+
type BlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
|
|
117
|
+
type BlipEffect = {
|
|
118
|
+
type: 'grayscale';
|
|
119
|
+
} | {
|
|
120
|
+
type: 'biLevel';
|
|
121
|
+
thresh: number;
|
|
122
|
+
} | {
|
|
123
|
+
type: 'colorChange';
|
|
124
|
+
from: string;
|
|
125
|
+
fromAlpha: number;
|
|
126
|
+
to: string;
|
|
127
|
+
toAlpha: number;
|
|
128
|
+
useAlpha: boolean;
|
|
129
|
+
} | {
|
|
130
|
+
type: 'luminance';
|
|
131
|
+
bright: number;
|
|
132
|
+
contrast: number;
|
|
133
|
+
} | {
|
|
134
|
+
type: 'duotone';
|
|
135
|
+
clr1?: string;
|
|
136
|
+
clr2?: string;
|
|
137
|
+
} | {
|
|
138
|
+
type: 'alphaBiLevel';
|
|
139
|
+
thresh: number;
|
|
140
|
+
} | {
|
|
141
|
+
type: 'alphaCeiling' | 'alphaFloor';
|
|
142
|
+
} | {
|
|
143
|
+
type: 'alphaInv';
|
|
144
|
+
color?: string;
|
|
145
|
+
} | {
|
|
146
|
+
type: 'hsl';
|
|
147
|
+
hue: number;
|
|
148
|
+
sat: number;
|
|
149
|
+
lum: number;
|
|
150
|
+
} | {
|
|
151
|
+
type: 'tint';
|
|
152
|
+
hue: number;
|
|
153
|
+
amt: number;
|
|
154
|
+
} | {
|
|
155
|
+
type: 'blur';
|
|
156
|
+
radius: number;
|
|
157
|
+
grow: boolean;
|
|
158
|
+
} | {
|
|
159
|
+
type: 'alphaMod';
|
|
160
|
+
container: BlipEffectContainer;
|
|
161
|
+
} | {
|
|
162
|
+
type: 'container';
|
|
163
|
+
container: BlipEffectContainer;
|
|
164
|
+
} | {
|
|
165
|
+
type: 'reference';
|
|
166
|
+
reference: string;
|
|
167
|
+
} | {
|
|
168
|
+
type: 'definitions';
|
|
169
|
+
containers: readonly BlipEffectContainer[];
|
|
170
|
+
work: number;
|
|
171
|
+
} | {
|
|
172
|
+
type: 'effectCountLimit';
|
|
173
|
+
observed: number;
|
|
174
|
+
} | {
|
|
175
|
+
type: 'alphaOutset';
|
|
176
|
+
radius: number;
|
|
177
|
+
} | {
|
|
178
|
+
type: 'blend';
|
|
179
|
+
container: BlipEffectContainer;
|
|
180
|
+
blend: BlendMode;
|
|
181
|
+
} | {
|
|
182
|
+
type: 'fill';
|
|
183
|
+
fill: BlipEffectFill;
|
|
184
|
+
} | {
|
|
185
|
+
type: 'glow';
|
|
186
|
+
glow: Glow;
|
|
187
|
+
} | {
|
|
188
|
+
type: 'shadow';
|
|
189
|
+
shadow: Shadow;
|
|
190
|
+
inner: boolean;
|
|
191
|
+
} | {
|
|
192
|
+
type: 'softEdge';
|
|
193
|
+
radius: number;
|
|
194
|
+
} | {
|
|
195
|
+
type: 'reflection';
|
|
196
|
+
reflection: Reflection & {
|
|
197
|
+
kx?: number;
|
|
198
|
+
ky?: number;
|
|
199
|
+
algn?: Shadow['algn'];
|
|
200
|
+
fadeDir?: number;
|
|
201
|
+
rotWithShape?: boolean;
|
|
202
|
+
};
|
|
203
|
+
} | {
|
|
204
|
+
type: 'transform';
|
|
205
|
+
sx: number;
|
|
206
|
+
sy: number;
|
|
207
|
+
kx: number;
|
|
208
|
+
ky: number;
|
|
209
|
+
tx: number;
|
|
210
|
+
ty: number;
|
|
211
|
+
} | {
|
|
212
|
+
type: 'relativeOffset';
|
|
213
|
+
tx: number;
|
|
214
|
+
ty: number;
|
|
215
|
+
} | {
|
|
216
|
+
type: 'presetShadow';
|
|
217
|
+
shadows: readonly Shadow[];
|
|
218
|
+
} | {
|
|
219
|
+
type: 'fillOverlay';
|
|
220
|
+
fill: BlipEffectFill;
|
|
221
|
+
blend: BlendMode;
|
|
222
|
+
} | {
|
|
223
|
+
type: 'alphaModFix';
|
|
224
|
+
amt: number;
|
|
225
|
+
} | {
|
|
226
|
+
type: 'alphaRepl';
|
|
227
|
+
alpha: number;
|
|
228
|
+
} | {
|
|
229
|
+
type: 'colorReplace';
|
|
230
|
+
color: string;
|
|
231
|
+
} | {
|
|
232
|
+
type: 'unsupported';
|
|
233
|
+
effect: string;
|
|
234
|
+
};
|
|
235
|
+
type BlipEffectImageFill = Omit<ImageFill, 'blipEffects'> & {
|
|
236
|
+
readonly blipEffects?: readonly BlipEffect[];
|
|
237
|
+
};
|
|
238
|
+
type BlipEffectFill = SolidFill | NoFill | PatternFill | (Omit<GradientFill, 'stops'> & {
|
|
239
|
+
readonly stops: readonly GradientStop[];
|
|
240
|
+
}) | BlipEffectImageFill;
|
|
241
|
+
interface BlipEffectContainer {
|
|
242
|
+
readonly kind: 'sib' | 'tree';
|
|
243
|
+
readonly name?: string;
|
|
244
|
+
readonly effects: readonly BlipEffect[];
|
|
245
|
+
}
|
|
116
246
|
interface SrcRect {
|
|
117
247
|
l: number;
|
|
118
248
|
t: number;
|
|
@@ -207,6 +337,7 @@ interface ImageFill {
|
|
|
207
337
|
tile?: TileInfo;
|
|
208
338
|
alpha?: number;
|
|
209
339
|
duotone?: Duotone;
|
|
340
|
+
blipEffects?: BlipEffect[];
|
|
210
341
|
}
|
|
211
342
|
interface Shadow {
|
|
212
343
|
color: string;
|
|
@@ -323,6 +454,8 @@ interface Paragraph$1 {
|
|
|
323
454
|
indent: number;
|
|
324
455
|
spaceBefore: number | null;
|
|
325
456
|
spaceAfter: number | null;
|
|
457
|
+
spaceBeforePct?: number;
|
|
458
|
+
spaceAfterPct?: number;
|
|
326
459
|
spaceLine: SpaceLine | null;
|
|
327
460
|
lvl: number;
|
|
328
461
|
bullet: Bullet$1;
|
|
@@ -334,9 +467,11 @@ interface Paragraph$1 {
|
|
|
334
467
|
tabStops: TabStop[];
|
|
335
468
|
rtl?: boolean;
|
|
336
469
|
runs: TextRun[];
|
|
470
|
+
endRunProperties?: TextRunData;
|
|
337
471
|
}
|
|
338
472
|
type TextRun = TextRunData | LineBreak | EquationRun;
|
|
339
473
|
interface EquationRun {
|
|
474
|
+
fallbackText?: string;
|
|
340
475
|
type: 'math';
|
|
341
476
|
nodes: MathNode[];
|
|
342
477
|
display: boolean;
|
|
@@ -345,36 +480,57 @@ interface EquationRun {
|
|
|
345
480
|
}
|
|
346
481
|
interface TextRunData {
|
|
347
482
|
type: 'text';
|
|
483
|
+
hyperlinkUsesTextFill?: boolean;
|
|
348
484
|
text: string;
|
|
349
485
|
bold: boolean | null;
|
|
350
486
|
italic: boolean | null;
|
|
351
487
|
underline: boolean;
|
|
352
488
|
underlineStyle?: string;
|
|
353
489
|
underlineColor?: string;
|
|
490
|
+
underlineFill?: Fill;
|
|
491
|
+
underlineLine?: TextOutline;
|
|
492
|
+
underlineLineNoFill?: boolean;
|
|
354
493
|
strikethrough: boolean;
|
|
355
494
|
strikeDouble?: boolean;
|
|
356
495
|
fontSize: number | null;
|
|
357
496
|
color: string | null;
|
|
497
|
+
patternFill?: PatternFill;
|
|
498
|
+
glyphFill?: Fill;
|
|
499
|
+
noFill?: boolean;
|
|
358
500
|
fontFamily: string | null;
|
|
359
501
|
fontFamilyEa?: string;
|
|
502
|
+
fontFamilyCs?: string;
|
|
360
503
|
fontFamilySym?: string;
|
|
504
|
+
lang?: string;
|
|
505
|
+
altLang?: string;
|
|
361
506
|
baseline?: number;
|
|
362
507
|
caps?: 'none' | 'small' | 'all';
|
|
363
508
|
letterSpacing?: number;
|
|
364
509
|
fieldType?: string;
|
|
365
510
|
hyperlink?: string;
|
|
366
511
|
hyperlinkAction?: string;
|
|
512
|
+
hyperlinkMouseOver?: string;
|
|
513
|
+
hyperlinkMouseOverAction?: string;
|
|
367
514
|
shadow?: Shadow;
|
|
368
515
|
reflection?: Reflection;
|
|
369
516
|
outline?: TextOutline;
|
|
370
517
|
highlight?: string;
|
|
518
|
+
characterAttributes?: Record<string, string>;
|
|
519
|
+
characterChildAttributes?: Record<string, Record<string, string>>;
|
|
371
520
|
}
|
|
372
521
|
interface TextOutline {
|
|
373
522
|
width: number;
|
|
374
523
|
color?: string;
|
|
524
|
+
fill?: Fill;
|
|
375
525
|
}
|
|
376
526
|
interface LineBreak {
|
|
377
527
|
type: 'break';
|
|
528
|
+
fontSize?: number;
|
|
529
|
+
fontFamily?: string;
|
|
530
|
+
bold?: boolean;
|
|
531
|
+
italic?: boolean;
|
|
532
|
+
characterAttributes?: Record<string, string>;
|
|
533
|
+
characterChildAttributes?: Record<string, Record<string, string>>;
|
|
378
534
|
}
|
|
379
535
|
interface RenderOptions {
|
|
380
536
|
width?: number;
|
|
@@ -745,6 +901,7 @@ interface ChartModel {
|
|
|
745
901
|
title: string | null;
|
|
746
902
|
titleRichRuns?: ChartTextRun[] | null;
|
|
747
903
|
titlePresent?: boolean;
|
|
904
|
+
authoredWithoutSeries?: boolean;
|
|
748
905
|
categories: string[];
|
|
749
906
|
categorySourceHidden?: boolean[] | null;
|
|
750
907
|
categoryLevels?: string[][] | null;
|
|
@@ -824,6 +981,7 @@ interface ChartModel {
|
|
|
824
981
|
subtotalIndices: number[];
|
|
825
982
|
legendManualLayout?: LegendManualLayout | null;
|
|
826
983
|
valAxisFormatCode?: string | null;
|
|
984
|
+
valAxisNumberFormat?: ChartAxisNumberFormat | null;
|
|
827
985
|
valAxisDisplayUnits?: ChartDisplayUnits | null;
|
|
828
986
|
catAxisDisplayUnits?: ChartDisplayUnits | null;
|
|
829
987
|
barGapWidth?: number | null;
|
|
@@ -912,6 +1070,7 @@ interface ChartModel {
|
|
|
912
1070
|
valAxisLineDash?: string | null;
|
|
913
1071
|
valAxisLinePaintAuthored?: boolean | null;
|
|
914
1072
|
catAxisFormatCode?: string | null;
|
|
1073
|
+
catAxisNumberFormat?: ChartAxisNumberFormat | null;
|
|
915
1074
|
catAxisMin?: number | null;
|
|
916
1075
|
catAxisMax?: number | null;
|
|
917
1076
|
titleManualLayout?: ChartManualLayout | null;
|
|
@@ -995,6 +1154,13 @@ interface ChartModel {
|
|
|
995
1154
|
chartexTreemap?: ChartexTreemap | null;
|
|
996
1155
|
chartexRegionMap?: ChartexRegionMap | null;
|
|
997
1156
|
chartexHistogramBinning?: ChartexHistogramBinning | null;
|
|
1157
|
+
chartexParetoOwnerIndex?: number | null;
|
|
1158
|
+
chartexParetoSortDescending?: boolean | null;
|
|
1159
|
+
chartexParetoFlatEndpoint?: boolean | null;
|
|
1160
|
+
chartexSuppressGeometry?: boolean | null;
|
|
1161
|
+
chartexParetoOutlineOwner?: boolean | null;
|
|
1162
|
+
chartexPrimaryAxisRight?: boolean | null;
|
|
1163
|
+
chartexShowUnpairedPercentageAxis?: boolean | null;
|
|
998
1164
|
chartexAccents?: string[] | null;
|
|
999
1165
|
chartexColorPalette?: Array<string | null> | null;
|
|
1000
1166
|
chartexColorStyleMethod?: string | null;
|
|
@@ -1250,6 +1416,11 @@ interface ChartexHistogramBinning {
|
|
|
1250
1416
|
intervalClosed?: 'l' | 'r' | null;
|
|
1251
1417
|
underflow?: number | null;
|
|
1252
1418
|
overflow?: number | null;
|
|
1419
|
+
edgeFormatCode?: string | null;
|
|
1420
|
+
}
|
|
1421
|
+
interface ChartAxisNumberFormat {
|
|
1422
|
+
authoredCode: string;
|
|
1423
|
+
sourceLinked?: boolean | null;
|
|
1253
1424
|
}
|
|
1254
1425
|
interface SecondaryValueAxis {
|
|
1255
1426
|
style?: ChartExElementStyle | null;
|
|
@@ -1261,6 +1432,7 @@ interface SecondaryValueAxis {
|
|
|
1261
1432
|
title: string | null;
|
|
1262
1433
|
hidden: boolean;
|
|
1263
1434
|
formatCode?: string | null;
|
|
1435
|
+
numberFormat?: ChartAxisNumberFormat | null;
|
|
1264
1436
|
displayUnits?: ChartDisplayUnits | null;
|
|
1265
1437
|
fontColor?: string | null;
|
|
1266
1438
|
fontPaintAuthored?: boolean | null;
|
|
@@ -1361,12 +1533,12 @@ interface ChartRect {
|
|
|
1361
1533
|
h: number;
|
|
1362
1534
|
}
|
|
1363
1535
|
//#endregion
|
|
1364
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1536
|
+
//#region dist/.types-work/chart-ex-contract-uCVPGn_g.d.ts
|
|
1365
1537
|
interface ChartExRenderer {
|
|
1366
1538
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1367
1539
|
}
|
|
1368
1540
|
//#endregion
|
|
1369
|
-
//#region dist/.types-work/mathjax-
|
|
1541
|
+
//#region dist/.types-work/mathjax-Cs1A6yAm.d.ts
|
|
1370
1542
|
interface MathSvg {
|
|
1371
1543
|
svg: string;
|
|
1372
1544
|
widthEm: number;
|
|
@@ -1378,17 +1550,17 @@ interface MathRenderer {
|
|
|
1378
1550
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1379
1551
|
}
|
|
1380
1552
|
//#endregion
|
|
1381
|
-
//#region dist/.types-work/three-d-contract-
|
|
1553
|
+
//#region dist/.types-work/three-d-contract-BAX9ecoe.d.ts
|
|
1382
1554
|
interface ChartThreeDRenderer {
|
|
1383
1555
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1384
1556
|
}
|
|
1385
1557
|
//#endregion
|
|
1386
|
-
//#region dist/.types-work/region-map-contract-
|
|
1558
|
+
//#region dist/.types-work/region-map-contract-J2ruXmu1.d.ts
|
|
1387
1559
|
interface ChartRegionMapRenderer {
|
|
1388
1560
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1389
1561
|
}
|
|
1390
1562
|
//#endregion
|
|
1391
|
-
//#region dist/.types-work/tiff-contract-
|
|
1563
|
+
//#region dist/.types-work/tiff-contract-bt8L_KEc.d.ts
|
|
1392
1564
|
interface TiffRenderOptions {
|
|
1393
1565
|
targetWidthPx?: number;
|
|
1394
1566
|
targetHeightPx?: number;
|
|
@@ -1403,14 +1575,19 @@ interface TiffRenderer {
|
|
|
1403
1575
|
render(bytes: Uint8Array, options?: Readonly<TiffRenderOptions>): Promise<ImageBitmap | null>;
|
|
1404
1576
|
}
|
|
1405
1577
|
//#endregion
|
|
1406
|
-
//#region dist/.types-work/hyperlink-
|
|
1578
|
+
//#region dist/.types-work/hyperlink-BER006VA.d.ts
|
|
1407
1579
|
type CjkLang = 'kr' | 'sc' | 'tc' | 'hk' | 'jp';
|
|
1408
1580
|
type CjkFallback = 'auto' | CjkLang;
|
|
1409
|
-
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1581
|
+
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml' | 'unsupported-image-effect' | 'invalid-numbering' | 'unsupported-content';
|
|
1410
1582
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1583
|
+
interface OoxmlUnsupportedContentDetails {
|
|
1584
|
+
readonly format: string;
|
|
1585
|
+
readonly reason: 'source-subset';
|
|
1586
|
+
}
|
|
1411
1587
|
declare class OoxmlError extends Error {
|
|
1412
1588
|
readonly code: OoxmlErrorCode;
|
|
1413
|
-
|
|
1589
|
+
readonly details?: OoxmlUnsupportedContentDetails;
|
|
1590
|
+
constructor(code: OoxmlErrorCode, message: string, details?: OoxmlUnsupportedContentDetails);
|
|
1414
1591
|
}
|
|
1415
1592
|
type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
|
|
1416
1593
|
interface OoxmlResourceUsageSnapshot {
|
|
@@ -1447,6 +1624,12 @@ interface OoxmlResourcePolicySnapshot {
|
|
|
1447
1624
|
readonly maxArchiveEntryBytes: number | null;
|
|
1448
1625
|
readonly maxTotalInflatedBytes: number | null;
|
|
1449
1626
|
readonly maxArchiveEntries: number | null;
|
|
1627
|
+
readonly xlsxWorksheetLimits?: Readonly<{
|
|
1628
|
+
readonly maxRows: number;
|
|
1629
|
+
readonly maxCells: number;
|
|
1630
|
+
readonly maxOwnedUtf8Bytes: number;
|
|
1631
|
+
readonly maxJsonBytes: number;
|
|
1632
|
+
}>;
|
|
1450
1633
|
}
|
|
1451
1634
|
interface OoxmlResourceMetricsCheckpoint {
|
|
1452
1635
|
readonly name: string;
|
|
@@ -1478,6 +1661,12 @@ interface OoxmlResourceLimits {
|
|
|
1478
1661
|
maxTotalInflatedBytes?: OoxmlResourceLimit;
|
|
1479
1662
|
maxArchiveEntries?: OoxmlResourceLimit;
|
|
1480
1663
|
}
|
|
1664
|
+
interface XlsxWorksheetLimits {
|
|
1665
|
+
maxRows?: number;
|
|
1666
|
+
maxCells?: number;
|
|
1667
|
+
maxOwnedUtf8Bytes?: number;
|
|
1668
|
+
maxJsonBytes?: number;
|
|
1669
|
+
}
|
|
1481
1670
|
interface ProgressiveLayoutProgress {
|
|
1482
1671
|
committedUnits: number;
|
|
1483
1672
|
}
|
|
@@ -1493,6 +1682,7 @@ interface LoadOptions$1 {
|
|
|
1493
1682
|
wasmUrl?: string | URL;
|
|
1494
1683
|
maxZipEntryBytes?: number;
|
|
1495
1684
|
resourceLimits?: OoxmlResourceLimits;
|
|
1685
|
+
xlsxWorksheetLimits?: XlsxWorksheetLimits;
|
|
1496
1686
|
debug?: boolean;
|
|
1497
1687
|
onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
|
|
1498
1688
|
workerTimeoutMs?: number;
|
|
@@ -1502,7 +1692,7 @@ interface LoadOptions$1 {
|
|
|
1502
1692
|
chartEx?: ChartExRenderer;
|
|
1503
1693
|
tiff?: TiffRenderer;
|
|
1504
1694
|
}
|
|
1505
|
-
type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes';
|
|
1695
|
+
type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes' | 'image-effect-count' | 'image-effect-work' | 'tiff-lzw-work' | 'metafile-path-commands' | 'metafile-record-points' | 'metafile-record-polygons' | 'metafile-record-rectangles' | 'metafile-record-text-units';
|
|
1506
1696
|
declare class OoxmlDecodedImageLimitError extends RangeError {
|
|
1507
1697
|
readonly metric: OoxmlDecodedImageLimitMetric;
|
|
1508
1698
|
readonly limit: number;
|
|
@@ -1521,7 +1711,7 @@ type HyperlinkTarget = {
|
|
|
1521
1711
|
};
|
|
1522
1712
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1523
1713
|
//#endregion
|
|
1524
|
-
//#region dist/.types-work/find-highlight-
|
|
1714
|
+
//#region dist/.types-work/find-highlight-CT_JWmHP.d.ts
|
|
1525
1715
|
interface TextSelectionContextOptions {
|
|
1526
1716
|
readonly maxTextCharacters?: number;
|
|
1527
1717
|
readonly maxRunLocators?: number;
|
|
@@ -1582,7 +1772,37 @@ interface FindHighlightColors {
|
|
|
1582
1772
|
active?: string;
|
|
1583
1773
|
}
|
|
1584
1774
|
//#endregion
|
|
1585
|
-
//#region dist/.types-work/
|
|
1775
|
+
//#region dist/.types-work/model-source-BvlR3Xr6.d.ts
|
|
1776
|
+
type ModelSourceTarget = 'docx' | 'xlsx' | 'pptx';
|
|
1777
|
+
type ModelSourceConfigValue = string | number | boolean | null;
|
|
1778
|
+
type ModelSourceConfig = Readonly<Record<string, ModelSourceConfigValue>>;
|
|
1779
|
+
declare const MODEL_SOURCE_MODULE_PROTOCOL = "ooxml-model-source-module/v2";
|
|
1780
|
+
interface ModelSourceModuleDescriptor {
|
|
1781
|
+
readonly protocol: typeof MODEL_SOURCE_MODULE_PROTOCOL;
|
|
1782
|
+
readonly target: ModelSourceTarget;
|
|
1783
|
+
readonly moduleUrl: string;
|
|
1784
|
+
readonly config: ModelSourceConfig;
|
|
1785
|
+
}
|
|
1786
|
+
interface ModelSourceLoad {
|
|
1787
|
+
readonly module: ModelSourceModuleDescriptor;
|
|
1788
|
+
readonly transfer?: readonly Transferable[];
|
|
1789
|
+
release(): void;
|
|
1790
|
+
}
|
|
1791
|
+
interface ModelSource<T extends ModelSourceTarget = ModelSourceTarget> {
|
|
1792
|
+
readonly target: T;
|
|
1793
|
+
claim(bytes: Uint8Array): boolean;
|
|
1794
|
+
beginLoad(): ModelSourceLoad;
|
|
1795
|
+
}
|
|
1796
|
+
interface OpenedModelSource<TArchive> {
|
|
1797
|
+
readonly archive: TArchive;
|
|
1798
|
+
readonly viewDefaults?: Readonly<Record<string, boolean>>;
|
|
1799
|
+
close(): void;
|
|
1800
|
+
}
|
|
1801
|
+
interface ModelSourceModule<TArchive = unknown> {
|
|
1802
|
+
openModelSource(bytes: Uint8Array, config: ModelSourceConfig, signal?: AbortSignal, transfer?: readonly Transferable[]): Promise<OpenedModelSource<TArchive>>;
|
|
1803
|
+
}
|
|
1804
|
+
//#endregion
|
|
1805
|
+
//#region dist/.types-work/types-BYMzwltM.d.ts
|
|
1586
1806
|
interface BlipBullet {
|
|
1587
1807
|
type: 'blip';
|
|
1588
1808
|
imagePath: string;
|
|
@@ -1592,11 +1812,20 @@ interface BlipBullet {
|
|
|
1592
1812
|
}
|
|
1593
1813
|
type Bullet = Bullet$1 | BlipBullet;
|
|
1594
1814
|
interface Paragraph extends Paragraph$1 {
|
|
1815
|
+
mathFallbacks?: {
|
|
1816
|
+
start: number;
|
|
1817
|
+
end: number;
|
|
1818
|
+
text: string;
|
|
1819
|
+
}[];
|
|
1595
1820
|
eaLnBrk: boolean;
|
|
1821
|
+
fontAlgn?: 't' | 'ctr' | 'b';
|
|
1596
1822
|
defTabSz?: number;
|
|
1597
1823
|
}
|
|
1598
1824
|
interface TextBody extends TextBody$1 {
|
|
1599
1825
|
rtlCol?: boolean;
|
|
1826
|
+
spcFirstLastPara?: boolean;
|
|
1827
|
+
anchorCtr?: boolean;
|
|
1828
|
+
compatLnSpc?: boolean;
|
|
1600
1829
|
textWarp?: {
|
|
1601
1830
|
preset: string;
|
|
1602
1831
|
adj?: number[];
|
|
@@ -1614,6 +1843,12 @@ interface Presentation {
|
|
|
1614
1843
|
folHlinkColor?: string;
|
|
1615
1844
|
}
|
|
1616
1845
|
interface Slide {
|
|
1846
|
+
theme?: {
|
|
1847
|
+
defaultTextColor: string | null;
|
|
1848
|
+
majorFont: string | null;
|
|
1849
|
+
minorFont: string | null;
|
|
1850
|
+
hlinkColor: string | null;
|
|
1851
|
+
};
|
|
1617
1852
|
index: number;
|
|
1618
1853
|
slideNumber: number;
|
|
1619
1854
|
partName?: string;
|
|
@@ -1686,7 +1921,13 @@ interface MediaElement {
|
|
|
1686
1921
|
mediaPath: string;
|
|
1687
1922
|
mimeType: string;
|
|
1688
1923
|
}
|
|
1924
|
+
interface EquationBranchFallback {
|
|
1925
|
+
elements: SlideElement[];
|
|
1926
|
+
before: number;
|
|
1927
|
+
after: number;
|
|
1928
|
+
}
|
|
1689
1929
|
interface ShapeElement {
|
|
1930
|
+
mathFallback?: EquationBranchFallback;
|
|
1690
1931
|
type: 'shape';
|
|
1691
1932
|
x: number;
|
|
1692
1933
|
y: number;
|
|
@@ -1701,6 +1942,10 @@ interface ShapeElement {
|
|
|
1701
1942
|
textBody: TextBody | null;
|
|
1702
1943
|
defaultTextColor: string | null;
|
|
1703
1944
|
custGeom: PathCmd[][] | null;
|
|
1945
|
+
custGeomPaint?: {
|
|
1946
|
+
fill: string | null;
|
|
1947
|
+
stroke: boolean;
|
|
1948
|
+
}[];
|
|
1704
1949
|
adj: number | null;
|
|
1705
1950
|
adj2: number | null;
|
|
1706
1951
|
adj3: number | null;
|
|
@@ -1764,6 +2009,8 @@ interface Sp3d {
|
|
|
1764
2009
|
bevelB?: Bevel3d;
|
|
1765
2010
|
}
|
|
1766
2011
|
interface TableElement {
|
|
2012
|
+
mathFallback?: EquationBranchFallback;
|
|
2013
|
+
background?: Fill;
|
|
1767
2014
|
type: 'table';
|
|
1768
2015
|
id?: string;
|
|
1769
2016
|
x: number;
|
|
@@ -1783,6 +2030,7 @@ interface TableRow {
|
|
|
1783
2030
|
}
|
|
1784
2031
|
interface TableCell {
|
|
1785
2032
|
textBody: TextBody | null;
|
|
2033
|
+
horzOverflow?: 'clip' | 'overflow';
|
|
1786
2034
|
fill: Fill | null;
|
|
1787
2035
|
textColor?: string;
|
|
1788
2036
|
borderL: Stroke | null;
|
|
@@ -1824,6 +2072,7 @@ interface PictureElement {
|
|
|
1824
2072
|
intrinsicWidthPx?: number;
|
|
1825
2073
|
intrinsicHeightPx?: number;
|
|
1826
2074
|
stroke: Stroke | null;
|
|
2075
|
+
fill?: Fill;
|
|
1827
2076
|
prstGeom?: string;
|
|
1828
2077
|
prstAdjust?: number[];
|
|
1829
2078
|
srcRect?: {
|
|
@@ -1834,6 +2083,7 @@ interface PictureElement {
|
|
|
1834
2083
|
};
|
|
1835
2084
|
alpha?: number;
|
|
1836
2085
|
duotone?: Duotone;
|
|
2086
|
+
blipEffects?: BlipEffect[];
|
|
1837
2087
|
custGeom?: PathCmd[][] | null;
|
|
1838
2088
|
shadow?: Shadow;
|
|
1839
2089
|
innerShadow?: Shadow;
|
|
@@ -1844,8 +2094,9 @@ interface PictureElement {
|
|
|
1844
2094
|
sp3d?: Sp3d;
|
|
1845
2095
|
}
|
|
1846
2096
|
//#endregion
|
|
1847
|
-
//#region dist/.types-work/pptx-
|
|
2097
|
+
//#region dist/.types-work/pptx-Fl1NT0GT.d.ts
|
|
1848
2098
|
interface PptxTextRunInfo {
|
|
2099
|
+
renderElementIndex?: number;
|
|
1849
2100
|
elementIndex?: number;
|
|
1850
2101
|
origin?: SlideElementOrigin;
|
|
1851
2102
|
shapeId?: string;
|
|
@@ -1867,6 +2118,7 @@ interface PptxTextRunInfo {
|
|
|
1867
2118
|
row: number;
|
|
1868
2119
|
column: number;
|
|
1869
2120
|
}>;
|
|
2121
|
+
cellHorzOverflow?: 'clip' | 'overflow';
|
|
1870
2122
|
textBodyRotation?: number;
|
|
1871
2123
|
hyperlink?: HyperlinkTarget;
|
|
1872
2124
|
}
|
|
@@ -1975,6 +2227,7 @@ interface PptxElementBounds {
|
|
|
1975
2227
|
}
|
|
1976
2228
|
type PptxSelectionContext = PptxTextSelectionContext | PptxCommentSelectionContext | PptxElementContext;
|
|
1977
2229
|
type LoadOptions = LoadOptions$1 & {
|
|
2230
|
+
legacyPpt?: ModelSource<'pptx'>;
|
|
1978
2231
|
mode?: 'main' | 'worker';
|
|
1979
2232
|
progressiveLayout?: boolean;
|
|
1980
2233
|
onLayoutProgress?: (progress: Readonly<ProgressiveLayoutProgress>) => void;
|
|
@@ -2001,6 +2254,7 @@ interface PresentSlideOptions extends Omit<RenderSlideOptions, 'skipMediaControl
|
|
|
2001
2254
|
}
|
|
2002
2255
|
declare class PptxPresentation {
|
|
2003
2256
|
private _cjkFallback;
|
|
2257
|
+
private _googleSubstitutes;
|
|
2004
2258
|
private _metrics;
|
|
2005
2259
|
private readonly _worker;
|
|
2006
2260
|
private readonly _bridge;
|
|
@@ -2021,10 +2275,12 @@ declare class PptxPresentation {
|
|
|
2021
2275
|
private _resourceFailure;
|
|
2022
2276
|
private _slidePartIndex;
|
|
2023
2277
|
private readonly _rawParts;
|
|
2024
|
-
private
|
|
2278
|
+
private _googleFonts;
|
|
2279
|
+
private readonly _officeFontLoads;
|
|
2025
2280
|
private _embeddedFontFaces;
|
|
2026
2281
|
private _embeddedFontAliases;
|
|
2027
2282
|
private _embeddedFontAuthoredFamilies;
|
|
2283
|
+
private _embeddedFontTuples;
|
|
2028
2284
|
private _destroyed;
|
|
2029
2285
|
private readonly _fetchImage;
|
|
2030
2286
|
private readonly _fetchMedia;
|
|
@@ -2037,6 +2293,7 @@ declare class PptxPresentation {
|
|
|
2037
2293
|
private _assertResourceHealthy;
|
|
2038
2294
|
private _rethrowWithResourceFailure;
|
|
2039
2295
|
static load(source: string | ArrayBuffer, opts?: LoadOptions): Promise<PptxPresentation>;
|
|
2296
|
+
private _ensureGoogleFonts;
|
|
2040
2297
|
private _parse;
|
|
2041
2298
|
private _parseMainProgressively;
|
|
2042
2299
|
private _parseWorkerProgressively;
|
|
@@ -2064,6 +2321,7 @@ declare class PptxPresentation {
|
|
|
2064
2321
|
private _partIndex;
|
|
2065
2322
|
getSlideIndexByPartName(partName: string): number | undefined;
|
|
2066
2323
|
resolveInternalTarget(ref: string, currentIndex?: number): number | undefined;
|
|
2324
|
+
private _officeRoutesForRequests;
|
|
2067
2325
|
renderSlide(canvas: HTMLCanvasElement | OffscreenCanvas, slideIndex: number, opts?: RenderSlideOptions): Promise<void>;
|
|
2068
2326
|
renderSlideToBitmap(slideIndex: number, opts?: RenderSlideToBitmapOptions): Promise<ImageBitmap>;
|
|
2069
2327
|
collectSlideRuns(slideIndex: number, width?: number): Promise<PptxTextRunInfo[]>;
|
|
@@ -2128,7 +2386,7 @@ declare class PptxViewer implements ZoomableViewer {
|
|
|
2128
2386
|
private elementContext;
|
|
2129
2387
|
private elementHitGeneration;
|
|
2130
2388
|
private readonly elementHitTolerance;
|
|
2131
|
-
private readonly
|
|
2389
|
+
private readonly _loadingIndicator;
|
|
2132
2390
|
private _layoutUnsubscribe;
|
|
2133
2391
|
private readonly _layoutWaiters;
|
|
2134
2392
|
private _layoutFailed;
|
|
@@ -2246,56 +2504,45 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2246
2504
|
private readonly _opts;
|
|
2247
2505
|
private readonly _errorRouter;
|
|
2248
2506
|
private readonly _container;
|
|
2249
|
-
private readonly
|
|
2250
|
-
private
|
|
2251
|
-
private
|
|
2507
|
+
private readonly _shell;
|
|
2508
|
+
private get _wrapper();
|
|
2509
|
+
private get _scrollHost();
|
|
2510
|
+
private get _spacer();
|
|
2252
2511
|
private _mode;
|
|
2253
|
-
private
|
|
2254
|
-
private
|
|
2255
|
-
private
|
|
2512
|
+
private readonly _viewport;
|
|
2513
|
+
private readonly _zoom;
|
|
2514
|
+
private get _scale();
|
|
2515
|
+
private get _scaleEstablished();
|
|
2516
|
+
private readonly _scroller;
|
|
2256
2517
|
private readonly _slots;
|
|
2257
|
-
private readonly
|
|
2518
|
+
private readonly _layout;
|
|
2519
|
+
private readonly _renderHooks;
|
|
2520
|
+
private readonly _bitmap;
|
|
2521
|
+
private readonly _main;
|
|
2522
|
+
private readonly _media;
|
|
2523
|
+
private readonly _commentNavigation;
|
|
2524
|
+
private readonly _navigation;
|
|
2525
|
+
private readonly _selection;
|
|
2258
2526
|
private _uniformSlideHeight;
|
|
2259
|
-
private
|
|
2260
|
-
private
|
|
2261
|
-
private _lastReportedTotal;
|
|
2262
|
-
private _lastReportedLayoutComplete;
|
|
2263
|
-
private _layoutUnsubscribe;
|
|
2264
|
-
private _scrollListener;
|
|
2265
|
-
private _selectionChangeListener;
|
|
2266
|
-
private _selectionContextKey;
|
|
2267
|
-
private _elementClickListener;
|
|
2268
|
-
private _contextMenuListener;
|
|
2269
|
-
private _commentOutsidePointerListener;
|
|
2270
|
-
private _elementContext;
|
|
2527
|
+
private readonly _visibleEvents;
|
|
2528
|
+
private readonly _loader;
|
|
2271
2529
|
private _activeCommentId;
|
|
2272
2530
|
private _activeCommentSlide;
|
|
2273
|
-
private _commentNavigationGeneration;
|
|
2274
2531
|
private _commentUi;
|
|
2275
|
-
private _commentGeometryScheduled;
|
|
2276
|
-
private _commentGeometryFrame;
|
|
2277
|
-
private readonly _pendingCommentGeometry;
|
|
2278
2532
|
private _hasComments;
|
|
2279
|
-
private
|
|
2533
|
+
private readonly _commentMargin;
|
|
2534
|
+
private readonly _layers;
|
|
2535
|
+
private readonly _commentOverlay;
|
|
2280
2536
|
private _commentScanFrontier;
|
|
2281
|
-
private readonly _layoutWaiters;
|
|
2282
|
-
private _layoutFailed;
|
|
2283
|
-
private _elementHitGeneration;
|
|
2284
2537
|
private readonly _elementHitTolerance;
|
|
2285
2538
|
private _destroyed;
|
|
2286
|
-
private
|
|
2287
|
-
private _renderEpoch;
|
|
2288
|
-
private _settleTimer;
|
|
2289
|
-
private _wheelListener;
|
|
2290
|
-
private _pendingZoomAnchor;
|
|
2291
|
-
private _resizeObserver;
|
|
2292
|
-
private _prevBase;
|
|
2293
|
-
private _lastFitWidth;
|
|
2539
|
+
private get _renderEpoch();
|
|
2540
|
+
private set _renderEpoch(value);
|
|
2294
2541
|
private readonly _pageShadow;
|
|
2295
2542
|
private readonly _find;
|
|
2296
2543
|
private _findGeneration;
|
|
2297
2544
|
private _findActive;
|
|
2298
|
-
private
|
|
2545
|
+
private readonly _highlights;
|
|
2299
2546
|
static fromPresentation(container: HTMLElement, presentation: PptxPresentation, opts?: Omit<PptxScrollViewerOptions, keyof LoadOptions>): Omit<PptxScrollViewer, 'load'>;
|
|
2300
2547
|
constructor(container: HTMLElement, opts?: PptxScrollViewerOptions);
|
|
2301
2548
|
load(source: string | ArrayBuffer): Promise<void>;
|
|
@@ -2305,25 +2552,15 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2305
2552
|
waitUntilLayoutComplete(): Promise<void>;
|
|
2306
2553
|
private _slideWidthPx;
|
|
2307
2554
|
private _slideHeightPx;
|
|
2308
|
-
private _fitWidthPx;
|
|
2309
|
-
private _commentMarginExtent;
|
|
2310
|
-
private _hasCommentMargin;
|
|
2311
|
-
private _commentZoom;
|
|
2312
2555
|
private _commentsEnabled;
|
|
2313
2556
|
private _commentsOptions;
|
|
2314
|
-
private _commentSide;
|
|
2315
|
-
private _syncCommentMarginGeometry;
|
|
2316
2557
|
private _scanAvailableComments;
|
|
2317
2558
|
private _refreshDiscoveredComments;
|
|
2318
2559
|
private _baseScale;
|
|
2319
2560
|
relayout(): void;
|
|
2320
2561
|
private _relayout;
|
|
2321
2562
|
private _recomputeHeights;
|
|
2322
|
-
private _gap;
|
|
2323
|
-
private _overscan;
|
|
2324
2563
|
private _mediaOverscan;
|
|
2325
|
-
private _pad;
|
|
2326
|
-
private _padH;
|
|
2327
2564
|
private _slideOffset;
|
|
2328
2565
|
private _slideIndexAtOffset;
|
|
2329
2566
|
private _rangeAt;
|
|
@@ -2334,44 +2571,30 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2334
2571
|
private _syncSpacerWidth;
|
|
2335
2572
|
private _onScroll;
|
|
2336
2573
|
private _mountVisible;
|
|
2337
|
-
private
|
|
2338
|
-
private _acquireSlot;
|
|
2574
|
+
private _createSlot;
|
|
2339
2575
|
private _recycleSlot;
|
|
2576
|
+
private _resetSlot;
|
|
2340
2577
|
private _positionSlot;
|
|
2341
|
-
private _dpr;
|
|
2342
2578
|
private _renderSlot;
|
|
2343
2579
|
private _trackSlotLoading;
|
|
2344
|
-
private _bindLayoutPresentation;
|
|
2345
|
-
private _unbindLayoutPresentation;
|
|
2346
|
-
private _onLayoutPublication;
|
|
2347
|
-
private _wakeLayoutWaiters;
|
|
2348
|
-
private _beginCommentNavigation;
|
|
2349
|
-
private _waitForSlideMetadata;
|
|
2350
2580
|
private _emitVisibleSlideChange;
|
|
2351
|
-
private _renderInteractiveSlot;
|
|
2352
|
-
private _syncMediaPlayback;
|
|
2353
2581
|
private _reportRenderError;
|
|
2582
|
+
private _commitRenderedRuns;
|
|
2354
2583
|
private _renderSlotBitmap;
|
|
2355
2584
|
setScale(scale: number): void;
|
|
2356
2585
|
getScale(): number;
|
|
2357
2586
|
zoomIn(): void;
|
|
2358
2587
|
zoomOut(): void;
|
|
2359
|
-
private _effectiveZoomMin;
|
|
2360
2588
|
fitWidth(): void;
|
|
2361
2589
|
fitPage(): void;
|
|
2362
|
-
private _fit;
|
|
2363
2590
|
private _previewVisible;
|
|
2364
2591
|
private _previewSlot;
|
|
2365
2592
|
private _clearTextLayerPreview;
|
|
2366
2593
|
private _scheduleSettle;
|
|
2367
|
-
private _settleRender;
|
|
2368
2594
|
private _settleSlot;
|
|
2369
|
-
private _settleInteractiveSlot;
|
|
2370
2595
|
scrollToSlide(index: number, opts?: {
|
|
2371
2596
|
behavior?: 'auto' | 'smooth';
|
|
2372
2597
|
}): void;
|
|
2373
|
-
private _scrollToSlideCommentTarget;
|
|
2374
|
-
private _resolveSlideCommentElementBounds;
|
|
2375
2598
|
goToComment(slideIndex: number, commentIndex: number, opts?: {
|
|
2376
2599
|
behavior?: 'auto' | 'smooth';
|
|
2377
2600
|
}): Promise<boolean>;
|
|
@@ -2380,32 +2603,16 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2380
2603
|
findPrev(): Promise<FindMatch<PptxMatchLocation> | null>;
|
|
2381
2604
|
clearFind(): void;
|
|
2382
2605
|
private _invalidateFind;
|
|
2383
|
-
private _activateMatch;
|
|
2384
2606
|
private _collectSlideRuns;
|
|
2385
|
-
private _redrawHighlights;
|
|
2386
|
-
private _refreshFindRuns;
|
|
2387
2607
|
private _redrawSlotComments;
|
|
2388
|
-
private _redrawSlotCommentConnectors;
|
|
2389
2608
|
private _commitSlotComments;
|
|
2390
2609
|
private _ensureSlotCommentAnchors;
|
|
2391
|
-
private _scheduleCommentGeometry;
|
|
2392
|
-
private _redrawSlotHighlights;
|
|
2393
|
-
private _measureForFind;
|
|
2394
2610
|
private _hyperlinkHandler;
|
|
2395
2611
|
private _onHyperlinkClick;
|
|
2396
2612
|
private _resolveInternalSlideIndex;
|
|
2397
|
-
private _onResize;
|
|
2398
2613
|
get topVisibleSlide(): number;
|
|
2399
2614
|
getResourceMetrics(): Promise<OoxmlResourceMetrics>;
|
|
2400
2615
|
getSelectionContext(options?: PptxSelectionContextOptions): PptxSelectionContext | null;
|
|
2401
|
-
private _emitSelectionContextChange;
|
|
2402
|
-
private _setElementContext;
|
|
2403
|
-
private _invalidateElementSelection;
|
|
2404
|
-
private _redrawElementOutlines;
|
|
2405
|
-
private _redrawElementOutlineForSlot;
|
|
2406
|
-
private _onElementClick;
|
|
2407
|
-
private _onContextMenu;
|
|
2408
|
-
private _resolveContextAt;
|
|
2409
2616
|
destroy(): void;
|
|
2410
2617
|
}
|
|
2411
2618
|
declare function buildPptxTextLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], cssWidth: number, cssHeight: number, onHyperlinkClick?: (target: HyperlinkTarget) => void, slideIndex?: number): void;
|
|
@@ -2416,4 +2623,4 @@ interface PptxHighlightMatch {
|
|
|
2416
2623
|
type PptxHighlightColors = FindHighlightColors;
|
|
2417
2624
|
declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
|
|
2418
2625
|
//#endregion
|
|
2419
|
-
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, type ChartClassicSurfaceBandStyles, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartExRenderer, type ChartLabelBox, type ChartLegendEntryOverride, type ChartLineDashSegment, type ChartLineGroupDecorations, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartPlotGroup, type ChartPlotGroupAxisSlot, type ChartPlotGroupKind, type ChartRect, type ChartRegionMapRenderer, type ChartSeries, type ChartSeriesDataLabels, type ChartStockBarPaint, type ChartStockUpDownBarStyle, type ChartSurfaceBandFormat, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDPictureOptions, type ChartThreeDRenderer, type ChartThreeDSeriesAxis, type ChartThreeDSurface, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexGeography, type ChartexHistogramBinning, type ChartexRegionMap, type ChartexRegionMapColors, type ChartexRegionMapRow, type ChartexSunburst, type ChartexSunburstRow, type ChartexTreemap, type ChartexValueColorStop, type CjkFallback, type DecodedImageBudgetStrategy, type DimOptions, type DrawingMLCustomDashSegment, 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 ImageResourceOptions, 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 PptxCommentAnchor, type PptxCommentReply, type PptxCommentSelectionContext, type PptxCommentsOptions, type PptxElementBounds, 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 SrcRect, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, TiffDecodeError, type TiffRenderOptions, type TiffRenderer, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
2626
|
+
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlendMode, type BlipBullet, type BlipEffect, type BlipEffectContainer, type BlipEffectFill, type BlipEffectImageFill, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartAxisNumberFormat, type ChartBarGroupDecorations, type ChartClassicSurfaceBandStyles, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartDataTable, type ChartDecorationLineStyle, type ChartDisplayUnits, type ChartDisplayUnitsLabel, type ChartElement, type ChartErrBars, type ChartExElementStyle, type ChartExRenderer, type ChartLabelBox, type ChartLegendEntryOverride, type ChartLineDashSegment, type ChartLineGroupDecorations, type ChartManualLayout, type ChartModel, type ChartOfPie, type ChartPlotGroup, type ChartPlotGroupAxisSlot, type ChartPlotGroupKind, type ChartRect, type ChartRegionMapRenderer, type ChartSeries, type ChartSeriesDataLabels, type ChartStockBarPaint, type ChartStockUpDownBarStyle, type ChartSurfaceBandFormat, type ChartTextBox, type ChartTextParagraph, type ChartTextRun, type ChartThreeD, type ChartThreeDPictureOptions, type ChartThreeDRenderer, type ChartThreeDSeriesAxis, type ChartThreeDSurface, type ChartTrendline, type ChartType, type ChartexBoxSeries, type ChartexBoxWhisker, type ChartexGeography, type ChartexHistogramBinning, type ChartexRegionMap, type ChartexRegionMapColors, type ChartexRegionMapRow, type ChartexSunburst, type ChartexSunburstRow, type ChartexTreemap, type ChartexValueColorStop, type CjkFallback, type DecodedImageBudgetStrategy, type DimOptions, type DrawingMLCustomDashSegment, type Duotone, type EquationBranchFallback, 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 ImageResourceOptions, 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 ModelSource, type ModelSourceConfig, type ModelSourceConfigValue, type ModelSourceLoad, type ModelSourceModule, type ModelSourceModuleDescriptor, type ModelSourceTarget, 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 OoxmlUnsupportedContentDetails, type OpenedModelSource, type Paragraph, type PathCmd, type PatternFill, type PictureElement, type PptxComment, type PptxCommentAnchor, type PptxCommentReply, type PptxCommentSelectionContext, type PptxCommentsOptions, type PptxElementBounds, 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 SrcRect, type Stroke, type TabStop, type TableCell, type TableElement, type TableRow, type TextBody, type TextOutline, type TextRect, type TextRun, type TextRunCallback, type TextRunData, type TextSelectionContextOptions, TiffDecodeError, type TiffRenderOptions, type TiffRenderer, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type XlsxWorksheetLimits, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, isTiffDecodeError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|