@silurus/ooxml 0.81.0 → 0.82.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 +4 -8
- package/dist/assets/render-worker-7-Zr7fSw.js +10 -0
- package/dist/assets/{render-worker-C2ACcLes.js → render-worker-B5gsW6b5.js} +4 -4
- package/dist/assets/{render-worker-DtU8oQZ7.js → render-worker-Dw_wQRIh.js} +1 -1
- package/dist/{canvas-viewer-mechanics-CqxKRGCp.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
- package/dist/chart-ex.mjs +4 -4
- package/dist/comment-occurrence-C34fWs_F.js +6 -0
- package/dist/comment-ui-runtime-BAe30Ct9.js +112 -0
- package/dist/comment-ui-runtime-BUCj4hWn.js +171 -0
- package/dist/comment-ui-runtime-F4a3te6p.js +2 -0
- package/dist/comments-Cf9W7r3M.js +241 -0
- package/dist/{document-pull-client-Ux4a_ax8.js → document-pull-client-BCgmytqI.js} +2205 -2192
- package/dist/{docx-SEyQ4gS-.js → docx-wokGKYfi.js} +674 -249
- package/dist/docx.mjs +6 -5
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
- package/dist/highlight-rect-MaCt0om0.js +13 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-BBGvvwLt.js → line-distribute-iXsUCIH-.js} +2 -2
- package/dist/{line-metrics-Baz31mML.js → line-metrics-B3syvDn2.js} +52 -52
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +10 -10
- package/dist/{plot-area-frame-Dg1VIpUU.js → plot-area-frame-DHV02PJU.js} +591 -590
- package/dist/{pptx-5lQrMvMR.js → pptx-DU8L8I2T.js} +537 -243
- package/dist/pptx.mjs +6 -6
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
- package/dist/read-only-comment-margin-Dn2y55W6.js +189 -0
- package/dist/region-map.mjs +2 -2
- package/dist/{render-DEHjijQD.js → render-CenWM4g1.js} +1 -1
- package/dist/{render-worker-host-Dg_74V64.js → render-worker-host-BNENN3qP.js} +1 -1
- package/dist/{render-worker-host-B1nbV_k7.js → render-worker-host-BmH3kGSj.js} +1 -1
- package/dist/{render-worker-host-Bze5M6k5.js → render-worker-host-CmPBviYJ.js} +1 -1
- package/dist/{renderer-DuopJE1K.js → renderer-CYr9YTXM.js} +436 -435
- package/dist/{resource-measurement-DRLp4nFt.js → resource-measurement-CsW4_eYt.js} +2 -2
- package/dist/{session-CNVc3VJ4.js → session-Cky_swUj.js} +3 -3
- package/dist/{slide-pull-client-CzutXnGc.js → slide-pull-client-CqTVFb3W.js} +490 -383
- package/dist/source-key-BklvnEyQ.js +42 -0
- package/dist/{three-d-BYiWCNlz.js → three-d-7MaVzQuZ.js} +48 -47
- package/dist/three-d.mjs +324 -323
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +181 -19
- package/dist/types/index.d.ts +337 -26
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +84 -10
- package/dist/types/pptx.d.ts +130 -11
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/xlsx.d.ts +76 -10
- package/dist/units-BzZ0gAxs.js +4 -0
- package/dist/{worksheet-pull-client-Cxj3Ej0s.js → worksheet-pull-client-CYtwXP5D.js} +3 -3
- package/dist/{xlsx-Bl3TIEVu.js → xlsx-DlV37-0j.js} +429 -218
- package/dist/xlsx.mjs +6 -6
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-Cx5uR77k.js +0 -10
- package/dist/highlight-rect-BqcZMHUE.js +0 -48
- /package/dist/{mathjax-DJa-Q93p.js → mathjax-DwIrafQ6.js} +0 -0
- /package/dist/{renderer-module-contract-0bO_5SC0.js → renderer-module-contract-DLbb7zY0.js} +0 -0
- /package/dist/{transfer-D0U6Uhn4.js → transfer-R6NjgBKD.js} +0 -0
- /package/dist/{visible-index-DbDuGMCE.js → visible-index-BFE3PWiY.js} +0 -0
package/dist/types/math.d.ts
CHANGED
package/dist/types/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-qJPl2r8m.d.ts
|
|
2
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
3
|
interface MathRun {
|
|
4
4
|
kind: 'run';
|
|
@@ -1231,7 +1231,7 @@ interface ChartLegendEntryOverride {
|
|
|
1231
1231
|
fontBold?: boolean | null;
|
|
1232
1232
|
}
|
|
1233
1233
|
//#endregion
|
|
1234
|
-
//#region dist/.types-work/hyperlink-
|
|
1234
|
+
//#region dist/.types-work/hyperlink-CZoV-4B8.d.ts
|
|
1235
1235
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1236
1236
|
type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
|
|
1237
1237
|
interface OoxmlResourceUsageSnapshot {
|
|
@@ -1356,14 +1356,46 @@ type SlideElementOrigin = 'master' | 'layout' | 'slide';
|
|
|
1356
1356
|
interface SlideElementSource {
|
|
1357
1357
|
origin: SlideElementOrigin;
|
|
1358
1358
|
}
|
|
1359
|
+
type PptxCommentAnchor = Readonly<{
|
|
1360
|
+
type: 'slide';
|
|
1361
|
+
}> | Readonly<{
|
|
1362
|
+
type: 'drawingElement';
|
|
1363
|
+
elementId?: string;
|
|
1364
|
+
creationId?: string;
|
|
1365
|
+
}> | Readonly<{
|
|
1366
|
+
type: 'textRange';
|
|
1367
|
+
elementId?: string;
|
|
1368
|
+
start?: number;
|
|
1369
|
+
length?: number;
|
|
1370
|
+
}> | Readonly<{
|
|
1371
|
+
type: 'unknown';
|
|
1372
|
+
}>;
|
|
1359
1373
|
interface PptxComment {
|
|
1374
|
+
authorId?: number;
|
|
1375
|
+
modernAuthorId?: string;
|
|
1376
|
+
id?: string;
|
|
1377
|
+
index?: number;
|
|
1378
|
+
author?: string;
|
|
1379
|
+
date?: string;
|
|
1380
|
+
x?: number;
|
|
1381
|
+
y?: number;
|
|
1382
|
+
anchors?: readonly Readonly<PptxCommentAnchor>[];
|
|
1383
|
+
status?: 'active' | 'resolved' | 'closed';
|
|
1384
|
+
text: string;
|
|
1385
|
+
replies?: readonly Readonly<PptxCommentReply>[];
|
|
1386
|
+
}
|
|
1387
|
+
interface PptxCommentReply {
|
|
1388
|
+
id?: string;
|
|
1389
|
+
authorId?: string;
|
|
1360
1390
|
author?: string;
|
|
1361
1391
|
date?: string;
|
|
1392
|
+
status?: 'active' | 'resolved' | 'closed';
|
|
1362
1393
|
text: string;
|
|
1363
1394
|
}
|
|
1364
1395
|
type SlideElement = ShapeElement | PictureElement | TableElement | ChartElement | MediaElement;
|
|
1365
1396
|
interface MediaElement {
|
|
1366
1397
|
type: 'media';
|
|
1398
|
+
id?: string;
|
|
1367
1399
|
x: number;
|
|
1368
1400
|
y: number;
|
|
1369
1401
|
width: number;
|
|
@@ -1456,6 +1488,7 @@ interface Sp3d {
|
|
|
1456
1488
|
}
|
|
1457
1489
|
interface TableElement {
|
|
1458
1490
|
type: 'table';
|
|
1491
|
+
id?: string;
|
|
1459
1492
|
x: number;
|
|
1460
1493
|
y: number;
|
|
1461
1494
|
width: number;
|
|
@@ -1488,6 +1521,7 @@ interface TableCell {
|
|
|
1488
1521
|
}
|
|
1489
1522
|
interface ChartElement {
|
|
1490
1523
|
type: 'chart';
|
|
1524
|
+
id?: string;
|
|
1491
1525
|
x: number;
|
|
1492
1526
|
y: number;
|
|
1493
1527
|
width: number;
|
|
@@ -1499,6 +1533,7 @@ interface ChartElement {
|
|
|
1499
1533
|
}
|
|
1500
1534
|
interface PictureElement {
|
|
1501
1535
|
type: 'picture';
|
|
1536
|
+
id?: string;
|
|
1502
1537
|
x: number;
|
|
1503
1538
|
y: number;
|
|
1504
1539
|
width: number;
|
|
@@ -1621,7 +1656,8 @@ interface DocSettings {
|
|
|
1621
1656
|
adjustLineHeightInTable?: boolean;
|
|
1622
1657
|
}
|
|
1623
1658
|
interface DocRevision {
|
|
1624
|
-
kind: 'insertion' | 'deletion' | string;
|
|
1659
|
+
kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
|
|
1660
|
+
id?: string;
|
|
1625
1661
|
author?: string;
|
|
1626
1662
|
date?: string;
|
|
1627
1663
|
text: string;
|
|
@@ -1632,6 +1668,14 @@ interface DocComment {
|
|
|
1632
1668
|
initials?: string;
|
|
1633
1669
|
date?: string;
|
|
1634
1670
|
text: string;
|
|
1671
|
+
parentId?: string;
|
|
1672
|
+
resolved?: boolean;
|
|
1673
|
+
paragraphs?: string[];
|
|
1674
|
+
}
|
|
1675
|
+
interface DocxCommentMark {
|
|
1676
|
+
id: string;
|
|
1677
|
+
kind: 'rangeStart' | 'rangeEnd' | 'reference' | string;
|
|
1678
|
+
runIndex: number;
|
|
1635
1679
|
}
|
|
1636
1680
|
interface DocNote {
|
|
1637
1681
|
id: string;
|
|
@@ -1747,6 +1791,7 @@ interface DocParagraph {
|
|
|
1747
1791
|
tabStops: TabStop[];
|
|
1748
1792
|
runs: DocRun[];
|
|
1749
1793
|
bookmarks?: string[];
|
|
1794
|
+
commentMarks?: DocxCommentMark[];
|
|
1750
1795
|
shading?: string | null;
|
|
1751
1796
|
pageBreakBefore?: boolean;
|
|
1752
1797
|
contextualSpacing?: boolean;
|
|
@@ -1829,7 +1874,7 @@ interface NumberingInfo {
|
|
|
1829
1874
|
picBulletWidthPt?: number;
|
|
1830
1875
|
picBulletHeightPt?: number;
|
|
1831
1876
|
}
|
|
1832
|
-
type
|
|
1877
|
+
type DocRunContent = ({
|
|
1833
1878
|
type: 'text';
|
|
1834
1879
|
} & DocxTextRun) | ({
|
|
1835
1880
|
type: 'anchorHost';
|
|
@@ -1853,6 +1898,9 @@ type DocRun = ({
|
|
|
1853
1898
|
} | ({
|
|
1854
1899
|
type: 'ptab';
|
|
1855
1900
|
} & PTabRun);
|
|
1901
|
+
type DocRun = DocRunContent & {
|
|
1902
|
+
revision?: RunRevision;
|
|
1903
|
+
};
|
|
1856
1904
|
interface ChartRun {
|
|
1857
1905
|
chart: ChartModel;
|
|
1858
1906
|
widthPt: number;
|
|
@@ -2155,7 +2203,8 @@ interface NoteRef {
|
|
|
2155
2203
|
id: string;
|
|
2156
2204
|
}
|
|
2157
2205
|
interface RunRevision {
|
|
2158
|
-
kind: 'insertion' | 'deletion' | string;
|
|
2206
|
+
kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
|
|
2207
|
+
id?: string;
|
|
2159
2208
|
author?: string;
|
|
2160
2209
|
date?: string;
|
|
2161
2210
|
}
|
|
@@ -2279,18 +2328,27 @@ interface CellBorders {
|
|
|
2279
2328
|
insideH: BorderSpec | null;
|
|
2280
2329
|
insideV: BorderSpec | null;
|
|
2281
2330
|
}
|
|
2331
|
+
interface DocxStorySource {
|
|
2332
|
+
story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
|
|
2333
|
+
storyInstance: string;
|
|
2334
|
+
path: readonly number[];
|
|
2335
|
+
}
|
|
2282
2336
|
interface DocxTextRunInfo {
|
|
2283
|
-
source?: Readonly<
|
|
2284
|
-
story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
|
|
2285
|
-
storyInstance: string;
|
|
2286
|
-
path: readonly number[];
|
|
2287
|
-
}>;
|
|
2337
|
+
source?: Readonly<DocxStorySource>;
|
|
2288
2338
|
paragraphId?: string;
|
|
2339
|
+
sourceRunIndex?: number;
|
|
2340
|
+
direction?: 'ltr' | 'rtl';
|
|
2289
2341
|
text: string;
|
|
2290
2342
|
x: number;
|
|
2291
2343
|
y: number;
|
|
2292
2344
|
w: number;
|
|
2293
2345
|
h: number;
|
|
2346
|
+
highlightBounds?: Readonly<{
|
|
2347
|
+
x: number;
|
|
2348
|
+
y: number;
|
|
2349
|
+
width: number;
|
|
2350
|
+
height: number;
|
|
2351
|
+
}>;
|
|
2294
2352
|
fontSize: number;
|
|
2295
2353
|
font: string;
|
|
2296
2354
|
letterSpacingPx?: number;
|
|
@@ -2587,9 +2645,25 @@ interface DefinedName {
|
|
|
2587
2645
|
formula: string;
|
|
2588
2646
|
}
|
|
2589
2647
|
interface XlsxComment {
|
|
2648
|
+
kind?: 'note' | 'thread';
|
|
2590
2649
|
cellRef: string;
|
|
2650
|
+
id?: string;
|
|
2651
|
+
personId?: string;
|
|
2591
2652
|
author?: string;
|
|
2653
|
+
date?: string;
|
|
2654
|
+
rootText?: string;
|
|
2655
|
+
text: string;
|
|
2656
|
+
resolved?: boolean;
|
|
2657
|
+
replies?: XlsxCommentReply[];
|
|
2658
|
+
}
|
|
2659
|
+
interface XlsxCommentReply {
|
|
2660
|
+
id: string;
|
|
2661
|
+
parentId: string;
|
|
2662
|
+
personId: string;
|
|
2663
|
+
author?: string;
|
|
2664
|
+
date?: string;
|
|
2592
2665
|
text: string;
|
|
2666
|
+
resolved?: boolean;
|
|
2593
2667
|
}
|
|
2594
2668
|
interface DataValidation {
|
|
2595
2669
|
sqref: string;
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-qJPl2r8m.d.ts
|
|
2
2
|
type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
|
|
3
3
|
interface MathRun {
|
|
4
4
|
kind: 'run';
|
|
@@ -1248,12 +1248,12 @@ interface ChartRect {
|
|
|
1248
1248
|
h: number;
|
|
1249
1249
|
}
|
|
1250
1250
|
//#endregion
|
|
1251
|
-
//#region dist/.types-work/chart-ex-contract-
|
|
1251
|
+
//#region dist/.types-work/chart-ex-contract-Ba0xG5gE.d.ts
|
|
1252
1252
|
interface ChartExRenderer {
|
|
1253
1253
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1254
1254
|
}
|
|
1255
1255
|
//#endregion
|
|
1256
|
-
//#region dist/.types-work/mathjax-
|
|
1256
|
+
//#region dist/.types-work/mathjax-DwKoKmdb.d.ts
|
|
1257
1257
|
interface MathSvg {
|
|
1258
1258
|
svg: string;
|
|
1259
1259
|
widthEm: number;
|
|
@@ -1265,17 +1265,17 @@ interface MathRenderer {
|
|
|
1265
1265
|
mathMLToSvg(mathml: string): Promise<MathSvg>;
|
|
1266
1266
|
}
|
|
1267
1267
|
//#endregion
|
|
1268
|
-
//#region dist/.types-work/three-d-contract-
|
|
1268
|
+
//#region dist/.types-work/three-d-contract-D5bEzjMw.d.ts
|
|
1269
1269
|
interface ChartThreeDRenderer {
|
|
1270
1270
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1271
1271
|
}
|
|
1272
1272
|
//#endregion
|
|
1273
|
-
//#region dist/.types-work/region-map-contract-
|
|
1273
|
+
//#region dist/.types-work/region-map-contract-BFIR10oz.d.ts
|
|
1274
1274
|
interface ChartRegionMapRenderer {
|
|
1275
1275
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
1276
1276
|
}
|
|
1277
1277
|
//#endregion
|
|
1278
|
-
//#region dist/.types-work/hyperlink-
|
|
1278
|
+
//#region dist/.types-work/hyperlink-CZoV-4B8.d.ts
|
|
1279
1279
|
type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml';
|
|
1280
1280
|
type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
|
|
1281
1281
|
declare class OoxmlError extends Error {
|
|
@@ -1381,7 +1381,7 @@ type HyperlinkTarget = {
|
|
|
1381
1381
|
};
|
|
1382
1382
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1383
1383
|
//#endregion
|
|
1384
|
-
//#region dist/.types-work/find-highlight-
|
|
1384
|
+
//#region dist/.types-work/find-highlight-DdGGQ_H7.d.ts
|
|
1385
1385
|
interface TextSelectionContextOptions {
|
|
1386
1386
|
readonly maxTextCharacters?: number;
|
|
1387
1387
|
readonly maxRunLocators?: number;
|
|
@@ -1390,6 +1390,28 @@ interface ViewerContextMenuEvent<TContext> {
|
|
|
1390
1390
|
readonly originalEvent: MouseEvent;
|
|
1391
1391
|
getContext(): Promise<TContext | null>;
|
|
1392
1392
|
}
|
|
1393
|
+
interface ViewerCommentsOptions {
|
|
1394
|
+
readonly includeResolved?: boolean;
|
|
1395
|
+
}
|
|
1396
|
+
type ViewerCommentConnectorRoute = 'bezier' | 'orthogonal';
|
|
1397
|
+
type ViewerCommentConnectorStroke = 'solid' | 'dashed';
|
|
1398
|
+
interface ViewerCommentConnectorOptions {
|
|
1399
|
+
readonly route?: ViewerCommentConnectorRoute;
|
|
1400
|
+
readonly stroke?: ViewerCommentConnectorStroke;
|
|
1401
|
+
readonly color?: string;
|
|
1402
|
+
readonly activeColor?: string;
|
|
1403
|
+
}
|
|
1404
|
+
interface ViewerCommentMessageContext {
|
|
1405
|
+
readonly id?: string;
|
|
1406
|
+
readonly author?: string;
|
|
1407
|
+
readonly date?: string;
|
|
1408
|
+
readonly text: string;
|
|
1409
|
+
readonly status?: 'active' | 'resolved' | 'closed';
|
|
1410
|
+
}
|
|
1411
|
+
interface ViewerCommentThreadContext {
|
|
1412
|
+
readonly root: ViewerCommentMessageContext;
|
|
1413
|
+
readonly replies: readonly ViewerCommentMessageContext[];
|
|
1414
|
+
}
|
|
1393
1415
|
interface AutoResizeOptions {
|
|
1394
1416
|
pauseWhenHidden?: boolean;
|
|
1395
1417
|
}
|
|
@@ -1420,7 +1442,7 @@ interface FindHighlightColors {
|
|
|
1420
1442
|
active?: string;
|
|
1421
1443
|
}
|
|
1422
1444
|
//#endregion
|
|
1423
|
-
//#region dist/.types-work/pptx-
|
|
1445
|
+
//#region dist/.types-work/pptx-B0JHj0n1.d.ts
|
|
1424
1446
|
interface BlipBullet {
|
|
1425
1447
|
type: 'blip';
|
|
1426
1448
|
imagePath: string;
|
|
@@ -1471,14 +1493,46 @@ interface DimOptions {
|
|
|
1471
1493
|
color: string;
|
|
1472
1494
|
opacity: number;
|
|
1473
1495
|
}
|
|
1496
|
+
type PptxCommentAnchor = Readonly<{
|
|
1497
|
+
type: 'slide';
|
|
1498
|
+
}> | Readonly<{
|
|
1499
|
+
type: 'drawingElement';
|
|
1500
|
+
elementId?: string;
|
|
1501
|
+
creationId?: string;
|
|
1502
|
+
}> | Readonly<{
|
|
1503
|
+
type: 'textRange';
|
|
1504
|
+
elementId?: string;
|
|
1505
|
+
start?: number;
|
|
1506
|
+
length?: number;
|
|
1507
|
+
}> | Readonly<{
|
|
1508
|
+
type: 'unknown';
|
|
1509
|
+
}>;
|
|
1474
1510
|
interface PptxComment {
|
|
1511
|
+
authorId?: number;
|
|
1512
|
+
modernAuthorId?: string;
|
|
1513
|
+
id?: string;
|
|
1514
|
+
index?: number;
|
|
1475
1515
|
author?: string;
|
|
1476
1516
|
date?: string;
|
|
1517
|
+
x?: number;
|
|
1518
|
+
y?: number;
|
|
1519
|
+
anchors?: readonly Readonly<PptxCommentAnchor>[];
|
|
1520
|
+
status?: 'active' | 'resolved' | 'closed';
|
|
1521
|
+
text: string;
|
|
1522
|
+
replies?: readonly Readonly<PptxCommentReply>[];
|
|
1523
|
+
}
|
|
1524
|
+
interface PptxCommentReply {
|
|
1525
|
+
id?: string;
|
|
1526
|
+
authorId?: string;
|
|
1527
|
+
author?: string;
|
|
1528
|
+
date?: string;
|
|
1529
|
+
status?: 'active' | 'resolved' | 'closed';
|
|
1477
1530
|
text: string;
|
|
1478
1531
|
}
|
|
1479
1532
|
type SlideElement = ShapeElement | PictureElement | TableElement | ChartElement | MediaElement;
|
|
1480
1533
|
interface MediaElement {
|
|
1481
1534
|
type: 'media';
|
|
1535
|
+
id?: string;
|
|
1482
1536
|
x: number;
|
|
1483
1537
|
y: number;
|
|
1484
1538
|
width: number;
|
|
@@ -1571,6 +1625,7 @@ interface Sp3d {
|
|
|
1571
1625
|
}
|
|
1572
1626
|
interface TableElement {
|
|
1573
1627
|
type: 'table';
|
|
1628
|
+
id?: string;
|
|
1574
1629
|
x: number;
|
|
1575
1630
|
y: number;
|
|
1576
1631
|
width: number;
|
|
@@ -1603,6 +1658,7 @@ interface TableCell {
|
|
|
1603
1658
|
}
|
|
1604
1659
|
interface ChartElement {
|
|
1605
1660
|
type: 'chart';
|
|
1661
|
+
id?: string;
|
|
1606
1662
|
x: number;
|
|
1607
1663
|
y: number;
|
|
1608
1664
|
width: number;
|
|
@@ -1614,6 +1670,7 @@ interface ChartElement {
|
|
|
1614
1670
|
}
|
|
1615
1671
|
interface PictureElement {
|
|
1616
1672
|
type: 'picture';
|
|
1673
|
+
id?: string;
|
|
1617
1674
|
x: number;
|
|
1618
1675
|
y: number;
|
|
1619
1676
|
width: number;
|
|
@@ -1702,6 +1759,23 @@ interface PptxTextSelectionContext {
|
|
|
1702
1759
|
readonly maxTextCharacters: number;
|
|
1703
1760
|
readonly maxRunLocators: number;
|
|
1704
1761
|
}
|
|
1762
|
+
interface PptxCommentSelectionContext {
|
|
1763
|
+
readonly format: 'pptx';
|
|
1764
|
+
readonly kind: 'comment';
|
|
1765
|
+
readonly slideIndex: number;
|
|
1766
|
+
readonly commentIndex: number;
|
|
1767
|
+
readonly occurrenceId: string;
|
|
1768
|
+
readonly commentId?: string;
|
|
1769
|
+
readonly point?: Readonly<{
|
|
1770
|
+
x: number;
|
|
1771
|
+
y: number;
|
|
1772
|
+
}>;
|
|
1773
|
+
readonly thread: ViewerCommentThreadContext;
|
|
1774
|
+
readonly truncated: boolean;
|
|
1775
|
+
readonly truncationReasons: readonly ('text')[];
|
|
1776
|
+
readonly textCharacters: number;
|
|
1777
|
+
readonly maxTextCharacters: number;
|
|
1778
|
+
}
|
|
1705
1779
|
declare function readPptxTextSelectionContext(root: HTMLElement, selection: Selection | null, options?: TextSelectionContextOptions): PptxTextSelectionContext | null;
|
|
1706
1780
|
type PptxSelectionContextOptions = TextSelectionContextOptions;
|
|
1707
1781
|
interface PptxSlidePoint {
|
|
@@ -1743,7 +1817,14 @@ interface PptxElementContext {
|
|
|
1743
1817
|
readonly textCharacters: number;
|
|
1744
1818
|
readonly maxTextCharacters: number;
|
|
1745
1819
|
}
|
|
1746
|
-
|
|
1820
|
+
interface PptxElementBounds {
|
|
1821
|
+
readonly elementId: string;
|
|
1822
|
+
readonly elementIndex: number;
|
|
1823
|
+
readonly origin: SlideElementOrigin | 'unknown';
|
|
1824
|
+
readonly elementType: SlideElement['type'];
|
|
1825
|
+
readonly bounds: PptxElementContext['bounds'];
|
|
1826
|
+
}
|
|
1827
|
+
type PptxSelectionContext = PptxTextSelectionContext | PptxCommentSelectionContext | PptxElementContext;
|
|
1747
1828
|
type LoadOptions = LoadOptions$1 & {
|
|
1748
1829
|
mode?: 'main' | 'worker';
|
|
1749
1830
|
};
|
|
@@ -1791,6 +1872,7 @@ declare class PptxPresentation {
|
|
|
1791
1872
|
get slideHeight(): number;
|
|
1792
1873
|
get mode(): 'main' | 'worker';
|
|
1793
1874
|
getNotes(slideIndex: number): string | null;
|
|
1875
|
+
getComments(slideIndex: number): readonly Readonly<PptxComment>[];
|
|
1794
1876
|
isHidden(slideIndex: number): boolean;
|
|
1795
1877
|
private _partNames;
|
|
1796
1878
|
private _partIndex;
|
|
@@ -1800,6 +1882,7 @@ declare class PptxPresentation {
|
|
|
1800
1882
|
renderSlideToBitmap(slideIndex: number, opts?: RenderSlideToBitmapOptions): Promise<ImageBitmap>;
|
|
1801
1883
|
collectSlideRuns(slideIndex: number, width?: number): Promise<PptxTextRunInfo[]>;
|
|
1802
1884
|
getElementContextAt(slideIndex: number, point: PptxSlidePoint, options?: PptxElementContextOptions): Promise<PptxElementContext | null>;
|
|
1885
|
+
getElementBoundsByIds(slideIndex: number, elementIds: readonly string[]): Promise<readonly PptxElementBounds[]>;
|
|
1803
1886
|
getMedia(mediaPath: string): Promise<Blob>;
|
|
1804
1887
|
private _findMimeTypeForPath;
|
|
1805
1888
|
getImage(imagePath: string, mimeType: string): Promise<Blob>;
|
|
@@ -1909,6 +1992,12 @@ declare class PptxViewer implements ZoomableViewer {
|
|
|
1909
1992
|
private _resolveContextAt;
|
|
1910
1993
|
destroy(): void;
|
|
1911
1994
|
}
|
|
1995
|
+
interface PptxCommentsOptions extends ViewerCommentsOptions {
|
|
1996
|
+
readonly cards?: boolean;
|
|
1997
|
+
readonly side?: 'auto' | 'left' | 'right';
|
|
1998
|
+
readonly markers?: boolean;
|
|
1999
|
+
readonly connectors?: ViewerCommentConnectorOptions;
|
|
2000
|
+
}
|
|
1912
2001
|
interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dpr'>, LoadOptions {
|
|
1913
2002
|
width?: number;
|
|
1914
2003
|
gap?: number;
|
|
@@ -1918,6 +2007,7 @@ interface PptxScrollViewerOptions extends Pick<RenderSlideOptions, 'width' | 'dp
|
|
|
1918
2007
|
paddingRight?: number;
|
|
1919
2008
|
overscan?: number;
|
|
1920
2009
|
enableTextSelection?: boolean;
|
|
2010
|
+
comments?: boolean | PptxCommentsOptions;
|
|
1921
2011
|
enableElementSelection?: boolean;
|
|
1922
2012
|
elementHitTolerance?: number;
|
|
1923
2013
|
onSelectionContextChange?: (context: PptxSelectionContext | null) => void;
|
|
@@ -1952,7 +2042,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1952
2042
|
private _pendingScale;
|
|
1953
2043
|
private readonly _slots;
|
|
1954
2044
|
private readonly _free;
|
|
1955
|
-
private
|
|
2045
|
+
private _uniformSlideHeight;
|
|
1956
2046
|
private _lastRange;
|
|
1957
2047
|
private _lastTopIndex;
|
|
1958
2048
|
private _scrollListener;
|
|
@@ -1960,7 +2050,16 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1960
2050
|
private _selectionContextKey;
|
|
1961
2051
|
private _elementClickListener;
|
|
1962
2052
|
private _contextMenuListener;
|
|
2053
|
+
private _commentOutsidePointerListener;
|
|
1963
2054
|
private _elementContext;
|
|
2055
|
+
private _activeCommentId;
|
|
2056
|
+
private _activeCommentSlide;
|
|
2057
|
+
private _commentNavigationGeneration;
|
|
2058
|
+
private _commentUi;
|
|
2059
|
+
private _commentGeometryScheduled;
|
|
2060
|
+
private _commentGeometryFrame;
|
|
2061
|
+
private readonly _pendingCommentGeometry;
|
|
2062
|
+
private _hasComments;
|
|
1964
2063
|
private _elementHitGeneration;
|
|
1965
2064
|
private readonly _elementHitTolerance;
|
|
1966
2065
|
private _destroyed;
|
|
@@ -1983,6 +2082,14 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1983
2082
|
private _slideWidthPx;
|
|
1984
2083
|
private _slideHeightPx;
|
|
1985
2084
|
private _fitWidthPx;
|
|
2085
|
+
private _commentMarginExtent;
|
|
2086
|
+
private _hasCommentMargin;
|
|
2087
|
+
private _commentZoom;
|
|
2088
|
+
private _commentsEnabled;
|
|
2089
|
+
private _commentsOptions;
|
|
2090
|
+
private _commentSide;
|
|
2091
|
+
private _syncCommentMarginGeometry;
|
|
2092
|
+
private _presentationHasComments;
|
|
1986
2093
|
private _baseScale;
|
|
1987
2094
|
relayout(): void;
|
|
1988
2095
|
private _relayout;
|
|
@@ -1992,7 +2099,9 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
1992
2099
|
private _mediaOverscan;
|
|
1993
2100
|
private _pad;
|
|
1994
2101
|
private _padH;
|
|
2102
|
+
private _slideOffset;
|
|
1995
2103
|
private _slideIndexAtOffset;
|
|
2104
|
+
private _rangeAt;
|
|
1996
2105
|
private _range;
|
|
1997
2106
|
private _mediaRange;
|
|
1998
2107
|
private _rangeContains;
|
|
@@ -2026,6 +2135,11 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2026
2135
|
scrollToSlide(index: number, opts?: {
|
|
2027
2136
|
behavior?: 'auto' | 'smooth';
|
|
2028
2137
|
}): void;
|
|
2138
|
+
private _scrollToSlideCommentTarget;
|
|
2139
|
+
private _resolveSlideCommentElementBounds;
|
|
2140
|
+
goToComment(slideIndex: number, commentIndex: number, opts?: {
|
|
2141
|
+
behavior?: 'auto' | 'smooth';
|
|
2142
|
+
}): Promise<boolean>;
|
|
2029
2143
|
findText(query: string, opts?: FindMatchesOptions): Promise<FindMatch<PptxMatchLocation>[]>;
|
|
2030
2144
|
findNext(): Promise<FindMatch<PptxMatchLocation> | null>;
|
|
2031
2145
|
findPrev(): Promise<FindMatch<PptxMatchLocation> | null>;
|
|
@@ -2034,6 +2148,11 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2034
2148
|
private _collectSlideRuns;
|
|
2035
2149
|
private _redrawHighlights;
|
|
2036
2150
|
private _refreshFindRuns;
|
|
2151
|
+
private _redrawSlotComments;
|
|
2152
|
+
private _redrawSlotCommentConnectors;
|
|
2153
|
+
private _commitSlotComments;
|
|
2154
|
+
private _ensureSlotCommentAnchors;
|
|
2155
|
+
private _scheduleCommentGeometry;
|
|
2037
2156
|
private _redrawSlotHighlights;
|
|
2038
2157
|
private _measureForFind;
|
|
2039
2158
|
private _hyperlinkHandler;
|
|
@@ -2061,4 +2180,4 @@ interface PptxHighlightMatch {
|
|
|
2061
2180
|
type PptxHighlightColors = FindHighlightColors;
|
|
2062
2181
|
declare function buildPptxHighlightLayer(layer: HTMLDivElement, runs: PptxTextRunInfo[], matches: PptxHighlightMatch[], cssWidth: number, cssHeight: number, measureForFont: (font: string) => (s: string) => number, colors?: PptxHighlightColors): void;
|
|
2063
2182
|
//#endregion
|
|
2064
|
-
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, 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 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 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 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, type TileInfo, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
2183
|
+
export { type ArrowEnd, type AutoResizeOptions, type Bevel3d, type BlipBullet, type Bullet, type Camera3d, type ChartAreaGroupDecorations, type ChartBarGroupDecorations, 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 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 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, type TileInfo, type ViewerCommentConnectorOptions, type ViewerCommentConnectorRoute, type ViewerCommentConnectorStroke, type ViewerCommentMessageContext, type ViewerCommentThreadContext, type ViewerContextMenuEvent, type ZoomableViewer, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, isOoxmlDecodedImageLimitError, openExternalHyperlink, readPptxTextSelectionContext, renderSlide };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-qJPl2r8m.d.ts
|
|
2
2
|
interface Duotone {
|
|
3
3
|
clr1: string;
|
|
4
4
|
clr2: string;
|
|
@@ -938,7 +938,7 @@ interface ChartRect {
|
|
|
938
938
|
h: number;
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
|
-
//#region dist/.types-work/region-map-contract-
|
|
941
|
+
//#region dist/.types-work/region-map-contract-BFIR10oz.d.ts
|
|
942
942
|
interface ChartRegionMapRenderer {
|
|
943
943
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
944
944
|
}
|
package/dist/types/three-d.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region dist/.types-work/chart-
|
|
1
|
+
//#region dist/.types-work/chart-qJPl2r8m.d.ts
|
|
2
2
|
interface Duotone {
|
|
3
3
|
clr1: string;
|
|
4
4
|
clr2: string;
|
|
@@ -938,7 +938,7 @@ interface ChartRect {
|
|
|
938
938
|
h: number;
|
|
939
939
|
}
|
|
940
940
|
//#endregion
|
|
941
|
-
//#region dist/.types-work/three-d-contract-
|
|
941
|
+
//#region dist/.types-work/three-d-contract-D5bEzjMw.d.ts
|
|
942
942
|
interface ChartThreeDRenderer {
|
|
943
943
|
render(ctx: CanvasRenderingContext2D, chart: ChartModel, rect: ChartRect, ptToPx: number, shapeRotationDeg?: number): boolean;
|
|
944
944
|
}
|