@pixldocs/canvas-renderer 0.5.263 → 0.5.265
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-Do_N0g_B.cjs → index-8qmW0_0N.cjs} +24 -5
- package/dist/index-8qmW0_0N.cjs.map +1 -0
- package/dist/{index-BLbklps9.js → index-CO6jIEmB.js} +24 -5
- package/dist/index-CO6jIEmB.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CQaTnVce.cjs → vectorPdfExport-C_SPH6M3.cjs} +4 -4
- package/dist/{vectorPdfExport-CQaTnVce.cjs.map → vectorPdfExport-C_SPH6M3.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Cmcu_nQW.js → vectorPdfExport-ONQJ99LA.js} +4 -4
- package/dist/{vectorPdfExport-Cmcu_nQW.js.map → vectorPdfExport-ONQJ99LA.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BLbklps9.js.map +0 -1
- package/dist/index-Do_N0g_B.cjs.map +0 -1
|
@@ -13785,6 +13785,19 @@ const PageCanvas = forwardRef(
|
|
|
13785
13785
|
prepareGroupSelectionTransformStart(e.target);
|
|
13786
13786
|
markTransforming(e.target);
|
|
13787
13787
|
didTransformRef.current = true;
|
|
13788
|
+
const activeDuringMove = fabricCanvas.getActiveObject();
|
|
13789
|
+
const movingLogicalGroupId = activeDuringMove instanceof fabric.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
|
|
13790
|
+
const pendingMoveDrill = pendingGroupDrillInRef.current;
|
|
13791
|
+
if (movingLogicalGroupId || pendingMoveDrill) {
|
|
13792
|
+
const groupIdToKeep = movingLogicalGroupId ?? (pendingMoveDrill == null ? void 0 : pendingMoveDrill.groupId);
|
|
13793
|
+
pendingGroupDrillInRef.current = null;
|
|
13794
|
+
fabricCanvas.__activeEditingGroupId = null;
|
|
13795
|
+
setDrilledGroupBounds(null);
|
|
13796
|
+
drilledGroupIdRef.current = null;
|
|
13797
|
+
if (activeDuringMove instanceof fabric.ActiveSelection && groupIdToKeep) {
|
|
13798
|
+
restoreGroupSelectionVisualState(activeDuringMove, groupIdToKeep);
|
|
13799
|
+
}
|
|
13800
|
+
}
|
|
13788
13801
|
if (e.target) e.target.__pixldocsDragMoved = true;
|
|
13789
13802
|
const moveTargetId = e.target ? getObjectId(e.target) : null;
|
|
13790
13803
|
if (moveTargetId && moveTargetId !== "__background__") {
|
|
@@ -14242,12 +14255,18 @@ const PageCanvas = forwardRef(
|
|
|
14242
14255
|
const newTop = (groupToMove.top ?? 0) + deltaY;
|
|
14243
14256
|
updateNodeStore(groupToMove.id, { left: newLeft, top: newTop }, { recordHistory: false, skipLayoutRecalc: true });
|
|
14244
14257
|
commitHistoryStore();
|
|
14258
|
+
pendingGroupDrillInRef.current = null;
|
|
14259
|
+
fabricCanvas.__activeEditingGroupId = null;
|
|
14260
|
+
setDrilledGroupBounds(null);
|
|
14261
|
+
drilledGroupIdRef.current = null;
|
|
14245
14262
|
const groupSelectionId = (isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0) ?? groupToMove.id;
|
|
14246
14263
|
const targetObjects = isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.getObjects() : activeObjects;
|
|
14247
14264
|
if (groupSelectionId && activeObj instanceof fabric.ActiveSelection) {
|
|
14248
14265
|
restoreGroupSelectionVisualState(activeObj, groupSelectionId);
|
|
14266
|
+
fabricCanvas.setActiveObject(activeObj);
|
|
14249
14267
|
activeObj.setCoords();
|
|
14250
14268
|
}
|
|
14269
|
+
selectElements([groupSelectionId], false, false);
|
|
14251
14270
|
fabricCanvas.requestRenderAll();
|
|
14252
14271
|
elementsRef.current = getCurrentElements();
|
|
14253
14272
|
for (const obj of targetObjects) {
|
|
@@ -23586,9 +23605,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23586
23605
|
}
|
|
23587
23606
|
return svgString;
|
|
23588
23607
|
}
|
|
23589
|
-
const resolvedPackageVersion = "0.5.
|
|
23608
|
+
const resolvedPackageVersion = "0.5.265";
|
|
23590
23609
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23591
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23610
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.265";
|
|
23592
23611
|
const roundParityValue = (value) => {
|
|
23593
23612
|
if (typeof value !== "number") return value;
|
|
23594
23613
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24402,7 +24421,7 @@ class PixldocsRenderer {
|
|
|
24402
24421
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24403
24422
|
}
|
|
24404
24423
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24405
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24424
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-ONQJ99LA.js");
|
|
24406
24425
|
const prepared = preparePagesForExport(
|
|
24407
24426
|
cloned.pages,
|
|
24408
24427
|
canvasWidth,
|
|
@@ -26722,7 +26741,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26722
26741
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26723
26742
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26724
26743
|
try {
|
|
26725
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26744
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-ONQJ99LA.js");
|
|
26726
26745
|
try {
|
|
26727
26746
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26728
26747
|
} catch {
|
|
@@ -27122,4 +27141,4 @@ export {
|
|
|
27122
27141
|
buildTeaserBlurFlatKeys as y,
|
|
27123
27142
|
collectFontDescriptorsFromConfig as z
|
|
27124
27143
|
};
|
|
27125
|
-
//# sourceMappingURL=index-
|
|
27144
|
+
//# sourceMappingURL=index-CO6jIEmB.js.map
|