@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.js
CHANGED
|
@@ -17726,7 +17726,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
17726
17726
|
const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
|
|
17727
17727
|
drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
|
|
17728
17728
|
const shouldStripBg = stripPageBackground ?? hasGradient;
|
|
17729
|
-
const textMode = options.textMode ?? (options.outlineText ===
|
|
17729
|
+
const textMode = options.textMode ?? (options.outlineText === true ? "pixel-perfect" : "selectable");
|
|
17730
17730
|
const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
|
|
17731
17731
|
const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
|
|
17732
17732
|
let pageSvg = page.svg;
|