@pixldocs/canvas-renderer 0.5.434 → 0.5.435
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-BtiEg8-C.cjs → index-B5NWvDlD.cjs} +30 -5
- package/dist/index-B5NWvDlD.cjs.map +1 -0
- package/dist/{index-CAzQTttO.js → index-BtkdFbJD.js} +30 -5
- package/dist/index-BtkdFbJD.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CRHNGoGg.cjs → vectorPdfExport-BXT74Jwl.cjs} +4 -4
- package/dist/{vectorPdfExport-CRHNGoGg.cjs.map → vectorPdfExport-BXT74Jwl.cjs.map} +1 -1
- package/dist/{vectorPdfExport-BLi6yU52.js → vectorPdfExport-DaUbsdKS.js} +4 -4
- package/dist/{vectorPdfExport-BLi6yU52.js.map → vectorPdfExport-DaUbsdKS.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BtiEg8-C.cjs.map +0 -1
- package/dist/index-CAzQTttO.js.map +0 -1
|
@@ -14362,6 +14362,31 @@ const PageCanvas = forwardRef(
|
|
|
14362
14362
|
if (!o) return;
|
|
14363
14363
|
o.__lockScaleDuringCrop = false;
|
|
14364
14364
|
});
|
|
14365
|
+
fabricCanvas.on("mouse:down", () => {
|
|
14366
|
+
const pending = pendingGroupPromotionRef.current;
|
|
14367
|
+
if (!pending) return;
|
|
14368
|
+
const activeNow = fabricCanvas.getActiveObject();
|
|
14369
|
+
if (activeNow === pending.selection) return;
|
|
14370
|
+
isSyncingSelectionToFabricRef.current = true;
|
|
14371
|
+
try {
|
|
14372
|
+
fabricCanvas.setActiveObject(pending.selection);
|
|
14373
|
+
pending.selection.setCoords();
|
|
14374
|
+
fabricCanvas._target = pending.selection;
|
|
14375
|
+
if (pending.selection instanceof fabric.ActiveSelection) {
|
|
14376
|
+
restoreGroupSelectionVisualState(pending.selection, pending.groupId);
|
|
14377
|
+
pending.selection.hasBorders = true;
|
|
14378
|
+
applyWarpAwareSelectionBorders(pending.selection);
|
|
14379
|
+
} else {
|
|
14380
|
+
pending.selection.__pixldocsGroupSelection = pending.groupId;
|
|
14381
|
+
}
|
|
14382
|
+
fabricCanvas.requestRenderAll();
|
|
14383
|
+
} catch {
|
|
14384
|
+
} finally {
|
|
14385
|
+
requestAnimationFrame(() => {
|
|
14386
|
+
isSyncingSelectionToFabricRef.current = false;
|
|
14387
|
+
});
|
|
14388
|
+
}
|
|
14389
|
+
});
|
|
14365
14390
|
fabricCanvas.on("mouse:up", (e) => {
|
|
14366
14391
|
var _a2, _b2, _c2;
|
|
14367
14392
|
clearTransforming();
|
|
@@ -25803,9 +25828,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25803
25828
|
}
|
|
25804
25829
|
return svgString;
|
|
25805
25830
|
}
|
|
25806
|
-
const resolvedPackageVersion = "0.5.
|
|
25831
|
+
const resolvedPackageVersion = "0.5.435";
|
|
25807
25832
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25808
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25833
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.435";
|
|
25809
25834
|
const roundParityValue = (value) => {
|
|
25810
25835
|
if (typeof value !== "number") return value;
|
|
25811
25836
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26619,7 +26644,7 @@ class PixldocsRenderer {
|
|
|
26619
26644
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26620
26645
|
}
|
|
26621
26646
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26622
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26647
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DaUbsdKS.js");
|
|
26623
26648
|
const prepared = preparePagesForExport(
|
|
26624
26649
|
cloned.pages,
|
|
26625
26650
|
canvasWidth,
|
|
@@ -28939,7 +28964,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28939
28964
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28940
28965
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28941
28966
|
try {
|
|
28942
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28967
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DaUbsdKS.js");
|
|
28943
28968
|
try {
|
|
28944
28969
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28945
28970
|
} catch {
|
|
@@ -29339,4 +29364,4 @@ export {
|
|
|
29339
29364
|
buildTeaserBlurFlatKeys as y,
|
|
29340
29365
|
collectFontDescriptorsFromConfig as z
|
|
29341
29366
|
};
|
|
29342
|
-
//# sourceMappingURL=index-
|
|
29367
|
+
//# sourceMappingURL=index-BtkdFbJD.js.map
|