@pixldocs/canvas-renderer 0.5.386 → 0.5.387
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-DPK4VKN5.cjs → index-C76ELpPn.cjs} +10 -6
- package/dist/index-C76ELpPn.cjs.map +1 -0
- package/dist/{index-BBprK5c2.js → index-Dojo9KpB.js} +10 -6
- package/dist/index-Dojo9KpB.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Ch4wgY_V.cjs → vectorPdfExport-C_LKrBRO.cjs} +4 -4
- package/dist/{vectorPdfExport-Ch4wgY_V.cjs.map → vectorPdfExport-C_LKrBRO.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CuXE8W_Q.js → vectorPdfExport-DNhNOmXo.js} +4 -4
- package/dist/{vectorPdfExport-CuXE8W_Q.js.map → vectorPdfExport-DNhNOmXo.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BBprK5c2.js.map +0 -1
- package/dist/index-DPK4VKN5.cjs.map +0 -1
|
@@ -14299,7 +14299,10 @@ const PageCanvas = forwardRef(
|
|
|
14299
14299
|
continue;
|
|
14300
14300
|
}
|
|
14301
14301
|
if (!(child instanceof fabric.Textbox)) continue;
|
|
14302
|
-
|
|
14302
|
+
if (child.__asLiveOrigAngle == null) {
|
|
14303
|
+
child.__asLiveOrigAngle = child.angle ?? 0;
|
|
14304
|
+
}
|
|
14305
|
+
const childAngleDeg = child.__asLiveOrigAngle;
|
|
14303
14306
|
const asSx = isXSide ? sAxis : 1;
|
|
14304
14307
|
const asSy = isXSide ? 1 : sAxis;
|
|
14305
14308
|
const theta = fabric.util.degreesToRadians(childAngleDeg);
|
|
@@ -14731,6 +14734,7 @@ const PageCanvas = forwardRef(
|
|
|
14731
14734
|
delete child.__asLiveOrigW;
|
|
14732
14735
|
delete child.__asLiveOrigH;
|
|
14733
14736
|
delete child.__asLiveRotSnap;
|
|
14737
|
+
delete child.__asLiveOrigAngle;
|
|
14734
14738
|
}
|
|
14735
14739
|
}
|
|
14736
14740
|
} catch {
|
|
@@ -24878,9 +24882,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24878
24882
|
}
|
|
24879
24883
|
return svgString;
|
|
24880
24884
|
}
|
|
24881
|
-
const resolvedPackageVersion = "0.5.
|
|
24885
|
+
const resolvedPackageVersion = "0.5.387";
|
|
24882
24886
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24883
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24887
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.387";
|
|
24884
24888
|
const roundParityValue = (value) => {
|
|
24885
24889
|
if (typeof value !== "number") return value;
|
|
24886
24890
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25694,7 +25698,7 @@ class PixldocsRenderer {
|
|
|
25694
25698
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25695
25699
|
}
|
|
25696
25700
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25697
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25701
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DNhNOmXo.js");
|
|
25698
25702
|
const prepared = preparePagesForExport(
|
|
25699
25703
|
cloned.pages,
|
|
25700
25704
|
canvasWidth,
|
|
@@ -28014,7 +28018,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28014
28018
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28015
28019
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28016
28020
|
try {
|
|
28017
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28021
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DNhNOmXo.js");
|
|
28018
28022
|
try {
|
|
28019
28023
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28020
28024
|
} catch {
|
|
@@ -28414,4 +28418,4 @@ export {
|
|
|
28414
28418
|
buildTeaserBlurFlatKeys as y,
|
|
28415
28419
|
collectFontDescriptorsFromConfig as z
|
|
28416
28420
|
};
|
|
28417
|
-
//# sourceMappingURL=index-
|
|
28421
|
+
//# sourceMappingURL=index-Dojo9KpB.js.map
|