@pixldocs/canvas-renderer 0.5.180 → 0.5.182

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.
@@ -16480,9 +16480,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
16480
16480
  }
16481
16481
  return svgString;
16482
16482
  }
16483
- const resolvedPackageVersion = "0.5.180";
16483
+ const resolvedPackageVersion = "0.5.182";
16484
16484
  const PACKAGE_VERSION = resolvedPackageVersion;
16485
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.180";
16485
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.182";
16486
16486
  const roundParityValue = (value) => {
16487
16487
  if (typeof value !== "number") return value;
16488
16488
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -16781,6 +16781,8 @@ class PixldocsRenderer {
16781
16781
  if (shouldWatermark) {
16782
16782
  const { injectWatermark } = await import("./canvasWatermark-pkhacGge.js");
16783
16783
  configToRender = injectWatermark(configToRender, watermarkOptions);
16784
+ const { injectPreviewBlur } = await import("./previewBlur-ceEQYSVv.js");
16785
+ configToRender = injectPreviewBlur(configToRender);
16784
16786
  }
16785
16787
  return this.renderAllPages(configToRender, renderOpts);
16786
16788
  }
@@ -16838,6 +16840,8 @@ class PixldocsRenderer {
16838
16840
  if (shouldWatermark) {
16839
16841
  const { injectWatermark } = await import("./canvasWatermark-pkhacGge.js");
16840
16842
  configToRender = injectWatermark(configToRender, watermarkOptions);
16843
+ const { injectPreviewBlur } = await import("./previewBlur-ceEQYSVv.js");
16844
+ configToRender = injectPreviewBlur(configToRender);
16841
16845
  }
16842
16846
  return this.renderAllPageSvgs(configToRender);
16843
16847
  }
@@ -16880,6 +16884,8 @@ class PixldocsRenderer {
16880
16884
  if (shouldWatermark) {
16881
16885
  const { injectWatermark } = await import("./canvasWatermark-pkhacGge.js");
16882
16886
  configToRender = injectWatermark(configToRender, watermarkOptions);
16887
+ const { injectPreviewBlur } = await import("./previewBlur-ceEQYSVv.js");
16888
+ configToRender = injectPreviewBlur(configToRender);
16883
16889
  }
16884
16890
  return this.renderPdfViaClientExport(configToRender, {
16885
16891
  title: title ?? resolved.config.name,
@@ -16984,7 +16990,7 @@ class PixldocsRenderer {
16984
16990
  await this.waitForCanvasScene(container, cloned, i);
16985
16991
  }
16986
16992
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
16987
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DCZJhOmn.js");
16993
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BpRBLtU-.js");
16988
16994
  const prepared = preparePagesForExport(
16989
16995
  cloned.pages,
16990
16996
  canvasWidth,
@@ -19129,7 +19135,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
19129
19135
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
19130
19136
  sanitizeSvgTreeForPdf(svgToDraw);
19131
19137
  try {
19132
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DCZJhOmn.js");
19138
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BpRBLtU-.js");
19133
19139
  try {
19134
19140
  await logTextMeasurementDiagnostic(svgToDraw);
19135
19141
  } catch {
@@ -19467,62 +19473,63 @@ function setAutoShrinkDebug(enabled) {
19467
19473
  }
19468
19474
  }
19469
19475
  export {
19470
- setBundledAssetPrefixes as $,
19476
+ setAutoShrinkDebug as $,
19471
19477
  API_URL as A,
19472
- collectImageUrls as B,
19473
- configHasAutoShrinkText$1 as C,
19478
+ collectFontsFromConfig as B,
19479
+ collectImageUrls as C,
19474
19480
  DEPLOYMENT_VERSION_MARKER as D,
19475
- dumpSvgTextDiagnostics as E,
19481
+ configHasAutoShrinkText$1 as E,
19476
19482
  FONT_FALLBACK_DEVANAGARI as F,
19477
- embedFont as G,
19478
- embedFontsForConfig as H,
19479
- embedFontsInPdf as I,
19480
- ensureFontsForResolvedConfig as J,
19481
- extractFontFamiliesFromSvgs as K,
19482
- getEmbeddedJsPDFFontName as L,
19483
- getPublishedTemplate as M,
19484
- getTemplateForm as N,
19485
- isBundledAssetUrl as O,
19483
+ dumpSvgTextDiagnostics as G,
19484
+ embedFont as H,
19485
+ embedFontsForConfig as I,
19486
+ embedFontsInPdf as J,
19487
+ ensureFontsForResolvedConfig as K,
19488
+ extractFontFamiliesFromSvgs as L,
19489
+ getEmbeddedJsPDFFontName as M,
19490
+ getPublishedTemplate as N,
19491
+ getTemplateForm as O,
19486
19492
  PACKAGE_VERSION as P,
19487
- isFontAvailable as Q,
19488
- isPrivateUrl as R,
19489
- listPublishedTemplates as S,
19493
+ isBundledAssetUrl as Q,
19494
+ isFontAvailable as R,
19495
+ isPrivateUrl as S,
19490
19496
  TRIANGLE_STROKE_MITER_LIMIT as T,
19491
- loadGoogleFontCSS as U,
19492
- normalizeFontFamily as V,
19493
- resolveFontWeight as W,
19494
- resolveFromForm as X,
19495
- resolveTemplateData as Y,
19496
- rewriteSvgFontsForJsPDF as Z,
19497
- setAutoShrinkDebug as _,
19497
+ listPublishedTemplates as U,
19498
+ loadGoogleFontCSS as V,
19499
+ normalizeFontFamily as W,
19500
+ resolveFontWeight as X,
19501
+ resolveFromForm as Y,
19502
+ resolveTemplateData as Z,
19503
+ rewriteSvgFontsForJsPDF as _,
19498
19504
  getAbsoluteBounds as a,
19499
- warmResolvedTemplateForPreview as a0,
19500
- warmTemplateFromForm as a1,
19501
- canvasImageLoader as a2,
19502
- getProxiedImageUrl as b,
19505
+ setBundledAssetPrefixes as a0,
19506
+ warmResolvedTemplateForPreview as a1,
19507
+ warmTemplateFromForm as a2,
19508
+ canvasImageLoader as a3,
19509
+ baseId as b,
19503
19510
  captureFabricCanvasSvgForPdf as c,
19504
- bakeEdgeFade as d,
19505
- isGroup as e,
19511
+ getProxiedImageUrl as d,
19512
+ bakeEdgeFade as e,
19506
19513
  findNodeById as f,
19507
19514
  getCanvasForPage as g,
19508
19515
  hasEdgeFade as h,
19509
19516
  isElement as i,
19510
- buildRoundedTrianglePath as j,
19511
- getImageProxyFetchOptions as k,
19512
- getRoundedRectRadii as l,
19513
- getTrianglePoints as m,
19517
+ isGroup as j,
19518
+ buildRoundedTrianglePath as k,
19519
+ getImageProxyFetchOptions as l,
19520
+ getRoundedRectRadii as m,
19514
19521
  normalizeShapeType as n,
19515
- FONT_FALLBACK_MATH as o,
19522
+ getTrianglePoints as o,
19516
19523
  parseTextMarkdown as p,
19517
- FONT_FALLBACK_SYMBOLS as q,
19524
+ FONT_FALLBACK_MATH as q,
19518
19525
  renderSmartElementToSvg as r,
19519
- FONT_FILES as s,
19520
- PixldocsPreview as t,
19521
- PixldocsRenderer as u,
19522
- applyThemeToConfig as v,
19523
- assemblePdfFromSvgs as w,
19524
- awaitFontsForConfig as x,
19525
- collectFontDescriptorsFromConfig as y,
19526
- collectFontsFromConfig as z
19526
+ FONT_FALLBACK_SYMBOLS as s,
19527
+ FONT_FILES as t,
19528
+ PixldocsPreview as u,
19529
+ PixldocsRenderer as v,
19530
+ applyThemeToConfig as w,
19531
+ assemblePdfFromSvgs as x,
19532
+ awaitFontsForConfig as y,
19533
+ collectFontDescriptorsFromConfig as z
19527
19534
  };
19528
- //# sourceMappingURL=index-DdrxSxRr.js.map
19535
+ //# sourceMappingURL=index-CcCXKYy6.js.map