@pixldocs/canvas-renderer 0.5.341 → 0.5.342
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-Diz7LWkR.cjs → index-AFV1WnF5.cjs} +9 -6
- package/dist/index-AFV1WnF5.cjs.map +1 -0
- package/dist/{index-8AH1NCZZ.js → index-BQHFDZIZ.js} +9 -6
- package/dist/index-BQHFDZIZ.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DFKAha9Z.cjs → vectorPdfExport-8iq2cL_r.cjs} +4 -4
- package/dist/{vectorPdfExport-DFKAha9Z.cjs.map → vectorPdfExport-8iq2cL_r.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Bq49zb70.js → vectorPdfExport-BW-Au2Xo.js} +4 -4
- package/dist/{vectorPdfExport-Bq49zb70.js.map → vectorPdfExport-BW-Au2Xo.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-8AH1NCZZ.js.map +0 -1
- package/dist/index-Diz7LWkR.cjs.map +0 -1
|
@@ -14492,6 +14492,10 @@ const PageCanvas = forwardRef(
|
|
|
14492
14492
|
} catch (err) {
|
|
14493
14493
|
console.warn("[Pixldocs][group-image-side-resize] modified-entry log failed", err);
|
|
14494
14494
|
}
|
|
14495
|
+
const modifiedTarget = e.target;
|
|
14496
|
+
if (modifiedTarget instanceof fabric.ActiveSelection && modifiedTarget.getObjects().length === 0) {
|
|
14497
|
+
return;
|
|
14498
|
+
}
|
|
14495
14499
|
try {
|
|
14496
14500
|
const t = e.target;
|
|
14497
14501
|
if (t instanceof fabric.ActiveSelection) {
|
|
@@ -14504,7 +14508,6 @@ const PageCanvas = forwardRef(
|
|
|
14504
14508
|
}
|
|
14505
14509
|
groupShiftReflowSnapshotRef.current = null;
|
|
14506
14510
|
lockEdits();
|
|
14507
|
-
const modifiedTarget = e.target;
|
|
14508
14511
|
const modifiedTargetId = modifiedTarget ? getObjectId(modifiedTarget) : null;
|
|
14509
14512
|
const modifiedTargetElement = modifiedTargetId ? elementsRef.current.find((el) => el.id === modifiedTargetId) : null;
|
|
14510
14513
|
if (modifiedTarget && (modifiedTargetElement == null ? void 0 : modifiedTargetElement.type) === "shape") {
|
|
@@ -24641,9 +24644,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24641
24644
|
}
|
|
24642
24645
|
return svgString;
|
|
24643
24646
|
}
|
|
24644
|
-
const resolvedPackageVersion = "0.5.
|
|
24647
|
+
const resolvedPackageVersion = "0.5.342";
|
|
24645
24648
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24646
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24649
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.342";
|
|
24647
24650
|
const roundParityValue = (value) => {
|
|
24648
24651
|
if (typeof value !== "number") return value;
|
|
24649
24652
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25457,7 +25460,7 @@ class PixldocsRenderer {
|
|
|
25457
25460
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25458
25461
|
}
|
|
25459
25462
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25460
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25463
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-BW-Au2Xo.js");
|
|
25461
25464
|
const prepared = preparePagesForExport(
|
|
25462
25465
|
cloned.pages,
|
|
25463
25466
|
canvasWidth,
|
|
@@ -27777,7 +27780,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27777
27780
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27778
27781
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27779
27782
|
try {
|
|
27780
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27783
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-BW-Au2Xo.js");
|
|
27781
27784
|
try {
|
|
27782
27785
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27783
27786
|
} catch {
|
|
@@ -28177,4 +28180,4 @@ export {
|
|
|
28177
28180
|
buildTeaserBlurFlatKeys as y,
|
|
28178
28181
|
collectFontDescriptorsFromConfig as z
|
|
28179
28182
|
};
|
|
28180
|
-
//# sourceMappingURL=index-
|
|
28183
|
+
//# sourceMappingURL=index-BQHFDZIZ.js.map
|