@pixldocs/canvas-renderer 0.5.262 → 0.5.264
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-BT_fzwgm.js → index-BG1PCSDy.js} +19 -6
- package/dist/index-BG1PCSDy.js.map +1 -0
- package/dist/{index-CjmYCoaf.cjs → index-D_rGYvZm.cjs} +19 -6
- package/dist/index-D_rGYvZm.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BlbjTsRn.js → vectorPdfExport-BYAVxEPn.js} +4 -4
- package/dist/{vectorPdfExport-BlbjTsRn.js.map → vectorPdfExport-BYAVxEPn.js.map} +1 -1
- package/dist/{vectorPdfExport-DItLh5J4.cjs → vectorPdfExport-DFWs6eXH.cjs} +4 -4
- package/dist/{vectorPdfExport-DItLh5J4.cjs.map → vectorPdfExport-DFWs6eXH.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BT_fzwgm.js.map +0 -1
- package/dist/index-CjmYCoaf.cjs.map +0 -1
|
@@ -13803,6 +13803,19 @@ const PageCanvas = react.forwardRef(
|
|
|
13803
13803
|
prepareGroupSelectionTransformStart(e.target);
|
|
13804
13804
|
markTransforming(e.target);
|
|
13805
13805
|
didTransformRef.current = true;
|
|
13806
|
+
const activeDuringMove = fabricCanvas.getActiveObject();
|
|
13807
|
+
const movingLogicalGroupId = activeDuringMove instanceof fabric__namespace.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
|
|
13808
|
+
const pendingMoveDrill = pendingGroupDrillInRef.current;
|
|
13809
|
+
if (movingLogicalGroupId || pendingMoveDrill) {
|
|
13810
|
+
const groupIdToKeep = movingLogicalGroupId ?? (pendingMoveDrill == null ? void 0 : pendingMoveDrill.groupId);
|
|
13811
|
+
pendingGroupDrillInRef.current = null;
|
|
13812
|
+
fabricCanvas.__activeEditingGroupId = null;
|
|
13813
|
+
setDrilledGroupBounds(null);
|
|
13814
|
+
drilledGroupIdRef.current = null;
|
|
13815
|
+
if (activeDuringMove instanceof fabric__namespace.ActiveSelection && groupIdToKeep) {
|
|
13816
|
+
restoreGroupSelectionVisualState(activeDuringMove, groupIdToKeep);
|
|
13817
|
+
}
|
|
13818
|
+
}
|
|
13806
13819
|
if (e.target) e.target.__pixldocsDragMoved = true;
|
|
13807
13820
|
const moveTargetId = e.target ? getObjectId(e.target) : null;
|
|
13808
13821
|
if (moveTargetId && moveTargetId !== "__background__") {
|
|
@@ -14260,7 +14273,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14260
14273
|
const newTop = (groupToMove.top ?? 0) + deltaY;
|
|
14261
14274
|
updateNodeStore(groupToMove.id, { left: newLeft, top: newTop }, { recordHistory: false, skipLayoutRecalc: true });
|
|
14262
14275
|
commitHistoryStore();
|
|
14263
|
-
const groupSelectionId = isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0;
|
|
14276
|
+
const groupSelectionId = (isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0) ?? groupToMove.id;
|
|
14264
14277
|
const targetObjects = isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.getObjects() : activeObjects;
|
|
14265
14278
|
if (groupSelectionId && activeObj instanceof fabric__namespace.ActiveSelection) {
|
|
14266
14279
|
restoreGroupSelectionVisualState(activeObj, groupSelectionId);
|
|
@@ -23604,9 +23617,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23604
23617
|
}
|
|
23605
23618
|
return svgString;
|
|
23606
23619
|
}
|
|
23607
|
-
const resolvedPackageVersion = "0.5.
|
|
23620
|
+
const resolvedPackageVersion = "0.5.264";
|
|
23608
23621
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23609
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23622
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.264";
|
|
23610
23623
|
const roundParityValue = (value) => {
|
|
23611
23624
|
if (typeof value !== "number") return value;
|
|
23612
23625
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24420,7 +24433,7 @@ class PixldocsRenderer {
|
|
|
24420
24433
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24421
24434
|
}
|
|
24422
24435
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24423
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
24436
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DFWs6eXH.cjs"));
|
|
24424
24437
|
const prepared = preparePagesForExport(
|
|
24425
24438
|
cloned.pages,
|
|
24426
24439
|
canvasWidth,
|
|
@@ -26740,7 +26753,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26740
26753
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26741
26754
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26742
26755
|
try {
|
|
26743
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26756
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DFWs6eXH.cjs"));
|
|
26744
26757
|
try {
|
|
26745
26758
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26746
26759
|
} catch {
|
|
@@ -27137,4 +27150,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
27137
27150
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
27138
27151
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
27139
27152
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
27140
|
-
//# sourceMappingURL=index-
|
|
27153
|
+
//# sourceMappingURL=index-D_rGYvZm.cjs.map
|