@silurus/ooxml 0.74.4 → 0.74.5
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 +3 -1
- package/dist/{docx-Dv8sdixm.js → docx-DftZMp7R.js} +2 -2
- package/dist/docx.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{pptx-DkKbei1w.js → pptx-BxU0Lb3J.js} +208 -130
- package/dist/pptx.mjs +1 -1
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-worker-host-B-Y1DmN9.js → render-worker-host-Bcm9j4-H.js} +1 -1
- package/dist/{render-worker-host-B5otq5TA.js → render-worker-host-BqSTDaYt.js} +1 -1
- package/dist/types/docx.d.ts +24 -9
- package/dist/types/index.d.ts +47 -22
- package/dist/types/pptx.d.ts +35 -12
- package/dist/types/xlsx.d.ts +21 -4
- package/dist/{xlsx-D-UFFxVs.js → xlsx-BqMHvfsE.js} +377 -369
- package/dist/xlsx.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -238,7 +238,9 @@ transparent, selectable text layer per page/slide for native copy. It works in
|
|
|
238
238
|
both `mode: 'main'` and `mode: 'worker'`; worker rendering returns the retained
|
|
239
239
|
text-run geometry beside each bitmap. `findText()`, `findNext()`, `findPrev()`,
|
|
240
240
|
and `clearFind()` search the complete document, including virtualized pages or
|
|
241
|
-
slides outside the mounted window.
|
|
241
|
+
slides outside the mounted window. Set `findHighlightColors: { match, active }`
|
|
242
|
+
on any viewer to override the two overlay backgrounds with CSS colors; use an
|
|
243
|
+
alpha color when the canvas text should remain visible through the highlight.
|
|
242
244
|
|
|
243
245
|
**Hyperlinks.** For DOCX/PPTX the link hit regions live on the text-selection
|
|
244
246
|
overlay, so hyperlink interaction requires `enableTextSelection: true`; when that
|
|
@@ -24598,7 +24598,7 @@ var QC = class {
|
|
|
24598
24598
|
let t = this._highlightLayer;
|
|
24599
24599
|
if (!t) return;
|
|
24600
24600
|
let { width: n, height: r } = this._canvasCssPx();
|
|
24601
|
-
ZC(t, e, this._find.pageHighlights(this._currentPage), n, r, (e) => this._measureForFont(e));
|
|
24601
|
+
ZC(t, e, this._find.pageHighlights(this._currentPage), n, r, (e) => this._measureForFont(e), this._opts.findHighlightColors);
|
|
24602
24602
|
}
|
|
24603
24603
|
_canvasCssPx() {
|
|
24604
24604
|
return {
|
|
@@ -25086,7 +25086,7 @@ var QC = class {
|
|
|
25086
25086
|
t.highlightLayer.innerHTML = "";
|
|
25087
25087
|
return;
|
|
25088
25088
|
}
|
|
25089
|
-
ZC(t.highlightLayer, n, this._find.pageHighlights(e), this._pageWidthPx(e), this._pageHeightPx(e), (e) => this._measureForFont(e));
|
|
25089
|
+
ZC(t.highlightLayer, n, this._find.pageHighlights(e), this._pageWidthPx(e), this._pageHeightPx(e), (e) => this._measureForFont(e), this._opts.findHighlightColors);
|
|
25090
25090
|
}
|
|
25091
25091
|
_onResize() {
|
|
25092
25092
|
if (!this._doc || this._doc.pageCount === 0) return;
|
package/dist/docx.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Yt as e, _t as t, l as n } from "./find-cursor-DtgyGs5V.js";
|
|
2
|
-
import { a as r, i, n as a, o, r as s, s as c } from "./docx-
|
|
2
|
+
import { a as r, i, n as a, o, r as s, s as c } from "./docx-DftZMp7R.js";
|
|
3
3
|
export { c as DocxDocument, s as DocxScrollViewer, i as DocxViewer, e as OoxmlError, t as autoResize, r as buildDocxHighlightLayer, o as buildDocxTextLayer, a as noteText, n as openExternalHyperlink };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./docx-
|
|
2
|
-
import { t } from "./pptx-
|
|
3
|
-
import { t as n } from "./xlsx-
|
|
1
|
+
import { t as e } from "./docx-DftZMp7R.js";
|
|
2
|
+
import { t } from "./pptx-BxU0Lb3J.js";
|
|
3
|
+
import { t as n } from "./xlsx-BqMHvfsE.js";
|
|
4
4
|
export { e as docx, t as pptx, n as xlsx };
|