@pixldocs/canvas-renderer 0.5.108 → 0.5.109
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{svgTextToPath-C20Obtt2.js → svgTextToPath-B2UVS22F.js} +9 -1
- package/dist/{svgTextToPath-DTKsddnS.cjs.map → svgTextToPath-B2UVS22F.js.map} +1 -1
- package/dist/{svgTextToPath-DTKsddnS.cjs → svgTextToPath-CeL46_ks.cjs} +9 -1
- package/dist/svgTextToPath-CeL46_ks.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/svgTextToPath-C20Obtt2.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -17672,7 +17672,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
17672
17672
|
const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
|
|
17673
17673
|
drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
|
|
17674
17674
|
const shouldStripBg = stripPageBackground ?? hasGradient;
|
|
17675
|
-
const textMode = options.textMode ?? (options.outlineText === false ? "selectable" : "
|
|
17675
|
+
const textMode = options.textMode ?? (options.outlineText === false ? "selectable" : "pixel-perfect");
|
|
17676
17676
|
const shouldOutlineText = textMode === "pixel-perfect" || textMode === "auto";
|
|
17677
17677
|
const outlineSubMode = textMode === "auto" ? "complex-only" : "all";
|
|
17678
17678
|
let pageSvg = page.svg;
|
|
@@ -17686,7 +17686,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
17686
17686
|
}
|
|
17687
17687
|
if (shouldOutlineText) {
|
|
17688
17688
|
try {
|
|
17689
|
-
const { convertAllTextToPath } = await Promise.resolve().then(() => require("./svgTextToPath-
|
|
17689
|
+
const { convertAllTextToPath } = await Promise.resolve().then(() => require("./svgTextToPath-CeL46_ks.cjs"));
|
|
17690
17690
|
pageSvg = await convertAllTextToPath(pageSvg, fontBaseUrl, { mode: outlineSubMode });
|
|
17691
17691
|
try {
|
|
17692
17692
|
dumpSvgTextDiagnostics(pageSvg, i, PARITY_TAG, "STAGE-1b-after-text-to-path-raw");
|