@pixldocs/canvas-renderer 0.5.60 → 0.5.61

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 CHANGED
@@ -12561,7 +12561,7 @@ function PixldocsPreview(props) {
12561
12561
  !canvasSettled && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
12562
12562
  ] });
12563
12563
  }
12564
- const PACKAGE_VERSION = "0.5.59";
12564
+ const PACKAGE_VERSION = "0.5.61";
12565
12565
  let __underlineFixInstalled = false;
12566
12566
  function installUnderlineFix(fab) {
12567
12567
  var _a;
@@ -15594,13 +15594,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
15594
15594
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
15595
15595
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
15596
15596
  const shouldStripBg = stripPageBackground ?? hasGradient;
15597
- let pageSvg = page.svg;
15598
- try {
15599
- const mod = await Promise.resolve().then(() => require("./svgTextToPath-BTHnqJpM.cjs"));
15600
- pageSvg = await mod.convertAllTextToPath(pageSvg, fontBaseUrl);
15601
- } catch (outlineErr) {
15602
- console.warn(`[canvas-renderer pdf] page ${i + 1}: text outliner unavailable, continuing with text-as-text`, outlineErr);
15603
- }
15597
+ const pageSvg = page.svg;
15604
15598
  let processedSvg = await prepareLiveCanvasSvgForPdf(pageSvg, page.width, page.height, `page-${i + 1}`, {
15605
15599
  stripPageBackground: shouldStripBg
15606
15600
  });