@pixldocs/canvas-renderer 0.5.434 → 0.5.436
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-CAzQTttO.js → index-BNFF4r0P.js} +31 -5
- package/dist/index-BNFF4r0P.js.map +1 -0
- package/dist/{index-BtiEg8-C.cjs → index-MlXEe3pb.cjs} +31 -5
- package/dist/index-MlXEe3pb.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BLi6yU52.js → vectorPdfExport-BoB0l9eY.js} +4 -4
- package/dist/{vectorPdfExport-BLi6yU52.js.map → vectorPdfExport-BoB0l9eY.js.map} +1 -1
- package/dist/{vectorPdfExport-CRHNGoGg.cjs → vectorPdfExport-DssOdenf.cjs} +4 -4
- package/dist/{vectorPdfExport-CRHNGoGg.cjs.map → vectorPdfExport-DssOdenf.cjs.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
|
@@ -14380,6 +14380,32 @@ const PageCanvas = react.forwardRef(
|
|
|
14380
14380
|
if (!o) return;
|
|
14381
14381
|
o.__lockScaleDuringCrop = false;
|
|
14382
14382
|
});
|
|
14383
|
+
fabricCanvas.on("mouse:down", () => {
|
|
14384
|
+
const pending = pendingGroupPromotionRef.current;
|
|
14385
|
+
if (!pending) return;
|
|
14386
|
+
const activeNow = fabricCanvas.getActiveObject();
|
|
14387
|
+
isSyncingSelectionToFabricRef.current = true;
|
|
14388
|
+
try {
|
|
14389
|
+
if (activeNow !== pending.selection) {
|
|
14390
|
+
fabricCanvas.setActiveObject(pending.selection);
|
|
14391
|
+
}
|
|
14392
|
+
pending.selection.setCoords();
|
|
14393
|
+
fabricCanvas._target = pending.selection;
|
|
14394
|
+
if (pending.selection instanceof fabric__namespace.ActiveSelection) {
|
|
14395
|
+
restoreGroupSelectionVisualState(pending.selection, pending.groupId);
|
|
14396
|
+
pending.selection.hasBorders = true;
|
|
14397
|
+
applyWarpAwareSelectionBorders(pending.selection);
|
|
14398
|
+
} else {
|
|
14399
|
+
pending.selection.__pixldocsGroupSelection = pending.groupId;
|
|
14400
|
+
}
|
|
14401
|
+
fabricCanvas.requestRenderAll();
|
|
14402
|
+
} catch {
|
|
14403
|
+
} finally {
|
|
14404
|
+
requestAnimationFrame(() => {
|
|
14405
|
+
isSyncingSelectionToFabricRef.current = false;
|
|
14406
|
+
});
|
|
14407
|
+
}
|
|
14408
|
+
});
|
|
14383
14409
|
fabricCanvas.on("mouse:up", (e) => {
|
|
14384
14410
|
var _a2, _b2, _c2;
|
|
14385
14411
|
clearTransforming();
|
|
@@ -25821,9 +25847,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25821
25847
|
}
|
|
25822
25848
|
return svgString;
|
|
25823
25849
|
}
|
|
25824
|
-
const resolvedPackageVersion = "0.5.
|
|
25850
|
+
const resolvedPackageVersion = "0.5.436";
|
|
25825
25851
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25826
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25852
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.436";
|
|
25827
25853
|
const roundParityValue = (value) => {
|
|
25828
25854
|
if (typeof value !== "number") return value;
|
|
25829
25855
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26637,7 +26663,7 @@ class PixldocsRenderer {
|
|
|
26637
26663
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26638
26664
|
}
|
|
26639
26665
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26640
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26666
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DssOdenf.cjs"));
|
|
26641
26667
|
const prepared = preparePagesForExport(
|
|
26642
26668
|
cloned.pages,
|
|
26643
26669
|
canvasWidth,
|
|
@@ -28957,7 +28983,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28957
28983
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28958
28984
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28959
28985
|
try {
|
|
28960
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28986
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DssOdenf.cjs"));
|
|
28961
28987
|
try {
|
|
28962
28988
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28963
28989
|
} catch {
|
|
@@ -29354,4 +29380,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29354
29380
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29355
29381
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29356
29382
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29357
|
-
//# sourceMappingURL=index-
|
|
29383
|
+
//# sourceMappingURL=index-MlXEe3pb.cjs.map
|