@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.
- package/README.md +36 -0
- package/dist/{index-B9NOXCTL.cjs → index-CUINpGhe.cjs} +12 -5
- package/dist/index-CUINpGhe.cjs.map +1 -0
- package/dist/{index-DdrxSxRr.js → index-CcCXKYy6.js} +55 -48
- package/dist/index-CcCXKYy6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +37 -37
- package/dist/previewBlur-D1laq3kn.cjs +104 -0
- package/dist/previewBlur-D1laq3kn.cjs.map +1 -0
- package/dist/previewBlur-ceEQYSVv.js +104 -0
- package/dist/previewBlur-ceEQYSVv.js.map +1 -0
- package/dist/{vectorPdfExport-B8qiTpn8.cjs → vectorPdfExport-0dwbE8Kn.cjs} +4 -4
- package/dist/{vectorPdfExport-B8qiTpn8.cjs.map → vectorPdfExport-0dwbE8Kn.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DCZJhOmn.js → vectorPdfExport-BpRBLtU-.js} +4 -4
- package/dist/{vectorPdfExport-DCZJhOmn.js.map → vectorPdfExport-BpRBLtU-.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B9NOXCTL.cjs.map +0 -1
- package/dist/index-DdrxSxRr.js.map +0 -1
|
@@ -16480,9 +16480,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
16480
16480
|
}
|
|
16481
16481
|
return svgString;
|
|
16482
16482
|
}
|
|
16483
|
-
const resolvedPackageVersion = "0.5.
|
|
16483
|
+
const resolvedPackageVersion = "0.5.182";
|
|
16484
16484
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
16485
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
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-
|
|
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-
|
|
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
|
-
|
|
19476
|
+
setAutoShrinkDebug as $,
|
|
19471
19477
|
API_URL as A,
|
|
19472
|
-
|
|
19473
|
-
|
|
19478
|
+
collectFontsFromConfig as B,
|
|
19479
|
+
collectImageUrls as C,
|
|
19474
19480
|
DEPLOYMENT_VERSION_MARKER as D,
|
|
19475
|
-
|
|
19481
|
+
configHasAutoShrinkText$1 as E,
|
|
19476
19482
|
FONT_FALLBACK_DEVANAGARI as F,
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
|
|
19480
|
-
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
|
|
19484
|
-
|
|
19485
|
-
|
|
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
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
19493
|
+
isBundledAssetUrl as Q,
|
|
19494
|
+
isFontAvailable as R,
|
|
19495
|
+
isPrivateUrl as S,
|
|
19490
19496
|
TRIANGLE_STROKE_MITER_LIMIT as T,
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
|
|
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
|
-
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
|
|
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
|
-
|
|
19505
|
-
|
|
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
|
-
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
|
|
19517
|
+
isGroup as j,
|
|
19518
|
+
buildRoundedTrianglePath as k,
|
|
19519
|
+
getImageProxyFetchOptions as l,
|
|
19520
|
+
getRoundedRectRadii as m,
|
|
19514
19521
|
normalizeShapeType as n,
|
|
19515
|
-
|
|
19522
|
+
getTrianglePoints as o,
|
|
19516
19523
|
parseTextMarkdown as p,
|
|
19517
|
-
|
|
19524
|
+
FONT_FALLBACK_MATH as q,
|
|
19518
19525
|
renderSmartElementToSvg as r,
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
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-
|
|
19535
|
+
//# sourceMappingURL=index-CcCXKYy6.js.map
|