@silurus/ooxml 0.75.2 → 0.75.3
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/{document-pull-client-B3O6_k48.js → document-pull-client-C3s6Y0eT.js} +17 -5
- package/dist/{docx-B8xQ48Q-.js → docx-C4sCu6Z1.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{render-worker-host-SvqV_Z6M.js → render-worker-host-8wfcbD3f.js} +1 -1
- package/package.json +1 -1
|
@@ -3781,10 +3781,11 @@ W({
|
|
|
3781
3781
|
version: "16.111.1",
|
|
3782
3782
|
platform: "macOS 26.5.2"
|
|
3783
3783
|
},
|
|
3784
|
-
description: "With useFELayout enabled, a content-less paragraph mark participates in Far East whole-cell document-grid allocation even when the document contains no literal East Asian text. Its face-specific Far East design height governs the cell count; exact spacing and snapToGrid=false remain the document-grid overrides named by ECMA-376 §17.6.5."
|
|
3784
|
+
description: "With useFELayout enabled, a content-less paragraph mark participates in Far East whole-cell document-grid allocation even when the document contains no literal East Asian text. Its face-specific Far East design height governs the cell count; exact spacing and snapToGrid=false remain the document-grid overrides named by ECMA-376 §17.6.5. Observed Word output gives signed atLeast spacing a discontinuous boundary on an active grid: negative values use their absolute magnitude as the mark advance, zero keeps the ordinary atLeast-zero advance regardless of inheritance source, and positive values retain whole-cell allocation."
|
|
3785
3785
|
});
|
|
3786
|
-
function go(e
|
|
3787
|
-
|
|
3786
|
+
function go(e) {
|
|
3787
|
+
let { ordinaryAdvancePx: t, allocatedGridAdvancePx: n, atLeastZeroAdvancePx: r, lineSpacing: i, gridAllocationActive: a, scale: o } = e;
|
|
3788
|
+
return a ? i?.rule === "atLeast" && i.value < 0 ? Math.abs(i.value) * o : i?.rule === "atLeast" && i.value === 0 ? r : i?.rule === "exact" ? t : Math.max(t, n) : t;
|
|
3788
3789
|
}
|
|
3789
3790
|
W({
|
|
3790
3791
|
id: "word-contiguous-underline-geometry",
|
|
@@ -4397,9 +4398,20 @@ function ys(e, t, n, r, i = !1, a, o = {}, s = e.lineSpacing, c = {}, l, u, d =
|
|
|
4397
4398
|
let n = a.measureText(p ? "あ" : "x");
|
|
4398
4399
|
a.font = e, {ascent: y, descent: b} = vs(n, v, h * t, h * t, p);
|
|
4399
4400
|
} else ({asc: y, desc: b} = _s(h, t));
|
|
4400
|
-
let x = _?.lineHeightRatio == null ? es(e, t, p) : h * t * _.lineHeightRatio, S = Math.max(x, Eo(g, h * t, p)), C = i ? hs(S, h * t) : void 0, w = gs(s, y, b, t, n, r, S, i, C), T = d && i && ps(n) ? gs(null, y, b, t, n, r, S, i, C) : w
|
|
4401
|
+
let x = _?.lineHeightRatio == null ? es(e, t, p) : h * t * _.lineHeightRatio, S = Math.max(x, Eo(g, h * t, p)), C = i ? hs(S, h * t) : void 0, w = gs(s, y, b, t, n, r, S, i, C), T = d && i && ps(n), E = T ? gs(null, y, b, t, n, r, S, i, C) : w, D = T ? gs({
|
|
4402
|
+
rule: "atLeast",
|
|
4403
|
+
value: 0,
|
|
4404
|
+
explicit: !0
|
|
4405
|
+
}, y, b, t, n, r, S, i, C) : w;
|
|
4401
4406
|
return {
|
|
4402
|
-
advancePx: d ? go(
|
|
4407
|
+
advancePx: d ? go({
|
|
4408
|
+
ordinaryAdvancePx: w,
|
|
4409
|
+
allocatedGridAdvancePx: E,
|
|
4410
|
+
atLeastZeroAdvancePx: D,
|
|
4411
|
+
lineSpacing: s,
|
|
4412
|
+
gridAllocationActive: T,
|
|
4413
|
+
scale: t
|
|
4414
|
+
}) : w,
|
|
4403
4415
|
ascentPx: y,
|
|
4404
4416
|
descentPx: b
|
|
4405
4417
|
};
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./chunk-DmhlhrBa.js";
|
|
|
2
2
|
import { E as t, M as n, N as r, _ as i, c as a, l as o, t as s, u as c } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
3
3
|
import { a as l, c as u, d, f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as ee, u as te } from "./find-cursor-Dc5iM6s7.js";
|
|
4
4
|
import { a as S, i as C, n as w, o as T, r as E, t as D } from "./preload-BEouWnlI.js";
|
|
5
|
-
import { a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as O, n as k, o as le, p as ue, r as de, s as A, t as j, u as M } from "./document-pull-client-
|
|
5
|
+
import { a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as O, n as k, o as le, p as ue, r as de, s as A, t as j, u as M } from "./document-pull-client-C3s6Y0eT.js";
|
|
6
6
|
import { f as N, i as P, p as F, t as I } from "./svg-image-by-path-C1M3N2pT.js";
|
|
7
7
|
import { M as L, ct as R } from "./line-metrics-EFT-W2Au.js";
|
|
8
8
|
import { n as z, r as B, t as V } from "./highlight-rect-cCvVU-MW.js";
|
|
@@ -166,7 +166,7 @@ var K = class e {
|
|
|
166
166
|
a = await e.arrayBuffer();
|
|
167
167
|
} else a = t;
|
|
168
168
|
a = p(await g(a, n.password)), s.setSourceBytes(a.byteLength), s.checkpoint("container ready");
|
|
169
|
-
let c = o === "worker" ? (await import("./render-worker-host-
|
|
169
|
+
let c = o === "worker" ? (await import("./render-worker-host-8wfcbD3f.js")).createRenderWorker() : new _e(), l;
|
|
170
170
|
try {
|
|
171
171
|
if (l = new e(c, o, i, n.wasmUrl), l._metrics = s, await l._parse(a, r.policy, o === "worker" ? !!n.useGoogleFonts : !1, n.workerTimeoutMs, (e) => s.observeUsage(e)), o === "worker" && l._mode === "main" && (s.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), n.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."), l._mode === "main" && n.useGoogleFonts && l._document && (l._googleFontFaces = await w(re(l._document), M)), l._mode === "main" && l._document?.embeddedFonts?.length) {
|
|
172
172
|
let e = l;
|
package/dist/docx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as e, N as t } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
2
2
|
import { p as n } from "./find-cursor-Dc5iM6s7.js";
|
|
3
|
-
import { a as r, i, n as a, o, r as s, s as c } from "./docx-
|
|
3
|
+
import { a as r, i, n as a, o, r as s, s as c } from "./docx-C4sCu6Z1.js";
|
|
4
4
|
import { f as l, p as u } from "./svg-image-by-path-C1M3N2pT.js";
|
|
5
5
|
import { r as d } from "./hyperlink-D85FexTa.js";
|
|
6
6
|
export { c as DocxDocument, s as DocxScrollViewer, i as DocxViewer, l as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, n as autoResize, r as buildDocxHighlightLayer, o as buildDocxTextLayer, u as isOoxmlDecodedImageLimitError, a as noteText, d as openExternalHyperlink };
|
package/dist/index.mjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
2
|
import { D as t, N as n, O as r, T as i, a, c as o, f as s, i as c, k as l, m as u, o as d, p as f, r as p, u as m } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
3
|
-
import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-
|
|
3
|
+
import { c as h, n as ee, o as g, r as te, s as ne } from "./document-pull-client-C3s6Y0eT.js";
|
|
4
4
|
import { f as re, i as _, p as ie, t as ae } from "./svg-image-by-path-C1M3N2pT.js";
|
|
5
5
|
import { t as oe } from "./transfer-3QEJrsJa.js";
|
|
6
6
|
import { d as se, n as ce, t as le, u as ue } from "./worksheet-pull-worker-DCei8u-4.js";
|