@pixldocs/canvas-renderer 0.5.261 → 0.5.263
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-CUdaMZ-i.js → index-BLbklps9.js} +28 -7
- package/dist/index-BLbklps9.js.map +1 -0
- package/dist/{index-Dfc18rpJ.cjs → index-Do_N0g_B.cjs} +28 -7
- package/dist/index-Do_N0g_B.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BsjP4JQb.cjs → vectorPdfExport-CQaTnVce.cjs} +4 -4
- package/dist/{vectorPdfExport-BsjP4JQb.cjs.map → vectorPdfExport-CQaTnVce.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Q4d_WUkp.js → vectorPdfExport-Cmcu_nQW.js} +4 -4
- package/dist/{vectorPdfExport-Q4d_WUkp.js.map → vectorPdfExport-Cmcu_nQW.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CUdaMZ-i.js.map +0 -1
- package/dist/index-Dfc18rpJ.cjs.map +0 -1
|
@@ -13159,7 +13159,28 @@ const PageCanvas = forwardRef(
|
|
|
13159
13159
|
dragStarted = false;
|
|
13160
13160
|
const pendingDrillIn = pendingGroupDrillInRef.current;
|
|
13161
13161
|
pendingGroupDrillInRef.current = null;
|
|
13162
|
-
if (pendingDrillIn &&
|
|
13162
|
+
if (pendingDrillIn && didTransformRef.current) {
|
|
13163
|
+
const activeNow = fabricCanvas.getActiveObject();
|
|
13164
|
+
fabricCanvas.__activeEditingGroupId = null;
|
|
13165
|
+
setDrilledGroupBounds(null);
|
|
13166
|
+
drilledGroupIdRef.current = null;
|
|
13167
|
+
if (activeNow instanceof fabric.ActiveSelection) {
|
|
13168
|
+
restoreGroupSelectionVisualState(activeNow, pendingDrillIn.groupId);
|
|
13169
|
+
activeNow.setCoords();
|
|
13170
|
+
fabricCanvas.requestRenderAll();
|
|
13171
|
+
}
|
|
13172
|
+
const pageNow = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId);
|
|
13173
|
+
const groupNode = pageNow ? findNodeById(pageNow.children ?? [], pendingDrillIn.groupId) : null;
|
|
13174
|
+
const memberIds = groupNode && isGroup(groupNode) ? getAllElementIds(groupNode.children ?? []) : [];
|
|
13175
|
+
if (memberIds.length > 1) {
|
|
13176
|
+
restorePreservedGroupSelectionSoon({
|
|
13177
|
+
memberIds,
|
|
13178
|
+
groupSelectionId: pendingDrillIn.groupId
|
|
13179
|
+
});
|
|
13180
|
+
} else {
|
|
13181
|
+
selectElements([pendingDrillIn.groupId], false, false);
|
|
13182
|
+
}
|
|
13183
|
+
} else if (pendingDrillIn && !didTransformRef.current) {
|
|
13163
13184
|
const activeNow = fabricCanvas.getActiveObject();
|
|
13164
13185
|
if (activeNow !== pendingDrillIn.target) {
|
|
13165
13186
|
isSyncingSelectionToFabricRef.current = true;
|
|
@@ -14221,7 +14242,7 @@ const PageCanvas = forwardRef(
|
|
|
14221
14242
|
const newTop = (groupToMove.top ?? 0) + deltaY;
|
|
14222
14243
|
updateNodeStore(groupToMove.id, { left: newLeft, top: newTop }, { recordHistory: false, skipLayoutRecalc: true });
|
|
14223
14244
|
commitHistoryStore();
|
|
14224
|
-
const groupSelectionId = isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0;
|
|
14245
|
+
const groupSelectionId = (isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0) ?? groupToMove.id;
|
|
14225
14246
|
const targetObjects = isActiveSelection && activeObj instanceof fabric.ActiveSelection ? activeObj.getObjects() : activeObjects;
|
|
14226
14247
|
if (groupSelectionId && activeObj instanceof fabric.ActiveSelection) {
|
|
14227
14248
|
restoreGroupSelectionVisualState(activeObj, groupSelectionId);
|
|
@@ -23565,9 +23586,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23565
23586
|
}
|
|
23566
23587
|
return svgString;
|
|
23567
23588
|
}
|
|
23568
|
-
const resolvedPackageVersion = "0.5.
|
|
23589
|
+
const resolvedPackageVersion = "0.5.263";
|
|
23569
23590
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23570
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23591
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.263";
|
|
23571
23592
|
const roundParityValue = (value) => {
|
|
23572
23593
|
if (typeof value !== "number") return value;
|
|
23573
23594
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24381,7 +24402,7 @@ class PixldocsRenderer {
|
|
|
24381
24402
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24382
24403
|
}
|
|
24383
24404
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24384
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
24405
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-Cmcu_nQW.js");
|
|
24385
24406
|
const prepared = preparePagesForExport(
|
|
24386
24407
|
cloned.pages,
|
|
24387
24408
|
canvasWidth,
|
|
@@ -26701,7 +26722,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26701
26722
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26702
26723
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26703
26724
|
try {
|
|
26704
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
26725
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-Cmcu_nQW.js");
|
|
26705
26726
|
try {
|
|
26706
26727
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26707
26728
|
} catch {
|
|
@@ -27101,4 +27122,4 @@ export {
|
|
|
27101
27122
|
buildTeaserBlurFlatKeys as y,
|
|
27102
27123
|
collectFontDescriptorsFromConfig as z
|
|
27103
27124
|
};
|
|
27104
|
-
//# sourceMappingURL=index-
|
|
27125
|
+
//# sourceMappingURL=index-BLbklps9.js.map
|