@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.
Files changed (61) hide show
  1. package/README.md +4 -8
  2. package/dist/assets/render-worker-7-Zr7fSw.js +10 -0
  3. package/dist/assets/{render-worker-C2ACcLes.js → render-worker-B5gsW6b5.js} +4 -4
  4. package/dist/assets/{render-worker-DtU8oQZ7.js → render-worker-Dw_wQRIh.js} +1 -1
  5. package/dist/{canvas-viewer-mechanics-CqxKRGCp.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
  6. package/dist/chart-ex.mjs +4 -4
  7. package/dist/comment-occurrence-C34fWs_F.js +6 -0
  8. package/dist/comment-ui-runtime-BAe30Ct9.js +112 -0
  9. package/dist/comment-ui-runtime-BUCj4hWn.js +171 -0
  10. package/dist/comment-ui-runtime-F4a3te6p.js +2 -0
  11. package/dist/comments-Cf9W7r3M.js +241 -0
  12. package/dist/{document-pull-client-Ux4a_ax8.js → document-pull-client-BCgmytqI.js} +2205 -2192
  13. package/dist/{docx-SEyQ4gS-.js → docx-wokGKYfi.js} +674 -249
  14. package/dist/docx.mjs +6 -5
  15. package/dist/docx_parser_bg.wasm +0 -0
  16. package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
  17. package/dist/highlight-rect-MaCt0om0.js +13 -0
  18. package/dist/index.mjs +3 -3
  19. package/dist/{line-distribute-BBGvvwLt.js → line-distribute-iXsUCIH-.js} +2 -2
  20. package/dist/{line-metrics-Baz31mML.js → line-metrics-B3syvDn2.js} +52 -52
  21. package/dist/math.mjs +2 -2
  22. package/dist/node.mjs +10 -10
  23. package/dist/{plot-area-frame-Dg1VIpUU.js → plot-area-frame-DHV02PJU.js} +591 -590
  24. package/dist/{pptx-5lQrMvMR.js → pptx-DU8L8I2T.js} +537 -243
  25. package/dist/pptx.mjs +6 -6
  26. package/dist/pptx_parser_bg.wasm +0 -0
  27. package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
  28. package/dist/read-only-comment-margin-Dn2y55W6.js +189 -0
  29. package/dist/region-map.mjs +2 -2
  30. package/dist/{render-DEHjijQD.js → render-CenWM4g1.js} +1 -1
  31. package/dist/{render-worker-host-Dg_74V64.js → render-worker-host-BNENN3qP.js} +1 -1
  32. package/dist/{render-worker-host-B1nbV_k7.js → render-worker-host-BmH3kGSj.js} +1 -1
  33. package/dist/{render-worker-host-Bze5M6k5.js → render-worker-host-CmPBviYJ.js} +1 -1
  34. package/dist/{renderer-DuopJE1K.js → renderer-CYr9YTXM.js} +436 -435
  35. package/dist/{resource-measurement-DRLp4nFt.js → resource-measurement-CsW4_eYt.js} +2 -2
  36. package/dist/{session-CNVc3VJ4.js → session-Cky_swUj.js} +3 -3
  37. package/dist/{slide-pull-client-CzutXnGc.js → slide-pull-client-CqTVFb3W.js} +490 -383
  38. package/dist/source-key-BklvnEyQ.js +42 -0
  39. package/dist/{three-d-BYiWCNlz.js → three-d-7MaVzQuZ.js} +48 -47
  40. package/dist/three-d.mjs +324 -323
  41. package/dist/types/chart-ex.d.ts +2 -2
  42. package/dist/types/docx.d.ts +181 -19
  43. package/dist/types/index.d.ts +337 -26
  44. package/dist/types/math.d.ts +1 -1
  45. package/dist/types/node.d.ts +84 -10
  46. package/dist/types/pptx.d.ts +130 -11
  47. package/dist/types/region-map.d.ts +2 -2
  48. package/dist/types/three-d.d.ts +2 -2
  49. package/dist/types/xlsx.d.ts +76 -10
  50. package/dist/units-BzZ0gAxs.js +4 -0
  51. package/dist/{worksheet-pull-client-Cxj3Ej0s.js → worksheet-pull-client-CYtwXP5D.js} +3 -3
  52. package/dist/{xlsx-Bl3TIEVu.js → xlsx-DlV37-0j.js} +429 -218
  53. package/dist/xlsx.mjs +6 -6
  54. package/dist/xlsx_parser_bg.wasm +0 -0
  55. package/package.json +1 -1
  56. package/dist/assets/render-worker-Cx5uR77k.js +0 -10
  57. package/dist/highlight-rect-BqcZMHUE.js +0 -48
  58. /package/dist/{mathjax-DJa-Q93p.js → mathjax-DwIrafQ6.js} +0 -0
  59. /package/dist/{renderer-module-contract-0bO_5SC0.js → renderer-module-contract-DLbb7zY0.js} +0 -0
  60. /package/dist/{transfer-D0U6Uhn4.js → transfer-R6NjgBKD.js} +0 -0
  61. /package/dist/{visible-index-DbDuGMCE.js → visible-index-BFE3PWiY.js} +0 -0
@@ -0,0 +1,42 @@
1
+ //#region packages/docx/src/layout/fingerprint.ts
2
+ function e(t, n = "$") {
3
+ if (t === null || typeof t == "boolean" || typeof t == "number" || typeof t == "string") return JSON.stringify(t);
4
+ if (Array.isArray(t)) return `[${t.map((t, r) => e(t, `${n}[${r}]`)).join(",")}]`;
5
+ if (typeof t == "object") {
6
+ let r = t;
7
+ return `{${Object.keys(r).sort().map((t) => `${JSON.stringify(t)}:${e(r[t], `${n}.${t}`)}`).join(",")}}`;
8
+ }
9
+ throw TypeError(`Cannot fingerprint ${typeof t} at ${n}`);
10
+ }
11
+ function t(t, n) {
12
+ let r = e(n);
13
+ return `${t}:${encodeURIComponent(r)}`;
14
+ }
15
+ //#endregion
16
+ //#region packages/docx/src/layout/source-key.ts
17
+ function n(e) {
18
+ return `${e.story}:${encodeURIComponent(e.storyInstance)}:${e.path.join(".")}`;
19
+ }
20
+ function r(e, t, r) {
21
+ if (t.length === 0 || r.length === 0) throw RangeError("Body occurrence identity requires a flow domain and fragment start");
22
+ return [
23
+ "body-occurrence",
24
+ encodeURIComponent(n(e)),
25
+ encodeURIComponent(t),
26
+ encodeURIComponent(r)
27
+ ].join("/");
28
+ }
29
+ function i(e, t) {
30
+ return `image:${n(e)}:${encodeURIComponent(t)}`;
31
+ }
32
+ function a(e, t) {
33
+ return `math:${n(e)}:${encodeURIComponent(t)}`;
34
+ }
35
+ function o(e) {
36
+ return t("chart-resource", e);
37
+ }
38
+ function s(e, t) {
39
+ return `anchor:${n(e)}:${encodeURIComponent(t)}`;
40
+ }
41
+ //#endregion
42
+ export { a, i, r as n, n as o, o as r, t as s, s as t };
@@ -1,4 +1,5 @@
1
- import { Bt as e, D as t, F as n, I as r, M as i, N as a, O as o, P as s, _ as c, a as l, b as u, cn as d, gn as f, hn as p, on as m, rn as h, sn as g, v as _ } from "./plot-area-frame-Dg1VIpUU.js";
1
+ import { Bt as e, D as t, F as n, I as r, M as i, N as a, O as o, P as s, _ as c, a as l, b as u, dn as d, nn as f, rn as p, tn as m, un as h, v as g } from "./plot-area-frame-DHV02PJU.js";
2
+ import { r as _ } from "./units-BzZ0gAxs.js";
2
3
  //#region packages/core/src/canvas/clamp.ts
3
4
  var v = 32767, y = 1 << 24;
4
5
  function b(e, t) {
@@ -52,21 +53,21 @@ function T(e, t) {
52
53
  });
53
54
  }
54
55
  function E(e, t, n, r, i, a, o, s = 0, l) {
55
- let u = Math.max(0, S(r.blur, i)), d = S(r.dist, i), f = r.rotWithShape === !1 ? 0 : s, m = (r.dir + f) * Math.PI / 180, h = Math.cos(m) * d, g = Math.sin(m) * d, _ = w(n, Math.ceil(u * 3 + Math.max(Math.abs(h), Math.abs(g))) + 2, a, o), v = p(_.w, _.h);
56
+ let u = Math.max(0, S(r.blur, i)), d = S(r.dist, i), f = r.rotWithShape === !1 ? 0 : s, p = (r.dir + f) * Math.PI / 180, m = Math.cos(p) * d, g = Math.sin(p) * d, _ = w(n, Math.ceil(u * 3 + Math.max(Math.abs(m), Math.abs(g))) + 2, a, o), v = h(_.w, _.h);
56
57
  if (!v) return !1;
57
58
  let y = C(v);
58
59
  if (!y) return !1;
59
60
  t(T(y, _)), y.save(), y.setTransform(1, 0, 0, 1, 0, 0), y.globalCompositeOperation = "source-in", y.fillStyle = c(r.color, r.alpha), y.fillRect(0, 0, _.w, _.h), y.restore(), e.save(), u > 0 && (e.filter = `blur(${u}px)`);
60
61
  let [b, E] = l ?? x(n, r.algn ?? "b"), D = r.sx ?? 1, O = r.sy ?? 1, k = Math.tan((r.kx ?? 0) * Math.PI / 180), A = Math.tan((r.ky ?? 0) * Math.PI / 180);
61
- return e.translate(h, g), e.translate(b, E), f !== 0 && e.rotate(f * Math.PI / 180), e.transform(D, A, k, O, 0, 0), f !== 0 && e.rotate(-f * Math.PI / 180), e.translate(-b, -E), e.drawImage(v, _.x, _.y), e.restore(), !0;
62
+ return e.translate(m, g), e.translate(b, E), f !== 0 && e.rotate(f * Math.PI / 180), e.transform(D, A, k, O, 0, 0), f !== 0 && e.rotate(-f * Math.PI / 180), e.translate(-b, -E), e.drawImage(v, _.x, _.y), e.restore(), !0;
62
63
  }
63
64
  function D(e, t, n, r, i, a, o) {
64
- let s = S(r.blur, i), l = S(r.dist, i), u = r.dir * Math.PI / 180, d = Math.cos(u) * l, f = Math.sin(u) * l, m = w(n, Math.ceil(3 * s + Math.abs(l)) + 2, a, o), h = p(m.w, m.h);
65
- if (!h) return;
66
- let g = C(h);
65
+ let s = S(r.blur, i), l = S(r.dist, i), u = r.dir * Math.PI / 180, d = Math.cos(u) * l, f = Math.sin(u) * l, p = w(n, Math.ceil(3 * s + Math.abs(l)) + 2, a, o), m = h(p.w, p.h);
66
+ if (!m) return;
67
+ let g = C(m);
67
68
  if (!g) return;
68
- let _ = T(g, m);
69
- _.save(), _.fillStyle = c(r.color, r.alpha), t(_), _.restore(), _.save(), _.globalCompositeOperation = "destination-out", _.filter = s > 0 ? `blur(${s}px)` : "none", _.translate(d, f), _.fillStyle = "#000", t(_), _.restore(), _.save(), _.globalCompositeOperation = "destination-in", _.filter = "none", _.fillStyle = "#000", t(_), _.restore(), e.save(), e.drawImage(h, m.x, m.y), e.restore();
69
+ let _ = T(g, p);
70
+ _.save(), _.fillStyle = c(r.color, r.alpha), t(_), _.restore(), _.save(), _.globalCompositeOperation = "destination-out", _.filter = s > 0 ? `blur(${s}px)` : "none", _.translate(d, f), _.fillStyle = "#000", t(_), _.restore(), _.save(), _.globalCompositeOperation = "destination-in", _.filter = "none", _.fillStyle = "#000", t(_), _.restore(), e.save(), e.drawImage(m, p.x, p.y), e.restore();
70
71
  }
71
72
  function O(e, t, n, r, i, a, o, s) {
72
73
  let c = S(r.radius, i);
@@ -74,19 +75,19 @@ function O(e, t, n, r, i, a, o, s) {
74
75
  t(e);
75
76
  return;
76
77
  }
77
- let l = w(n, Math.ceil(c) + 2, a, o), u = n.x - l.x, d = n.y - l.y, f = p(l.w, l.h);
78
+ let l = w(n, Math.ceil(c) + 2, a, o), u = n.x - l.x, d = n.y - l.y, f = h(l.w, l.h);
78
79
  if (!f) {
79
80
  t(e);
80
81
  return;
81
82
  }
82
- let m = C(f);
83
- if (!m) {
83
+ let p = C(f);
84
+ if (!p) {
84
85
  t(e);
85
86
  return;
86
87
  }
87
- let h = T(m, l), g = s ?? t;
88
- t(h);
89
- let _ = p(l.w, l.h), v = p(l.w, l.h), y = _ ? C(_) : null, b = v ? C(v) : null;
88
+ let m = T(p, l), g = s ?? t;
89
+ t(m);
90
+ let _ = h(l.w, l.h), v = h(l.w, l.h), y = _ ? C(_) : null, b = v ? C(v) : null;
90
91
  if (_ && y && v && b) {
91
92
  let t = T(y, l);
92
93
  t.fillStyle = "#000", g(t), b.drawImage(f, u, d, n.w, n.h, u - c, d - c, n.w + c * 2, n.h + c * 2), b.drawImage(f, 0, 0), b.globalCompositeOperation = "destination-in", b.filter = `blur(${c / 3}px)`, b.drawImage(_, 0, 0), b.filter = "none", b.globalCompositeOperation = "source-over", e.save(), e.drawImage(v, l.x, l.y), e.restore();
@@ -95,14 +96,14 @@ function O(e, t, n, r, i, a, o, s) {
95
96
  e.save(), e.drawImage(f, 0, 0), e.restore();
96
97
  }
97
98
  function k(e, t, n, r, i, a, o) {
98
- let s = p(a, o);
99
+ let s = h(a, o);
99
100
  if (!s) return;
100
101
  let c = C(s);
101
102
  if (!c) return;
102
103
  let l = S(r.blur, i);
103
104
  c.save(), l > 0 && (c.filter = `blur(${l}px)`), t(c), c.restore(), c.save(), c.globalCompositeOperation = "destination-in";
104
- let u = n.y, d = n.y + n.h, f = c.createLinearGradient(0, d, 0, u), m = A(r.stPos), h = A(r.endPos);
105
- f.addColorStop(0, `rgba(0,0,0,${r.stA})`), m > 0 && f.addColorStop(m, `rgba(0,0,0,${r.stA})`), h < 1 && h > m && f.addColorStop(h, `rgba(0,0,0,${r.endA})`), f.addColorStop(1, `rgba(0,0,0,${r.endA})`), c.fillStyle = f, c.fillRect(0, 0, a, o), c.restore();
105
+ let u = n.y, d = n.y + n.h, f = c.createLinearGradient(0, d, 0, u), p = A(r.stPos), m = A(r.endPos);
106
+ f.addColorStop(0, `rgba(0,0,0,${r.stA})`), p > 0 && f.addColorStop(p, `rgba(0,0,0,${r.stA})`), m < 1 && m > p && f.addColorStop(m, `rgba(0,0,0,${r.endA})`), f.addColorStop(1, `rgba(0,0,0,${r.endA})`), c.fillStyle = f, c.fillRect(0, 0, a, o), c.restore();
106
107
  let g = S(r.dist, i), _ = r.dir * Math.PI / 180, v = Math.cos(_) * g, y = Math.sin(_) * g;
107
108
  e.save(), e.translate(n.x + v, d + y), e.scale(r.sx, r.sy), e.translate(-n.x, -d), e.drawImage(s, 0, 0), e.restore();
108
109
  }
@@ -237,12 +238,12 @@ function W(e, t, n, r, i, a, o, s, c, l, u) {
237
238
  let d = i.map((e) => ({
238
239
  x: a[0] * e.x + a[2] * e.y + a[4],
239
240
  y: a[1] * e.x + a[3] * e.y + a[5]
240
- })), f = Infinity, m = Infinity, h = -Infinity, g = -Infinity;
241
- for (let e of d) e.x < f && (f = e.x), e.y < m && (m = e.y), e.x > h && (h = e.x), e.y > g && (g = e.y);
242
- f = Math.floor(f) - 1, m = Math.floor(m) - 1, h = Math.ceil(h) + 1, g = Math.ceil(g) + 1;
243
- let _ = h - f, v = g - m;
241
+ })), f = Infinity, p = Infinity, m = -Infinity, g = -Infinity;
242
+ for (let e of d) e.x < f && (f = e.x), e.y < p && (p = e.y), e.x > m && (m = e.x), e.y > g && (g = e.y);
243
+ f = Math.floor(f) - 1, p = Math.floor(p) - 1, m = Math.ceil(m) + 1, g = Math.ceil(g) + 1;
244
+ let _ = m - f, v = g - p;
244
245
  if (_ <= 0 || v <= 0) return !1;
245
- let y = Math.max(1, Math.ceil(_ * U)), b = Math.max(1, Math.ceil(v * U)), x = p(y, b);
246
+ let y = Math.max(1, Math.ceil(_ * U)), b = Math.max(1, Math.ceil(v * U)), x = h(y, b);
246
247
  if (!x || x.width !== y || x.height !== b) return !1;
247
248
  let S = x.getContext("2d") ?? null;
248
249
  if (!S) return !1;
@@ -252,11 +253,11 @@ function W(e, t, n, r, i, a, o, s, c, l, u) {
252
253
  a[2] * C,
253
254
  a[3] * C,
254
255
  (a[4] - f) * C,
255
- (a[5] - m) * C
256
+ (a[5] - p) * C
256
257
  ];
257
258
  S.save(), S.setTransform(w[0], w[1], w[2], w[3], w[4], w[5]), S.beginPath(), S.moveTo(i[0].x, i[0].y), S.lineTo(i[1].x, i[1].y), S.lineTo(i[2].x, i[2].y), S.lineTo(i[3].x, i[3].y), S.closePath(), S.clip(), I(S, e, n, r, w, o, s, c, 0, 0, 1, 1, l * C, u), S.restore(), t.save(), t.setTransform(1, 0, 0, 1, 0, 0);
258
259
  let T = t.imageSmoothingEnabled, E = t.imageSmoothingQuality;
259
- return t.imageSmoothingEnabled = !0, t.imageSmoothingQuality = "high", t.drawImage(x, 0, 0, _ * C, v * C, f, m, _, v), t.imageSmoothingEnabled = T, t.imageSmoothingQuality = E, t.restore(), !0;
260
+ return t.imageSmoothingEnabled = !0, t.imageSmoothingQuality = "high", t.drawImage(x, 0, 0, _ * C, v * C, f, p, _, v), t.imageSmoothingEnabled = T, t.imageSmoothingQuality = E, t.restore(), !0;
260
261
  }
261
262
  //#endregion
262
263
  //#region packages/core/src/chart/three-d-surface-picture.ts
@@ -312,10 +313,10 @@ function ne(e, t, n) {
312
313
  function re(e, t, n) {
313
314
  return Math.hypot(e.x - t.x, e.y - t.y, (e.depth - t.depth) * n);
314
315
  }
315
- function ie(e, c, l, u, p, h, _, v, y) {
316
- let b = i(c, u, p, y);
317
- if (!b || h.inner.length !== 4) return !1;
318
- let x = d(l);
316
+ function ie(e, c, l, u, h, g, _, v, y) {
317
+ let b = i(c, u, h, y);
318
+ if (!b || g.inner.length !== 4) return !1;
319
+ let x = p(l);
319
320
  if (!(x.w > 0) || !(x.h > 0)) return !1;
320
321
  let S = m(l, c.srcRect), C = S ? {
321
322
  x0: S.sx,
@@ -323,10 +324,10 @@ function ie(e, c, l, u, p, h, _, v, y) {
323
324
  x1: S.sx + S.sw,
324
325
  y1: S.sy + S.sh
325
326
  } : void 0, w = [
326
- v(h.inner[3]),
327
- v(h.inner[2]),
328
- v(h.inner[1]),
329
- v(h.inner[0])
327
+ v(g.inner[3]),
328
+ v(g.inner[2]),
329
+ v(g.inner[1]),
330
+ v(g.inner[0])
330
331
  ], T = (e, t, n) => ({
331
332
  x: e.x + (t.x - e.x) * n,
332
333
  y: e.y + (t.y - e.y) * n,
@@ -336,12 +337,12 @@ function ie(e, c, l, u, p, h, _, v, y) {
336
337
  v(T(e[2], e[1], n)),
337
338
  v(T(e[2], e[1], t)),
338
339
  v(T(e[3], e[0], t))
339
- ], D = b.mode === "stack" ? ne(h.pictureStackAspect, x.w, x.h) : null, O = b.mode === "tile" ? t(c, l) : null, k = [];
340
+ ], D = b.mode === "stack" ? ne(g.pictureStackAspect, x.w, x.h) : null, O = b.mode === "tile" ? t(c, l) : null, k = [];
340
341
  if (b.mode === "stack") {
341
342
  if (D == null) return !1;
342
343
  let e = 0, t = !1;
343
344
  for (let r of _) {
344
- if (!a(b, r) || !G(h, p, r, v)) continue;
345
+ if (!a(b, r) || !G(g, h, r, v)) continue;
345
346
  let i = n(b, r) ? Math.ceil(1 / D) : 1;
346
347
  if (!Number.isSafeInteger(i) || i < 1 || (e += i, e > 4096)) return !1;
347
348
  t = !0;
@@ -353,26 +354,26 @@ function ie(e, c, l, u, p, h, _, v, y) {
353
354
  let t = 0, n = 0, r = !1;
354
355
  for (let i of _) {
355
356
  if (!a(b, i)) continue;
356
- let s = G(h, p, i, v);
357
+ let s = G(g, h, i, v);
357
358
  if (!s) continue;
358
- let c = re(s[0], s[1], h.modelDepth), l = re(s[0], s[3], h.modelDepth);
359
+ let c = re(s[0], s[1], g.modelDepth), l = re(s[0], s[3], g.modelDepth);
359
360
  if (!(c > 0) || !(l > 0)) continue;
360
- let u = o(O, c, l), d = Math.floor(-u.x / O.tileW), m = Math.floor(-u.y / O.tileH), g = Math.ceil((c - u.x) / O.tileW), _ = Math.ceil((l - u.y) / O.tileH), y = Math.max(0, g - d) * Math.max(0, _ - m);
361
+ let u = o(O, c, l), f = Math.floor(-u.x / O.tileW), p = Math.floor(-u.y / O.tileH), m = Math.ceil((c - u.x) / O.tileW), _ = Math.ceil((l - u.y) / O.tileH), y = Math.max(0, m - f) * Math.max(0, _ - p);
361
362
  if (!Number.isSafeInteger(y) || (t += y, t > 4096)) return !1;
362
363
  if (y === 0) continue;
363
364
  let x = Math.ceil(c), S = Math.ceil(l);
364
365
  if (!(x > 0 && x <= 32767) || !(S > 0 && S <= 32767) || x > Math.floor((16777216 - n) / S)) return !1;
365
366
  n += x * S;
366
- let C = f(e, x, S), w = C?.getContext("2d");
367
+ let C = d(e, x, S), w = C?.getContext("2d");
367
368
  if (!C || !w) return !1;
368
369
  k.push({
369
370
  faceIndex: i,
370
371
  width: c,
371
372
  height: l,
372
373
  origin: u,
373
- firstColumn: d,
374
- firstRow: m,
375
- lastColumn: g,
374
+ firstColumn: f,
375
+ firstRow: p,
376
+ lastColumn: m,
376
377
  lastRow: _,
377
378
  canvas: C,
378
379
  context: w
@@ -382,7 +383,7 @@ function ie(e, c, l, u, p, h, _, v, y) {
382
383
  }
383
384
  if (e.save(), c.alpha != null && (e.globalAlpha *= c.alpha), b.mode === "stretch") for (let t of _) {
384
385
  if (!a(b, t)) continue;
385
- let n = G(h, p, t, v), r = h.thickness === 0 && t === 0 ? w : n?.map(v);
386
+ let n = G(g, h, t, v), r = g.thickness === 0 && t === 0 ? w : n?.map(v);
386
387
  if (!r) continue;
387
388
  let i = ee(r, c.fillRect);
388
389
  if (!i) continue;
@@ -400,7 +401,7 @@ function ie(e, c, l, u, p, h, _, v, y) {
400
401
  }
401
402
  else for (let t of _) {
402
403
  if (!a(b, t)) continue;
403
- let i = G(h, p, t, v);
404
+ let i = G(g, h, t, v);
404
405
  if (!i) continue;
405
406
  let o = i.map(v);
406
407
  e.save(), e.beginPath(), e.moveTo(o[0].x, o[0].y);
@@ -415,7 +416,7 @@ function ie(e, c, l, u, p, h, _, v, y) {
415
416
  n.context.save(), n.context.scale(r, i);
416
417
  for (let e = n.firstRow; e < n.lastRow; e++) for (let t = n.firstColumn; t < n.lastColumn; t++) {
417
418
  let r = n.origin.x + t * O.tileW, i = n.origin.y + e * O.tileH, a = O.flipX && Math.abs(t) % 2 == 1, o = O.flipY && Math.abs(e) % 2 == 1;
418
- n.context.save(), n.context.translate(r + (a ? O.tileW : 0), i + (o ? O.tileH : 0)), n.context.scale(a ? -1 : 1, o ? -1 : 1), g(n.context, l, c.srcRect, 0, 0, O.tileW, O.tileH), n.context.restore();
419
+ n.context.save(), n.context.translate(r + (a ? O.tileW : 0), i + (o ? O.tileH : 0)), n.context.scale(a ? -1 : 1, o ? -1 : 1), f(n.context, l, c.srcRect, 0, 0, O.tileW, O.tileH), n.context.restore();
419
420
  }
420
421
  n.context.restore(), L(n.canvas, e, n.canvas.width, n.canvas.height, o, .5);
421
422
  } else if (b.mode === "stack") {
@@ -460,12 +461,12 @@ function K(e, t) {
460
461
  function ae(e, t, n, r, i = 0) {
461
462
  if (!t) return;
462
463
  if (t.fillHidden !== !0) {
463
- let r = t.fillPaint ? _(t.fillPaint, e, n.x, n.y, n.w, n.h, i) : t.fill ? `#${t.fill}` : null;
464
+ let r = t.fillPaint ? g(t.fillPaint, e, n.x, n.y, n.w, n.h, i) : t.fill ? `#${t.fill}` : null;
464
465
  r && (e.fillStyle = r, e.fillRect(n.x, n.y, n.w, n.h));
465
466
  }
466
467
  if (t.borderHidden === !0) return;
467
- let a = t.borderFill ? _(t.borderFill, e, n.x, n.y, n.w, n.h, i) : t.borderColor ? `#${t.borderColor}` : null;
468
- a && (e.save(), e.strokeStyle = a, e.lineWidth = t.borderWidthEmu == null ? Math.max(.25, .75 * r) : Math.max(.25, t.borderWidthEmu / h * r), e.setLineDash(u(t.borderCustomDash, t.borderDash, e.lineWidth)), t.borderCap === "rnd" ? e.lineCap = "round" : t.borderCap === "sq" ? e.lineCap = "square" : t.borderCap === "flat" && (e.lineCap = "butt"), t.borderJoin === "round" ? e.lineJoin = "round" : t.borderJoin === "bevel" ? e.lineJoin = "bevel" : t.borderJoin === "miter" && (e.lineJoin = "miter"), e.strokeRect(n.x, n.y, n.w, n.h), e.restore());
468
+ let a = t.borderFill ? g(t.borderFill, e, n.x, n.y, n.w, n.h, i) : t.borderColor ? `#${t.borderColor}` : null;
469
+ a && (e.save(), e.strokeStyle = a, e.lineWidth = t.borderWidthEmu == null ? Math.max(.25, .75 * r) : Math.max(.25, t.borderWidthEmu / _ * r), e.setLineDash(u(t.borderCustomDash, t.borderDash, e.lineWidth)), t.borderCap === "rnd" ? e.lineCap = "round" : t.borderCap === "sq" ? e.lineCap = "square" : t.borderCap === "flat" && (e.lineCap = "butt"), t.borderJoin === "round" ? e.lineJoin = "round" : t.borderJoin === "bevel" ? e.lineJoin = "bevel" : t.borderJoin === "miter" && (e.lineJoin = "miter"), e.strokeRect(n.x, n.y, n.w, n.h), e.restore());
469
470
  }
470
471
  //#endregion
471
472
  //#region packages/core/src/chart/axis-scale.ts