@pixldocs/canvas-renderer 0.5.371 → 0.5.373
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-CV2nGvmF.cjs → index-CKSrApMp.cjs} +19 -5
- package/dist/index-CKSrApMp.cjs.map +1 -0
- package/dist/{index-d_8CZn_T.js → index-bAD0lJdv.js} +19 -5
- package/dist/index-bAD0lJdv.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CoVX-Djl.js → vectorPdfExport-B6Afy8UC.js} +4 -4
- package/dist/{vectorPdfExport-CoVX-Djl.js.map → vectorPdfExport-B6Afy8UC.js.map} +1 -1
- package/dist/{vectorPdfExport-DEzSoYyy.cjs → vectorPdfExport-BrAC0-i_.cjs} +4 -4
- package/dist/{vectorPdfExport-DEzSoYyy.cjs.map → vectorPdfExport-BrAC0-i_.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CV2nGvmF.cjs.map +0 -1
- package/dist/index-d_8CZn_T.js.map +0 -1
|
@@ -10972,6 +10972,8 @@ try {
|
|
|
10972
10972
|
wrapClassCreateControls(fabric.FabricObject);
|
|
10973
10973
|
wrapClassCreateControls(fabric.Textbox);
|
|
10974
10974
|
wrapClassCreateControls(fabric.IText);
|
|
10975
|
+
wrapClassCreateControls(fabric.ActiveSelection);
|
|
10976
|
+
wrapClassCreateControls(fabric.Group);
|
|
10975
10977
|
const CanvasProto = (_b = fabric.Canvas) == null ? void 0 : _b.prototype;
|
|
10976
10978
|
if (CanvasProto && typeof CanvasProto._setCursorFromEvent === "function") {
|
|
10977
10979
|
const origSet = CanvasProto._setCursorFromEvent;
|
|
@@ -15561,6 +15563,10 @@ const PageCanvas = forwardRef(
|
|
|
15561
15563
|
if (membersToReselect.length > 1) {
|
|
15562
15564
|
const newSel = new fabric.ActiveSelection(membersToReselect, { canvas: fabricCanvas });
|
|
15563
15565
|
if (wasGroupSel) restoreGroupSelectionVisualState(newSel, wasGroupSel);
|
|
15566
|
+
try {
|
|
15567
|
+
ensureCanvaControlRenders(newSel);
|
|
15568
|
+
} catch {
|
|
15569
|
+
}
|
|
15564
15570
|
fabricCanvas.setActiveObject(newSel);
|
|
15565
15571
|
try {
|
|
15566
15572
|
(_j = newSel.triggerLayout) == null ? void 0 : _j.call(newSel);
|
|
@@ -15951,6 +15957,10 @@ const PageCanvas = forwardRef(
|
|
|
15951
15957
|
if (activeSelectionSnapshot.groupSelectionId) {
|
|
15952
15958
|
applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
|
|
15953
15959
|
}
|
|
15960
|
+
try {
|
|
15961
|
+
ensureCanvaControlRenders(newSel);
|
|
15962
|
+
} catch {
|
|
15963
|
+
}
|
|
15954
15964
|
fc.setActiveObject(newSel);
|
|
15955
15965
|
newSel.setCoords();
|
|
15956
15966
|
fc.requestRenderAll();
|
|
@@ -16685,6 +16695,10 @@ const PageCanvas = forwardRef(
|
|
|
16685
16695
|
if (activeSelectionSnapshot.groupSelectionId) {
|
|
16686
16696
|
applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
|
|
16687
16697
|
}
|
|
16698
|
+
try {
|
|
16699
|
+
ensureCanvaControlRenders(newSel);
|
|
16700
|
+
} catch {
|
|
16701
|
+
}
|
|
16688
16702
|
fc.setActiveObject(newSel);
|
|
16689
16703
|
newSel.setCoords();
|
|
16690
16704
|
fc.requestRenderAll();
|
|
@@ -24649,9 +24663,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24649
24663
|
}
|
|
24650
24664
|
return svgString;
|
|
24651
24665
|
}
|
|
24652
|
-
const resolvedPackageVersion = "0.5.
|
|
24666
|
+
const resolvedPackageVersion = "0.5.373";
|
|
24653
24667
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24654
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24668
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.373";
|
|
24655
24669
|
const roundParityValue = (value) => {
|
|
24656
24670
|
if (typeof value !== "number") return value;
|
|
24657
24671
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25465,7 +25479,7 @@ class PixldocsRenderer {
|
|
|
25465
25479
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25466
25480
|
}
|
|
25467
25481
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25468
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25482
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-B6Afy8UC.js");
|
|
25469
25483
|
const prepared = preparePagesForExport(
|
|
25470
25484
|
cloned.pages,
|
|
25471
25485
|
canvasWidth,
|
|
@@ -27785,7 +27799,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27785
27799
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27786
27800
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27787
27801
|
try {
|
|
27788
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27802
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-B6Afy8UC.js");
|
|
27789
27803
|
try {
|
|
27790
27804
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27791
27805
|
} catch {
|
|
@@ -28185,4 +28199,4 @@ export {
|
|
|
28185
28199
|
buildTeaserBlurFlatKeys as y,
|
|
28186
28200
|
collectFontDescriptorsFromConfig as z
|
|
28187
28201
|
};
|
|
28188
|
-
//# sourceMappingURL=index-
|
|
28202
|
+
//# sourceMappingURL=index-bAD0lJdv.js.map
|