@pixldocs/canvas-renderer 0.5.164 → 0.5.165
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-BfBR4Koj.cjs → index-B8sm4VZ8.cjs} +7 -7
- package/dist/{index-BfBR4Koj.cjs.map → index-B8sm4VZ8.cjs.map} +1 -1
- package/dist/{index-Gj2Xgcsf.js → index-CQGSjfcH.js} +7 -7
- package/dist/{index-Gj2Xgcsf.js.map → index-CQGSjfcH.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-C-XaAhxd.js → vectorPdfExport-C0lD4Sum.js} +4 -4
- package/dist/{vectorPdfExport-C-XaAhxd.js.map → vectorPdfExport-C0lD4Sum.js.map} +1 -1
- package/dist/{vectorPdfExport-gXz5yjal.cjs → vectorPdfExport-aWseupbk.cjs} +4 -4
- package/dist/{vectorPdfExport-gXz5yjal.cjs.map → vectorPdfExport-aWseupbk.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -12096,7 +12096,7 @@ function setInTree(nodes, elementId, targetProperty, value) {
|
|
|
12096
12096
|
}
|
|
12097
12097
|
if (targetProperty === "text" && node.type === "text") {
|
|
12098
12098
|
const overflowPolicy = String(node.overflowPolicy ?? "grow-and-push");
|
|
12099
|
-
if (overflowPolicy !== "auto-shrink"
|
|
12099
|
+
if (overflowPolicy !== "auto-shrink") {
|
|
12100
12100
|
delete node.height;
|
|
12101
12101
|
}
|
|
12102
12102
|
}
|
|
@@ -15623,7 +15623,7 @@ function normalizeConfigForEC2Parity(config) {
|
|
|
15623
15623
|
if (isStack && node.stackSpacing == null) node.stackSpacing = 8;
|
|
15624
15624
|
if (node.type === "text") {
|
|
15625
15625
|
const overflowPolicy = String(node.overflowPolicy ?? "grow-and-push");
|
|
15626
|
-
if (overflowPolicy !== "auto-shrink"
|
|
15626
|
+
if (overflowPolicy !== "auto-shrink") {
|
|
15627
15627
|
delete node.height;
|
|
15628
15628
|
}
|
|
15629
15629
|
}
|
|
@@ -16036,9 +16036,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
16036
16036
|
}
|
|
16037
16037
|
return svgString;
|
|
16038
16038
|
}
|
|
16039
|
-
const resolvedPackageVersion = "0.5.
|
|
16039
|
+
const resolvedPackageVersion = "0.5.165";
|
|
16040
16040
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
16041
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
16041
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.165";
|
|
16042
16042
|
const roundParityValue = (value) => {
|
|
16043
16043
|
if (typeof value !== "number") return value;
|
|
16044
16044
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -16473,7 +16473,7 @@ class PixldocsRenderer {
|
|
|
16473
16473
|
await this.waitForCanvasScene(container, cloned, i);
|
|
16474
16474
|
}
|
|
16475
16475
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
16476
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
16476
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-aWseupbk.cjs"));
|
|
16477
16477
|
const prepared = preparePagesForExport(
|
|
16478
16478
|
cloned.pages,
|
|
16479
16479
|
canvasWidth,
|
|
@@ -18575,7 +18575,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
18575
18575
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
18576
18576
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
18577
18577
|
try {
|
|
18578
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
18578
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-aWseupbk.cjs"));
|
|
18579
18579
|
try {
|
|
18580
18580
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
18581
18581
|
} catch {
|
|
@@ -18922,4 +18922,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
18922
18922
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
18923
18923
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
18924
18924
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
18925
|
-
//# sourceMappingURL=index-
|
|
18925
|
+
//# sourceMappingURL=index-B8sm4VZ8.cjs.map
|