@pixldocs/canvas-renderer 0.5.435 → 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-BtkdFbJD.js → index-BNFF4r0P.js} +8 -7
- package/dist/index-BNFF4r0P.js.map +1 -0
- package/dist/{index-B5NWvDlD.cjs → index-MlXEe3pb.cjs} +8 -7
- package/dist/index-MlXEe3pb.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DaUbsdKS.js → vectorPdfExport-BoB0l9eY.js} +4 -4
- package/dist/{vectorPdfExport-DaUbsdKS.js.map → vectorPdfExport-BoB0l9eY.js.map} +1 -1
- package/dist/{vectorPdfExport-BXT74Jwl.cjs → vectorPdfExport-DssOdenf.cjs} +4 -4
- package/dist/{vectorPdfExport-BXT74Jwl.cjs.map → vectorPdfExport-DssOdenf.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B5NWvDlD.cjs.map +0 -1
- package/dist/index-BtkdFbJD.js.map +0 -1
|
@@ -14384,10 +14384,11 @@ const PageCanvas = react.forwardRef(
|
|
|
14384
14384
|
const pending = pendingGroupPromotionRef.current;
|
|
14385
14385
|
if (!pending) return;
|
|
14386
14386
|
const activeNow = fabricCanvas.getActiveObject();
|
|
14387
|
-
if (activeNow === pending.selection) return;
|
|
14388
14387
|
isSyncingSelectionToFabricRef.current = true;
|
|
14389
14388
|
try {
|
|
14390
|
-
|
|
14389
|
+
if (activeNow !== pending.selection) {
|
|
14390
|
+
fabricCanvas.setActiveObject(pending.selection);
|
|
14391
|
+
}
|
|
14391
14392
|
pending.selection.setCoords();
|
|
14392
14393
|
fabricCanvas._target = pending.selection;
|
|
14393
14394
|
if (pending.selection instanceof fabric__namespace.ActiveSelection) {
|
|
@@ -25846,9 +25847,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25846
25847
|
}
|
|
25847
25848
|
return svgString;
|
|
25848
25849
|
}
|
|
25849
|
-
const resolvedPackageVersion = "0.5.
|
|
25850
|
+
const resolvedPackageVersion = "0.5.436";
|
|
25850
25851
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25851
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25852
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.436";
|
|
25852
25853
|
const roundParityValue = (value) => {
|
|
25853
25854
|
if (typeof value !== "number") return value;
|
|
25854
25855
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26662,7 +26663,7 @@ class PixldocsRenderer {
|
|
|
26662
26663
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26663
26664
|
}
|
|
26664
26665
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26665
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26666
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DssOdenf.cjs"));
|
|
26666
26667
|
const prepared = preparePagesForExport(
|
|
26667
26668
|
cloned.pages,
|
|
26668
26669
|
canvasWidth,
|
|
@@ -28982,7 +28983,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28982
28983
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28983
28984
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28984
28985
|
try {
|
|
28985
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28986
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DssOdenf.cjs"));
|
|
28986
28987
|
try {
|
|
28987
28988
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28988
28989
|
} catch {
|
|
@@ -29379,4 +29380,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29379
29380
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29380
29381
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29381
29382
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29382
|
-
//# sourceMappingURL=index-
|
|
29383
|
+
//# sourceMappingURL=index-MlXEe3pb.cjs.map
|