@pixldocs/canvas-renderer 0.5.437 → 0.5.438
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-DCwSB2lw.cjs → index-BIAXZTHb.cjs} +9 -8
- package/dist/index-BIAXZTHb.cjs.map +1 -0
- package/dist/{index-CiXC9Gkl.js → index-BIvYSBXQ.js} +9 -8
- package/dist/index-BIvYSBXQ.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BlzQOLVd.cjs → vectorPdfExport-DW6SkA07.cjs} +4 -4
- package/dist/{vectorPdfExport-BlzQOLVd.cjs.map → vectorPdfExport-DW6SkA07.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Go5IZl-i.js → vectorPdfExport-ddzCO9sg.js} +4 -4
- package/dist/{vectorPdfExport-Go5IZl-i.js.map → vectorPdfExport-ddzCO9sg.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CiXC9Gkl.js.map +0 -1
- package/dist/index-DCwSB2lw.cjs.map +0 -1
|
@@ -15123,14 +15123,15 @@ const PageCanvas = forwardRef(
|
|
|
15123
15123
|
const normalizedScaleAngle = ((obj.angle ?? 0) % 360 + 360) % 360;
|
|
15124
15124
|
const isRotatedActiveSelectionCorner = obj instanceof fabric.ActiveSelection && isCornerResizeHandle(corner) && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
15125
15125
|
const isRotatedActiveSelectionSide = obj instanceof fabric.ActiveSelection && (corner === "mt" || corner === "mb" || corner === "ml" || corner === "mr") && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
15126
|
-
|
|
15126
|
+
const isRotatedSingleObjectScale = !(obj instanceof fabric.ActiveSelection) && isCornerResizeHandle(corner) && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
15127
|
+
if (!isRotatedActiveSelectionCorner && !isRotatedActiveSelectionSide && !isRotatedSingleObjectScale) {
|
|
15127
15128
|
snapDuringScaleCallback(obj, corner);
|
|
15128
15129
|
}
|
|
15129
|
-
const scaleGuides = isRotatedActiveSelectionCorner || isRotatedActiveSelectionSide ? [] : calculateScaleSnapGuidesCallback(obj, corner);
|
|
15130
|
+
const scaleGuides = isRotatedActiveSelectionCorner || isRotatedActiveSelectionSide || isRotatedSingleObjectScale ? [] : calculateScaleSnapGuidesCallback(obj, corner);
|
|
15130
15131
|
const gridGuidesForScale = [];
|
|
15131
15132
|
try {
|
|
15132
15133
|
const psGrid = projectSettingsRef.current;
|
|
15133
|
-
const canApplyGridSnap = psGrid.snapToGrid && corner && !isRotatedActiveSelectionCorner && !isRotatedActiveSelectionSide && !obj.__cropGroup && !obj.__resizeSnapHandler;
|
|
15134
|
+
const canApplyGridSnap = psGrid.snapToGrid && corner && !isRotatedActiveSelectionCorner && !isRotatedActiveSelectionSide && !isRotatedSingleObjectScale && !obj.__cropGroup && !obj.__resizeSnapHandler;
|
|
15134
15135
|
if (canApplyGridSnap) {
|
|
15135
15136
|
const gridX = psGrid.gridSizeX ?? psGrid.gridSize ?? 0;
|
|
15136
15137
|
const gridY = psGrid.gridSizeY ?? psGrid.gridSize ?? 0;
|
|
@@ -25830,9 +25831,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25830
25831
|
}
|
|
25831
25832
|
return svgString;
|
|
25832
25833
|
}
|
|
25833
|
-
const resolvedPackageVersion = "0.5.
|
|
25834
|
+
const resolvedPackageVersion = "0.5.438";
|
|
25834
25835
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25835
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25836
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.438";
|
|
25836
25837
|
const roundParityValue = (value) => {
|
|
25837
25838
|
if (typeof value !== "number") return value;
|
|
25838
25839
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26646,7 +26647,7 @@ class PixldocsRenderer {
|
|
|
26646
26647
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26647
26648
|
}
|
|
26648
26649
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26649
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26650
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-ddzCO9sg.js");
|
|
26650
26651
|
const prepared = preparePagesForExport(
|
|
26651
26652
|
cloned.pages,
|
|
26652
26653
|
canvasWidth,
|
|
@@ -28966,7 +28967,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28966
28967
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28967
28968
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28968
28969
|
try {
|
|
28969
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28970
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-ddzCO9sg.js");
|
|
28970
28971
|
try {
|
|
28971
28972
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28972
28973
|
} catch {
|
|
@@ -29366,4 +29367,4 @@ export {
|
|
|
29366
29367
|
buildTeaserBlurFlatKeys as y,
|
|
29367
29368
|
collectFontDescriptorsFromConfig as z
|
|
29368
29369
|
};
|
|
29369
|
-
//# sourceMappingURL=index-
|
|
29370
|
+
//# sourceMappingURL=index-BIvYSBXQ.js.map
|