@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
|
@@ -21772,13 +21772,14 @@ function applyFormDataToConfig(config, mappings, formValues, repeatableSectionsF
|
|
|
21772
21772
|
const applyValue = (elementId, targetProperty, value, fieldKey) => {
|
|
21773
21773
|
var _a3;
|
|
21774
21774
|
const isTextLike = targetProperty === "text" || targetProperty === "content";
|
|
21775
|
+
const isImageLike = targetProperty === "src" || targetProperty === "imageUrl";
|
|
21775
21776
|
if (value === void 0 || value === null) {
|
|
21776
21777
|
return false;
|
|
21777
21778
|
}
|
|
21778
|
-
if (value === "" && !isTextLike) {
|
|
21779
|
+
if (value === "" && !isTextLike && !isImageLike) {
|
|
21779
21780
|
return false;
|
|
21780
21781
|
}
|
|
21781
|
-
let effectiveValue =
|
|
21782
|
+
let effectiveValue = value;
|
|
21782
21783
|
if (effectiveValue === void 0) return false;
|
|
21783
21784
|
if (isTextLike && typeof effectiveValue === "string" && effectiveValue !== "") {
|
|
21784
21785
|
const fType = resolveDisplayFormat(fieldKey);
|
|
@@ -26054,9 +26055,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26054
26055
|
}
|
|
26055
26056
|
return svgString;
|
|
26056
26057
|
}
|
|
26057
|
-
const resolvedPackageVersion = "0.5.
|
|
26058
|
+
const resolvedPackageVersion = "0.5.456";
|
|
26058
26059
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26059
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26060
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.456";
|
|
26060
26061
|
const roundParityValue = (value) => {
|
|
26061
26062
|
if (typeof value !== "number") return value;
|
|
26062
26063
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26870,7 +26871,7 @@ class PixldocsRenderer {
|
|
|
26870
26871
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26871
26872
|
}
|
|
26872
26873
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26873
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26874
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Cyok7Rsu.cjs"));
|
|
26874
26875
|
const prepared = preparePagesForExport(
|
|
26875
26876
|
cloned.pages,
|
|
26876
26877
|
canvasWidth,
|
|
@@ -29190,7 +29191,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29190
29191
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29191
29192
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29192
29193
|
try {
|
|
29193
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
29194
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-Cyok7Rsu.cjs"));
|
|
29194
29195
|
try {
|
|
29195
29196
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29196
29197
|
} catch {
|
|
@@ -29587,4 +29588,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29587
29588
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29588
29589
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29589
29590
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29590
|
-
//# sourceMappingURL=index-
|
|
29591
|
+
//# sourceMappingURL=index-D7XRqqRF.cjs.map
|