@silurus/ooxml 0.85.0 → 0.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/dist/assets/{render-worker-DnU-PxZ1.js → render-worker-CtLMFj9r.js} +1 -1
- package/dist/{canvas-viewer-mechanics-C-yTGbFC.js → canvas-viewer-mechanics-CfRzOhz5.js} +2 -2
- package/dist/{document-pull-client-BdYrjAep.js → document-pull-client-BkHHIdR4.js} +3 -3
- package/dist/{docx-qK0Qmyey.js → docx-_uelcAui.js} +27 -8
- package/dist/docx.mjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/node.mjs +1 -1
- package/dist/{pptx-DxZwhOWr.js → pptx-WpBbS0mq.js} +7 -3
- package/dist/pptx.mjs +2 -2
- package/dist/{render-worker-host-GZ7ez-l3.js → render-worker-host-CBVe8aeD.js} +1 -1
- package/dist/types/docx.d.ts +4 -2
- package/dist/types/index.d.ts +7 -4
- package/dist/types/pptx.d.ts +3 -2
- package/dist/types/xlsx.d.ts +2 -2
- package/dist/{xlsx-57OZsbD9.js → xlsx-Bd16V4Xx.js} +1 -1
- package/dist/xlsx.mjs +2 -2
- package/package.json +1 -1
|
@@ -818,12 +818,12 @@ function Ve(e) {
|
|
|
818
818
|
for (let t of J) if (t > e + Y) return t;
|
|
819
819
|
return J[J.length - 1];
|
|
820
820
|
}
|
|
821
|
-
function He(e) {
|
|
821
|
+
function He(e, t = J[0]) {
|
|
822
822
|
for (let t = J.length - 1; t >= 0; t--) {
|
|
823
823
|
let n = J[t];
|
|
824
824
|
if (n < e - Y) return n;
|
|
825
825
|
}
|
|
826
|
-
return J[0];
|
|
826
|
+
return Math.min(t, J[0]);
|
|
827
827
|
}
|
|
828
828
|
function Ue(e, t, n) {
|
|
829
829
|
return e < t ? t : e > n ? n : e;
|
|
@@ -8302,7 +8302,7 @@ function Dd(e) {
|
|
|
8302
8302
|
let d = s.kind === "body" ? a.get(s.id) : void 0;
|
|
8303
8303
|
if (s.kind === "body") {
|
|
8304
8304
|
if (!d) throw new V("INVALID_REFERENCE", `${e.id} references a body flow domain without a section region`);
|
|
8305
|
-
if (e.flowBounds.yPt + e.flowBounds.heightPt
|
|
8305
|
+
if (!pd(e.flowBounds.yPt + e.flowBounds.heightPt, d.blockEndPt)) throw new V("BOTTOM_MARGIN_INVASION", `${e.id} crosses logical block end`);
|
|
8306
8306
|
}
|
|
8307
8307
|
if (!(d ? vd(d.blockStartPt, d.blockEndPt, e.flowBounds) && (e.kind === "table" || _d(s.logicalBounds, e.flowBounds)) : e.kind === "table" ? yd(s.logicalBounds, e.flowBounds) : gd(s.logicalBounds, e.flowBounds))) throw new V("FLOW_DOMAIN_INVASION", `${e.id} crosses flow domain ${s.id}`);
|
|
8308
8308
|
c.push(e);
|
|
@@ -19296,8 +19296,8 @@ function* Iy(e, t, n, r, i, a, o) {
|
|
|
19296
19296
|
}) : E(c.layout, a.availableBounds.widthPt), f = Object.freeze({
|
|
19297
19297
|
reservePt: d.reservePt,
|
|
19298
19298
|
chargePt: c.blockExtentPt + d.reservePt
|
|
19299
|
-
}), m = /* @__PURE__ */ new Set();
|
|
19300
|
-
for (; !c.requiresFreshFlowRegion && c.blockExtentPt + d.reservePt
|
|
19299
|
+
}), m = /* @__PURE__ */ new Set(), h = (e, t) => e <= t || e - t <= 2 ** -52 * Math.max(1, Math.abs(e), Math.abs(t));
|
|
19300
|
+
for (; !c.requiresFreshFlowRegion && !h(c.blockExtentPt + d.reservePt, a.availableBounds.heightPt);) {
|
|
19301
19301
|
let e = JSON.stringify({
|
|
19302
19302
|
advancePt: c.blockExtentPt,
|
|
19303
19303
|
nextCursor: c.nextCursor ?? null,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { B as t, R as n, W as r, Xt as i, a, et as o, on as s, pt as c, sn as l, ut as u, vt as d, z as f } from "./line-metrics-u87yCAfV.js";
|
|
3
|
-
import { C as p, D 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 fe, w as pe, x as me, y as he } from "./canvas-viewer-mechanics-
|
|
3
|
+
import { C as p, D 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 fe, w as pe, x as me, y as he } from "./canvas-viewer-mechanics-CfRzOhz5.js";
|
|
4
4
|
import { a as ge, i as _e, t as ve } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
5
|
import { c as ye, i as be, l as xe, n as Se, o as w, r as Ce, s as we, t as Te } from "./dom-interaction-boundary-CMDDgICk.js";
|
|
6
|
-
import { A as Ee, C as T, D as E, E as De, O as D, S as Oe, T as O, _ as ke, a as Ae, b as je, c as Me, d as Ne, f as Pe, g as Fe, h as Ie, j as Le, k as Re, l as ze, m as Be, n as k, o as Ve, p as He, s as Ue, t as A, v as We, w as Ge, x as Ke, y as qe } from "./document-pull-client-
|
|
6
|
+
import { A as Ee, C as T, D as E, E as De, O as D, S as Oe, T as O, _ as ke, a as Ae, b as je, c as Me, d as Ne, f as Pe, g as Fe, h as Ie, j as Le, k as Re, l as ze, m as Be, n as k, o as Ve, p as He, s as Ue, t as A, v as We, w as Ge, x as Ke, y as qe } from "./document-pull-client-BkHHIdR4.js";
|
|
7
7
|
import { l as Je, s as Ye } from "./pixel-budget-Dgjw269h.js";
|
|
8
8
|
import { a as j } from "./units-EJdC96r6.js";
|
|
9
9
|
import { i as Xe, s as Ze } from "./raster-target-whZhvVMt.js";
|
|
@@ -553,7 +553,7 @@ var J = class e {
|
|
|
553
553
|
t = await e.arrayBuffer();
|
|
554
554
|
} else t = r;
|
|
555
555
|
t = m(await h(t, i.password)), c.setSourceBytes(t.byteLength), c.checkpoint("container ready");
|
|
556
|
-
let n = s === "worker" ? (await import("./render-worker-host-
|
|
556
|
+
let n = s === "worker" ? (await import("./render-worker-host-CBVe8aeD.js")).createRenderWorker() : new at(), l = s === "worker" ? Qe(i) : void 0, u = s === "worker" && !!i.progressiveLayout, d;
|
|
557
557
|
try {
|
|
558
558
|
d = new e(n, s, o, i.wasmUrl), d._metrics = c;
|
|
559
559
|
let r = E(d), f = O(i.currentDate, r.defaultCurrentDateMs, i.showTrackedChanges === !0);
|
|
@@ -2051,11 +2051,20 @@ var cn = class e {
|
|
|
2051
2051
|
let t = this._commentZoom(), n = `calc(100% + ${nn * t}px)`;
|
|
2052
2052
|
e.style.left = this._commentSide() === "right" ? n : "", e.style.right = this._commentSide() === "left" ? n : "", e.style.width = `${280 * t}px`, e.style.fontSize = `${rn}px`, e.dataset.ooxmlCommentZoom = String(t);
|
|
2053
2053
|
}
|
|
2054
|
+
_widestPageWidthPt() {
|
|
2055
|
+
if (!this._doc) return 0;
|
|
2056
|
+
let e = 0, t = this._presentedPageCount || this._doc.pageCount;
|
|
2057
|
+
for (let n = 0; n < t; n++) {
|
|
2058
|
+
let t = this._doc.pageSize(n).widthPt;
|
|
2059
|
+
t > e && (e = t);
|
|
2060
|
+
}
|
|
2061
|
+
return e;
|
|
2062
|
+
}
|
|
2054
2063
|
_baseScale() {
|
|
2055
2064
|
if (!this._doc || this._doc.pageCount === 0) return 0;
|
|
2056
2065
|
let e = this._fitWidthPx();
|
|
2057
2066
|
if (e <= 0) return 0;
|
|
2058
|
-
let t = this.
|
|
2067
|
+
let t = this._widestPageWidthPt();
|
|
2059
2068
|
return t <= 0 ? 0 : e / (t * j);
|
|
2060
2069
|
}
|
|
2061
2070
|
relayout() {
|
|
@@ -2063,7 +2072,13 @@ var cn = class e {
|
|
|
2063
2072
|
}
|
|
2064
2073
|
_relayout(e) {
|
|
2065
2074
|
if (this._doc) {
|
|
2066
|
-
if (this._doc.layoutComplete !== !1 && this._pendingLayoutPublication === null && (this._presentedPageCount = this._doc.pageCount),
|
|
2075
|
+
if (this._doc.layoutComplete !== !1 && this._pendingLayoutPublication === null && (this._presentedPageCount = this._doc.pageCount), this._scaleEstablished) {
|
|
2076
|
+
let e = this._baseScale();
|
|
2077
|
+
if (e > 0 && e !== this._prevBase) {
|
|
2078
|
+
let t = this._prevBase > 0 ? this._scale / this._prevBase : 1;
|
|
2079
|
+
this._prevBase = e, this.setScale(e * t);
|
|
2080
|
+
}
|
|
2081
|
+
} else {
|
|
2067
2082
|
let e = this._baseScale();
|
|
2068
2083
|
if (e > 0) {
|
|
2069
2084
|
if (this._scale = e, this._prevBase = e, this._lastFitWidth = this._fitWidthPx(), this._scaleEstablished = !0, this._pendingScale !== null) {
|
|
@@ -2302,7 +2317,7 @@ var cn = class e {
|
|
|
2302
2317
|
}
|
|
2303
2318
|
}
|
|
2304
2319
|
setScale(e) {
|
|
2305
|
-
let t = this.
|
|
2320
|
+
let t = this._effectiveZoomMin(), n = this._opts.zoomMax ?? 4, r = Math.min(n, Math.max(t, e)), i = this._pendingZoomAnchor;
|
|
2306
2321
|
if (this._pendingZoomAnchor = null, !this._doc || this._doc.pageCount === 0 || !this._scaleEstablished) {
|
|
2307
2322
|
this._pendingScale = r;
|
|
2308
2323
|
return;
|
|
@@ -2328,7 +2343,11 @@ var cn = class e {
|
|
|
2328
2343
|
this.setScale(fe(this.getScale()));
|
|
2329
2344
|
}
|
|
2330
2345
|
zoomOut() {
|
|
2331
|
-
this.setScale(he(this.getScale()));
|
|
2346
|
+
this.setScale(he(this.getScale(), this._effectiveZoomMin()));
|
|
2347
|
+
}
|
|
2348
|
+
_effectiveZoomMin() {
|
|
2349
|
+
let e = this._opts.zoomMin ?? .1;
|
|
2350
|
+
return this._scaleEstablished && this._prevBase > 0 ? Math.min(e, this._prevBase) : e;
|
|
2332
2351
|
}
|
|
2333
2352
|
fitWidth() {
|
|
2334
2353
|
this._fit("width");
|
|
@@ -2339,7 +2358,7 @@ var cn = class e {
|
|
|
2339
2358
|
_fit(e) {
|
|
2340
2359
|
if (!this._doc || this._doc.pageCount === 0) return;
|
|
2341
2360
|
let t = this._doc.pageSize(0), n = v({
|
|
2342
|
-
contentWidth: t.widthPt * j,
|
|
2361
|
+
contentWidth: (e === "width" ? this._widestPageWidthPt() : t.widthPt) * j,
|
|
2343
2362
|
contentHeight: t.heightPt * j,
|
|
2344
2363
|
containerWidth: this._fitWidthPx(),
|
|
2345
2364
|
containerHeight: this._scrollHost.clientHeight
|
package/dist/docx.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, on as t, sn as n } from "./line-metrics-u87yCAfV.js";
|
|
2
|
-
import { T as r } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { T as r } from "./canvas-viewer-mechanics-CfRzOhz5.js";
|
|
3
3
|
import { l as i, s as a } from "./pixel-budget-Dgjw269h.js";
|
|
4
4
|
import { i as o, s } from "./raster-target-whZhvVMt.js";
|
|
5
|
-
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./docx-
|
|
5
|
+
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./docx-_uelcAui.js";
|
|
6
6
|
import { n as g, r as _ } from "./comments-Brfxa3hQ.js";
|
|
7
7
|
export { l as DocxDocument, m as DocxScrollViewer, u as DocxViewer, a as OoxmlDecodedImageLimitError, t as OoxmlError, n as OoxmlResourceLimitError, o as TiffDecodeError, r as autoResize, p as buildDocxHighlightLayer, h as buildDocxTextLayer, i as isOoxmlDecodedImageLimitError, s as isTiffDecodeError, f as noteText, e as openExternalHyperlink, c as readDocxTextSelectionContext, g as resolveCommentAnchorRuns, _ as resolveDocxCommentThreads, d as resolveRevisionAnchorRuns };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./xlsx-
|
|
2
|
-
import { t } from "./pptx-
|
|
3
|
-
import { t as n } from "./docx-
|
|
1
|
+
import { t as e } from "./xlsx-Bd16V4Xx.js";
|
|
2
|
+
import { t } from "./pptx-WpBbS0mq.js";
|
|
3
|
+
import { t as n } from "./docx-_uelcAui.js";
|
|
4
4
|
export { n as docx, t as pptx, e as xlsx };
|
package/dist/node.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { t as e } from "./chunk-DmhlhrBa.js";
|
|
|
2
2
|
import { t } from "./slide-pull-client-8i8C4VyD.js";
|
|
3
3
|
import { B as n, F as r, G as i, Gt as a, H as o, I as s, K as c, P as l, R as u, U as d, Wt as f, Xt as p, pt as m, q as h, sn as g, ut as _ } from "./line-metrics-u87yCAfV.js";
|
|
4
4
|
import { t as ee } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
|
-
import { a as te, c as ne, i as re, l as ie, r as ae, u as oe } from "./document-pull-client-
|
|
5
|
+
import { a as te, c as ne, i as re, l as ie, r as ae, u as oe } from "./document-pull-client-BkHHIdR4.js";
|
|
6
6
|
import { l as se, s as ce } from "./pixel-budget-Dgjw269h.js";
|
|
7
7
|
import { t as le } from "./transfer-mIj7E7NB.js";
|
|
8
8
|
import { a as ue, c as de, d as fe, l as pe, o as me, r as he, s as ge, t as _e, u as ve } from "./worksheet-pull-client-Btydoxto.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./slide-pull-client-8i8C4VyD.js";
|
|
3
3
|
import { B as p, G as m, R as h, W as g, Xt as _, a as v, et as y, on as b, pt as x, qt as S, sn as C, tt as w, ut as ee, vt as te, z as ne } from "./line-metrics-u87yCAfV.js";
|
|
4
|
-
import { C as re, D as ie, E as ae, S as oe, T as se, _ as ce, a as T, b as le, c as E, d as ue, f as de, g as fe, h as pe, i as D, l as O, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, v as xe, w as Se, x as Ce, y as we } from "./canvas-viewer-mechanics-
|
|
4
|
+
import { C as re, D as ie, E as ae, S as oe, T as se, _ as ce, a as T, b as le, c as E, d as ue, f as de, g as fe, h as pe, i as D, l as O, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, v as xe, w as Se, x as Ce, y as we } from "./canvas-viewer-mechanics-CfRzOhz5.js";
|
|
5
5
|
import { a as Te, i as k, n as Ee, t as De } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
6
6
|
import { a as A, c as Oe, i as ke, l as j, n as Ae, r as je, t as Me } from "./dom-interaction-boundary-CMDDgICk.js";
|
|
7
7
|
import { l as Ne, s as Pe } from "./pixel-budget-Dgjw269h.js";
|
|
@@ -2535,7 +2535,7 @@ var $ = 440, Xt = 20, Zt = Symbol("PptxScrollViewer.borrowedPresentation"), Qt =
|
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
2537
|
setScale(e) {
|
|
2538
|
-
let t = this.
|
|
2538
|
+
let t = this._effectiveZoomMin(), n = this._opts.zoomMax ?? 4, r = Math.min(n, Math.max(t, e)), i = this._pendingZoomAnchor;
|
|
2539
2539
|
if (this._pendingZoomAnchor = null, !this._pres || this._pres.slideCount === 0 || !this._scaleEstablished) {
|
|
2540
2540
|
this._pendingScale = r;
|
|
2541
2541
|
return;
|
|
@@ -2561,7 +2561,11 @@ var $ = 440, Xt = 20, Zt = Symbol("PptxScrollViewer.borrowedPresentation"), Qt =
|
|
|
2561
2561
|
this.setScale(xe(this.getScale()));
|
|
2562
2562
|
}
|
|
2563
2563
|
zoomOut() {
|
|
2564
|
-
this.setScale(we(this.getScale()));
|
|
2564
|
+
this.setScale(we(this.getScale(), this._effectiveZoomMin()));
|
|
2565
|
+
}
|
|
2566
|
+
_effectiveZoomMin() {
|
|
2567
|
+
let e = this._opts.zoomMin ?? .1;
|
|
2568
|
+
return this._scaleEstablished && this._prevBase > 0 ? Math.min(e, this._prevBase) : e;
|
|
2565
2569
|
}
|
|
2566
2570
|
fitWidth() {
|
|
2567
2571
|
this._fit("width");
|
package/dist/pptx.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as e } from "./slide-pull-client-8i8C4VyD.js";
|
|
2
2
|
import { a as t, on as n, sn as r } from "./line-metrics-u87yCAfV.js";
|
|
3
|
-
import { T as i } from "./canvas-viewer-mechanics-
|
|
3
|
+
import { T as i } from "./canvas-viewer-mechanics-CfRzOhz5.js";
|
|
4
4
|
import { l as a, s as o } from "./pixel-budget-Dgjw269h.js";
|
|
5
5
|
import { i as s, s as c } from "./raster-target-whZhvVMt.js";
|
|
6
|
-
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./pptx-
|
|
6
|
+
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./pptx-WpBbS0mq.js";
|
|
7
7
|
export { o as OoxmlDecodedImageLimitError, n as OoxmlError, r as OoxmlResourceLimitError, l as PptxPresentation, d as PptxScrollViewer, p as PptxViewer, s as TiffDecodeError, i as autoResize, f as buildPptxHighlightLayer, m as buildPptxTextLayer, a as isOoxmlDecodedImageLimitError, c as isTiffDecodeError, t as openExternalHyperlink, u as readPptxTextSelectionContext, e as renderSlide };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region packages/docx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-CtLMFj9r.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/docx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|
package/dist/types/docx.d.ts
CHANGED
|
@@ -1204,7 +1204,7 @@ type HyperlinkTarget = {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1206
1206
|
//#endregion
|
|
1207
|
-
//#region dist/.types-work/find-highlight-
|
|
1207
|
+
//#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
|
|
1208
1208
|
interface TextSelectionContextOptions {
|
|
1209
1209
|
readonly maxTextCharacters?: number;
|
|
1210
1210
|
readonly maxRunLocators?: number;
|
|
@@ -2012,7 +2012,7 @@ interface RenderPageOptions {
|
|
|
2012
2012
|
showTrackedChanges?: boolean;
|
|
2013
2013
|
}
|
|
2014
2014
|
//#endregion
|
|
2015
|
-
//#region dist/.types-work/docx-
|
|
2015
|
+
//#region dist/.types-work/docx-CuUWjsKl.d.ts
|
|
2016
2016
|
interface CommentAnchorRange {
|
|
2017
2017
|
readonly commentId: string;
|
|
2018
2018
|
readonly source: Readonly<DocxStorySource>;
|
|
@@ -2468,6 +2468,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2468
2468
|
private _commentsOptions;
|
|
2469
2469
|
private _commentSide;
|
|
2470
2470
|
private _syncCommentMarginGeometry;
|
|
2471
|
+
private _widestPageWidthPt;
|
|
2471
2472
|
private _baseScale;
|
|
2472
2473
|
relayout(): void;
|
|
2473
2474
|
private _relayout;
|
|
@@ -2499,6 +2500,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2499
2500
|
getScale(): number;
|
|
2500
2501
|
zoomIn(): void;
|
|
2501
2502
|
zoomOut(): void;
|
|
2503
|
+
private _effectiveZoomMin;
|
|
2502
2504
|
fitWidth(): void;
|
|
2503
2505
|
fitPage(): void;
|
|
2504
2506
|
private _fit;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1411,7 +1411,7 @@ type HyperlinkTarget = {
|
|
|
1411
1411
|
};
|
|
1412
1412
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1413
1413
|
//#endregion
|
|
1414
|
-
//#region dist/.types-work/find-highlight-
|
|
1414
|
+
//#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
|
|
1415
1415
|
interface TextSelectionContextOptions {
|
|
1416
1416
|
readonly maxTextCharacters?: number;
|
|
1417
1417
|
readonly maxRunLocators?: number;
|
|
@@ -2219,7 +2219,7 @@ interface RenderPageOptions {
|
|
|
2219
2219
|
showTrackedChanges?: boolean;
|
|
2220
2220
|
}
|
|
2221
2221
|
//#endregion
|
|
2222
|
-
//#region dist/.types-work/docx-
|
|
2222
|
+
//#region dist/.types-work/docx-CuUWjsKl.d.ts
|
|
2223
2223
|
interface CommentAnchorRange {
|
|
2224
2224
|
readonly commentId: string;
|
|
2225
2225
|
readonly source: Readonly<DocxStorySource>;
|
|
@@ -2675,6 +2675,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2675
2675
|
private _commentsOptions;
|
|
2676
2676
|
private _commentSide;
|
|
2677
2677
|
private _syncCommentMarginGeometry;
|
|
2678
|
+
private _widestPageWidthPt;
|
|
2678
2679
|
private _baseScale;
|
|
2679
2680
|
relayout(): void;
|
|
2680
2681
|
private _relayout;
|
|
@@ -2706,6 +2707,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
|
|
|
2706
2707
|
getScale(): number;
|
|
2707
2708
|
zoomIn(): void;
|
|
2708
2709
|
zoomOut(): void;
|
|
2710
|
+
private _effectiveZoomMin;
|
|
2709
2711
|
fitWidth(): void;
|
|
2710
2712
|
fitPage(): void;
|
|
2711
2713
|
private _fit;
|
|
@@ -3028,7 +3030,7 @@ interface PictureElement {
|
|
|
3028
3030
|
sp3d?: Sp3d;
|
|
3029
3031
|
}
|
|
3030
3032
|
//#endregion
|
|
3031
|
-
//#region dist/.types-work/pptx-
|
|
3033
|
+
//#region dist/.types-work/pptx-yzrs5789.d.ts
|
|
3032
3034
|
interface PptxTextRunInfo {
|
|
3033
3035
|
elementIndex?: number;
|
|
3034
3036
|
origin?: SlideElementOrigin;
|
|
@@ -3539,6 +3541,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
3539
3541
|
getScale(): number;
|
|
3540
3542
|
zoomIn(): void;
|
|
3541
3543
|
zoomOut(): void;
|
|
3544
|
+
private _effectiveZoomMin;
|
|
3542
3545
|
fitWidth(): void;
|
|
3543
3546
|
fitPage(): void;
|
|
3544
3547
|
private _fit;
|
|
@@ -4355,7 +4358,7 @@ interface XlsxRenderViewportOptions {
|
|
|
4355
4358
|
} | null;
|
|
4356
4359
|
}
|
|
4357
4360
|
//#endregion
|
|
4358
|
-
//#region dist/.types-work/xlsx-
|
|
4361
|
+
//#region dist/.types-work/xlsx-0HRTO0wU.d.ts
|
|
4359
4362
|
type ResolvedList = {
|
|
4360
4363
|
kind: 'values';
|
|
4361
4364
|
values: string[];
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1411,7 +1411,7 @@ type HyperlinkTarget = {
|
|
|
1411
1411
|
};
|
|
1412
1412
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1413
1413
|
//#endregion
|
|
1414
|
-
//#region dist/.types-work/find-highlight-
|
|
1414
|
+
//#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
|
|
1415
1415
|
interface TextSelectionContextOptions {
|
|
1416
1416
|
readonly maxTextCharacters?: number;
|
|
1417
1417
|
readonly maxRunLocators?: number;
|
|
@@ -1734,7 +1734,7 @@ interface PictureElement {
|
|
|
1734
1734
|
sp3d?: Sp3d;
|
|
1735
1735
|
}
|
|
1736
1736
|
//#endregion
|
|
1737
|
-
//#region dist/.types-work/pptx-
|
|
1737
|
+
//#region dist/.types-work/pptx-yzrs5789.d.ts
|
|
1738
1738
|
interface PptxTextRunInfo {
|
|
1739
1739
|
elementIndex?: number;
|
|
1740
1740
|
origin?: SlideElementOrigin;
|
|
@@ -2245,6 +2245,7 @@ declare class PptxScrollViewer implements ZoomableViewer {
|
|
|
2245
2245
|
getScale(): number;
|
|
2246
2246
|
zoomIn(): void;
|
|
2247
2247
|
zoomOut(): void;
|
|
2248
|
+
private _effectiveZoomMin;
|
|
2248
2249
|
fitWidth(): void;
|
|
2249
2250
|
fitPage(): void;
|
|
2250
2251
|
private _fit;
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -1208,7 +1208,7 @@ type HyperlinkTarget = {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
|
|
1210
1210
|
//#endregion
|
|
1211
|
-
//#region dist/.types-work/find-highlight-
|
|
1211
|
+
//#region dist/.types-work/find-highlight-CEEVmKfp.d.ts
|
|
1212
1212
|
interface ViewerContextMenuEvent<TContext> {
|
|
1213
1213
|
readonly originalEvent: MouseEvent;
|
|
1214
1214
|
getContext(): Promise<TContext | null>;
|
|
@@ -2006,7 +2006,7 @@ interface XlsxRenderViewportOptions {
|
|
|
2006
2006
|
} | null;
|
|
2007
2007
|
}
|
|
2008
2008
|
//#endregion
|
|
2009
|
-
//#region dist/.types-work/xlsx-
|
|
2009
|
+
//#region dist/.types-work/xlsx-0HRTO0wU.d.ts
|
|
2010
2010
|
type ResolvedList = {
|
|
2011
2011
|
kind: 'values';
|
|
2012
2012
|
values: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { $ as t, A as n, B as r, Bt as i, C as a, Ct as o, D as s, Ft as c, Ht as l, It as u, Lt as d, M as f, Mt as p, O as m, R as h, S as g, St as _, T as v, Tt as y, Ut as b, V as x, Vt as S, W as C, Xt as w, Zt as T, _ as E, a as D, at as O, bt as k, c as A, d as j, dt as M, et as N, f as ee, g as P, gt as F, h as I, it as L, j as R, m as z, n as B, nt as te, on as V, p as ne, pt as H, rt as re, s as ie, sn as U, tt as ae, u as oe, ut as se, w as ce, wt as le, xt as ue, y as de, z as fe, zt as pe } from "./line-metrics-u87yCAfV.js";
|
|
3
|
-
import { C as me, D as W, E as G, S as K, T as he, _ as ge, a as _e, b as ve, d as ye, f as q, h as be, i as xe, l as Se, m as Ce, p as we, t as Te, u as Ee, v as De, w as Oe, x as ke, y as Ae } from "./canvas-viewer-mechanics-
|
|
3
|
+
import { C as me, D as W, E as G, S as K, T as he, _ as ge, a as _e, b as ve, d as ye, f as q, h as be, i as xe, l as Se, m as Ce, p as we, t as Te, u as Ee, v as De, w as Oe, x as ke, y as Ae } from "./canvas-viewer-mechanics-CfRzOhz5.js";
|
|
4
4
|
import { a as je, i as Me, t as Ne } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
5
|
import { A as Pe, C as Fe, D as Ie, _ as J, c as Le, h as Re, hn as ze, in as Be, j as Ve, l as He, o as Ue, on as We, s as Ge, sn as Ke, v as qe, w as Je } from "./plot-area-frame-D5hEOgkJ.js";
|
|
6
6
|
import { l as Ye, s as Xe } from "./pixel-budget-Dgjw269h.js";
|
package/dist/xlsx.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, on as t, sn as n } from "./line-metrics-u87yCAfV.js";
|
|
2
|
-
import { T as r } from "./canvas-viewer-mechanics-
|
|
2
|
+
import { T as r } from "./canvas-viewer-mechanics-CfRzOhz5.js";
|
|
3
3
|
import { l as i, s as a } from "./pixel-budget-Dgjw269h.js";
|
|
4
4
|
import { i as o, s } from "./raster-target-whZhvVMt.js";
|
|
5
|
-
import { a as c, i as l, n as u, o as d, r as f, s as p } from "./xlsx-
|
|
5
|
+
import { a as c, i as l, n as u, o as d, r as f, s as p } from "./xlsx-Bd16V4Xx.js";
|
|
6
6
|
import { i as m } from "./worksheet-pull-client-Btydoxto.js";
|
|
7
7
|
export { l as MAX_SELECTION_AREAS, c as MAX_SELECTION_CONTEXT_CELLS, d as MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, a as OoxmlDecodedImageLimitError, t as OoxmlError, n as OoxmlResourceLimitError, o as TiffDecodeError, u as XlsxSheetViewer, f as XlsxViewer, p as XlsxWorkbook, r as autoResize, i as isOoxmlDecodedImageLimitError, s as isTiffDecodeError, e as openExternalHyperlink, m as resolveSharedStrings };
|
package/package.json
CHANGED