@pixldocs/canvas-renderer 0.5.430 → 0.5.431
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-Bae6ojJH.js → index-BKeBl1Ev.js} +16 -9
- package/dist/{index-Bae6ojJH.js.map → index-BKeBl1Ev.js.map} +1 -1
- package/dist/{index-lW4vxeRT.cjs → index-Ce2dA8D0.cjs} +16 -9
- package/dist/{index-lW4vxeRT.cjs.map → index-Ce2dA8D0.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DIqgjv2w.js → vectorPdfExport-BbcJdy23.js} +4 -4
- package/dist/{vectorPdfExport-DIqgjv2w.js.map → vectorPdfExport-BbcJdy23.js.map} +1 -1
- package/dist/{vectorPdfExport-CTWkNuBw.cjs → vectorPdfExport-zM3-7B0b.cjs} +4 -4
- package/dist/{vectorPdfExport-CTWkNuBw.cjs.map → vectorPdfExport-zM3-7B0b.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -16702,10 +16702,17 @@ const PageCanvas = forwardRef(
|
|
|
16702
16702
|
const parentForCrop = targetId ? findParentGroup(pageChildrenForCrop, targetId) : null;
|
|
16703
16703
|
const isInsideGroup = !!parentForCrop;
|
|
16704
16704
|
if (isInsideGroup) {
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16705
|
+
const active = fabricCanvas.getActiveObject();
|
|
16706
|
+
const isIndividuallySelected = active === target;
|
|
16707
|
+
if (!isIndividuallySelected) {
|
|
16708
|
+
try {
|
|
16709
|
+
fabricCanvas.discardActiveObject();
|
|
16710
|
+
fabricCanvas.setActiveObject(target);
|
|
16711
|
+
fabricCanvas.requestRenderAll();
|
|
16712
|
+
} catch {
|
|
16713
|
+
}
|
|
16714
|
+
return;
|
|
16715
|
+
}
|
|
16709
16716
|
}
|
|
16710
16717
|
if (innerImg && !isPlaceholder && !isCropGroupInCropMode(target)) {
|
|
16711
16718
|
enterCropMode(target);
|
|
@@ -25733,9 +25740,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25733
25740
|
}
|
|
25734
25741
|
return svgString;
|
|
25735
25742
|
}
|
|
25736
|
-
const resolvedPackageVersion = "0.5.
|
|
25743
|
+
const resolvedPackageVersion = "0.5.431";
|
|
25737
25744
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25738
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25745
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.431";
|
|
25739
25746
|
const roundParityValue = (value) => {
|
|
25740
25747
|
if (typeof value !== "number") return value;
|
|
25741
25748
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26549,7 +26556,7 @@ class PixldocsRenderer {
|
|
|
26549
26556
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26550
26557
|
}
|
|
26551
26558
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26552
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
26559
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BbcJdy23.js");
|
|
26553
26560
|
const prepared = preparePagesForExport(
|
|
26554
26561
|
cloned.pages,
|
|
26555
26562
|
canvasWidth,
|
|
@@ -28869,7 +28876,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28869
28876
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28870
28877
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28871
28878
|
try {
|
|
28872
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
28879
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BbcJdy23.js");
|
|
28873
28880
|
try {
|
|
28874
28881
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28875
28882
|
} catch {
|
|
@@ -29269,4 +29276,4 @@ export {
|
|
|
29269
29276
|
buildTeaserBlurFlatKeys as y,
|
|
29270
29277
|
collectFontDescriptorsFromConfig as z
|
|
29271
29278
|
};
|
|
29272
|
-
//# sourceMappingURL=index-
|
|
29279
|
+
//# sourceMappingURL=index-BKeBl1Ev.js.map
|