@pixldocs/canvas-renderer 0.5.455 → 0.5.457
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-Bs4oHgQ2.js → index-BWYQI5Fp.js} +15 -7
- package/dist/{index-Bs4oHgQ2.js.map → index-BWYQI5Fp.js.map} +1 -1
- package/dist/{index-CoBJQqYp.cjs → index-C-zHLTyR.cjs} +15 -7
- package/dist/{index-CoBJQqYp.cjs.map → index-C-zHLTyR.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Dl1_fD7e.js → vectorPdfExport-DHunvQTF.js} +4 -4
- package/dist/{vectorPdfExport-Dl1_fD7e.js.map → vectorPdfExport-DHunvQTF.js.map} +1 -1
- package/dist/{vectorPdfExport-CErInEKs.cjs → vectorPdfExport-Qi65Srzj.cjs} +4 -4
- package/dist/{vectorPdfExport-CErInEKs.cjs.map → vectorPdfExport-Qi65Srzj.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -21110,6 +21110,13 @@ function setInTree(nodes, elementId, targetProperty, value) {
|
|
|
21110
21110
|
delete node.cropPanY;
|
|
21111
21111
|
delete node.cropZoom;
|
|
21112
21112
|
}
|
|
21113
|
+
if (nextSrc === "") {
|
|
21114
|
+
node.visible = false;
|
|
21115
|
+
node.opacity = 0;
|
|
21116
|
+
} else {
|
|
21117
|
+
node.visible = true;
|
|
21118
|
+
if (node.opacity === 0) delete node.opacity;
|
|
21119
|
+
}
|
|
21113
21120
|
} else {
|
|
21114
21121
|
const gradSibling = gradientSiblingForTarget(targetProperty);
|
|
21115
21122
|
if (gradSibling) {
|
|
@@ -21772,13 +21779,14 @@ function applyFormDataToConfig(config, mappings, formValues, repeatableSectionsF
|
|
|
21772
21779
|
const applyValue = (elementId, targetProperty, value, fieldKey) => {
|
|
21773
21780
|
var _a3;
|
|
21774
21781
|
const isTextLike = targetProperty === "text" || targetProperty === "content";
|
|
21782
|
+
const isImageLike = targetProperty === "src" || targetProperty === "imageUrl";
|
|
21775
21783
|
if (value === void 0 || value === null) {
|
|
21776
21784
|
return false;
|
|
21777
21785
|
}
|
|
21778
|
-
if (value === "" && !isTextLike) {
|
|
21786
|
+
if (value === "" && !isTextLike && !isImageLike) {
|
|
21779
21787
|
return false;
|
|
21780
21788
|
}
|
|
21781
|
-
let effectiveValue =
|
|
21789
|
+
let effectiveValue = value;
|
|
21782
21790
|
if (effectiveValue === void 0) return false;
|
|
21783
21791
|
if (isTextLike && typeof effectiveValue === "string" && effectiveValue !== "") {
|
|
21784
21792
|
const fType = resolveDisplayFormat(fieldKey);
|
|
@@ -26054,9 +26062,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26054
26062
|
}
|
|
26055
26063
|
return svgString;
|
|
26056
26064
|
}
|
|
26057
|
-
const resolvedPackageVersion = "0.5.
|
|
26065
|
+
const resolvedPackageVersion = "0.5.457";
|
|
26058
26066
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26059
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26067
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.457";
|
|
26060
26068
|
const roundParityValue = (value) => {
|
|
26061
26069
|
if (typeof value !== "number") return value;
|
|
26062
26070
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26870,7 +26878,7 @@ class PixldocsRenderer {
|
|
|
26870
26878
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26871
26879
|
}
|
|
26872
26880
|
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-
|
|
26881
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Qi65Srzj.cjs"));
|
|
26874
26882
|
const prepared = preparePagesForExport(
|
|
26875
26883
|
cloned.pages,
|
|
26876
26884
|
canvasWidth,
|
|
@@ -29190,7 +29198,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29190
29198
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29191
29199
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29192
29200
|
try {
|
|
29193
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
29201
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-Qi65Srzj.cjs"));
|
|
29194
29202
|
try {
|
|
29195
29203
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29196
29204
|
} catch {
|
|
@@ -29587,4 +29595,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29587
29595
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29588
29596
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29589
29597
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29590
|
-
//# sourceMappingURL=index-
|
|
29598
|
+
//# sourceMappingURL=index-C-zHLTyR.cjs.map
|