@silurus/ooxml 0.74.4 → 0.74.6

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 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-Dv8sdixm.js";
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-Dv8sdixm.js";
2
- import { t } from "./pptx-DkKbei1w.js";
3
- import { t as n } from "./xlsx-D-UFFxVs.js";
1
+ import { t as e } from "./docx-DftZMp7R.js";
2
+ import { t } from "./pptx-qbadwIv4.js";
3
+ import { t as n } from "./xlsx-BqMHvfsE.js";
4
4
  export { e as docx, t as pptx, n as xlsx };