@pixldocs/canvas-renderer 0.5.403 → 0.5.404
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-Bp9XxxF8.cjs → index-BsKKxOH4.cjs} +13 -5
- package/dist/index-BsKKxOH4.cjs.map +1 -0
- package/dist/{index-B8c2DkaJ.js → index-FljS6ssY.js} +13 -5
- package/dist/index-FljS6ssY.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BevFDNWQ.cjs → vectorPdfExport-CMUgVgvn.cjs} +4 -4
- package/dist/{vectorPdfExport-BevFDNWQ.cjs.map → vectorPdfExport-CMUgVgvn.cjs.map} +1 -1
- package/dist/{vectorPdfExport-V449U4Y7.js → vectorPdfExport-CWHd6dnp.js} +4 -4
- package/dist/{vectorPdfExport-V449U4Y7.js.map → vectorPdfExport-CWHd6dnp.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B8c2DkaJ.js.map +0 -1
- package/dist/index-Bp9XxxF8.cjs.map +0 -1
|
@@ -14391,6 +14391,14 @@ const PageCanvas = forwardRef(
|
|
|
14391
14391
|
const asRect0 = obj.getBoundingRect();
|
|
14392
14392
|
let didReflowTextChild = false;
|
|
14393
14393
|
for (const child of obj.getObjects()) {
|
|
14394
|
+
const childLocalAngle = child.__asLiveOrigAngle != null ? child.__asLiveOrigAngle : child.angle ?? 0;
|
|
14395
|
+
const isRotatedChild = Math.abs((childLocalAngle % 360 + 360) % 360) > 0.5 && Math.abs((childLocalAngle % 360 + 360) % 360 - 360) > 0.5;
|
|
14396
|
+
if (isRotatedChild) {
|
|
14397
|
+
if (child.__asLiveOrigAngle == null) {
|
|
14398
|
+
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14399
|
+
}
|
|
14400
|
+
continue;
|
|
14401
|
+
}
|
|
14394
14402
|
if (child instanceof fabric.Group && (child.__cropGroup || ((_f = child._ct) == null ? void 0 : _f.isCropGroup))) {
|
|
14395
14403
|
const ct = child.__cropData;
|
|
14396
14404
|
if (!ct) continue;
|
|
@@ -25127,9 +25135,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25127
25135
|
}
|
|
25128
25136
|
return svgString;
|
|
25129
25137
|
}
|
|
25130
|
-
const resolvedPackageVersion = "0.5.
|
|
25138
|
+
const resolvedPackageVersion = "0.5.404";
|
|
25131
25139
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25132
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25140
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.404";
|
|
25133
25141
|
const roundParityValue = (value) => {
|
|
25134
25142
|
if (typeof value !== "number") return value;
|
|
25135
25143
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25943,7 +25951,7 @@ class PixldocsRenderer {
|
|
|
25943
25951
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25944
25952
|
}
|
|
25945
25953
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25946
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25954
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CWHd6dnp.js");
|
|
25947
25955
|
const prepared = preparePagesForExport(
|
|
25948
25956
|
cloned.pages,
|
|
25949
25957
|
canvasWidth,
|
|
@@ -28263,7 +28271,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28263
28271
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28264
28272
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28265
28273
|
try {
|
|
28266
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28274
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CWHd6dnp.js");
|
|
28267
28275
|
try {
|
|
28268
28276
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28269
28277
|
} catch {
|
|
@@ -28663,4 +28671,4 @@ export {
|
|
|
28663
28671
|
buildTeaserBlurFlatKeys as y,
|
|
28664
28672
|
collectFontDescriptorsFromConfig as z
|
|
28665
28673
|
};
|
|
28666
|
-
//# sourceMappingURL=index-
|
|
28674
|
+
//# sourceMappingURL=index-FljS6ssY.js.map
|