@pixldocs/canvas-renderer 0.5.66 → 0.5.67

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.66";
257
+ export declare const PACKAGE_VERSION = "0.5.67";
258
258
 
259
259
  export declare interface PageSettings {
260
260
  backgroundColor?: string;
@@ -272,7 +272,7 @@ export declare interface PdfAssemblyOptions {
272
272
  stripPageBackground?: boolean;
273
273
  /** Base URL for TTF font files (e.g. 'https://pixldocs.com/fonts/' or '/fonts/'). Required for correct font rendering. */
274
274
  fontBaseUrl?: string;
275
- /** Convert SVG text to paths before svg2pdf for preview/PDF font metric parity. Default: true. */
275
+ /** Convert SVG text to paths before svg2pdf. Default: false — keep live Fabric SVG text for preview/PDF metric parity. */
276
276
  outlineText?: boolean;
277
277
  }
278
278
 
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.66";
12545
+ const PACKAGE_VERSION = "0.5.67";
12546
12546
  let __underlineFixInstalled = false;
12547
12547
  function installUnderlineFix(fab) {
12548
12548
  var _a;
@@ -15624,7 +15624,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
15624
15624
  const hasGradient = !!((_b = (_a = page.backgroundGradient) == null ? void 0 : _a.stops) == null ? void 0 : _b.length);
15625
15625
  drawPageBackground(pdf, i, page.width, page.height, page.backgroundColor, page.backgroundGradient);
15626
15626
  const shouldStripBg = stripPageBackground ?? hasGradient;
15627
- const shouldOutlineText = options.outlineText ?? true;
15627
+ const shouldOutlineText = options.outlineText === true;
15628
15628
  const pageSvg = page.svg;
15629
15629
  let processedSvg = await prepareLiveCanvasSvgForPdf(pageSvg, page.width, page.height, `page-${i + 1}`, {
15630
15630
  stripPageBackground: shouldStripBg