@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
|
@@ -21092,6 +21092,13 @@ function setInTree(nodes, elementId, targetProperty, value) {
|
|
|
21092
21092
|
delete node.cropPanY;
|
|
21093
21093
|
delete node.cropZoom;
|
|
21094
21094
|
}
|
|
21095
|
+
if (nextSrc === "") {
|
|
21096
|
+
node.visible = false;
|
|
21097
|
+
node.opacity = 0;
|
|
21098
|
+
} else {
|
|
21099
|
+
node.visible = true;
|
|
21100
|
+
if (node.opacity === 0) delete node.opacity;
|
|
21101
|
+
}
|
|
21095
21102
|
} else {
|
|
21096
21103
|
const gradSibling = gradientSiblingForTarget(targetProperty);
|
|
21097
21104
|
if (gradSibling) {
|
|
@@ -21754,13 +21761,14 @@ function applyFormDataToConfig(config, mappings, formValues, repeatableSectionsF
|
|
|
21754
21761
|
const applyValue = (elementId, targetProperty, value, fieldKey) => {
|
|
21755
21762
|
var _a3;
|
|
21756
21763
|
const isTextLike = targetProperty === "text" || targetProperty === "content";
|
|
21764
|
+
const isImageLike = targetProperty === "src" || targetProperty === "imageUrl";
|
|
21757
21765
|
if (value === void 0 || value === null) {
|
|
21758
21766
|
return false;
|
|
21759
21767
|
}
|
|
21760
|
-
if (value === "" && !isTextLike) {
|
|
21768
|
+
if (value === "" && !isTextLike && !isImageLike) {
|
|
21761
21769
|
return false;
|
|
21762
21770
|
}
|
|
21763
|
-
let effectiveValue =
|
|
21771
|
+
let effectiveValue = value;
|
|
21764
21772
|
if (effectiveValue === void 0) return false;
|
|
21765
21773
|
if (isTextLike && typeof effectiveValue === "string" && effectiveValue !== "") {
|
|
21766
21774
|
const fType = resolveDisplayFormat(fieldKey);
|
|
@@ -26036,9 +26044,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26036
26044
|
}
|
|
26037
26045
|
return svgString;
|
|
26038
26046
|
}
|
|
26039
|
-
const resolvedPackageVersion = "0.5.
|
|
26047
|
+
const resolvedPackageVersion = "0.5.457";
|
|
26040
26048
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26041
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26049
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.457";
|
|
26042
26050
|
const roundParityValue = (value) => {
|
|
26043
26051
|
if (typeof value !== "number") return value;
|
|
26044
26052
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26852,7 +26860,7 @@ class PixldocsRenderer {
|
|
|
26852
26860
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26853
26861
|
}
|
|
26854
26862
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26855
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26863
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DHunvQTF.js");
|
|
26856
26864
|
const prepared = preparePagesForExport(
|
|
26857
26865
|
cloned.pages,
|
|
26858
26866
|
canvasWidth,
|
|
@@ -29172,7 +29180,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29172
29180
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29173
29181
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29174
29182
|
try {
|
|
29175
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29183
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DHunvQTF.js");
|
|
29176
29184
|
try {
|
|
29177
29185
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29178
29186
|
} catch {
|
|
@@ -29572,4 +29580,4 @@ export {
|
|
|
29572
29580
|
buildTeaserBlurFlatKeys as y,
|
|
29573
29581
|
collectFontDescriptorsFromConfig as z
|
|
29574
29582
|
};
|
|
29575
|
-
//# sourceMappingURL=index-
|
|
29583
|
+
//# sourceMappingURL=index-BWYQI5Fp.js.map
|