@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
|
@@ -13177,7 +13177,28 @@ const PageCanvas = react.forwardRef(
|
|
|
13177
13177
|
dragStarted = false;
|
|
13178
13178
|
const pendingDrillIn = pendingGroupDrillInRef.current;
|
|
13179
13179
|
pendingGroupDrillInRef.current = null;
|
|
13180
|
-
if (pendingDrillIn &&
|
|
13180
|
+
if (pendingDrillIn && didTransformRef.current) {
|
|
13181
|
+
const activeNow = fabricCanvas.getActiveObject();
|
|
13182
|
+
fabricCanvas.__activeEditingGroupId = null;
|
|
13183
|
+
setDrilledGroupBounds(null);
|
|
13184
|
+
drilledGroupIdRef.current = null;
|
|
13185
|
+
if (activeNow instanceof fabric__namespace.ActiveSelection) {
|
|
13186
|
+
restoreGroupSelectionVisualState(activeNow, pendingDrillIn.groupId);
|
|
13187
|
+
activeNow.setCoords();
|
|
13188
|
+
fabricCanvas.requestRenderAll();
|
|
13189
|
+
}
|
|
13190
|
+
const pageNow = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId);
|
|
13191
|
+
const groupNode = pageNow ? findNodeById(pageNow.children ?? [], pendingDrillIn.groupId) : null;
|
|
13192
|
+
const memberIds = groupNode && isGroup(groupNode) ? getAllElementIds(groupNode.children ?? []) : [];
|
|
13193
|
+
if (memberIds.length > 1) {
|
|
13194
|
+
restorePreservedGroupSelectionSoon({
|
|
13195
|
+
memberIds,
|
|
13196
|
+
groupSelectionId: pendingDrillIn.groupId
|
|
13197
|
+
});
|
|
13198
|
+
} else {
|
|
13199
|
+
selectElements([pendingDrillIn.groupId], false, false);
|
|
13200
|
+
}
|
|
13201
|
+
} else if (pendingDrillIn && !didTransformRef.current) {
|
|
13181
13202
|
const activeNow = fabricCanvas.getActiveObject();
|
|
13182
13203
|
if (activeNow !== pendingDrillIn.target) {
|
|
13183
13204
|
isSyncingSelectionToFabricRef.current = true;
|
|
@@ -14239,7 +14260,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14239
14260
|
const newTop = (groupToMove.top ?? 0) + deltaY;
|
|
14240
14261
|
updateNodeStore(groupToMove.id, { left: newLeft, top: newTop }, { recordHistory: false, skipLayoutRecalc: true });
|
|
14241
14262
|
commitHistoryStore();
|
|
14242
|
-
const groupSelectionId = isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0;
|
|
14263
|
+
const groupSelectionId = (isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.__pixldocsGroupSelection : void 0) ?? groupToMove.id;
|
|
14243
14264
|
const targetObjects = isActiveSelection && activeObj instanceof fabric__namespace.ActiveSelection ? activeObj.getObjects() : activeObjects;
|
|
14244
14265
|
if (groupSelectionId && activeObj instanceof fabric__namespace.ActiveSelection) {
|
|
14245
14266
|
restoreGroupSelectionVisualState(activeObj, groupSelectionId);
|
|
@@ -23583,9 +23604,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23583
23604
|
}
|
|
23584
23605
|
return svgString;
|
|
23585
23606
|
}
|
|
23586
|
-
const resolvedPackageVersion = "0.5.
|
|
23607
|
+
const resolvedPackageVersion = "0.5.263";
|
|
23587
23608
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23588
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23609
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.263";
|
|
23589
23610
|
const roundParityValue = (value) => {
|
|
23590
23611
|
if (typeof value !== "number") return value;
|
|
23591
23612
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24399,7 +24420,7 @@ class PixldocsRenderer {
|
|
|
24399
24420
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24400
24421
|
}
|
|
24401
24422
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24402
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
24423
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CQaTnVce.cjs"));
|
|
24403
24424
|
const prepared = preparePagesForExport(
|
|
24404
24425
|
cloned.pages,
|
|
24405
24426
|
canvasWidth,
|
|
@@ -26719,7 +26740,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26719
26740
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26720
26741
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26721
26742
|
try {
|
|
26722
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26743
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CQaTnVce.cjs"));
|
|
26723
26744
|
try {
|
|
26724
26745
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26725
26746
|
} catch {
|
|
@@ -27116,4 +27137,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
27116
27137
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
27117
27138
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
27118
27139
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
27119
|
-
//# sourceMappingURL=index-
|
|
27140
|
+
//# sourceMappingURL=index-Do_N0g_B.cjs.map
|