@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
|
@@ -15141,14 +15141,15 @@ const PageCanvas = react.forwardRef(
|
|
|
15141
15141
|
const normalizedScaleAngle = ((obj.angle ?? 0) % 360 + 360) % 360;
|
|
15142
15142
|
const isRotatedActiveSelectionCorner = obj instanceof fabric__namespace.ActiveSelection && isCornerResizeHandle(corner) && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
15143
15143
|
const isRotatedActiveSelectionSide = obj instanceof fabric__namespace.ActiveSelection && (corner === "mt" || corner === "mb" || corner === "ml" || corner === "mr") && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
15144
|
-
|
|
15144
|
+
const isRotatedSingleObjectScale = !(obj instanceof fabric__namespace.ActiveSelection) && isCornerResizeHandle(corner) && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
15145
|
+
if (!isRotatedActiveSelectionCorner && !isRotatedActiveSelectionSide && !isRotatedSingleObjectScale) {
|
|
15145
15146
|
snapDuringScaleCallback(obj, corner);
|
|
15146
15147
|
}
|
|
15147
|
-
const scaleGuides = isRotatedActiveSelectionCorner || isRotatedActiveSelectionSide ? [] : calculateScaleSnapGuidesCallback(obj, corner);
|
|
15148
|
+
const scaleGuides = isRotatedActiveSelectionCorner || isRotatedActiveSelectionSide || isRotatedSingleObjectScale ? [] : calculateScaleSnapGuidesCallback(obj, corner);
|
|
15148
15149
|
const gridGuidesForScale = [];
|
|
15149
15150
|
try {
|
|
15150
15151
|
const psGrid = projectSettingsRef.current;
|
|
15151
|
-
const canApplyGridSnap = psGrid.snapToGrid && corner && !isRotatedActiveSelectionCorner && !isRotatedActiveSelectionSide && !obj.__cropGroup && !obj.__resizeSnapHandler;
|
|
15152
|
+
const canApplyGridSnap = psGrid.snapToGrid && corner && !isRotatedActiveSelectionCorner && !isRotatedActiveSelectionSide && !isRotatedSingleObjectScale && !obj.__cropGroup && !obj.__resizeSnapHandler;
|
|
15152
15153
|
if (canApplyGridSnap) {
|
|
15153
15154
|
const gridX = psGrid.gridSizeX ?? psGrid.gridSize ?? 0;
|
|
15154
15155
|
const gridY = psGrid.gridSizeY ?? psGrid.gridSize ?? 0;
|
|
@@ -25848,9 +25849,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25848
25849
|
}
|
|
25849
25850
|
return svgString;
|
|
25850
25851
|
}
|
|
25851
|
-
const resolvedPackageVersion = "0.5.
|
|
25852
|
+
const resolvedPackageVersion = "0.5.438";
|
|
25852
25853
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25853
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25854
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.438";
|
|
25854
25855
|
const roundParityValue = (value) => {
|
|
25855
25856
|
if (typeof value !== "number") return value;
|
|
25856
25857
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26664,7 +26665,7 @@ class PixldocsRenderer {
|
|
|
26664
26665
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26665
26666
|
}
|
|
26666
26667
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26667
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26668
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DW6SkA07.cjs"));
|
|
26668
26669
|
const prepared = preparePagesForExport(
|
|
26669
26670
|
cloned.pages,
|
|
26670
26671
|
canvasWidth,
|
|
@@ -28984,7 +28985,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28984
28985
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28985
28986
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28986
28987
|
try {
|
|
28987
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28988
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DW6SkA07.cjs"));
|
|
28988
28989
|
try {
|
|
28989
28990
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28990
28991
|
} catch {
|
|
@@ -29381,4 +29382,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29381
29382
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29382
29383
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29383
29384
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29384
|
-
//# sourceMappingURL=index-
|
|
29385
|
+
//# sourceMappingURL=index-BIAXZTHb.cjs.map
|