@pixldocs/canvas-renderer 0.5.111 → 0.5.112
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17745,7 +17745,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
17745
17745
|
const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
|
|
17746
17746
|
drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
|
|
17747
17747
|
const shouldStripBg = stripPageBackground ?? hasGradient;
|
|
17748
|
-
const textMode = options.textMode ?? (options.outlineText ===
|
|
17748
|
+
const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "selectable");
|
|
17749
17749
|
const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
|
|
17750
17750
|
const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
|
|
17751
17751
|
let pageSvg = page.svg;
|