@pixldocs/canvas-renderer 0.5.350 → 0.5.352
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-D53PnA7c.cjs → index-BBwoWejC.cjs} +14 -6
- package/dist/index-BBwoWejC.cjs.map +1 -0
- package/dist/{index-kSwmRnZP.js → index-CJLS3Ey3.js} +14 -6
- package/dist/index-CJLS3Ey3.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CsJ_SHet.cjs → vectorPdfExport-DssfP9Fv.cjs} +4 -4
- package/dist/{vectorPdfExport-CsJ_SHet.cjs.map → vectorPdfExport-DssfP9Fv.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Do4oLw96.js → vectorPdfExport-DyD0q_mD.js} +4 -4
- package/dist/{vectorPdfExport-Do4oLw96.js.map → vectorPdfExport-DyD0q_mD.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-D53PnA7c.cjs.map +0 -1
- package/dist/index-kSwmRnZP.js.map +0 -1
|
@@ -10596,6 +10596,9 @@ const getGroupAbsoluteTransformFrame$1 = (group, pageChildren, fabric2, options)
|
|
|
10596
10596
|
angle: normalizeSignedAngle(ancestor.angle + frame.angle)
|
|
10597
10597
|
};
|
|
10598
10598
|
};
|
|
10599
|
+
function preserveLogicalGroupTagDuringMove(selection, groupId) {
|
|
10600
|
+
selection.__pixldocsGroupSelection = groupId;
|
|
10601
|
+
}
|
|
10599
10602
|
const SELECTION_PRIMARY = "hsl(217, 91%, 60%)";
|
|
10600
10603
|
const SELECTION_BORDER_SCALE = 2;
|
|
10601
10604
|
let ensureCanvaControlRenders = () => {
|
|
@@ -14524,7 +14527,7 @@ const PageCanvas = forwardRef(
|
|
|
14524
14527
|
setDrilledGroupBounds(null);
|
|
14525
14528
|
drilledGroupIdRef.current = null;
|
|
14526
14529
|
if (activeDuringMove instanceof fabric.ActiveSelection && groupIdToKeep) {
|
|
14527
|
-
|
|
14530
|
+
preserveLogicalGroupTagDuringMove(activeDuringMove, groupIdToKeep);
|
|
14528
14531
|
}
|
|
14529
14532
|
}
|
|
14530
14533
|
if (e.target) e.target.__pixldocsDragMoved = true;
|
|
@@ -14614,6 +14617,11 @@ const PageCanvas = forwardRef(
|
|
|
14614
14617
|
}
|
|
14615
14618
|
const modifiedTarget = e.target;
|
|
14616
14619
|
if (modifiedTarget instanceof fabric.ActiveSelection && modifiedTarget.getObjects().length === 0) {
|
|
14620
|
+
didTransformRef.current = false;
|
|
14621
|
+
groupSelectionTransformStartRef.current = null;
|
|
14622
|
+
activeSelectionMoveStartRef.current = null;
|
|
14623
|
+
activeSelectionResizeHandleRef.current = null;
|
|
14624
|
+
unlockEditsSoon();
|
|
14617
14625
|
return;
|
|
14618
14626
|
}
|
|
14619
14627
|
try {
|
|
@@ -24844,9 +24852,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24844
24852
|
}
|
|
24845
24853
|
return svgString;
|
|
24846
24854
|
}
|
|
24847
|
-
const resolvedPackageVersion = "0.5.
|
|
24855
|
+
const resolvedPackageVersion = "0.5.352";
|
|
24848
24856
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24849
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24857
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.352";
|
|
24850
24858
|
const roundParityValue = (value) => {
|
|
24851
24859
|
if (typeof value !== "number") return value;
|
|
24852
24860
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25660,7 +25668,7 @@ class PixldocsRenderer {
|
|
|
25660
25668
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25661
25669
|
}
|
|
25662
25670
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25663
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25671
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-DyD0q_mD.js");
|
|
25664
25672
|
const prepared = preparePagesForExport(
|
|
25665
25673
|
cloned.pages,
|
|
25666
25674
|
canvasWidth,
|
|
@@ -27980,7 +27988,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27980
27988
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27981
27989
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27982
27990
|
try {
|
|
27983
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27991
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-DyD0q_mD.js");
|
|
27984
27992
|
try {
|
|
27985
27993
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27986
27994
|
} catch {
|
|
@@ -28380,4 +28388,4 @@ export {
|
|
|
28380
28388
|
buildTeaserBlurFlatKeys as y,
|
|
28381
28389
|
collectFontDescriptorsFromConfig as z
|
|
28382
28390
|
};
|
|
28383
|
-
//# sourceMappingURL=index-
|
|
28391
|
+
//# sourceMappingURL=index-CJLS3Ey3.js.map
|