@silurus/ooxml 0.83.0 → 0.83.2

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/pptx.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { u as e } from "./slide-pull-client-CwvvncPA.js";
1
+ import { u as e } from "./slide-pull-client-B9rcJdO4.js";
2
2
  import { Qt as t, Zt as n, a as r } from "./line-metrics-Bpn7OeZD.js";
3
- import { w as i } from "./canvas-viewer-mechanics-h07vpVOQ.js";
3
+ import { w as i } from "./canvas-viewer-mechanics-DVGK-fLT.js";
4
4
  import { cn as a, ln as o } from "./plot-area-frame-DHV02PJU.js";
5
- import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-BcUCETmQ.js";
5
+ import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-Wh22eziy.js";
6
6
  export { a as OoxmlDecodedImageLimitError, n as OoxmlError, t as OoxmlResourceLimitError, s as PptxPresentation, l as PptxScrollViewer, d as PptxViewer, i as autoResize, u as buildPptxHighlightLayer, f as buildPptxTextLayer, o as isOoxmlDecodedImageLimitError, r as openExternalHyperlink, c as readPptxTextSelectionContext, e as renderSlide };
@@ -43,7 +43,7 @@ function a(e, t) {
43
43
  return n = o.then(() => void 0, () => void 0), o;
44
44
  }
45
45
  async function o(e, t, n, r = {}) {
46
- let { renderSlide: i } = await import("./session-BjydZEDF.js").then((e) => e.t), o = t.slides[n];
46
+ let { renderSlide: i } = await import("./session-CxT-t0BX.js").then((e) => e.t), o = t.slides[n];
47
47
  if (!o) throw Error(`Slide index ${n} out of range`);
48
48
  let s = r.width ?? 960, c = r.dpr ?? 2, l = r.fetchImage ?? (async () => new Blob([])), u = async () => {
49
49
  await i(e, o, t.slideWidth, t.slideHeight, {
@@ -1,5 +1,5 @@
1
1
  //#region packages/pptx/src/render-worker.ts?worker&url
2
- var e = "" + new URL("assets/render-worker-DuztdEcX.js", import.meta.url).href;
2
+ var e = "" + new URL("assets/render-worker-4GSYWsM3.js", import.meta.url).href;
3
3
  //#endregion
4
4
  //#region packages/pptx/src/render-worker-host.ts
5
5
  function t() {
@@ -1,5 +1,5 @@
1
1
  //#region packages/docx/src/render-worker.ts?worker&url
2
- var e = "" + new URL("assets/render-worker-Bu31cf1J.js", import.meta.url).href;
2
+ var e = "" + new URL("assets/render-worker-DwFpY197.js", import.meta.url).href;
3
3
  //#endregion
4
4
  //#region packages/docx/src/render-worker-host.ts
5
5
  function t() {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { a as t, u as n } from "./slide-pull-client-CwvvncPA.js";
2
+ import { a as t, u as n } from "./slide-pull-client-B9rcJdO4.js";
3
3
  import { B as r, Bt as i, F as a, G as o, H as s, I as c, K as l, P as u, Q as d, Qt as f, R as p, U as ee, W as m, X as h, Y as g, Z as _, q as v } from "./line-metrics-Bpn7OeZD.js";
4
4
  import { t as y } from "./transfer-R6NjgBKD.js";
5
5
  //#region packages/pptx/src/slide-cursor-operation.ts
@@ -5097,20 +5097,20 @@ function Fr(t, n, r, i, a = {
5097
5097
  themeMajorFont: null,
5098
5098
  themeMinorFont: null,
5099
5099
  dpr: 1
5100
- }) {
5100
+ }, o) {
5101
5101
  t.save(), Pr(t, n, r);
5102
- let o = Y(n.x, r), s = Y(n.y, r), c = n.cols.map((e) => Y(e, r)), l = c.length, u = (e, t) => {
5102
+ let s = Y(n.x, r), c = Y(n.y, r), l = n.cols.map((e) => Y(e, r)), u = l.length, d = (e, t) => {
5103
5103
  let n = 0;
5104
- for (let r = 0; r < t; r++) n += c[e + r] ?? 0;
5104
+ for (let r = 0; r < t; r++) n += l[e + r] ?? 0;
5105
5105
  return n;
5106
- }, d = n.rows.map((e) => Y(e.height, r));
5106
+ }, f = n.rows.map((e) => Y(e.height, r));
5107
5107
  for (let e = 0; e < n.rows.length; e++) {
5108
5108
  let o = n.rows[e];
5109
5109
  for (let n = 0; n < o.cells.length; n++) {
5110
5110
  let s = o.cells[n];
5111
5111
  if (s.hMerge || s.vMerge || (s.rowSpan || 1) > 1 || !s.textBody) continue;
5112
- let c = u(n, s.gridSpan || 1), l = Sr(t, s.textBody, 0, 0, c, 0, r, null, 0, !1, !1, "#000000", i, a, void 0, !0, void 0, !1, o.height === 0) || 0;
5113
- l > d[e] && (d[e] = l);
5112
+ let c = d(n, s.gridSpan || 1), l = Sr(t, s.textBody, 0, 0, c, 0, r, null, 0, !1, !1, "#000000", i, a, void 0, !0, void 0, !1, o.height === 0) || 0;
5113
+ l > f[e] && (f[e] = l);
5114
5114
  }
5115
5115
  }
5116
5116
  for (let e = 0; e < n.rows.length; e++) {
@@ -5120,101 +5120,127 @@ function Fr(t, n, r, i, a = {
5120
5120
  if (c.hMerge || c.vMerge) continue;
5121
5121
  let l = c.rowSpan || 1;
5122
5122
  if (l <= 1 || !c.textBody) continue;
5123
- let f = u(s, c.gridSpan || 1), p = n.rows.slice(e, Math.min(n.rows.length, e + l)).some((e) => e.height === 0), m = Sr(t, c.textBody, 0, 0, f, 0, r, null, 0, !1, !1, "#000000", i, a, void 0, !0, void 0, !1, p) || 0, h = 0;
5124
- for (let t = 0; t < l && e + t < d.length; t++) h += d[e + t];
5123
+ let u = d(s, c.gridSpan || 1), p = n.rows.slice(e, Math.min(n.rows.length, e + l)).some((e) => e.height === 0), m = Sr(t, c.textBody, 0, 0, u, 0, r, null, 0, !1, !1, "#000000", i, a, void 0, !0, void 0, !1, p) || 0, h = 0;
5124
+ for (let t = 0; t < l && e + t < f.length; t++) h += f[e + t];
5125
5125
  if (m > h) {
5126
5126
  let t = (m - h) / l;
5127
- for (let n = 0; n < l && e + n < d.length; n++) d[e + n] += t;
5127
+ for (let n = 0; n < l && e + n < f.length; n++) f[e + n] += t;
5128
5128
  }
5129
5129
  }
5130
5130
  }
5131
- let f = c.reduce((e, t) => e + t, 0), p = Array(l);
5131
+ let p = l.reduce((e, t) => e + t, 0), m = Array(u);
5132
5132
  if (n.rtl) {
5133
- let e = o + f;
5134
- for (let t = 0; t < l; t++) e -= c[t], p[t] = e;
5133
+ let e = s + p;
5134
+ for (let t = 0; t < u; t++) e -= l[t], m[t] = e;
5135
5135
  } else {
5136
- let e = o;
5137
- for (let t = 0; t < l; t++) p[t] = e, e += c[t];
5136
+ let e = s;
5137
+ for (let t = 0; t < u; t++) m[t] = e, e += l[t];
5138
5138
  }
5139
- let m = (e, t) => n.rtl ? p[e + t - 1] : p[e], h = Array(n.rows.length);
5139
+ let h = (e, t) => n.rtl ? m[e + t - 1] : m[e], g = Array(n.rows.length);
5140
5140
  {
5141
- let e = s;
5142
- for (let t = 0; t < n.rows.length; t++) h[t] = e, e += d[t];
5141
+ let e = c;
5142
+ for (let t = 0; t < n.rows.length; t++) g[t] = e, e += f[t];
5143
+ }
5144
+ let _, v = {
5145
+ row: 0,
5146
+ column: 0
5147
+ };
5148
+ if (o) {
5149
+ let e = Y(n.width, r), t = Y(n.height, r), i = s + e / 2, a = c + t / 2, l = n.rotation * Math.PI / 180, u = Math.cos(l), d = Math.sin(l);
5150
+ _ = (e) => {
5151
+ let t = e.shapeX + e.shapeW / 2 - i, r = e.shapeY + e.shapeH / 2 - a;
5152
+ n.flipH && (t = -t), n.flipV && (r = -r);
5153
+ let s = i + u * t - d * r, c = a + d * t + u * r;
5154
+ o({
5155
+ ...e,
5156
+ ...n.id === void 0 ? {} : { shapeId: n.id },
5157
+ shapeX: s - e.shapeW / 2,
5158
+ shapeY: c - e.shapeH / 2,
5159
+ rotation: n.rotation,
5160
+ ...n.flipH ? { shapeFlipH: !0 } : {},
5161
+ ...n.flipV ? { shapeFlipV: !0 } : {},
5162
+ tableCell: v
5163
+ });
5164
+ };
5143
5165
  }
5144
- let g = [], _ = n.rows.map(() => Array(l).fill(-1));
5166
+ let y = [], b = n.rows.map(() => Array(u).fill(-1));
5145
5167
  for (let e = 0; e < n.rows.length; e++) {
5146
- let t = n.rows[e], r = h[e];
5168
+ let t = n.rows[e], r = g[e];
5147
5169
  for (let i = 0; i < t.cells.length; i++) {
5148
5170
  let a = t.cells[i];
5149
5171
  if (a.hMerge || a.vMerge) continue;
5150
- let o = a.gridSpan || 1, s = a.rowSpan || 1, c = u(i, o), f = 0;
5151
- for (let t = 0; t < s; t++) f += d[e + t] ?? 0;
5152
- let p = m(i, o), h = Math.min(e + s - 1, n.rows.length - 1), v = g.length;
5153
- g.push({
5172
+ let o = a.gridSpan || 1, s = a.rowSpan || 1, c = d(i, o), l = 0;
5173
+ for (let t = 0; t < s; t++) l += f[e + t] ?? 0;
5174
+ let p = h(i, o), m = Math.min(e + s - 1, n.rows.length - 1), g = y.length;
5175
+ y.push({
5154
5176
  cell: a,
5155
5177
  colX: p,
5156
5178
  rowY: r,
5157
5179
  cellW: c,
5158
- cellH: f,
5180
+ cellH: l,
5159
5181
  ci: i,
5160
5182
  ri: e,
5161
5183
  span: o,
5162
- lastRi: h
5184
+ lastRi: m
5163
5185
  });
5164
- for (let t = e; t <= h; t++) for (let e = i; e < i + o && e < l; e++) _[t][e] = v;
5186
+ for (let t = e; t <= m; t++) for (let e = i; e < i + o && e < u; e++) b[t][e] = g;
5165
5187
  }
5166
5188
  }
5167
- for (let { cell: e, colX: o, rowY: s, cellW: c, cellH: l } of g) {
5168
- let u = _n(e.fill, t, o, s, c, l, n.rotation);
5169
- if (u && (t.fillStyle = u, t.fillRect(o, s, c, l)), e.textBody) {
5189
+ for (let { cell: e, colX: o, rowY: s, cellW: c, cellH: l, ci: u, ri: d } of y) {
5190
+ let f = _n(e.fill, t, o, s, c, l, n.rotation);
5191
+ if (f && (t.fillStyle = f, t.fillRect(o, s, c, l)), e.textBody) {
5192
+ _ && (v = {
5193
+ row: d,
5194
+ column: u
5195
+ });
5170
5196
  let n = e.textColor ? X(e.textColor) : null;
5171
- Sr(t, e.textBody, o, s, c, l, r, n, 0, !1, !1, "#000000", i, a);
5197
+ Sr(t, e.textBody, o, s, c, l, r, n, 0, !1, !1, "#000000", i, a, _);
5172
5198
  }
5173
5199
  }
5174
- let v = a.dpr, y = (e, t) => {
5175
- if (e < 0 || e >= _.length || t < 0 || t >= l) return null;
5176
- let n = _[e][t];
5177
- return n < 0 ? null : g[n];
5178
- }, b = (i, a, o, s, c) => {
5200
+ let x = a.dpr, S = (e, t) => {
5201
+ if (e < 0 || e >= b.length || t < 0 || t >= u) return null;
5202
+ let n = b[e][t];
5203
+ return n < 0 ? null : y[n];
5204
+ }, C = (i, a, o, s, c) => {
5179
5205
  Nr(t, i, r, {
5180
5206
  x: Math.min(a, s),
5181
5207
  y: Math.min(o, c),
5182
5208
  w: Math.max(1, Math.abs(s - a)),
5183
5209
  h: Math.max(1, Math.abs(c - o))
5184
5210
  }, n.rotation);
5185
- let l = a === s ? e(a, t.lineWidth, v) : 0, u = o === c ? e(o, t.lineWidth, v) : 0;
5211
+ let l = a === s ? e(a, t.lineWidth, x) : 0, u = o === c ? e(o, t.lineWidth, x) : 0;
5186
5212
  t.beginPath(), t.moveTo(a + l, o + u), t.lineTo(s + l, c + u), t.stroke();
5187
5213
  };
5188
- for (let e of g) {
5214
+ for (let e of y) {
5189
5215
  let { cell: i, colX: a, rowY: o, cellW: s, cellH: c } = e;
5190
5216
  t.save();
5191
- let f = n.rtl ? i.borderR : i.borderL, p = n.rtl ? i.borderL : i.borderR, g = n.rtl ? e.ci + e.span === l : e.ci === 0, v = n.rtl ? e.ci === 0 : e.ci + e.span === l, x = n.rtl ? e.ci - 1 : e.ci + e.span, S = (e) => n.rtl ? e.borderR : e.borderL;
5192
- if (e.ri === 0 && i.borderT && b(i.borderT, a, o, a + s, o), g && f && b(f, a, o, a, o + c), e.lastRi === n.rows.length - 1) {
5217
+ let l = n.rtl ? i.borderR : i.borderL, p = n.rtl ? i.borderL : i.borderR, m = n.rtl ? e.ci + e.span === u : e.ci === 0, _ = n.rtl ? e.ci === 0 : e.ci + e.span === u, v = n.rtl ? e.ci - 1 : e.ci + e.span, y = (e) => n.rtl ? e.borderR : e.borderL;
5218
+ if (e.ri === 0 && i.borderT && C(i.borderT, a, o, a + s, o), m && l && C(l, a, o, a, o + c), e.lastRi === n.rows.length - 1) {
5193
5219
  let e = i.borderB;
5194
- e && b(e, a, o + c, a + s, o + c);
5220
+ e && C(e, a, o + c, a + s, o + c);
5195
5221
  } else {
5196
- let t = e.lastRi + 1, n = o + c, r = Math.min(e.ci + e.span, l), a = e.ci;
5222
+ let t = e.lastRi + 1, n = o + c, r = Math.min(e.ci + e.span, u), a = e.ci;
5197
5223
  for (; a < r;) {
5198
- let e = _[t][a], o = a + 1;
5199
- for (; o < r && _[t][o] === e;) o++;
5200
- let s = y(t, a), c = an(i.borderB, s ? s.cell.borderT : null);
5224
+ let e = b[t][a], o = a + 1;
5225
+ for (; o < r && b[t][o] === e;) o++;
5226
+ let s = S(t, a), c = an(i.borderB, s ? s.cell.borderT : null);
5201
5227
  if (c) {
5202
- let e = m(a, o - a);
5203
- b(c, e, n, e + u(a, o - a), n);
5228
+ let e = h(a, o - a);
5229
+ C(c, e, n, e + d(a, o - a), n);
5204
5230
  }
5205
5231
  a = o;
5206
5232
  }
5207
5233
  }
5208
- if (v) {
5234
+ if (_) {
5209
5235
  let e = p;
5210
- e && b(e, a + s, o, a + s, o + c);
5236
+ e && C(e, a + s, o, a + s, o + c);
5211
5237
  } else {
5212
5238
  let t = a + s, n = e.ri;
5213
5239
  for (; n <= e.lastRi;) {
5214
- let r = _[n][x], i = n;
5215
- for (; i + 1 <= e.lastRi && _[i + 1][x] === r;) i++;
5216
- let a = y(n, x), o = an(p, a ? S(a.cell) : null);
5217
- o && b(o, t, h[n], t, h[i] + d[i]), n = i + 1;
5240
+ let r = b[n][v], i = n;
5241
+ for (; i + 1 <= e.lastRi && b[i + 1][v] === r;) i++;
5242
+ let a = S(n, v), o = an(p, a ? y(a.cell) : null);
5243
+ o && C(o, t, g[n], t, g[i] + f[i]), n = i + 1;
5218
5244
  }
5219
5245
  }
5220
5246
  i.diagonalTL && (Nr(t, i.diagonalTL, r, {
@@ -5356,7 +5382,11 @@ async function Hr(e, t, n, r, i = {}, a, o) {
5356
5382
  origin: t.elementSources?.[n]?.origin ?? "slide"
5357
5383
  }) : void 0, i.fetchImage);
5358
5384
  else if (r.type === "picture") await Ar(g, r, u, c, i.fetchImage);
5359
- else if (r.type === "table") Fr(g, r, u, y, v);
5385
+ else if (r.type === "table") Fr(g, r, u, y, v, a ? (e) => a({
5386
+ ...e,
5387
+ elementIndex: n,
5388
+ origin: t.elementSources?.[n]?.origin ?? "slide"
5389
+ }) : void 0);
5360
5390
  else if (r.type === "media") await jr(g, r, u, c, i.fetchMedia, i.skipMediaControls, i.fetchImage);
5361
5391
  else if (r.type === "chart") {
5362
5392
  let e = J * u;
@@ -1990,7 +1990,7 @@ interface RenderPageOptions {
1990
1990
  showTrackedChanges?: boolean;
1991
1991
  }
1992
1992
  //#endregion
1993
- //#region dist/.types-work/docx-CBra4_iJ.d.ts
1993
+ //#region dist/.types-work/docx-CyuBv4wv.d.ts
1994
1994
  interface CommentAnchorRange {
1995
1995
  readonly commentId: string;
1996
1996
  readonly source: Readonly<DocxStorySource>;
@@ -2252,6 +2252,7 @@ declare class DocxViewer implements ZoomableViewer {
2252
2252
  private _elementContext;
2253
2253
  private _elementHitGeneration;
2254
2254
  private _layoutViewGeneration;
2255
+ private _layoutViewPublicationGeneration;
2255
2256
  private _navigationGeneration;
2256
2257
  private _layoutUnsubscribe;
2257
2258
  private _internalHyperlinkGeneration;
@@ -2305,6 +2306,7 @@ declare class DocxViewer implements ZoomableViewer {
2305
2306
  private _bindLayoutDocument;
2306
2307
  private _unbindLayoutDocument;
2307
2308
  private _onLayoutPublication;
2309
+ private _onLayoutViewPublication;
2308
2310
  private _waitForPage;
2309
2311
  private _wakeLayoutWaiters;
2310
2312
  private _cancelPendingNavigation;
@@ -2415,7 +2417,9 @@ declare class DocxScrollViewer implements ZoomableViewer {
2415
2417
  private _findActive;
2416
2418
  private _findRequestGeneration;
2417
2419
  private _showTrackedChanges;
2420
+ private _currentDate;
2418
2421
  private _layoutViewGeneration;
2422
+ private _layoutViewPublicationGeneration;
2419
2423
  static fromDocument(container: HTMLElement, document: DocxDocument, opts?: Omit<DocxScrollViewerOptions, keyof LoadOptions>): Omit<DocxScrollViewer, 'load'>;
2420
2424
  constructor(container: HTMLElement, opts?: DocxScrollViewerOptions);
2421
2425
  load(source: string | ArrayBuffer): Promise<void>;
@@ -2425,6 +2429,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
2425
2429
  private _bindLayoutDocument;
2426
2430
  private _unbindLayoutDocument;
2427
2431
  private _onLayoutPublication;
2432
+ private _onLayoutViewPublication;
2428
2433
  private _refreshCommentSurface;
2429
2434
  private _applyLayoutPublication;
2430
2435
  private _revealPendingLayoutAtPresentedTail;
@@ -2196,7 +2196,7 @@ interface RenderPageOptions {
2196
2196
  showTrackedChanges?: boolean;
2197
2197
  }
2198
2198
  //#endregion
2199
- //#region dist/.types-work/docx-CBra4_iJ.d.ts
2199
+ //#region dist/.types-work/docx-CyuBv4wv.d.ts
2200
2200
  interface CommentAnchorRange {
2201
2201
  readonly commentId: string;
2202
2202
  readonly source: Readonly<DocxStorySource>;
@@ -2458,6 +2458,7 @@ declare class DocxViewer implements ZoomableViewer {
2458
2458
  private _elementContext;
2459
2459
  private _elementHitGeneration;
2460
2460
  private _layoutViewGeneration;
2461
+ private _layoutViewPublicationGeneration;
2461
2462
  private _navigationGeneration;
2462
2463
  private _layoutUnsubscribe;
2463
2464
  private _internalHyperlinkGeneration;
@@ -2511,6 +2512,7 @@ declare class DocxViewer implements ZoomableViewer {
2511
2512
  private _bindLayoutDocument;
2512
2513
  private _unbindLayoutDocument;
2513
2514
  private _onLayoutPublication;
2515
+ private _onLayoutViewPublication;
2514
2516
  private _waitForPage;
2515
2517
  private _wakeLayoutWaiters;
2516
2518
  private _cancelPendingNavigation;
@@ -2621,7 +2623,9 @@ declare class DocxScrollViewer implements ZoomableViewer {
2621
2623
  private _findActive;
2622
2624
  private _findRequestGeneration;
2623
2625
  private _showTrackedChanges;
2626
+ private _currentDate;
2624
2627
  private _layoutViewGeneration;
2628
+ private _layoutViewPublicationGeneration;
2625
2629
  static fromDocument(container: HTMLElement, document: DocxDocument, opts?: Omit<DocxScrollViewerOptions, keyof LoadOptions$2>): Omit<DocxScrollViewer, 'load'>;
2626
2630
  constructor(container: HTMLElement, opts?: DocxScrollViewerOptions);
2627
2631
  load(source: string | ArrayBuffer): Promise<void>;
@@ -2631,6 +2635,7 @@ declare class DocxScrollViewer implements ZoomableViewer {
2631
2635
  private _bindLayoutDocument;
2632
2636
  private _unbindLayoutDocument;
2633
2637
  private _onLayoutPublication;
2638
+ private _onLayoutViewPublication;
2634
2639
  private _refreshCommentSurface;
2635
2640
  private _applyLayoutPublication;
2636
2641
  private _revealPendingLayoutAtPresentedTail;
@@ -2999,7 +3004,7 @@ interface PictureElement {
2999
3004
  sp3d?: Sp3d;
3000
3005
  }
3001
3006
  //#endregion
3002
- //#region dist/.types-work/pptx-Btl3_eEe.d.ts
3007
+ //#region dist/.types-work/pptx-BODJIDql.d.ts
3003
3008
  interface PptxTextRunInfo {
3004
3009
  elementIndex?: number;
3005
3010
  origin?: SlideElementOrigin;
@@ -3016,6 +3021,12 @@ interface PptxTextRunInfo {
3016
3021
  shapeW: number;
3017
3022
  shapeH: number;
3018
3023
  rotation: number;
3024
+ shapeFlipH?: boolean;
3025
+ shapeFlipV?: boolean;
3026
+ tableCell?: Readonly<{
3027
+ row: number;
3028
+ column: number;
3029
+ }>;
3019
3030
  textBodyRotation?: number;
3020
3031
  hyperlink?: HyperlinkTarget;
3021
3032
  }
@@ -1712,7 +1712,7 @@ interface PictureElement {
1712
1712
  sp3d?: Sp3d;
1713
1713
  }
1714
1714
  //#endregion
1715
- //#region dist/.types-work/pptx-Btl3_eEe.d.ts
1715
+ //#region dist/.types-work/pptx-BODJIDql.d.ts
1716
1716
  interface PptxTextRunInfo {
1717
1717
  elementIndex?: number;
1718
1718
  origin?: SlideElementOrigin;
@@ -1729,6 +1729,12 @@ interface PptxTextRunInfo {
1729
1729
  shapeW: number;
1730
1730
  shapeH: number;
1731
1731
  rotation: number;
1732
+ shapeFlipH?: boolean;
1733
+ shapeFlipV?: boolean;
1734
+ tableCell?: Readonly<{
1735
+ row: number;
1736
+ column: number;
1737
+ }>;
1732
1738
  textBodyRotation?: number;
1733
1739
  hyperlink?: HyperlinkTarget;
1734
1740
  }
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
2
  import { $ as t, A as n, At as r, B as i, C as a, Ct as o, D as s, Dt as c, Et as l, Ht as u, M as d, Mt as f, Nt as p, O as m, Ot as h, Pt as g, Qt as _, R as v, S as y, T as b, V as x, Vt as S, W as C, Zt as w, _ as T, a as E, at as D, c as O, d as k, dt as A, et as j, f as M, ft as N, g as ee, h as P, it as F, j as te, jt as I, lt as L, m as R, n as z, nt as ne, p as B, rt as V, s as re, tt as H, u as ie, ut as U, w as ae, y as oe, z as se } from "./line-metrics-Bpn7OeZD.js";
3
- import { C as ce, E as le, S as ue, T as de, _ as fe, a as pe, b as me, d as W, f as G, h as K, i as he, l as ge, m as _e, p as ve, t as ye, u as q, v as be, w as xe, x as Se, y as Ce } from "./canvas-viewer-mechanics-h07vpVOQ.js";
3
+ import { C as ce, E as le, S as ue, T as de, _ as fe, a as pe, b as me, d as W, f as G, h as K, i as he, l as ge, m as _e, p as ve, t as ye, u as q, v as be, w as xe, x as Se, y as Ce } from "./canvas-viewer-mechanics-DVGK-fLT.js";
4
4
  import { a as we, i as Te, t as Ee } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
5
  import { C as De, _ as J, c as Oe, cn as ke, h as Ae, in as je, k as Me, l as Ne, ln as Pe, nn as Fe, o as Ie, s as Le, un as Re, v as ze, w as Be } from "./plot-area-frame-DHV02PJU.js";
6
6
  import { a as Ve, i as Y, r as He } from "./units-BzZ0gAxs.js";
@@ -7628,7 +7628,7 @@ var Gs = class {
7628
7628
  this._pendingZoomAnchor = Number.isFinite(t) && Number.isFinite(n) ? {
7629
7629
  x: t,
7630
7630
  y: n
7631
- } : null, this.setScale(Se(this.viewport.scale, e.deltaY));
7631
+ } : null, this.setScale(Se(this.viewport.scale, e.deltaY, e.deltaMode));
7632
7632
  }, { passive: !1 }), this.surface.on("pointerleave", (e) => {
7633
7633
  let t = e.relatedTarget;
7634
7634
  t && this.commentPopup.contains(t) || this.hideCommentPopup();
package/dist/xlsx.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Qt as e, Zt as t, a as n } from "./line-metrics-Bpn7OeZD.js";
2
- import { w as r } from "./canvas-viewer-mechanics-h07vpVOQ.js";
2
+ import { w as r } from "./canvas-viewer-mechanics-DVGK-fLT.js";
3
3
  import { cn as i, ln as a } from "./plot-area-frame-DHV02PJU.js";
4
- import { a as o, i as s, n as c, o as l, r as u, s as d } from "./xlsx-BibrHQ52.js";
4
+ import { a as o, i as s, n as c, o as l, r as u, s as d } from "./xlsx-C3beLfwZ.js";
5
5
  import { i as f } from "./worksheet-pull-client-DyFsDF4A.js";
6
6
  export { s as MAX_SELECTION_AREAS, o as MAX_SELECTION_CONTEXT_CELLS, l as MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, i as OoxmlDecodedImageLimitError, t as OoxmlError, e as OoxmlResourceLimitError, c as XlsxSheetViewer, u as XlsxViewer, d as XlsxWorkbook, r as autoResize, a as isOoxmlDecodedImageLimitError, n as openExternalHyperlink, f as resolveSharedStrings };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silurus/ooxml",
3
- "version": "0.83.0",
3
+ "version": "0.83.2",
4
4
  "description": "Browser-based OOXML viewer (docx/xlsx/pptx) — Rust/WASM parser + Canvas renderer",
5
5
  "license": "MIT",
6
6
  "author": "Yuki Yokotani <silurus.dev@gmail.com>",