@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.d.ts CHANGED
@@ -254,7 +254,7 @@ export declare function normalizeFontFamily(fontStack: string): string;
254
254
  * Package version banner. Bump alongside package.json so we can confirm
255
255
  * (via browser:log) that the deployed bundle matches the expected build.
256
256
  */
257
- export declare const PACKAGE_VERSION = "0.5.59";
257
+ export declare const PACKAGE_VERSION = "0.5.61";
258
258
 
259
259
  export declare interface PageSettings {
260
260
  backgroundColor?: string;
package/dist/index.js CHANGED
@@ -12542,7 +12542,7 @@ function PixldocsPreview(props) {
12542
12542
  !canvasSettled && /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
12543
12543
  ] });
12544
12544
  }
12545
- const PACKAGE_VERSION = "0.5.59";
12545
+ const PACKAGE_VERSION = "0.5.61";
12546
12546
  let __underlineFixInstalled = false;
12547
12547
  function installUnderlineFix(fab) {
12548
12548
  var _a;
@@ -15575,13 +15575,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
15575
15575
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
15576
15576
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
15577
15577
  const shouldStripBg = stripPageBackground ?? hasGradient;
15578
- let pageSvg = page.svg;
15579
- try {
15580
- const mod = await import("./svgTextToPath-BP0Kppla.js");
15581
- pageSvg = await mod.convertAllTextToPath(pageSvg, fontBaseUrl);
15582
- } catch (outlineErr) {
15583
- console.warn(`[canvas-renderer pdf] page ${i + 1}: text outliner unavailable, continuing with text-as-text`, outlineErr);
15584
- }
15578
+ const pageSvg = page.svg;
15585
15579
  let processedSvg = await prepareLiveCanvasSvgForPdf(pageSvg, page.width, page.height, `page-${i + 1}`, {
15586
15580
  stripPageBackground: shouldStripBg
15587
15581
  });