@silurus/ooxml 0.83.0 → 0.83.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 +2 -2
- package/dist/assets/{render-worker-DuztdEcX.js → render-worker-4GSYWsM3.js} +1 -1
- package/dist/assets/{render-worker-Bu31cf1J.js → render-worker-DwFpY197.js} +1 -1
- package/dist/{document-pull-client-BAhqoTmm.js → document-pull-client-DSx36ZsB.js} +20 -9
- package/dist/{docx-Dg73PGgC.js → docx-BF-WKW73.js} +365 -288
- package/dist/docx.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/node.mjs +5 -5
- package/dist/{pptx-BcUCETmQ.js → pptx-CA-Q09yW.js} +205 -185
- package/dist/pptx.mjs +2 -2
- package/dist/{render-CL-7V3E8.js → render-DtbFbO5c.js} +1 -1
- package/dist/{render-worker-host-FJ19-fUI.js → render-worker-host-D1jcACJV.js} +1 -1
- package/dist/{render-worker-host-DDZo0feh.js → render-worker-host-DCLyw6UR.js} +1 -1
- package/dist/{session-BjydZEDF.js → session-CxT-t0BX.js} +1 -1
- package/dist/{slide-pull-client-CwvvncPA.js → slide-pull-client-B9rcJdO4.js} +83 -53
- package/dist/types/docx.d.ts +6 -1
- package/dist/types/index.d.ts +13 -2
- package/dist/types/pptx.d.ts +7 -1
- package/package.json +1 -1
package/dist/pptx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as e } from "./slide-pull-client-
|
|
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
3
|
import { w as i } from "./canvas-viewer-mechanics-h07vpVOQ.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-
|
|
5
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f } from "./pptx-CA-Q09yW.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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 +=
|
|
5104
|
+
for (let r = 0; r < t; r++) n += l[e + r] ?? 0;
|
|
5105
5105
|
return n;
|
|
5106
|
-
},
|
|
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 =
|
|
5113
|
-
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
|
|
5124
|
-
for (let t = 0; t < l && 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 <
|
|
5127
|
+
for (let n = 0; n < l && e + n < f.length; n++) f[e + n] += t;
|
|
5128
5128
|
}
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
|
-
let
|
|
5131
|
+
let p = l.reduce((e, t) => e + t, 0), m = Array(u);
|
|
5132
5132
|
if (n.rtl) {
|
|
5133
|
-
let e =
|
|
5134
|
-
for (let t = 0; t <
|
|
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 =
|
|
5137
|
-
for (let t = 0; t <
|
|
5136
|
+
let e = s;
|
|
5137
|
+
for (let t = 0; t < u; t++) m[t] = e, e += l[t];
|
|
5138
5138
|
}
|
|
5139
|
-
let
|
|
5139
|
+
let h = (e, t) => n.rtl ? m[e + t - 1] : m[e], g = Array(n.rows.length);
|
|
5140
5140
|
{
|
|
5141
|
-
let e =
|
|
5142
|
-
for (let t = 0; t < n.rows.length; 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
|
|
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 =
|
|
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 =
|
|
5151
|
-
for (let t = 0; t < s; t++)
|
|
5152
|
-
let p =
|
|
5153
|
-
|
|
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:
|
|
5180
|
+
cellH: l,
|
|
5159
5181
|
ci: i,
|
|
5160
5182
|
ri: e,
|
|
5161
5183
|
span: o,
|
|
5162
|
-
lastRi:
|
|
5184
|
+
lastRi: m
|
|
5163
5185
|
});
|
|
5164
|
-
for (let t = e; t <=
|
|
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
|
|
5168
|
-
let
|
|
5169
|
-
if (
|
|
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
|
|
5175
|
-
if (e < 0 || e >=
|
|
5176
|
-
let n =
|
|
5177
|
-
return n < 0 ? null :
|
|
5178
|
-
},
|
|
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,
|
|
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
|
|
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
|
|
5192
|
-
if (e.ri === 0 && i.borderT &&
|
|
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 &&
|
|
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,
|
|
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 =
|
|
5199
|
-
for (; o < r &&
|
|
5200
|
-
let s =
|
|
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 =
|
|
5203
|
-
|
|
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 (
|
|
5234
|
+
if (_) {
|
|
5209
5235
|
let e = p;
|
|
5210
|
-
e &&
|
|
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 =
|
|
5215
|
-
for (; i + 1 <= e.lastRi &&
|
|
5216
|
-
let a =
|
|
5217
|
-
o &&
|
|
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;
|
package/dist/types/docx.d.ts
CHANGED
|
@@ -1990,7 +1990,7 @@ interface RenderPageOptions {
|
|
|
1990
1990
|
showTrackedChanges?: boolean;
|
|
1991
1991
|
}
|
|
1992
1992
|
//#endregion
|
|
1993
|
-
//#region dist/.types-work/docx-
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2196,7 +2196,7 @@ interface RenderPageOptions {
|
|
|
2196
2196
|
showTrackedChanges?: boolean;
|
|
2197
2197
|
}
|
|
2198
2198
|
//#endregion
|
|
2199
|
-
//#region dist/.types-work/docx-
|
|
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-
|
|
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
|
}
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1712,7 +1712,7 @@ interface PictureElement {
|
|
|
1712
1712
|
sp3d?: Sp3d;
|
|
1713
1713
|
}
|
|
1714
1714
|
//#endregion
|
|
1715
|
-
//#region dist/.types-work/pptx-
|
|
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
|
}
|
package/package.json
CHANGED