@pixldocs/canvas-renderer 0.5.357 → 0.5.358
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-DH3qeHgQ.cjs → index-BMPgVllP.cjs} +17 -6
- package/dist/index-BMPgVllP.cjs.map +1 -0
- package/dist/{index-ErPNn7zc.js → index-D14RzE7l.js} +17 -6
- package/dist/index-D14RzE7l.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Ure_JliT.cjs → vectorPdfExport-BjU5UnhU.cjs} +4 -4
- package/dist/{vectorPdfExport-Ure_JliT.cjs.map → vectorPdfExport-BjU5UnhU.cjs.map} +1 -1
- package/dist/{vectorPdfExport-yx-dKQqT.js → vectorPdfExport-Bk_ZPaK4.js} +4 -4
- package/dist/{vectorPdfExport-yx-dKQqT.js.map → vectorPdfExport-Bk_ZPaK4.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DH3qeHgQ.cjs.map +0 -1
- package/dist/index-ErPNn7zc.js.map +0 -1
|
@@ -11200,7 +11200,18 @@ function applyWarpAwareSelectionBorders(selection) {
|
|
|
11200
11200
|
invSelection,
|
|
11201
11201
|
worldMatrices[index]
|
|
11202
11202
|
);
|
|
11203
|
-
|
|
11203
|
+
const savedLayout = k.layoutManager;
|
|
11204
|
+
try {
|
|
11205
|
+
if (savedLayout) k.layoutManager = void 0;
|
|
11206
|
+
fabric.util.applyTransformToObject(k, localMatrix);
|
|
11207
|
+
const decomposed = fabric.util.qrDecompose(
|
|
11208
|
+
localMatrix
|
|
11209
|
+
);
|
|
11210
|
+
const expectedCenter = new fabric.Point(decomposed.translateX, decomposed.translateY);
|
|
11211
|
+
k.setPositionByOrigin(expectedCenter, "center", "center");
|
|
11212
|
+
} finally {
|
|
11213
|
+
if (savedLayout) k.layoutManager = savedLayout;
|
|
11214
|
+
}
|
|
11204
11215
|
k.setCoords();
|
|
11205
11216
|
k.dirty = true;
|
|
11206
11217
|
});
|
|
@@ -24463,9 +24474,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24463
24474
|
}
|
|
24464
24475
|
return svgString;
|
|
24465
24476
|
}
|
|
24466
|
-
const resolvedPackageVersion = "0.5.
|
|
24477
|
+
const resolvedPackageVersion = "0.5.358";
|
|
24467
24478
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24468
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24479
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.358";
|
|
24469
24480
|
const roundParityValue = (value) => {
|
|
24470
24481
|
if (typeof value !== "number") return value;
|
|
24471
24482
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25279,7 +25290,7 @@ class PixldocsRenderer {
|
|
|
25279
25290
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25280
25291
|
}
|
|
25281
25292
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25282
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25293
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-Bk_ZPaK4.js");
|
|
25283
25294
|
const prepared = preparePagesForExport(
|
|
25284
25295
|
cloned.pages,
|
|
25285
25296
|
canvasWidth,
|
|
@@ -27599,7 +27610,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27599
27610
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27600
27611
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27601
27612
|
try {
|
|
27602
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27613
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-Bk_ZPaK4.js");
|
|
27603
27614
|
try {
|
|
27604
27615
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27605
27616
|
} catch {
|
|
@@ -27999,4 +28010,4 @@ export {
|
|
|
27999
28010
|
buildTeaserBlurFlatKeys as y,
|
|
28000
28011
|
collectFontDescriptorsFromConfig as z
|
|
28001
28012
|
};
|
|
28002
|
-
//# sourceMappingURL=index-
|
|
28013
|
+
//# sourceMappingURL=index-D14RzE7l.js.map
|