@silurus/ooxml 0.79.0 → 0.79.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/dist/{canvas-viewer-mechanics-D9tsuHnG.js → canvas-viewer-mechanics-DJ9yfiLN.js} +1 -1
- package/dist/{dash-Cyc-sevN.js → dash-CMzZIDz_.js} +87 -49
- package/dist/{document-pull-client-YiU8M4LO.js → document-pull-client-DYoybVCn.js} +3 -3
- package/dist/{docx-a1UpmRf8.js → docx-CSk_-kj_.js} +5 -5
- package/dist/docx.mjs +3 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-pDqovJpT.js → line-distribute-CU7vu7XS.js} +1 -1
- package/dist/{line-metrics-DjKxiIUD.js → line-metrics-A77J_KRx.js} +2616 -2499
- package/dist/node.mjs +7 -7
- package/dist/{pptx-t5ABdzfd.js → pptx-CO1Ut97p.js} +6 -6
- package/dist/pptx.mjs +4 -4
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-BjIEuFIG.js → render-C5m7Ddwx.js} +1 -1
- package/dist/render-worker-host-BhMT5U73.js +27 -0
- package/dist/render-worker-host-DNMxGh5s.js +27 -0
- package/dist/render-worker-host-DWyg7wio.js +27 -0
- package/dist/{resource-measurement-D8EiTm_E.js → resource-measurement-COxqtfGk.js} +1 -1
- package/dist/{session-Bhe_eY-s.js → session-CJwZaquG.js} +2 -2
- package/dist/{slide-pull-client-BQ8gJPTq.js → slide-pull-client-CFHNk0ek.js} +4 -4
- package/dist/three-d.mjs +838 -570
- package/dist/types/docx.d.ts +72 -6
- package/dist/types/index.d.ts +80 -10
- package/dist/types/node.d.ts +70 -2
- package/dist/types/pptx.d.ts +72 -6
- package/dist/types/region-map.d.ts +68 -2
- package/dist/types/three-d.d.ts +68 -2
- package/dist/types/xlsx.d.ts +76 -6
- package/dist/{worksheet-pull-client-T0EzdEEQ.js → worksheet-pull-client-CziyJf24.js} +2 -2
- package/dist/{xlsx-CsDDMJIK.js → xlsx-DHQmjAfh.js} +944 -799
- package/dist/xlsx.mjs +4 -4
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-BB320snY.js +0 -27
- package/dist/render-worker-host-BjEPZBwf.js +0 -27
- package/dist/render-worker-host-hZ0o4OD7.js +0 -27
|
@@ -332,29 +332,52 @@ function v(e, t, n, r) {
|
|
|
332
332
|
}
|
|
333
333
|
//#endregion
|
|
334
334
|
//#region packages/core/src/units.ts
|
|
335
|
-
var y = 12700, b = 9525, x = 4 / 3, S = 91440, C = 45720
|
|
335
|
+
var y = 12700, b = 9525, x = 4 / 3, S = 91440, C = 45720;
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region packages/core/src/chart/axis-style.ts
|
|
338
|
+
function w(e, t) {
|
|
339
|
+
return e ? Math.max(.5, e / y) * t : 1;
|
|
340
|
+
}
|
|
336
341
|
function T(e, t, n) {
|
|
342
|
+
return {
|
|
343
|
+
color: e ? `#${e}` : "#aaa",
|
|
344
|
+
width: w(t, n)
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function E(e, t, n) {
|
|
348
|
+
return {
|
|
349
|
+
color: e ? `#${e}` : "#e0e0e0",
|
|
350
|
+
width: t ? w(t, n) : .5
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
function D(e) {
|
|
354
|
+
return e.catAxisCrossBetween !== "midCat";
|
|
355
|
+
}
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region packages/core/src/chart/text-elide.ts
|
|
358
|
+
var O = "…";
|
|
359
|
+
function k(e, t, n) {
|
|
337
360
|
if (t === "" || n <= 0) return "";
|
|
338
361
|
if (e.measureText(t).width <= n) return t;
|
|
339
|
-
if (e.measureText(
|
|
362
|
+
if (e.measureText(O).width > n) return "";
|
|
340
363
|
let r = 0, i = t.length - 1, a = 0;
|
|
341
364
|
for (; r <= i;) {
|
|
342
365
|
let o = r + i >> 1;
|
|
343
|
-
e.measureText(t.slice(0, o) +
|
|
366
|
+
e.measureText(t.slice(0, o) + O).width <= n ? (a = o, r = o + 1) : i = o - 1;
|
|
344
367
|
}
|
|
345
368
|
let o = a > 0 ? t.charCodeAt(a - 1) : 0;
|
|
346
|
-
return o >= 55296 && o <= 56319 && a--, t.slice(0, a) +
|
|
369
|
+
return o >= 55296 && o <= 56319 && a--, t.slice(0, a) + O;
|
|
347
370
|
}
|
|
348
371
|
//#endregion
|
|
349
372
|
//#region packages/core/src/chart/rich-data-label.ts
|
|
350
|
-
var
|
|
351
|
-
function
|
|
373
|
+
var A = 4096, j = 4, M = A;
|
|
374
|
+
function N(e, t, r, i) {
|
|
352
375
|
let a = [[]], o = 0, s = (e) => {
|
|
353
376
|
if (!e) return null;
|
|
354
377
|
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
355
378
|
return /^[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$/.test(t) ? `#${t}` : null;
|
|
356
379
|
};
|
|
357
|
-
outer: for (let c = 0; c < t.runs.length && c <
|
|
380
|
+
outer: for (let c = 0; c < t.runs.length && c < M; c++) {
|
|
358
381
|
let l = t.runs[c], u = n(l.fontSizeHpt, t.ptToPx) ?? r, d = l.fontFace?.trim().replaceAll("\"", ""), f = d && !d.startsWith("+") ? d : null, p = d && t.fontFamilyForFace ? t.fontFamilyForFace(d) : f ? `"${f}", Calibri, Arial, sans-serif` : t.fontFamily, m = `${l.bold ?? t.fallbackBold ? "bold " : ""}${u}px ${p}`, h = s(l.color) ?? i, g = "", _ = () => {
|
|
359
382
|
g &&= (e.font = m, a[a.length - 1].push({
|
|
360
383
|
text: g,
|
|
@@ -371,12 +394,12 @@ function k(e, t, r, i) {
|
|
|
371
394
|
}
|
|
372
395
|
v = !1;
|
|
373
396
|
let t = e === "\r" ? "\n" : e;
|
|
374
|
-
if (e === "\r" && (v = !0), o >=
|
|
397
|
+
if (e === "\r" && (v = !0), o >= A) {
|
|
375
398
|
_();
|
|
376
399
|
break outer;
|
|
377
400
|
}
|
|
378
401
|
if (o++, t === "\n") {
|
|
379
|
-
if (_(), a.length >=
|
|
402
|
+
if (_(), a.length >= j) break outer;
|
|
380
403
|
a.push([]);
|
|
381
404
|
} else g += t;
|
|
382
405
|
}
|
|
@@ -392,7 +415,7 @@ function k(e, t, r, i) {
|
|
|
392
415
|
height: c.reduce((e, t) => e + t, 0)
|
|
393
416
|
};
|
|
394
417
|
}
|
|
395
|
-
function
|
|
418
|
+
function P(e, t, n, r, i = "center", a = "middle") {
|
|
396
419
|
let o = a === "top" ? r : a === "bottom" ? r - t.height : r - t.height / 2;
|
|
397
420
|
for (let r = 0; r < t.lines.length; r++) {
|
|
398
421
|
let s = t.lines[r], c = t.lineWidths[r], l = i === "left" ? n : i === "right" ? n - c : n - c / 2, u = a === "top" ? o : a === "bottom" ? o + t.lineHeights[r] : o + t.lineHeights[r] / 2;
|
|
@@ -402,20 +425,35 @@ function A(e, t, n, r, i = "center", a = "middle") {
|
|
|
402
425
|
}
|
|
403
426
|
//#endregion
|
|
404
427
|
//#region packages/core/src/chart/data-label-content.ts
|
|
405
|
-
function
|
|
428
|
+
function F(e) {
|
|
406
429
|
if (e.customText) return e.customText;
|
|
407
430
|
let n = [];
|
|
408
|
-
|
|
431
|
+
if (e.showCategory && e.category && n.push(e.category), e.showSeries && e.seriesName && n.push(e.seriesName), e.showValue && e.sourceValue != null) {
|
|
432
|
+
let r = e.valueDivisor != null && Number.isFinite(e.valueDivisor) && e.valueDivisor > 0 ? e.valueDivisor : 1;
|
|
433
|
+
n.push(t(e.sourceValue / r, e.formatCode ?? null, e.date1904));
|
|
434
|
+
}
|
|
435
|
+
return e.showPercent && e.percentRatio != null && n.push(t(e.percentRatio, e.percentFormatCode ?? e.formatCode ?? "0%", e.date1904)), n.filter((e) => e !== "").join(e.separator ?? e.defaultSeparator ?? " ");
|
|
436
|
+
}
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region packages/core/src/chart/legend-frame.ts
|
|
439
|
+
function I(e, t, n, r) {
|
|
440
|
+
if (!(!t.legendFillColor && !t.legendLineColor)) {
|
|
441
|
+
if (e.save(), t.legendFillColor && (e.fillStyle = `#${t.legendFillColor}`, e.fillRect(n.x, n.y, n.w, n.h)), t.legendLineColor && n.w > 0 && n.h > 0) {
|
|
442
|
+
let i = w(t.legendLineWidthEmu, r);
|
|
443
|
+
e.strokeStyle = `#${t.legendLineColor}`, e.lineWidth = i, e.lineCap = "butt", e.lineJoin = "miter", e.setLineDash([]), e.strokeRect(n.x + i / 2, n.y + i / 2, Math.max(0, n.w - i), Math.max(0, n.h - i));
|
|
444
|
+
}
|
|
445
|
+
e.restore();
|
|
446
|
+
}
|
|
409
447
|
}
|
|
410
448
|
//#endregion
|
|
411
449
|
//#region packages/core/src/chart/data-label-layout.ts
|
|
412
|
-
var
|
|
450
|
+
var L = (e) => [
|
|
413
451
|
e.x,
|
|
414
452
|
e.y,
|
|
415
453
|
e.w,
|
|
416
454
|
e.h
|
|
417
455
|
].every(Number.isFinite) && e.w > 0 && e.h > 0;
|
|
418
|
-
function
|
|
456
|
+
function R(e, t) {
|
|
419
457
|
let n = Math.max(e.x, t.x), r = Math.max(e.y, t.y), i = Math.min(e.x + e.w, t.x + t.w), a = Math.min(e.y + e.h, t.y + t.h);
|
|
420
458
|
return i > n && a > r ? {
|
|
421
459
|
x: n,
|
|
@@ -424,11 +462,11 @@ function N(e, t) {
|
|
|
424
462
|
h: a - r
|
|
425
463
|
} : null;
|
|
426
464
|
}
|
|
427
|
-
function
|
|
465
|
+
function z(e, t, n) {
|
|
428
466
|
return Math.min(Math.max(e, t), n);
|
|
429
467
|
}
|
|
430
|
-
function
|
|
431
|
-
if (!
|
|
468
|
+
function B(t, n, r, i, a, o = n) {
|
|
469
|
+
if (!L(n) || !L(o) || !Number.isFinite(i) || i <= 0 || ![r.w, r.h].every(Number.isFinite) || r.w < 0 || r.h <= 0) return null;
|
|
432
470
|
let s = i * .5, c = n, l, u, d = !1, f = "center", p = "middle";
|
|
433
471
|
if (t.kind === "point") {
|
|
434
472
|
if (![
|
|
@@ -461,7 +499,7 @@ function F(t, n, r, i, a, o = n) {
|
|
|
461
499
|
t.rect.w,
|
|
462
500
|
t.rect.h
|
|
463
501
|
].every(Number.isFinite) || t.rect.w <= 0 || t.rect.h <= 0) return null;
|
|
464
|
-
let e =
|
|
502
|
+
let e = R(t.rect, n);
|
|
465
503
|
if (!e) return null;
|
|
466
504
|
let i = t.position ?? "ctr";
|
|
467
505
|
l = e.x + e.w / 2, u = e.y + e.h / 2, i === "inBase" ? (c = {
|
|
@@ -509,7 +547,7 @@ function F(t, n, r, i, a, o = n) {
|
|
|
509
547
|
].every(Number.isFinite) || t.rect.w < 0 || t.rect.h < 0) return null;
|
|
510
548
|
let e = t.position ?? "outEnd", i = e === "inBase" || e === "inEnd" || e === "ctr";
|
|
511
549
|
if (d = !i, i) {
|
|
512
|
-
let e =
|
|
550
|
+
let e = R(t.rect, n);
|
|
513
551
|
if (!e) return null;
|
|
514
552
|
c = e;
|
|
515
553
|
} else if (t.orientation === "vertical" && t.rect.w <= 0 || t.orientation === "horizontal" && t.rect.h <= 0) return null;
|
|
@@ -534,10 +572,10 @@ function F(t, n, r, i, a, o = n) {
|
|
|
534
572
|
let t = e(a, o, g);
|
|
535
573
|
if (!t) return null;
|
|
536
574
|
g = t, f = "center", p = "middle";
|
|
537
|
-
let r =
|
|
575
|
+
let r = R(t, n);
|
|
538
576
|
if (!r || (c = r, c.w < m || c.h < h)) return null;
|
|
539
577
|
}
|
|
540
|
-
let _ = Math.min(Math.max(m, g.w), c.w), v = Math.min(Math.max(h, g.h), c.h), y = _ / 2, b = v / 2, x = d || a ? g.x + g.w / 2 :
|
|
578
|
+
let _ = Math.min(Math.max(m, g.w), c.w), v = Math.min(Math.max(h, g.h), c.h), y = _ / 2, b = v / 2, x = d || a ? g.x + g.w / 2 : z(g.x + g.w / 2, c.x + y, c.x + c.w - y), S = d || a ? g.y + g.h / 2 : z(g.y + g.h / 2, c.y + b, c.y + c.h - b);
|
|
541
579
|
return [x, S].every(Number.isFinite) ? {
|
|
542
580
|
x: f === "left" ? x - y : f === "right" ? x + y : x,
|
|
543
581
|
y: p === "top" ? S - b : p === "bottom" ? S + b : S,
|
|
@@ -549,8 +587,8 @@ function F(t, n, r, i, a, o = n) {
|
|
|
549
587
|
rect: g
|
|
550
588
|
} : null;
|
|
551
589
|
}
|
|
552
|
-
var
|
|
553
|
-
function
|
|
590
|
+
var V = 4096, H = 4;
|
|
591
|
+
function U(e, t, n) {
|
|
554
592
|
if (n(e) <= t) return e;
|
|
555
593
|
if (n("…") > t) return "";
|
|
556
594
|
let r = 0, i = Array.from(e), a = i.length;
|
|
@@ -560,10 +598,10 @@ function R(e, t, n) {
|
|
|
560
598
|
}
|
|
561
599
|
return `${i.slice(0, r).join("")}…`;
|
|
562
600
|
}
|
|
563
|
-
function
|
|
601
|
+
function W(e) {
|
|
564
602
|
let t = "", n = 0;
|
|
565
603
|
for (let r of e) {
|
|
566
|
-
if (n >=
|
|
604
|
+
if (n >= V) return {
|
|
567
605
|
value: t,
|
|
568
606
|
truncated: !0
|
|
569
607
|
};
|
|
@@ -574,13 +612,13 @@ function z(e) {
|
|
|
574
612
|
truncated: !1
|
|
575
613
|
};
|
|
576
614
|
}
|
|
577
|
-
function
|
|
615
|
+
function G(e, t, n, r, i) {
|
|
578
616
|
if (![
|
|
579
617
|
t,
|
|
580
618
|
n,
|
|
581
619
|
r
|
|
582
620
|
].every(Number.isFinite) || t <= 0 || n < r || r <= 0) return [];
|
|
583
|
-
let a = Math.max(1, Math.min(
|
|
621
|
+
let a = Math.max(1, Math.min(H, Math.floor(n / r))), o = W(e), s = o.value.split(/\r?\n/), c = [], l = o.truncated, u = (e) => {
|
|
584
622
|
let n = [], r = "";
|
|
585
623
|
for (let a of Array.from(e)) {
|
|
586
624
|
let e = `${r}${a}`;
|
|
@@ -611,14 +649,14 @@ function B(e, t, n, r, i) {
|
|
|
611
649
|
}
|
|
612
650
|
l ||= c.length > a;
|
|
613
651
|
let d = c.slice(0, a);
|
|
614
|
-
return l && d.length > 0 && !d[d.length - 1].endsWith("…") && (d[d.length - 1] =
|
|
652
|
+
return l && d.length > 0 && !d[d.length - 1].endsWith("…") && (d[d.length - 1] = U(`${d[d.length - 1]}…`, t, i)), d;
|
|
615
653
|
}
|
|
616
654
|
//#endregion
|
|
617
655
|
//#region packages/core/src/draw/dash.ts
|
|
618
|
-
function
|
|
656
|
+
function K(e, t) {
|
|
619
657
|
return e.map((e) => e * t);
|
|
620
658
|
}
|
|
621
|
-
var
|
|
659
|
+
var q = {
|
|
622
660
|
dotted: [1, 2],
|
|
623
661
|
dashed: [3, 2],
|
|
624
662
|
dashSmallGap: [3, 1],
|
|
@@ -643,11 +681,11 @@ var H = {
|
|
|
643
681
|
2
|
|
644
682
|
]
|
|
645
683
|
};
|
|
646
|
-
function
|
|
647
|
-
let n =
|
|
648
|
-
return n ?
|
|
684
|
+
function J(e, t) {
|
|
685
|
+
let n = q[e];
|
|
686
|
+
return n ? K(n, t) : [];
|
|
649
687
|
}
|
|
650
|
-
var
|
|
688
|
+
var Y = {
|
|
651
689
|
hair: [1, 1],
|
|
652
690
|
dashed: [4, 3],
|
|
653
691
|
mediumDashed: [4, 3],
|
|
@@ -687,11 +725,11 @@ var W = {
|
|
|
687
725
|
3
|
|
688
726
|
]
|
|
689
727
|
};
|
|
690
|
-
function
|
|
691
|
-
let t =
|
|
692
|
-
return t ?
|
|
728
|
+
function X(e) {
|
|
729
|
+
let t = Y[e];
|
|
730
|
+
return t ? K(t, 1) : [];
|
|
693
731
|
}
|
|
694
|
-
var
|
|
732
|
+
var Z = {
|
|
695
733
|
dash: [6, 3],
|
|
696
734
|
dot: [1.5, 3],
|
|
697
735
|
dashDot: [
|
|
@@ -732,17 +770,17 @@ var K = {
|
|
|
732
770
|
2
|
|
733
771
|
]
|
|
734
772
|
};
|
|
735
|
-
function
|
|
736
|
-
let n =
|
|
737
|
-
return n ?
|
|
773
|
+
function Q(e, t) {
|
|
774
|
+
let n = Z[e];
|
|
775
|
+
return n ? K(n, t) : [];
|
|
738
776
|
}
|
|
739
|
-
function
|
|
740
|
-
let n =
|
|
777
|
+
function $(e, t) {
|
|
778
|
+
let n = Q(e, t);
|
|
741
779
|
if (n.length > 0) return n;
|
|
742
780
|
let r = e.trim().split(/[\s,]+/).map(Number);
|
|
743
|
-
return r.length >= 2 && r.every((e) => Number.isFinite(e) && e >= 0) && r.some((e) => e > 0) ? (r.length % 2 != 0 && r.pop(),
|
|
781
|
+
return r.length >= 2 && r.every((e) => Number.isFinite(e) && e >= 0) && r.some((e) => e > 0) ? (r.length % 2 != 0 && r.pop(), K(r, t)) : [];
|
|
744
782
|
}
|
|
745
|
-
var
|
|
783
|
+
var ee = {
|
|
746
784
|
dotted: [1.5, 3],
|
|
747
785
|
dottedHeavy: [1.5, 3],
|
|
748
786
|
dash: [6, 3],
|
|
@@ -778,9 +816,9 @@ var Y = {
|
|
|
778
816
|
3
|
|
779
817
|
]
|
|
780
818
|
};
|
|
781
|
-
function
|
|
782
|
-
let n =
|
|
783
|
-
return n ?
|
|
819
|
+
function te(e, t) {
|
|
820
|
+
let n = ee[e];
|
|
821
|
+
return n ? K(n, t) : [];
|
|
784
822
|
}
|
|
785
823
|
//#endregion
|
|
786
|
-
export {
|
|
824
|
+
export { g as A, a as C, _ as D, v as E, i as O, x as S, r as T, E as _, X as a, y as b, B as c, P as d, N as f, T as g, D as h, $ as i, p as k, I as l, w as m, Q as n, W as o, k as p, te as r, G as s, J as t, F as u, S as v, o as w, b as x, C as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $t as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, E as c, Ht as l, Jt as u, Kt as d, M as f, Mt as p, N as m, O as h, Ot as g, Pt as _, Qt as v, Rt as y, S as b, Tt as x, U as S, Ut as C, W as w, Xt as T, _ as E, _t as D, an as O, c as k, ct as A, d as j, en as M, f as ee, g as te, gt as N, h as ne, ht as re, in as ie, j as ae, k as P, l as oe, m as se, mt as ce, n as le, nn as ue, o as de, pt as fe, qt as pe, rn as me, s as he, t as ge, tn as _e, u as ve, v as ye, vt as be, w as xe, wt as Se, y as Ce, yt as we } from "./line-metrics-
|
|
1
|
+
import { $t as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, E as c, Ht as l, Jt as u, Kt as d, M as f, Mt as p, N as m, O as h, Ot as g, Pt as _, Qt as v, Rt as y, S as b, Tt as x, U as S, Ut as C, W as w, Xt as T, _ as E, _t as D, an as O, c as k, ct as A, d as j, en as M, f as ee, g as te, gt as N, h as ne, ht as re, in as ie, j as ae, k as P, l as oe, m as se, mt as ce, n as le, nn as ue, o as de, pt as fe, qt as pe, rn as me, s as he, t as ge, tn as _e, u as ve, v as ye, vt as be, w as xe, wt as Se, y as Ce, yt as we } from "./line-metrics-A77J_KRx.js";
|
|
2
2
|
import { c as Te, o as Ee, r as De, s as Oe } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
3
|
-
import { a as ke, c as F, d as Ae, f as je, i as Me, n as Ne, o as Pe, s as I, t as Fe, u as Ie } from "./line-distribute-
|
|
4
|
-
import { t as Le } from "./dash-
|
|
3
|
+
import { a as ke, c as F, d as Ae, f as je, i as Me, n as Ne, o as Pe, s as I, t as Fe, u as Ie } from "./line-distribute-CU7vu7XS.js";
|
|
4
|
+
import { t as Le } from "./dash-CMzZIDz_.js";
|
|
5
5
|
import { t as Re } from "./mathjax-Dqo857oC.js";
|
|
6
6
|
//#region packages/core/src/fonts/canvas-route.ts
|
|
7
7
|
function ze(e, t) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { B as t, Et as n, It as r, Lt as i, R as a, a as o, ht as s, it as c, kt as l, on as u, q as d, sn as f, z as p } from "./line-metrics-
|
|
3
|
-
import { C as m, E as h, S as g, T as _, _ as v, a as y, b, c as x, d as ee, f as te, g as ne, h as re, i as S, l as C, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as w, w as fe, x as pe, y as T } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { B as t, Et as n, It as r, Lt as i, R as a, a as o, ht as s, it as c, kt as l, on as u, q as d, sn as f, z as p } from "./line-metrics-A77J_KRx.js";
|
|
3
|
+
import { C as m, E as h, S as g, T as _, _ as v, a as y, b, c as x, d as ee, f as te, g as ne, h as re, i as S, l as C, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as w, w as fe, x as pe, y as T } from "./canvas-viewer-mechanics-DJ9yfiLN.js";
|
|
4
4
|
import { a as me, c as he, i as ge, o as _e, r as ve, s as ye, t as be } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
|
-
import { C as xe, S as Se, _ as E, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, l as Ae, m as je, n as D, o as Me, p as Ne, s as Pe, t as O, v as k, w as Fe, x as A, y as Ie } from "./document-pull-client-
|
|
6
|
-
import {
|
|
5
|
+
import { C as xe, S as Se, _ as E, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, l as Ae, m as je, n as D, o as Me, p as Ne, s as Pe, t as O, v as k, w as Fe, x as A, y as Ie } from "./document-pull-client-DYoybVCn.js";
|
|
6
|
+
import { S as j } from "./dash-CMzZIDz_.js";
|
|
7
7
|
import { n as Le, r as M, t as N } from "./highlight-rect-cCvVU-MW.js";
|
|
8
8
|
//#region packages/core/src/fonts/embedded.ts
|
|
9
9
|
function Re(e, t) {
|
|
@@ -344,7 +344,7 @@ var U = class e {
|
|
|
344
344
|
t = await e.arrayBuffer();
|
|
345
345
|
} else t = n;
|
|
346
346
|
t = h(await _(t, r.password)), c.setSourceBytes(t.byteLength), c.checkpoint("container ready");
|
|
347
|
-
let a = s === "worker" ? (await import("./render-worker-host-
|
|
347
|
+
let a = s === "worker" ? (await import("./render-worker-host-DWyg7wio.js")).createRenderWorker() : new Ue(), l;
|
|
348
348
|
try {
|
|
349
349
|
if (l = new e(a, s, o, r.wasmUrl), l._metrics = c, await l._parse(t, i.policy, s === "worker" ? !!r.useGoogleFonts : !1, r.workerTimeoutMs, (e) => c.observeUsage(e)), s === "worker" && l._mode === "main" && (c.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), r.math && l._mode === "worker" && console.warn("[ooxml] the math engine is unavailable in mode: 'worker'; equations will be skipped. Use mode: 'main' for documents with equations."), r.threeD && l._mode === "worker" && console.warn("[ooxml] the 3-D chart addon is unavailable in mode: 'worker'; charts use their 2-D family fallback. Use mode: 'main' for authored 3-D charts."), l._threeD = l._mode === "worker" ? void 0 : r.threeD, r.regionMap && l._mode === "worker" && console.warn("[ooxml] the Region Map addon is unavailable in mode: 'worker'; geospatial charts use the unsupported-chart placeholder. Use mode: 'main' for Region Maps."), l._regionMap = l._mode === "worker" ? void 0 : r.regionMap, l._mode === "main" && r.useGoogleFonts && l._document && (l._googleFontFaces = await ge(Ne(l._document), De)), l._mode === "main" && l._document?.embeddedFonts?.length) {
|
|
350
350
|
let e = l;
|
package/dist/docx.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as e, Lt as t, a as n, on as r, sn as i } from "./line-metrics-
|
|
2
|
-
import { w as a } from "./canvas-viewer-mechanics-
|
|
3
|
-
import { a as o, c as s, i as c, n as l, o as u, r as d, s as f } from "./docx-
|
|
1
|
+
import { It as e, Lt as t, a as n, on as r, sn as i } from "./line-metrics-A77J_KRx.js";
|
|
2
|
+
import { w as a } from "./canvas-viewer-mechanics-DJ9yfiLN.js";
|
|
3
|
+
import { a as o, c as s, i as c, n as l, o as u, r as d, s as f } from "./docx-CSk_-kj_.js";
|
|
4
4
|
export { s as DocxDocument, d as DocxScrollViewer, c as DocxViewer, e as OoxmlDecodedImageLimitError, r as OoxmlError, i as OoxmlResourceLimitError, a as autoResize, u as buildDocxHighlightLayer, f as buildDocxTextLayer, t as isOoxmlDecodedImageLimitError, l as noteText, n as openExternalHyperlink, o as readDocxTextSelectionContext };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./docx-
|
|
2
|
-
import { t } from "./xlsx-
|
|
3
|
-
import { t as n } from "./pptx-
|
|
1
|
+
import { t as e } from "./docx-CSk_-kj_.js";
|
|
2
|
+
import { t } from "./xlsx-DHQmjAfh.js";
|
|
3
|
+
import { t as n } from "./pptx-CO1Ut97p.js";
|
|
4
4
|
export { e as docx, n as pptx, t as xlsx };
|