@silurus/ooxml 0.75.3 → 0.75.4

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.
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
2
  import { a as t, b as n, c as r, g as i, h as a, m as o, n as s, o as c, p as l, r as u, u as d, v as f, y as p } from "./svg-image-by-path-C1M3N2pT.js";
3
- import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S } from "./line-distribute-BHeDP03S.js";
4
- import { $ as C, A as w, D as T, F as E, G as D, H as O, J as k, K as A, L as j, M, N, O as P, P as F, Q as I, R as L, T as R, U as z, W as B, X as V, Y as H, a as U, b as W, c as G, d as K, f as q, g as ee, i as te, j as J, k as ne, l as re, m as ie, n as ae, ot as Y, p as oe, q as se, s as ce, tt as le, u as ue, w as de, x as fe, y as pe, z as me } from "./line-metrics-EFT-W2Au.js";
5
- import { t as he } from "./duotone-bitmap-by-path-D4mAC2FR.js";
3
+ import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S } from "./line-distribute-B8sqT8kC.js";
4
+ import { $ as C, A as w, D as T, F as E, G as D, H as O, J as k, K as A, L as j, M, N, O as P, P as F, R as I, T as L, U as R, X as z, Y as B, Z as V, a as H, b as U, c as W, d as G, et as K, f as q, g as ee, i as te, j as J, k as ne, l as re, m as ie, n as ae, nt as oe, p as se, q as ce, s as le, st as Y, u as ue, w as de, x as fe, y as pe, z as me } from "./line-metrics-D9gqQWHl.js";
5
+ import { t as he } from "./duotone-bitmap-by-path-CWsSJkJu.js";
6
6
  import { t as ge } from "./mathjax-Dqo857oC.js";
7
7
  import { n as _e, t as ve } from "./hyperlink-D85FexTa.js";
8
8
  var ye = {
@@ -2396,8 +2396,8 @@ function we(e) {
2396
2396
  if (t) return t;
2397
2397
  let n = xe[e];
2398
2398
  return n ? (t = {
2399
- adj: n.adj.map(([e, t]) => [e, se(t)]),
2400
- gd: n.gd.map(([e, t]) => [e, se(t)]),
2399
+ adj: n.adj.map(([e, t]) => [e, k(t)]),
2400
+ gd: n.gd.map(([e, t]) => [e, k(t)]),
2401
2401
  paths: n.paths
2402
2402
  }, Se.set(e, t), t) : null;
2403
2403
  }
@@ -2470,7 +2470,7 @@ function De(e) {
2470
2470
  function Oe(e, t, n, r) {
2471
2471
  let i = we(e.toLowerCase());
2472
2472
  if (!i || i.paths.length === 0) return null;
2473
- let a = k({
2473
+ let a = B({
2474
2474
  w: n,
2475
2475
  h: r,
2476
2476
  adj: t
@@ -2571,7 +2571,7 @@ function Le(e, t, n, r, i, a, s) {
2571
2571
  let h = Pe(m);
2572
2572
  if (!h) return;
2573
2573
  let g = Ie(h, p);
2574
- g.save(), g.fillStyle = I(r.color, r.alpha), t(g), g.restore(), g.save(), g.globalCompositeOperation = "destination-out", g.filter = c > 0 ? `blur(${c}px)` : "none", g.translate(d, f), g.fillStyle = "#000", t(g), g.restore(), g.save(), g.globalCompositeOperation = "destination-in", g.filter = "none", g.fillStyle = "#000", t(g), g.restore(), e.save(), e.drawImage(m, p.x, p.y), e.restore();
2574
+ g.save(), g.fillStyle = C(r.color, r.alpha), t(g), g.restore(), g.save(), g.globalCompositeOperation = "destination-out", g.filter = c > 0 ? `blur(${c}px)` : "none", g.translate(d, f), g.fillStyle = "#000", t(g), g.restore(), g.save(), g.globalCompositeOperation = "destination-in", g.filter = "none", g.fillStyle = "#000", t(g), g.restore(), e.save(), e.drawImage(m, p.x, p.y), e.restore();
2575
2575
  }
2576
2576
  function Re(e, t, n, r, i, a, s, c) {
2577
2577
  let l = Ne(r.radius, i);
@@ -3312,7 +3312,7 @@ function Lt(e, t, n, r, i, a, o, s = 1) {
3312
3312
  e.beginPath(), e.moveTo(t, i + J(i, l, s)), e.lineTo(t + r, i + J(i, l, s)), e.moveTo(t, a + J(a, l, s)), e.lineTo(t + r, a + J(a, l, s)), e.stroke();
3313
3313
  return;
3314
3314
  }
3315
- e.setLineDash(le(o ?? "sng", l)), e.beginPath(), e.moveTo(t, u + d), e.lineTo(t + r, u + d), e.stroke(), e.setLineDash([]);
3315
+ e.setLineDash(oe(o ?? "sng", l)), e.beginPath(), e.moveTo(t, u + d), e.lineTo(t + r, u + d), e.stroke(), e.setLineDash([]);
3316
3316
  }
3317
3317
  //#endregion
3318
3318
  //#region packages/core/src/text/highlight-box.ts
@@ -3489,7 +3489,7 @@ function Qt(e, t) {
3489
3489
  function $t(e) {
3490
3490
  let t = j(e.length === 8 ? e.slice(0, 6) : e);
3491
3491
  if (!t) return null;
3492
- let n = L(t[0], t[1], t[2]);
3492
+ let n = I(t[0], t[1], t[2]);
3493
3493
  if (e.length !== 8) return n;
3494
3494
  let r = Number.parseInt(e.slice(6, 8), 16);
3495
3495
  if (Number.isNaN(r)) return null;
@@ -3570,12 +3570,12 @@ function sn(e, t) {
3570
3570
  function cn(e, t, n, r, i, a, o = "fill", s = an) {
3571
3571
  let c = e.textAlign, l = e.textBaseline, u = o === "stroke" ? e.strokeText.bind(e) : e.fillText.bind(e), d = r - on(e, t, i), f = 0;
3572
3572
  for (let o of t) {
3573
- let t = o.codePointAt(0) ?? 0, l = re(t), p = e.measureText(o).width + a, m = l === "Tr" ? ce(t) : null, h = l === "Tr" && m === null && K(t), g = l === "U" || l === "Tu" || m !== null || h;
3573
+ let t = o.codePointAt(0) ?? 0, l = re(t), p = e.measureText(o).width + a, m = l === "Tr" ? le(t) : null, h = l === "Tr" && m === null && G(t), g = l === "U" || l === "Tu" || m !== null || h;
3574
3574
  if (ue(t) && s(t)) {
3575
3575
  let t = n + f + p / 2;
3576
- e.save(), e.translate(t, d), e.rotate(-Math.PI / 2), e.textAlign = "center", e.textBaseline = "middle", U(e, () => u(o, 0, 0)), e.restore();
3576
+ e.save(), e.translate(t, d), e.rotate(-Math.PI / 2), e.textAlign = "center", e.textBaseline = "middle", H(e, () => u(o, 0, 0)), e.restore();
3577
3577
  } else if (g) {
3578
- let r = m === null && l === "Tu" ? G(t) : null, a = m === null ? r : m, s = a === null ? o : String.fromCodePoint(a), c = n + f + p / 2, h = r === null ? sn(e, s) / i : 0;
3578
+ let r = m === null && l === "Tu" ? W(t) : null, a = m === null ? r : m, s = a === null ? o : String.fromCodePoint(a), c = n + f + p / 2, h = r === null ? sn(e, s) / i : 0;
3579
3579
  e.save(), e.translate(c, d), e.rotate(-Math.PI / 2), e.textAlign = "center", e.textBaseline = "middle", u(s, 0, h * i), e.restore();
3580
3580
  } else if (l === "Tr") {
3581
3581
  let t = n + f + p / 2;
@@ -3611,7 +3611,7 @@ var un = /* @__PURE__ */ e({
3611
3611
  function Z(e, t) {
3612
3612
  return e * t;
3613
3613
  }
3614
- var Q = I;
3614
+ var Q = C;
3615
3615
  function dn(e, t, n, r, i, a, o) {
3616
3616
  let { top: s, height: c } = Rt(n, i);
3617
3617
  e.fillStyle = a, e.fillRect(t, s, r, c), e.fillStyle = o;
@@ -3620,7 +3620,7 @@ function fn(e) {
3620
3620
  return !e || e.fillType === "none" ? null : e.fillType === "solid" ? Q(e.color) : e.fillType === "gradient" ? e.stops.length > 0 ? Q(e.stops[0].color) : null : e.fillType === "pattern" ? Q(e.fg) : null;
3621
3621
  }
3622
3622
  function pn(e, t, n, r, i, a) {
3623
- return C(e, t, n, r, i, a);
3623
+ return K(e, t, n, r, i, a);
3624
3624
  }
3625
3625
  var mn = /* @__PURE__ */ new WeakMap();
3626
3626
  function hn(e, t) {
@@ -3852,7 +3852,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3852
3852
  e.font = D;
3853
3853
  let P = n.caps, F = n.text;
3854
3854
  (P === "all" || P === "small") && (F = F.toUpperCase());
3855
- let I = n.fieldType === "slidenum" && u !== void 0 ? String(u) : F, L = n.underline || n.hyperlink !== void 0, z = n.strikeDouble === !0, B = n.letterSpacing == null ? 0 : n.letterSpacing * Y * a, V = {
3855
+ let I = n.fieldType === "slidenum" && u !== void 0 ? String(u) : F, R = n.underline || n.hyperlink !== void 0, z = n.strikeDouble === !0, B = n.letterSpacing == null ? 0 : n.letterSpacing * Y * a, V = {
3856
3856
  strikeDouble: z,
3857
3857
  letterSpacingPx: B,
3858
3858
  underlineStyle: n.underlineStyle,
@@ -3895,7 +3895,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3895
3895
  }
3896
3896
  e.font = a;
3897
3897
  let c = e.measureText(r).width;
3898
- !k(c) && v > 0 && j(), M(r, a, o, x, L, n.strikethrough, n.baseline ?? void 0, V);
3898
+ !k(c) && v > 0 && j(), M(r, a, o, x, R, n.strikethrough, n.baseline ?? void 0, V);
3899
3899
  }
3900
3900
  continue;
3901
3901
  }
@@ -3913,7 +3913,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3913
3913
  if (t.eaLnBrk === !1) {
3914
3914
  let e = i.reduce((e, t) => e + t.w, 0);
3915
3915
  v > 0 && !k(e) && j();
3916
- for (let e of i) M(e.ch, e.font, o, x, L, n.strikethrough, n.baseline ?? void 0, {
3916
+ for (let e of i) M(e.ch, e.font, o, x, R, n.strikethrough, n.baseline ?? void 0, {
3917
3917
  ...V,
3918
3918
  fontFamily: e.family
3919
3919
  });
@@ -3921,7 +3921,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3921
3921
  }
3922
3922
  let a = i;
3923
3923
  for (; a.length > 0;) {
3924
- let e = Number.isFinite(m()) ? m() - A() : v, t = qt(a, e, m(), R);
3924
+ let e = Number.isFinite(m()) ? m() - A() : v, t = qt(a, e, m(), L);
3925
3925
  if (t === 0) {
3926
3926
  if (v > 0) {
3927
3927
  j();
@@ -3931,7 +3931,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3931
3931
  }
3932
3932
  for (let e = 0; e < t; e++) {
3933
3933
  let t = a[e];
3934
- M(t.ch, t.font, o, x, L, n.strikethrough, n.baseline ?? void 0, {
3934
+ M(t.ch, t.font, o, x, R, n.strikethrough, n.baseline ?? void 0, {
3935
3935
  ...V,
3936
3936
  fontFamily: t.family
3937
3937
  });
@@ -3943,7 +3943,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3943
3943
  if (q(r)) {
3944
3944
  let t = pe(r, {
3945
3945
  cjk: !0,
3946
- kinsoku: R
3946
+ kinsoku: L
3947
3947
  }), i = p != null && O !== D, a = (e) => i && fe(e.codePointAt(0) ?? 0), s = (t) => {
3948
3948
  let n = B * Pn(t), r = "", i = null, o = () => {
3949
3949
  r !== "" && (e.font = i ? O : D, n += e.measureText(r).width, r = "");
@@ -3957,7 +3957,7 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3957
3957
  let t = "", r = null, i = () => {
3958
3958
  if (t === "") return;
3959
3959
  let e = r ? O : D, i = r ? p : f;
3960
- M(t, e, o, x, L, n.strikethrough, n.baseline ?? void 0, {
3960
+ M(t, e, o, x, R, n.strikethrough, n.baseline ?? void 0, {
3961
3961
  ...V,
3962
3962
  fontFamily: i
3963
3963
  }), t = "";
@@ -3969,32 +3969,32 @@ function Fn(e, t, n, r, i, a, o, s = !1, c = !1, l = 1, u, d = {
3969
3969
  i();
3970
3970
  }, l = ee(r), u = r.length, d = 0;
3971
3971
  for (; d < u;) {
3972
- let e = A(), n = oe(r, t, d, e, s, l);
3972
+ let e = A(), n = se(r, t, d, e, s, l);
3973
3973
  if (n <= d) {
3974
3974
  if (v > 0) {
3975
3975
  j();
3976
3976
  continue;
3977
3977
  }
3978
- let i = t.find((e) => e > d) ?? u, a = r.slice(d, i), o = ie(a), c = oe(a, o, 0, e, s, l);
3978
+ let i = t.find((e) => e > d) ?? u, a = r.slice(d, i), o = ie(a), c = se(a, o, 0, e, s, l);
3979
3979
  c <= 0 && (c = o.length > 0 ? o[0] : a.length), n = d + c;
3980
3980
  }
3981
3981
  c(r.slice(d, n)), d = n, d < u && j();
3982
3982
  }
3983
3983
  continue;
3984
3984
  }
3985
- if (k(i)) M(r, D, o, x, L, n.strikethrough, n.baseline ?? void 0, V), a && (y = !0);
3985
+ if (k(i)) M(r, D, o, x, R, n.strikethrough, n.baseline ?? void 0, V), a && (y = !0);
3986
3986
  else if (a) v > 0 && j();
3987
3987
  else if (i > m()) {
3988
3988
  v > 0 && j();
3989
3989
  for (let t of r) {
3990
3990
  e.font = D;
3991
3991
  let r = e.measureText(t).width;
3992
- !k(r) && v > 0 && j(), M(t, D, o, x, L, n.strikethrough, n.baseline ?? void 0, V);
3992
+ !k(r) && v > 0 && j(), M(t, D, o, x, R, n.strikethrough, n.baseline ?? void 0, V);
3993
3993
  }
3994
- } else if (!y) M(r, D, o, x, L, n.strikethrough, n.baseline ?? void 0, V);
3994
+ } else if (!y) M(r, D, o, x, R, n.strikethrough, n.baseline ?? void 0, V);
3995
3995
  else {
3996
- let e = g.segments.at(-1)?.text ?? "", t = r.codePointAt(0), i = [...e].at(-1)?.codePointAt(0), a = /\S$/u.test(e) && /^\S/u.test(r) && i !== 8203 && t !== 8203, s = t !== void 0 && R.lineStartForbidden.has(t) && a, c = i !== void 0 && t !== void 0 && a && !q(e) && !q(r) && W(i, t);
3997
- (s || c) && N() || j(), M(r, D, o, x, L, n.strikethrough, n.baseline ?? void 0, V);
3996
+ let e = g.segments.at(-1)?.text ?? "", t = r.codePointAt(0), i = [...e].at(-1)?.codePointAt(0), a = /\S$/u.test(e) && /^\S/u.test(r) && i !== 8203 && t !== 8203, s = t !== void 0 && L.lineStartForbidden.has(t) && a, c = i !== void 0 && t !== void 0 && a && !q(e) && !q(r) && U(i, t);
3997
+ (s || c) && N() || j(), M(r, D, o, x, R, n.strikethrough, n.baseline ?? void 0, V);
3998
3998
  }
3999
3999
  }
4000
4000
  }
@@ -4045,7 +4045,7 @@ function zn(e, t, n, r, i, a) {
4045
4045
  p(0, 0, !1, !1), l && p(s, 0, !0, !1), u && p(0, c, !1, !0), l && u && p(s, c, !0, !0);
4046
4046
  let m = e.createPattern(d, "repeat");
4047
4047
  if (!m) return;
4048
- let { ax: h, ay: g } = Rn(n.algn, r, i, s, c), _ = h + Z(n.tx, a), v = g + Z(n.ty, a);
4048
+ let { ax: h, ay: g } = Rn(n.algn ?? "tl", r, i, s, c), _ = h + Z(n.tx, a), v = g + Z(n.ty, a);
4049
4049
  typeof m.setTransform == "function" && typeof DOMMatrix < "u" ? (m.setTransform(new DOMMatrix().translateSelf(_, v)), e.fillStyle = m, e.fillRect(0, 0, r, i)) : (e.save(), e.translate(_, v), e.fillStyle = m, e.fillRect(-_, -v, r, i), e.restore());
4050
4050
  }
4051
4051
  function Bn(e, t, n) {
@@ -4310,12 +4310,12 @@ function rr(e, t, n, r = "#000000", i, a = {
4310
4310
  "accentbordercallout1",
4311
4311
  "accentbordercallout2",
4312
4312
  "accentbordercallout3"
4313
- ]), C = (e) => S.has(e) || e === "line" || e === "straightconnector1" || e.startsWith("bentconnector"), w = !t.custGeom && D(h), T = (e, r) => {
4313
+ ]), C = (e) => S.has(e) || e === "line" || e === "straightconnector1" || e.startsWith("bentconnector"), w = !t.custGeom && A(h), T = (e, r) => {
4314
4314
  let i = r ?? _, a = r ? null : t.stroke ? () => {
4315
4315
  br(e, t.stroke, n), e.stroke();
4316
4316
  } : null, o = () => Hn(e);
4317
4317
  if (w && !r) {
4318
- A(e, h, c, l, u, d, [
4318
+ ce(e, h, c, l, u, d, [
4319
4319
  t.adj,
4320
4320
  t.adj2,
4321
4321
  t.adj3,
@@ -4345,7 +4345,7 @@ function rr(e, t, n, r = "#000000", i, a = {
4345
4345
  }), e.restore()) : T(e), t.innerShadow && E > 0 && O > 0 && (e.save(), e.setTransform(new DOMMatrix()), Le(e, (e) => {
4346
4346
  F(e), T(e, "#000");
4347
4347
  }, N, t.innerShadow, P, E, O), e.restore()), t.stroke && (x.has(h) || S.has(h))) {
4348
- let r = B(h, c, l, u, d, [
4348
+ let r = D(h, c, l, u, d, [
4349
4349
  t.adj,
4350
4350
  t.adj2,
4351
4351
  t.adj3,
@@ -4875,7 +4875,7 @@ async function _r(e, t, n, r) {
4875
4875
  let l = Z(t.x, n), u = Z(t.y, n), d = Z(t.width, n), f = Z(t.height, n);
4876
4876
  (t.rotation !== 0 || t.flipH || t.flipV) && (e.translate(l + d / 2, u + f / 2), e.rotate(t.rotation * Math.PI / 180), t.flipH && e.scale(-1, 1), t.flipV && e.scale(1, -1), e.translate(-(l + d / 2), -(u + f / 2)));
4877
4877
  let p = me(c, t.srcRect), m = (e, n, r, i, a) => {
4878
- t.custGeom && t.custGeom.length > 0 ? ir(e, t.custGeom, n, r, i, a) : t.prstGeom && z(e, t.prstGeom, n, r, i, a, t.prstAdjust ?? []) || e.rect(n, r, i, a);
4878
+ t.custGeom && t.custGeom.length > 0 ? ir(e, t.custGeom, n, r, i, a) : t.prstGeom && R(e, t.prstGeom, n, r, i, a, t.prstAdjust ?? []) || e.rect(n, r, i, a);
4879
4879
  }, h = (e, t, n, r, i) => {
4880
4880
  e.beginPath(), m(e, t, n, r, i);
4881
4881
  }, g = (e, n, r, i, a) => {
@@ -4910,21 +4910,21 @@ async function _r(e, t, n, r) {
4910
4910
  e.save(), g(e, n, r, i, a), e.fillStyle = t, e.fillRect(n, r, i, a), e.restore();
4911
4911
  }, I = (e, t) => {
4912
4912
  y && fr(e, y.camera, l, u, d, f, (e, n, r, i, a) => F(e, t, n, r, i, a)) || F(e, t, l, u, d, f);
4913
- }, L = e.canvas.width || 0, R = e.canvas.height || 0, B = e.getTransform(), V = Math.abs(B.a * B.d - B.b * B.c), H = V > 0 ? Math.sqrt(V) : 1, U = {
4913
+ }, L = e.canvas.width || 0, z = e.canvas.height || 0, B = e.getTransform(), V = Math.abs(B.a * B.d - B.b * B.c), H = V > 0 ? Math.sqrt(V) : 1, U = {
4914
4914
  x: l * H,
4915
4915
  y: u * H,
4916
4916
  w: d * H,
4917
4917
  h: f * H
4918
- }, W = n * H, G = (e) => e.setTransform(B), K = L > 0 && R > 0;
4918
+ }, W = n * H, G = (e) => e.setTransform(B), K = L > 0 && z > 0;
4919
4919
  t.reflection && K && (e.save(), e.setTransform(new DOMMatrix()), ze(e, (e) => {
4920
4920
  G(e), P(e);
4921
- }, U, t.reflection, W, L, R), e.restore()), t.shadow ? Bn(e, t.shadow, n) : t.glow && Vn(e, t.glow, n), t.softEdge && K ? (e.save(), e.setTransform(new DOMMatrix()), Re(e, (e) => {
4921
+ }, U, t.reflection, W, L, z), e.restore()), t.shadow ? Bn(e, t.shadow, n) : t.glow && Vn(e, t.glow, n), t.softEdge && K ? (e.save(), e.setTransform(new DOMMatrix()), Re(e, (e) => {
4922
4922
  G(e), P(e);
4923
- }, U, t.softEdge, W, L, R, (e) => {
4923
+ }, U, t.softEdge, W, L, z, (e) => {
4924
4924
  G(e), I(e, "#000");
4925
4925
  }), e.restore()) : P(e), (t.shadow || t.glow) && Hn(e), t.innerShadow && K && (e.save(), e.setTransform(new DOMMatrix()), Le(e, (e) => {
4926
4926
  G(e), I(e, "#000");
4927
- }, U, t.innerShadow, W, L, R), e.restore()), e.restore();
4927
+ }, U, t.innerShadow, W, L, z), e.restore()), e.restore();
4928
4928
  } catch (e) {
4929
4929
  if (l(e)) throw e;
4930
4930
  }
@@ -5211,7 +5211,7 @@ async function Dr(e, n, r, i, a = {}, o, c) {
5211
5211
  else if (t.type === "media") await vr(y, t, p, a.fetchMedia, a.skipMediaControls, a.fetchImage);
5212
5212
  else if (t.type === "chart") {
5213
5213
  let e = Y * p;
5214
- y.save(), xr(y, t, p), H(y, t.chart, {
5214
+ y.save(), xr(y, t, p), z(y, t.chart, {
5215
5215
  x: Z(t.x, p),
5216
5216
  y: Z(t.y, p),
5217
5217
  w: Z(t.width, p),
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/mathjax-BO1uUSCW.d.ts
1
+ //#region dist/.types-work/mathjax-Cp9KrvN5.d.ts
2
2
  //#region packages/core/src/math/mathjax.d.ts
3
3
  interface MathSvg {
4
4
  /** standalone `<svg>…</svg>` markup. */
@@ -29,7 +29,7 @@ interface MathRenderer {
29
29
  mathMLToSvg(mathml: string): Promise<MathSvg>;
30
30
  }
31
31
  //#endregion
32
- //#region dist/.types-work/hyperlink-CHHEOeCL.d.ts
32
+ //#region dist/.types-work/hyperlink-DTGUpBI3.d.ts
33
33
  //#region packages/core/src/types/math.d.ts
34
34
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
35
35
  interface MathRun {
@@ -179,6 +179,41 @@ interface Duotone {
179
179
  /** Second `EG_ColorChoice` child — the light endpoint. 6-char hex, no `#`. */
180
180
  clr2: string;
181
181
  }
182
+ /**
183
+ * ECMA-376 §20.1.8.30 (CT_RelativeRect) — the destination rectangle a stretched
184
+ * blip is mapped into, as edge insets relative to the fill region. Values are
185
+ * fractions (ST_Percentage / 100000); **negative values let the image bleed
186
+ * past the box (overscan)**. Absent edges default to 0.
187
+ */
188
+ interface FillRect {
189
+ l?: number;
190
+ t?: number;
191
+ r?: number;
192
+ b?: number;
193
+ }
194
+ /**
195
+ * ECMA-376 §20.1.8.58 (CT_TileInfoProperties) — tiled blip-fill placement.
196
+ * The blip repeats at its native size (scaled by sx/sy) across the fill box.
197
+ * Mutually exclusive with {@link ImageFill.fillRect} (the `stretch` mode).
198
+ */
199
+ interface TileInfo {
200
+ /** Horizontal offset of the first tile, in EMU (`tx`). Default 0. */
201
+ tx: number;
202
+ /** Vertical offset of the first tile, in EMU (`ty`). Default 0. */
203
+ ty: number;
204
+ /** Horizontal tile scale as a fraction (`sx` / 100000). Default 1.0. */
205
+ sx: number;
206
+ /** Vertical tile scale as a fraction (`sy` / 100000). Default 1.0. */
207
+ sy: number;
208
+ /** Mirror mode: `'none' | 'x' | 'y' | 'xy'` (`flip`). Default `'none'`. */
209
+ flip: string;
210
+ /**
211
+ * Anchor corner the tile grid registers against:
212
+ * `tl|t|tr|l|ctr|r|bl|b|br` (`algn`). The schema has no default; a host may
213
+ * apply a compatibility fallback when omitted.
214
+ */
215
+ algn?: string;
216
+ }
182
217
  //#endregion
183
218
  //#region packages/core/src/types/chart.d.ts
184
219
  interface ChartSeries {
@@ -1314,7 +1349,7 @@ type HyperlinkTarget = {
1314
1349
  */
1315
1350
  declare function openExternalHyperlink(url: string, allowed?: readonly string[], win?: Pick<Window, 'open'> | undefined): boolean;
1316
1351
  //#endregion
1317
- //#region dist/.types-work/find-highlight-gMP3FAnW.d.ts
1352
+ //#region dist/.types-work/find-highlight-CnpZn3yb.d.ts
1318
1353
  //#region packages/core/src/autoResize.d.ts
1319
1354
  interface AutoResizeOptions {
1320
1355
  /**
@@ -1501,7 +1536,7 @@ interface FindHighlightColors {
1501
1536
  active?: string;
1502
1537
  }
1503
1538
  //#endregion
1504
- //#region dist/.types-work/renderer-CU7Ays06.d.ts
1539
+ //#region dist/.types-work/renderer-CNZ68tul.d.ts
1505
1540
  //#region packages/docx/src/types.d.ts
1506
1541
  interface DocxDocumentModel {
1507
1542
  section: SectionProps;
@@ -2232,6 +2267,9 @@ interface AnchorHostMetrics {
2232
2267
  italic?: boolean;
2233
2268
  }
2234
2269
  interface ShapeRun {
2270
+ /** ECMA-376 §20.4.2.8 — true when the shape is hosted by `<wp:inline>` and
2271
+ * therefore advances the paragraph pen like an inline drawing object. */
2272
+ inline?: boolean;
2235
2273
  widthPt: number;
2236
2274
  heightPt: number;
2237
2275
  /** X offset in pt */
@@ -2484,6 +2522,24 @@ type ShapeFill = {
2484
2522
  stops: GradientStop[];
2485
2523
  angle: number;
2486
2524
  gradType: string;
2525
+ } | {
2526
+ /** ECMA-376 §20.1.8.14 picture fill on a DrawingML shape. */
2527
+ fillType: 'image';
2528
+ imagePath: string;
2529
+ mimeType: string;
2530
+ /** Microsoft 2016 SVG original retained beside the raster fallback. */
2531
+ svgImagePath?: string;
2532
+ /** ECMA-376 §20.1.8.55 source-image crop. */
2533
+ srcRect?: {
2534
+ l: number;
2535
+ t: number;
2536
+ r: number;
2537
+ b: number;
2538
+ };
2539
+ fillRect?: FillRect;
2540
+ tile?: TileInfo;
2541
+ alpha?: number;
2542
+ duotone?: Duotone;
2487
2543
  };
2488
2544
  interface GradientStop {
2489
2545
  /** 0.0–1.0 */
@@ -2624,7 +2680,8 @@ interface DocxTextRun {
2624
2680
  * width, not the gap between glyphs. Absent ⇒ 100%. */
2625
2681
  charScale?: number;
2626
2682
  /** ECMA-376 §17.3.2.24 `<w:position w:val>` — baseline raise (positive) /
2627
- * lower (negative) in POINTS, without changing the font size or line box.
2683
+ * lower (negative) in POINTS, without changing the font size. The shifted
2684
+ * ink still participates in the surrounding line's visible extent.
2628
2685
  * Absent ⇒ no shift. */
2629
2686
  position?: number;
2630
2687
  /** ECMA-376 §17.3.2.19 `<w:kern w:val>` — font-kerning threshold in POINTS
@@ -3032,7 +3089,7 @@ interface DocxTextRunInfo {
3032
3089
  eastAsianVert?: boolean;
3033
3090
  }
3034
3091
  //#endregion
3035
- //#region dist/.types-work/docx-VDKt2JLe.d.ts
3092
+ //#region dist/.types-work/docx-BI2B2aF9.d.ts
3036
3093
  //#region packages/docx/src/worker-protocol.d.ts
3037
3094
  /** Serializable subset of RenderPageOptions (callbacks cannot cross the wire). */
3038
3095
  type WireRenderPageOptions = Omit<RenderPageOptions, 'onTextRun'>;