@pixldocs/canvas-renderer 0.5.162 → 0.5.163
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-C6rEqM4R.js → index-BJTAZJHO.js} +6 -6
- package/dist/{index-C6rEqM4R.js.map → index-BJTAZJHO.js.map} +1 -1
- package/dist/{index-D96xE7-z.cjs → index-Dct1bg7t.cjs} +6 -6
- package/dist/{index-D96xE7-z.cjs.map → index-Dct1bg7t.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-KTzhlsHG.cjs → vectorPdfExport-Cxegm-1t.cjs} +35 -4
- package/dist/vectorPdfExport-Cxegm-1t.cjs.map +1 -0
- package/dist/{vectorPdfExport-C5vnOg8Q.js → vectorPdfExport-DdZj8pHe.js} +35 -4
- package/dist/vectorPdfExport-DdZj8pHe.js.map +1 -0
- package/package.json +1 -1
- package/dist/vectorPdfExport-C5vnOg8Q.js.map +0 -1
- package/dist/vectorPdfExport-KTzhlsHG.cjs.map +0 -1
|
@@ -12093,7 +12093,7 @@ function setInTree(nodes, elementId, targetProperty, value) {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
if (targetProperty === "text" && node.type === "text") {
|
|
12095
12095
|
const overflowPolicy = String(node.overflowPolicy ?? "grow-and-push");
|
|
12096
|
-
if (overflowPolicy !== "auto-shrink") {
|
|
12096
|
+
if (overflowPolicy !== "auto-shrink" && typeof node.height !== "number") {
|
|
12097
12097
|
delete node.height;
|
|
12098
12098
|
}
|
|
12099
12099
|
}
|
|
@@ -16033,9 +16033,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
16033
16033
|
}
|
|
16034
16034
|
return svgString;
|
|
16035
16035
|
}
|
|
16036
|
-
const resolvedPackageVersion = "0.5.
|
|
16036
|
+
const resolvedPackageVersion = "0.5.163";
|
|
16037
16037
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
16038
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
16038
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.163";
|
|
16039
16039
|
const roundParityValue = (value) => {
|
|
16040
16040
|
if (typeof value !== "number") return value;
|
|
16041
16041
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16470,7 +16470,7 @@ class PixldocsRenderer {
|
|
|
16470
16470
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16471
16471
|
}
|
|
16472
16472
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16473
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
16473
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Cxegm-1t.cjs"));
|
|
16474
16474
|
const prepared = preparePagesForExport(
|
|
16475
16475
|
cloned.pages,
|
|
16476
16476
|
canvasWidth,
|
|
@@ -18572,7 +18572,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
18572
18572
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
18573
18573
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
18574
18574
|
try {
|
|
18575
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
18575
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-Cxegm-1t.cjs"));
|
|
18576
18576
|
try {
|
|
18577
18577
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
18578
18578
|
} catch {
|
|
@@ -18919,4 +18919,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
18919
18919
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
18920
18920
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
18921
18921
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
18922
|
-
//# sourceMappingURL=index-
|
|
18922
|
+
//# sourceMappingURL=index-Dct1bg7t.cjs.map
|