@pixldocs/canvas-renderer 0.5.360 → 0.5.361
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-UHlXMRk_.js → index-BaiH8RTh.js} +7 -8
- package/dist/{index-UHlXMRk_.js.map → index-BaiH8RTh.js.map} +1 -1
- package/dist/{index-BTxKjVRe.cjs → index-CG6KfVLP.cjs} +7 -8
- package/dist/index-CG6KfVLP.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Cxjz5z00.js → vectorPdfExport-BvYAPUvD.js} +4 -4
- package/dist/{vectorPdfExport-Cxjz5z00.js.map → vectorPdfExport-BvYAPUvD.js.map} +1 -1
- package/dist/{vectorPdfExport-BGYJ-v0u.cjs → vectorPdfExport-CTUzYtqL.cjs} +4 -4
- package/dist/{vectorPdfExport-BGYJ-v0u.cjs.map → vectorPdfExport-CTUzYtqL.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BTxKjVRe.cjs.map +0 -1
|
@@ -15078,9 +15078,8 @@ const PageCanvas = forwardRef(
|
|
|
15078
15078
|
finalScaleX = 1;
|
|
15079
15079
|
finalScaleY = 1;
|
|
15080
15080
|
if (isActiveSelection && activeObj instanceof fabric.ActiveSelection) {
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
absoluteTop = frameBounds.top;
|
|
15081
|
+
absoluteLeft = (decomposed.translateX ?? absoluteLeft) - finalWidth / 2;
|
|
15082
|
+
absoluteTop = (decomposed.translateY ?? absoluteTop) - finalHeight / 2;
|
|
15084
15083
|
} else {
|
|
15085
15084
|
absoluteLeft = (decomposed.translateX ?? absoluteLeft) - finalWidth / 2;
|
|
15086
15085
|
absoluteTop = (decomposed.translateY ?? absoluteTop) - finalHeight / 2;
|
|
@@ -24615,9 +24614,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24615
24614
|
}
|
|
24616
24615
|
return svgString;
|
|
24617
24616
|
}
|
|
24618
|
-
const resolvedPackageVersion = "0.5.
|
|
24617
|
+
const resolvedPackageVersion = "0.5.361";
|
|
24619
24618
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24620
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24619
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.361";
|
|
24621
24620
|
const roundParityValue = (value) => {
|
|
24622
24621
|
if (typeof value !== "number") return value;
|
|
24623
24622
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25431,7 +25430,7 @@ class PixldocsRenderer {
|
|
|
25431
25430
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25432
25431
|
}
|
|
25433
25432
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25434
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25433
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BvYAPUvD.js");
|
|
25435
25434
|
const prepared = preparePagesForExport(
|
|
25436
25435
|
cloned.pages,
|
|
25437
25436
|
canvasWidth,
|
|
@@ -27751,7 +27750,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27751
27750
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27752
27751
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27753
27752
|
try {
|
|
27754
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27753
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BvYAPUvD.js");
|
|
27755
27754
|
try {
|
|
27756
27755
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27757
27756
|
} catch {
|
|
@@ -28151,4 +28150,4 @@ export {
|
|
|
28151
28150
|
buildTeaserBlurFlatKeys as y,
|
|
28152
28151
|
collectFontDescriptorsFromConfig as z
|
|
28153
28152
|
};
|
|
28154
|
-
//# sourceMappingURL=index-
|
|
28153
|
+
//# sourceMappingURL=index-BaiH8RTh.js.map
|