@pixldocs/canvas-renderer 0.5.370 → 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-B0Qoqlhh.cjs → index-CV2nGvmF.cjs} +23 -6
- package/dist/index-CV2nGvmF.cjs.map +1 -0
- package/dist/{index--vPTmOfh.js → index-d_8CZn_T.js} +23 -6
- 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-kmJCS96K.js → vectorPdfExport-CoVX-Djl.js} +4 -4
- package/dist/{vectorPdfExport-kmJCS96K.js.map → vectorPdfExport-CoVX-Djl.js.map} +1 -1
- package/dist/{vectorPdfExport-BBxGjHdU.cjs → vectorPdfExport-DEzSoYyy.cjs} +4 -4
- package/dist/{vectorPdfExport-BBxGjHdU.cjs.map → vectorPdfExport-DEzSoYyy.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index--vPTmOfh.js.map +0 -1
- package/dist/index-B0Qoqlhh.cjs.map +0 -1
|
@@ -11597,6 +11597,7 @@ const PageCanvas = react.forwardRef(
|
|
|
11597
11597
|
} = useEditorStore();
|
|
11598
11598
|
const storeSelectedIds = canvas.selectedIds ?? [];
|
|
11599
11599
|
const restoreGroupSelectionSnapshot = react.useCallback((snapshot) => {
|
|
11600
|
+
var _a2;
|
|
11600
11601
|
const fc = fabricRef.current;
|
|
11601
11602
|
const groupId = snapshot == null ? void 0 : snapshot.groupSelectionId;
|
|
11602
11603
|
if (!fc || !groupId || snapshot.memberIds.length < 2 || editingTextIdRef.current) return;
|
|
@@ -11616,6 +11617,14 @@ const PageCanvas = react.forwardRef(
|
|
|
11616
11617
|
const selection = active instanceof fabric__namespace.ActiveSelection && members.every((member) => active.getObjects().includes(member)) ? active : new fabric__namespace.ActiveSelection(members, { canvas: fc });
|
|
11617
11618
|
applyLogicalGroupSelectionVisualState(selection, groupId);
|
|
11618
11619
|
fc.setActiveObject(selection);
|
|
11620
|
+
try {
|
|
11621
|
+
members.forEach((m) => m.setCoords());
|
|
11622
|
+
} catch {
|
|
11623
|
+
}
|
|
11624
|
+
try {
|
|
11625
|
+
(_a2 = selection.triggerLayout) == null ? void 0 : _a2.call(selection);
|
|
11626
|
+
} catch {
|
|
11627
|
+
}
|
|
11619
11628
|
selection.setCoords();
|
|
11620
11629
|
fc.requestRenderAll();
|
|
11621
11630
|
} finally {
|
|
@@ -14560,7 +14569,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14560
14569
|
});
|
|
14561
14570
|
let cropGroupSaveTimer = null;
|
|
14562
14571
|
fabricCanvas.on("object:modified", (e) => {
|
|
14563
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i;
|
|
14572
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
14564
14573
|
try {
|
|
14565
14574
|
if (suppressObjectModifiedDuringInternalReselectRef.current) return;
|
|
14566
14575
|
dragStarted = false;
|
|
@@ -15571,6 +15580,14 @@ const PageCanvas = react.forwardRef(
|
|
|
15571
15580
|
const newSel = new fabric__namespace.ActiveSelection(membersToReselect, { canvas: fabricCanvas });
|
|
15572
15581
|
if (wasGroupSel) restoreGroupSelectionVisualState(newSel, wasGroupSel);
|
|
15573
15582
|
fabricCanvas.setActiveObject(newSel);
|
|
15583
|
+
try {
|
|
15584
|
+
(_j = newSel.triggerLayout) == null ? void 0 : _j.call(newSel);
|
|
15585
|
+
} catch {
|
|
15586
|
+
}
|
|
15587
|
+
try {
|
|
15588
|
+
for (const member of membersToReselect) member.setCoords();
|
|
15589
|
+
} catch {
|
|
15590
|
+
}
|
|
15574
15591
|
newSel.setCoords();
|
|
15575
15592
|
logRotDriftSelectionSnapshot("after-reselect", newSel, {
|
|
15576
15593
|
time: Math.round(performance.now()),
|
|
@@ -24650,9 +24667,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24650
24667
|
}
|
|
24651
24668
|
return svgString;
|
|
24652
24669
|
}
|
|
24653
|
-
const resolvedPackageVersion = "0.5.
|
|
24670
|
+
const resolvedPackageVersion = "0.5.371";
|
|
24654
24671
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24655
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24672
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.371";
|
|
24656
24673
|
const roundParityValue = (value) => {
|
|
24657
24674
|
if (typeof value !== "number") return value;
|
|
24658
24675
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25466,7 +25483,7 @@ class PixldocsRenderer {
|
|
|
25466
25483
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25467
25484
|
}
|
|
25468
25485
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25469
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25486
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DEzSoYyy.cjs"));
|
|
25470
25487
|
const prepared = preparePagesForExport(
|
|
25471
25488
|
cloned.pages,
|
|
25472
25489
|
canvasWidth,
|
|
@@ -27786,7 +27803,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27786
27803
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27787
27804
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27788
27805
|
try {
|
|
27789
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27806
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DEzSoYyy.cjs"));
|
|
27790
27807
|
try {
|
|
27791
27808
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27792
27809
|
} catch {
|
|
@@ -28183,4 +28200,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28183
28200
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28184
28201
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28185
28202
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28186
|
-
//# sourceMappingURL=index-
|
|
28203
|
+
//# sourceMappingURL=index-CV2nGvmF.cjs.map
|