@pixldocs/canvas-renderer 0.5.370 → 0.5.372
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--vPTmOfh.js → index-BAK60IJl.js} +35 -6
- package/dist/index-BAK60IJl.js.map +1 -0
- package/dist/{index-B0Qoqlhh.cjs → index-CLgDLK4-.cjs} +35 -6
- package/dist/index-CLgDLK4-.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-kmJCS96K.js → vectorPdfExport-CwD3b9HF.js} +4 -4
- package/dist/{vectorPdfExport-kmJCS96K.js.map → vectorPdfExport-CwD3b9HF.js.map} +1 -1
- package/dist/{vectorPdfExport-BBxGjHdU.cjs → vectorPdfExport-Cy6COeh4.cjs} +4 -4
- package/dist/{vectorPdfExport-BBxGjHdU.cjs.map → vectorPdfExport-Cy6COeh4.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;
|
|
@@ -15570,7 +15579,19 @@ const PageCanvas = react.forwardRef(
|
|
|
15570
15579
|
if (membersToReselect.length > 1) {
|
|
15571
15580
|
const newSel = new fabric__namespace.ActiveSelection(membersToReselect, { canvas: fabricCanvas });
|
|
15572
15581
|
if (wasGroupSel) restoreGroupSelectionVisualState(newSel, wasGroupSel);
|
|
15582
|
+
try {
|
|
15583
|
+
ensureCanvaControlRenders(newSel);
|
|
15584
|
+
} catch {
|
|
15585
|
+
}
|
|
15573
15586
|
fabricCanvas.setActiveObject(newSel);
|
|
15587
|
+
try {
|
|
15588
|
+
(_j = newSel.triggerLayout) == null ? void 0 : _j.call(newSel);
|
|
15589
|
+
} catch {
|
|
15590
|
+
}
|
|
15591
|
+
try {
|
|
15592
|
+
for (const member of membersToReselect) member.setCoords();
|
|
15593
|
+
} catch {
|
|
15594
|
+
}
|
|
15574
15595
|
newSel.setCoords();
|
|
15575
15596
|
logRotDriftSelectionSnapshot("after-reselect", newSel, {
|
|
15576
15597
|
time: Math.round(performance.now()),
|
|
@@ -15952,6 +15973,10 @@ const PageCanvas = react.forwardRef(
|
|
|
15952
15973
|
if (activeSelectionSnapshot.groupSelectionId) {
|
|
15953
15974
|
applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
|
|
15954
15975
|
}
|
|
15976
|
+
try {
|
|
15977
|
+
ensureCanvaControlRenders(newSel);
|
|
15978
|
+
} catch {
|
|
15979
|
+
}
|
|
15955
15980
|
fc.setActiveObject(newSel);
|
|
15956
15981
|
newSel.setCoords();
|
|
15957
15982
|
fc.requestRenderAll();
|
|
@@ -16686,6 +16711,10 @@ const PageCanvas = react.forwardRef(
|
|
|
16686
16711
|
if (activeSelectionSnapshot.groupSelectionId) {
|
|
16687
16712
|
applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
|
|
16688
16713
|
}
|
|
16714
|
+
try {
|
|
16715
|
+
ensureCanvaControlRenders(newSel);
|
|
16716
|
+
} catch {
|
|
16717
|
+
}
|
|
16689
16718
|
fc.setActiveObject(newSel);
|
|
16690
16719
|
newSel.setCoords();
|
|
16691
16720
|
fc.requestRenderAll();
|
|
@@ -24650,9 +24679,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24650
24679
|
}
|
|
24651
24680
|
return svgString;
|
|
24652
24681
|
}
|
|
24653
|
-
const resolvedPackageVersion = "0.5.
|
|
24682
|
+
const resolvedPackageVersion = "0.5.372";
|
|
24654
24683
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24655
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24684
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.372";
|
|
24656
24685
|
const roundParityValue = (value) => {
|
|
24657
24686
|
if (typeof value !== "number") return value;
|
|
24658
24687
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25466,7 +25495,7 @@ class PixldocsRenderer {
|
|
|
25466
25495
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25467
25496
|
}
|
|
25468
25497
|
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-
|
|
25498
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Cy6COeh4.cjs"));
|
|
25470
25499
|
const prepared = preparePagesForExport(
|
|
25471
25500
|
cloned.pages,
|
|
25472
25501
|
canvasWidth,
|
|
@@ -27786,7 +27815,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27786
27815
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27787
27816
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27788
27817
|
try {
|
|
27789
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27818
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-Cy6COeh4.cjs"));
|
|
27790
27819
|
try {
|
|
27791
27820
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27792
27821
|
} catch {
|
|
@@ -28183,4 +28212,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28183
28212
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28184
28213
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28185
28214
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28186
|
-
//# sourceMappingURL=index-
|
|
28215
|
+
//# sourceMappingURL=index-CLgDLK4-.cjs.map
|