@pixldocs/canvas-renderer 0.5.455 → 0.5.456
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-CoBJQqYp.cjs → index-D7XRqqRF.cjs} +8 -7
- package/dist/{index-CoBJQqYp.cjs.map → index-D7XRqqRF.cjs.map} +1 -1
- package/dist/{index-Bs4oHgQ2.js → index-DbfhlD78.js} +8 -7
- package/dist/{index-Bs4oHgQ2.js.map → index-DbfhlD78.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Dl1_fD7e.js → vectorPdfExport-CAeuEsjr.js} +4 -4
- package/dist/{vectorPdfExport-Dl1_fD7e.js.map → vectorPdfExport-CAeuEsjr.js.map} +1 -1
- package/dist/{vectorPdfExport-CErInEKs.cjs → vectorPdfExport-Cyok7Rsu.cjs} +4 -4
- package/dist/{vectorPdfExport-CErInEKs.cjs.map → vectorPdfExport-Cyok7Rsu.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -21754,13 +21754,14 @@ function applyFormDataToConfig(config, mappings, formValues, repeatableSectionsF
|
|
|
21754
21754
|
const applyValue = (elementId, targetProperty, value, fieldKey) => {
|
|
21755
21755
|
var _a3;
|
|
21756
21756
|
const isTextLike = targetProperty === "text" || targetProperty === "content";
|
|
21757
|
+
const isImageLike = targetProperty === "src" || targetProperty === "imageUrl";
|
|
21757
21758
|
if (value === void 0 || value === null) {
|
|
21758
21759
|
return false;
|
|
21759
21760
|
}
|
|
21760
|
-
if (value === "" && !isTextLike) {
|
|
21761
|
+
if (value === "" && !isTextLike && !isImageLike) {
|
|
21761
21762
|
return false;
|
|
21762
21763
|
}
|
|
21763
|
-
let effectiveValue =
|
|
21764
|
+
let effectiveValue = value;
|
|
21764
21765
|
if (effectiveValue === void 0) return false;
|
|
21765
21766
|
if (isTextLike && typeof effectiveValue === "string" && effectiveValue !== "") {
|
|
21766
21767
|
const fType = resolveDisplayFormat(fieldKey);
|
|
@@ -26036,9 +26037,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26036
26037
|
}
|
|
26037
26038
|
return svgString;
|
|
26038
26039
|
}
|
|
26039
|
-
const resolvedPackageVersion = "0.5.
|
|
26040
|
+
const resolvedPackageVersion = "0.5.456";
|
|
26040
26041
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26041
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26042
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.456";
|
|
26042
26043
|
const roundParityValue = (value) => {
|
|
26043
26044
|
if (typeof value !== "number") return value;
|
|
26044
26045
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26852,7 +26853,7 @@ class PixldocsRenderer {
|
|
|
26852
26853
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26853
26854
|
}
|
|
26854
26855
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26855
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26856
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CAeuEsjr.js");
|
|
26856
26857
|
const prepared = preparePagesForExport(
|
|
26857
26858
|
cloned.pages,
|
|
26858
26859
|
canvasWidth,
|
|
@@ -29172,7 +29173,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29172
29173
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29173
29174
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29174
29175
|
try {
|
|
29175
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29176
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CAeuEsjr.js");
|
|
29176
29177
|
try {
|
|
29177
29178
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29178
29179
|
} catch {
|
|
@@ -29572,4 +29573,4 @@ export {
|
|
|
29572
29573
|
buildTeaserBlurFlatKeys as y,
|
|
29573
29574
|
collectFontDescriptorsFromConfig as z
|
|
29574
29575
|
};
|
|
29575
|
-
//# sourceMappingURL=index-
|
|
29576
|
+
//# sourceMappingURL=index-DbfhlD78.js.map
|