@pixldocs/canvas-renderer 0.5.369 → 0.5.371
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-DSq50Plv.cjs → index-CV2nGvmF.cjs} +25 -8
- package/dist/index-CV2nGvmF.cjs.map +1 -0
- package/dist/{index-CBpMMrvY.js → index-d_8CZn_T.js} +25 -8
- package/dist/index-d_8CZn_T.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DMnr_S0D.js → vectorPdfExport-CoVX-Djl.js} +4 -4
- package/dist/{vectorPdfExport-DMnr_S0D.js.map → vectorPdfExport-CoVX-Djl.js.map} +1 -1
- package/dist/{vectorPdfExport-CEv3yhbN.cjs → vectorPdfExport-DEzSoYyy.cjs} +4 -4
- package/dist/{vectorPdfExport-CEv3yhbN.cjs.map → vectorPdfExport-DEzSoYyy.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CBpMMrvY.js.map +0 -1
- package/dist/index-DSq50Plv.cjs.map +0 -1
|
@@ -11579,6 +11579,7 @@ const PageCanvas = forwardRef(
|
|
|
11579
11579
|
} = useEditorStore();
|
|
11580
11580
|
const storeSelectedIds = canvas.selectedIds ?? [];
|
|
11581
11581
|
const restoreGroupSelectionSnapshot = useCallback((snapshot) => {
|
|
11582
|
+
var _a2;
|
|
11582
11583
|
const fc = fabricRef.current;
|
|
11583
11584
|
const groupId = snapshot == null ? void 0 : snapshot.groupSelectionId;
|
|
11584
11585
|
if (!fc || !groupId || snapshot.memberIds.length < 2 || editingTextIdRef.current) return;
|
|
@@ -11598,6 +11599,14 @@ const PageCanvas = forwardRef(
|
|
|
11598
11599
|
const selection = active instanceof fabric.ActiveSelection && members.every((member) => active.getObjects().includes(member)) ? active : new fabric.ActiveSelection(members, { canvas: fc });
|
|
11599
11600
|
applyLogicalGroupSelectionVisualState(selection, groupId);
|
|
11600
11601
|
fc.setActiveObject(selection);
|
|
11602
|
+
try {
|
|
11603
|
+
members.forEach((m) => m.setCoords());
|
|
11604
|
+
} catch {
|
|
11605
|
+
}
|
|
11606
|
+
try {
|
|
11607
|
+
(_a2 = selection.triggerLayout) == null ? void 0 : _a2.call(selection);
|
|
11608
|
+
} catch {
|
|
11609
|
+
}
|
|
11601
11610
|
selection.setCoords();
|
|
11602
11611
|
fc.requestRenderAll();
|
|
11603
11612
|
} finally {
|
|
@@ -14542,7 +14551,7 @@ const PageCanvas = forwardRef(
|
|
|
14542
14551
|
});
|
|
14543
14552
|
let cropGroupSaveTimer = null;
|
|
14544
14553
|
fabricCanvas.on("object:modified", (e) => {
|
|
14545
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i;
|
|
14554
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
14546
14555
|
try {
|
|
14547
14556
|
if (suppressObjectModifiedDuringInternalReselectRef.current) return;
|
|
14548
14557
|
dragStarted = false;
|
|
@@ -15553,6 +15562,14 @@ const PageCanvas = forwardRef(
|
|
|
15553
15562
|
const newSel = new fabric.ActiveSelection(membersToReselect, { canvas: fabricCanvas });
|
|
15554
15563
|
if (wasGroupSel) restoreGroupSelectionVisualState(newSel, wasGroupSel);
|
|
15555
15564
|
fabricCanvas.setActiveObject(newSel);
|
|
15565
|
+
try {
|
|
15566
|
+
(_j = newSel.triggerLayout) == null ? void 0 : _j.call(newSel);
|
|
15567
|
+
} catch {
|
|
15568
|
+
}
|
|
15569
|
+
try {
|
|
15570
|
+
for (const member of membersToReselect) member.setCoords();
|
|
15571
|
+
} catch {
|
|
15572
|
+
}
|
|
15556
15573
|
newSel.setCoords();
|
|
15557
15574
|
logRotDriftSelectionSnapshot("after-reselect", newSel, {
|
|
15558
15575
|
time: Math.round(performance.now()),
|
|
@@ -15581,8 +15598,8 @@ const PageCanvas = forwardRef(
|
|
|
15581
15598
|
groupSelectionId: wasGroupSel,
|
|
15582
15599
|
expiresAt: Date.now() + 1200
|
|
15583
15600
|
};
|
|
15584
|
-
preserveActiveSelectionAfterTransformRef.current =
|
|
15585
|
-
recentGroupSelectionRestoreRef.current =
|
|
15601
|
+
preserveActiveSelectionAfterTransformRef.current = resizeRestoreSnapshot;
|
|
15602
|
+
recentGroupSelectionRestoreRef.current = resizeRestoreSnapshot;
|
|
15586
15603
|
}
|
|
15587
15604
|
fabricCanvas.requestRenderAll();
|
|
15588
15605
|
}
|
|
@@ -24632,9 +24649,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24632
24649
|
}
|
|
24633
24650
|
return svgString;
|
|
24634
24651
|
}
|
|
24635
|
-
const resolvedPackageVersion = "0.5.
|
|
24652
|
+
const resolvedPackageVersion = "0.5.371";
|
|
24636
24653
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24637
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24654
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.371";
|
|
24638
24655
|
const roundParityValue = (value) => {
|
|
24639
24656
|
if (typeof value !== "number") return value;
|
|
24640
24657
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25448,7 +25465,7 @@ class PixldocsRenderer {
|
|
|
25448
25465
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25449
25466
|
}
|
|
25450
25467
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25451
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25468
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CoVX-Djl.js");
|
|
25452
25469
|
const prepared = preparePagesForExport(
|
|
25453
25470
|
cloned.pages,
|
|
25454
25471
|
canvasWidth,
|
|
@@ -27768,7 +27785,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27768
27785
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27769
27786
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27770
27787
|
try {
|
|
27771
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27788
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CoVX-Djl.js");
|
|
27772
27789
|
try {
|
|
27773
27790
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27774
27791
|
} catch {
|
|
@@ -28168,4 +28185,4 @@ export {
|
|
|
28168
28185
|
buildTeaserBlurFlatKeys as y,
|
|
28169
28186
|
collectFontDescriptorsFromConfig as z
|
|
28170
28187
|
};
|
|
28171
|
-
//# sourceMappingURL=index-
|
|
28188
|
+
//# sourceMappingURL=index-d_8CZn_T.js.map
|