@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
|
@@ -14510,6 +14510,10 @@ const PageCanvas = react.forwardRef(
|
|
|
14510
14510
|
} catch (err) {
|
|
14511
14511
|
console.warn("[Pixldocs][group-image-side-resize] modified-entry log failed", err);
|
|
14512
14512
|
}
|
|
14513
|
+
const modifiedTarget = e.target;
|
|
14514
|
+
if (modifiedTarget instanceof fabric__namespace.ActiveSelection && modifiedTarget.getObjects().length === 0) {
|
|
14515
|
+
return;
|
|
14516
|
+
}
|
|
14513
14517
|
try {
|
|
14514
14518
|
const t = e.target;
|
|
14515
14519
|
if (t instanceof fabric__namespace.ActiveSelection) {
|
|
@@ -14522,7 +14526,6 @@ const PageCanvas = react.forwardRef(
|
|
|
14522
14526
|
}
|
|
14523
14527
|
groupShiftReflowSnapshotRef.current = null;
|
|
14524
14528
|
lockEdits();
|
|
14525
|
-
const modifiedTarget = e.target;
|
|
14526
14529
|
const modifiedTargetId = modifiedTarget ? getObjectId(modifiedTarget) : null;
|
|
14527
14530
|
const modifiedTargetElement = modifiedTargetId ? elementsRef.current.find((el) => el.id === modifiedTargetId) : null;
|
|
14528
14531
|
if (modifiedTarget && (modifiedTargetElement == null ? void 0 : modifiedTargetElement.type) === "shape") {
|
|
@@ -24659,9 +24662,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24659
24662
|
}
|
|
24660
24663
|
return svgString;
|
|
24661
24664
|
}
|
|
24662
|
-
const resolvedPackageVersion = "0.5.
|
|
24665
|
+
const resolvedPackageVersion = "0.5.342";
|
|
24663
24666
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24664
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24667
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.342";
|
|
24665
24668
|
const roundParityValue = (value) => {
|
|
24666
24669
|
if (typeof value !== "number") return value;
|
|
24667
24670
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25475,7 +25478,7 @@ class PixldocsRenderer {
|
|
|
25475
25478
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25476
25479
|
}
|
|
25477
25480
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25478
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25481
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-8iq2cL_r.cjs"));
|
|
25479
25482
|
const prepared = preparePagesForExport(
|
|
25480
25483
|
cloned.pages,
|
|
25481
25484
|
canvasWidth,
|
|
@@ -27795,7 +27798,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27795
27798
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27796
27799
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27797
27800
|
try {
|
|
27798
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27801
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-8iq2cL_r.cjs"));
|
|
27799
27802
|
try {
|
|
27800
27803
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27801
27804
|
} catch {
|
|
@@ -28192,4 +28195,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28192
28195
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28193
28196
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28194
28197
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28195
|
-
//# sourceMappingURL=index-
|
|
28198
|
+
//# sourceMappingURL=index-AFV1WnF5.cjs.map
|