@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
|
@@ -10990,6 +10990,8 @@ try {
|
|
|
10990
10990
|
wrapClassCreateControls(fabric__namespace.FabricObject);
|
|
10991
10991
|
wrapClassCreateControls(fabric__namespace.Textbox);
|
|
10992
10992
|
wrapClassCreateControls(fabric__namespace.IText);
|
|
10993
|
+
wrapClassCreateControls(fabric__namespace.ActiveSelection);
|
|
10994
|
+
wrapClassCreateControls(fabric__namespace.Group);
|
|
10993
10995
|
const CanvasProto = (_b = fabric__namespace.Canvas) == null ? void 0 : _b.prototype;
|
|
10994
10996
|
if (CanvasProto && typeof CanvasProto._setCursorFromEvent === "function") {
|
|
10995
10997
|
const origSet = CanvasProto._setCursorFromEvent;
|
|
@@ -15579,6 +15581,10 @@ const PageCanvas = react.forwardRef(
|
|
|
15579
15581
|
if (membersToReselect.length > 1) {
|
|
15580
15582
|
const newSel = new fabric__namespace.ActiveSelection(membersToReselect, { canvas: fabricCanvas });
|
|
15581
15583
|
if (wasGroupSel) restoreGroupSelectionVisualState(newSel, wasGroupSel);
|
|
15584
|
+
try {
|
|
15585
|
+
ensureCanvaControlRenders(newSel);
|
|
15586
|
+
} catch {
|
|
15587
|
+
}
|
|
15582
15588
|
fabricCanvas.setActiveObject(newSel);
|
|
15583
15589
|
try {
|
|
15584
15590
|
(_j = newSel.triggerLayout) == null ? void 0 : _j.call(newSel);
|
|
@@ -15969,6 +15975,10 @@ const PageCanvas = react.forwardRef(
|
|
|
15969
15975
|
if (activeSelectionSnapshot.groupSelectionId) {
|
|
15970
15976
|
applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
|
|
15971
15977
|
}
|
|
15978
|
+
try {
|
|
15979
|
+
ensureCanvaControlRenders(newSel);
|
|
15980
|
+
} catch {
|
|
15981
|
+
}
|
|
15972
15982
|
fc.setActiveObject(newSel);
|
|
15973
15983
|
newSel.setCoords();
|
|
15974
15984
|
fc.requestRenderAll();
|
|
@@ -16703,6 +16713,10 @@ const PageCanvas = react.forwardRef(
|
|
|
16703
16713
|
if (activeSelectionSnapshot.groupSelectionId) {
|
|
16704
16714
|
applyLogicalGroupSelectionVisualState(newSel, activeSelectionSnapshot.groupSelectionId);
|
|
16705
16715
|
}
|
|
16716
|
+
try {
|
|
16717
|
+
ensureCanvaControlRenders(newSel);
|
|
16718
|
+
} catch {
|
|
16719
|
+
}
|
|
16706
16720
|
fc.setActiveObject(newSel);
|
|
16707
16721
|
newSel.setCoords();
|
|
16708
16722
|
fc.requestRenderAll();
|
|
@@ -24667,9 +24681,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24667
24681
|
}
|
|
24668
24682
|
return svgString;
|
|
24669
24683
|
}
|
|
24670
|
-
const resolvedPackageVersion = "0.5.
|
|
24684
|
+
const resolvedPackageVersion = "0.5.373";
|
|
24671
24685
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24672
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24686
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.373";
|
|
24673
24687
|
const roundParityValue = (value) => {
|
|
24674
24688
|
if (typeof value !== "number") return value;
|
|
24675
24689
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25483,7 +25497,7 @@ class PixldocsRenderer {
|
|
|
25483
25497
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25484
25498
|
}
|
|
25485
25499
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25486
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25500
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BrAC0-i_.cjs"));
|
|
25487
25501
|
const prepared = preparePagesForExport(
|
|
25488
25502
|
cloned.pages,
|
|
25489
25503
|
canvasWidth,
|
|
@@ -27803,7 +27817,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27803
27817
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27804
27818
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27805
27819
|
try {
|
|
27806
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27820
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BrAC0-i_.cjs"));
|
|
27807
27821
|
try {
|
|
27808
27822
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27809
27823
|
} catch {
|
|
@@ -28200,4 +28214,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28200
28214
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28201
28215
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28202
28216
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28203
|
-
//# sourceMappingURL=index-
|
|
28217
|
+
//# sourceMappingURL=index-CKSrApMp.cjs.map
|