@pixldocs/canvas-renderer 0.5.469 → 0.5.470
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-P777JY1z.js → index-DqhyGc11.js} +10 -9
- package/dist/index-DqhyGc11.js.map +1 -0
- package/dist/{index-C4lq9hLY.cjs → index-M7J0Ghjm.cjs} +10 -9
- package/dist/index-M7J0Ghjm.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CKIO3hJy.js → vectorPdfExport-CV7d-_nM.js} +4 -4
- package/dist/{vectorPdfExport-CKIO3hJy.js.map → vectorPdfExport-CV7d-_nM.js.map} +1 -1
- package/dist/{vectorPdfExport-CUb2Bf6z.cjs → vectorPdfExport-CimJkQAX.cjs} +4 -4
- package/dist/{vectorPdfExport-CUb2Bf6z.cjs.map → vectorPdfExport-CimJkQAX.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-C4lq9hLY.cjs.map +0 -1
- package/dist/index-P777JY1z.js.map +0 -1
|
@@ -12281,7 +12281,7 @@ const PageCanvas = forwardRef(
|
|
|
12281
12281
|
if (id && id !== "__background__") {
|
|
12282
12282
|
const width = (obj.width ?? 0) * (obj.scaleX ?? 1);
|
|
12283
12283
|
const height = (obj.height ?? 0) * (obj.scaleY ?? 1);
|
|
12284
|
-
const angle = obj.angle ?? 0;
|
|
12284
|
+
const angle = typeof obj.getTotalAngle === "function" ? obj.getTotalAngle() ?? 0 : obj.angle ?? 0;
|
|
12285
12285
|
let left;
|
|
12286
12286
|
let top;
|
|
12287
12287
|
const centerFn = obj.getCenterPoint;
|
|
@@ -20456,7 +20456,7 @@ function PreviewCanvas({
|
|
|
20456
20456
|
return /* @__PURE__ */ jsx(
|
|
20457
20457
|
"div",
|
|
20458
20458
|
{
|
|
20459
|
-
className: "absolute cursor-pointer
|
|
20459
|
+
className: "absolute cursor-pointer",
|
|
20460
20460
|
style: {
|
|
20461
20461
|
left,
|
|
20462
20462
|
top,
|
|
@@ -20466,8 +20466,9 @@ function PreviewCanvas({
|
|
|
20466
20466
|
backgroundColor: isHovered ? "rgba(59, 130, 246, 0.1)" : "transparent",
|
|
20467
20467
|
borderRadius: 4,
|
|
20468
20468
|
pointerEvents: "auto",
|
|
20469
|
-
transform: (bounds == null ? void 0 : bounds.angle)
|
|
20470
|
-
transformOrigin:
|
|
20469
|
+
transform: `rotate(${(bounds == null ? void 0 : bounds.angle) ?? 0}deg)`,
|
|
20470
|
+
transformOrigin: `${width / 2}px ${height / 2}px`,
|
|
20471
|
+
willChange: "transform"
|
|
20471
20472
|
},
|
|
20472
20473
|
onMouseEnter: () => setHoveredFieldId(element.id),
|
|
20473
20474
|
onMouseLeave: () => setHoveredFieldId(null),
|
|
@@ -26307,9 +26308,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
26307
26308
|
}
|
|
26308
26309
|
return svgString;
|
|
26309
26310
|
}
|
|
26310
|
-
const resolvedPackageVersion = "0.5.
|
|
26311
|
+
const resolvedPackageVersion = "0.5.470";
|
|
26311
26312
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
26312
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
26313
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.470";
|
|
26313
26314
|
const roundParityValue = (value) => {
|
|
26314
26315
|
if (typeof value !== "number") return value;
|
|
26315
26316
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -27123,7 +27124,7 @@ class PixldocsRenderer {
|
|
|
27123
27124
|
await this.waitForCanvasScene(container, cloned, i);
|
|
27124
27125
|
}
|
|
27125
27126
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
27126
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
27127
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CV7d-_nM.js");
|
|
27127
27128
|
const prepared = preparePagesForExport(
|
|
27128
27129
|
cloned.pages,
|
|
27129
27130
|
canvasWidth,
|
|
@@ -29443,7 +29444,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
29443
29444
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
29444
29445
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
29445
29446
|
try {
|
|
29446
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
29447
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CV7d-_nM.js");
|
|
29447
29448
|
try {
|
|
29448
29449
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
29449
29450
|
} catch {
|
|
@@ -29760,4 +29761,4 @@ export {
|
|
|
29760
29761
|
buildTeaserBlurFlatKeys as y,
|
|
29761
29762
|
collectFontDescriptorsFromConfig as z
|
|
29762
29763
|
};
|
|
29763
|
-
//# sourceMappingURL=index-
|
|
29764
|
+
//# sourceMappingURL=index-DqhyGc11.js.map
|