@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
|
@@ -16720,10 +16720,17 @@ const PageCanvas = react.forwardRef(
|
|
|
16720
16720
|
const parentForCrop = targetId ? findParentGroup(pageChildrenForCrop, targetId) : null;
|
|
16721
16721
|
const isInsideGroup = !!parentForCrop;
|
|
16722
16722
|
if (isInsideGroup) {
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
|
|
16723
|
+
const active = fabricCanvas.getActiveObject();
|
|
16724
|
+
const isIndividuallySelected = active === target;
|
|
16725
|
+
if (!isIndividuallySelected) {
|
|
16726
|
+
try {
|
|
16727
|
+
fabricCanvas.discardActiveObject();
|
|
16728
|
+
fabricCanvas.setActiveObject(target);
|
|
16729
|
+
fabricCanvas.requestRenderAll();
|
|
16730
|
+
} catch {
|
|
16731
|
+
}
|
|
16732
|
+
return;
|
|
16733
|
+
}
|
|
16727
16734
|
}
|
|
16728
16735
|
if (innerImg && !isPlaceholder && !isCropGroupInCropMode(target)) {
|
|
16729
16736
|
enterCropMode(target);
|
|
@@ -25751,9 +25758,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25751
25758
|
}
|
|
25752
25759
|
return svgString;
|
|
25753
25760
|
}
|
|
25754
|
-
const resolvedPackageVersion = "0.5.
|
|
25761
|
+
const resolvedPackageVersion = "0.5.431";
|
|
25755
25762
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25756
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25763
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.431";
|
|
25757
25764
|
const roundParityValue = (value) => {
|
|
25758
25765
|
if (typeof value !== "number") return value;
|
|
25759
25766
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26567,7 +26574,7 @@ class PixldocsRenderer {
|
|
|
26567
26574
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26568
26575
|
}
|
|
26569
26576
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26570
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26577
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-zM3-7B0b.cjs"));
|
|
26571
26578
|
const prepared = preparePagesForExport(
|
|
26572
26579
|
cloned.pages,
|
|
26573
26580
|
canvasWidth,
|
|
@@ -28887,7 +28894,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28887
28894
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28888
28895
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28889
28896
|
try {
|
|
28890
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28897
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-zM3-7B0b.cjs"));
|
|
28891
28898
|
try {
|
|
28892
28899
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28893
28900
|
} catch {
|
|
@@ -29284,4 +29291,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29284
29291
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29285
29292
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29286
29293
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29287
|
-
//# sourceMappingURL=index-
|
|
29294
|
+
//# sourceMappingURL=index-Ce2dA8D0.cjs.map
|