@pixldocs/canvas-renderer 0.5.368 → 0.5.369
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-2nQEAwj1.js → index-CBpMMrvY.js} +12 -8
- package/dist/index-CBpMMrvY.js.map +1 -0
- package/dist/{index-BuJEJzD7.cjs → index-DSq50Plv.cjs} +12 -8
- package/dist/index-DSq50Plv.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-C0aX5xXm.cjs → vectorPdfExport-CEv3yhbN.cjs} +4 -4
- package/dist/{vectorPdfExport-C0aX5xXm.cjs.map → vectorPdfExport-CEv3yhbN.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CHQahrQa.js → vectorPdfExport-DMnr_S0D.js} +4 -4
- package/dist/{vectorPdfExport-CHQahrQa.js.map → vectorPdfExport-DMnr_S0D.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-2nQEAwj1.js.map +0 -1
- package/dist/index-BuJEJzD7.cjs.map +0 -1
|
@@ -14244,12 +14244,16 @@ const PageCanvas = forwardRef(
|
|
|
14244
14244
|
obj.dirty = true;
|
|
14245
14245
|
}
|
|
14246
14246
|
}
|
|
14247
|
-
|
|
14248
|
-
const
|
|
14247
|
+
const normalizedScaleAngle = ((obj.angle ?? 0) % 360 + 360) % 360;
|
|
14248
|
+
const isRotatedActiveSelectionCorner = obj instanceof fabric.ActiveSelection && isCornerResizeHandle(corner) && Math.min(normalizedScaleAngle, 360 - normalizedScaleAngle) > 0.5;
|
|
14249
|
+
if (!isRotatedActiveSelectionCorner) {
|
|
14250
|
+
snapDuringScaleCallback(obj, corner);
|
|
14251
|
+
}
|
|
14252
|
+
const scaleGuides = isRotatedActiveSelectionCorner ? [] : calculateScaleSnapGuidesCallback(obj, corner);
|
|
14249
14253
|
const gridGuidesForScale = [];
|
|
14250
14254
|
try {
|
|
14251
14255
|
const psGrid = projectSettingsRef.current;
|
|
14252
|
-
const canApplyGridSnap = psGrid.snapToGrid && corner && !obj.__cropGroup && !obj.__resizeSnapHandler;
|
|
14256
|
+
const canApplyGridSnap = psGrid.snapToGrid && corner && !isRotatedActiveSelectionCorner && !obj.__cropGroup && !obj.__resizeSnapHandler;
|
|
14253
14257
|
if (canApplyGridSnap) {
|
|
14254
14258
|
const gridX = psGrid.gridSizeX ?? psGrid.gridSize ?? 0;
|
|
14255
14259
|
const gridY = psGrid.gridSizeY ?? psGrid.gridSize ?? 0;
|
|
@@ -24628,9 +24632,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24628
24632
|
}
|
|
24629
24633
|
return svgString;
|
|
24630
24634
|
}
|
|
24631
|
-
const resolvedPackageVersion = "0.5.
|
|
24635
|
+
const resolvedPackageVersion = "0.5.369";
|
|
24632
24636
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24633
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24637
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.369";
|
|
24634
24638
|
const roundParityValue = (value) => {
|
|
24635
24639
|
if (typeof value !== "number") return value;
|
|
24636
24640
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25444,7 +25448,7 @@ class PixldocsRenderer {
|
|
|
25444
25448
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25445
25449
|
}
|
|
25446
25450
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25447
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25451
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DMnr_S0D.js");
|
|
25448
25452
|
const prepared = preparePagesForExport(
|
|
25449
25453
|
cloned.pages,
|
|
25450
25454
|
canvasWidth,
|
|
@@ -27764,7 +27768,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27764
27768
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27765
27769
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27766
27770
|
try {
|
|
27767
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27771
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DMnr_S0D.js");
|
|
27768
27772
|
try {
|
|
27769
27773
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27770
27774
|
} catch {
|
|
@@ -28164,4 +28168,4 @@ export {
|
|
|
28164
28168
|
buildTeaserBlurFlatKeys as y,
|
|
28165
28169
|
collectFontDescriptorsFromConfig as z
|
|
28166
28170
|
};
|
|
28167
|
-
//# sourceMappingURL=index-
|
|
28171
|
+
//# sourceMappingURL=index-CBpMMrvY.js.map
|