@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
|
@@ -10614,6 +10614,9 @@ const getGroupAbsoluteTransformFrame$1 = (group, pageChildren, fabric2, options)
|
|
|
10614
10614
|
angle: normalizeSignedAngle(ancestor.angle + frame.angle)
|
|
10615
10615
|
};
|
|
10616
10616
|
};
|
|
10617
|
+
function preserveLogicalGroupTagDuringMove(selection, groupId) {
|
|
10618
|
+
selection.__pixldocsGroupSelection = groupId;
|
|
10619
|
+
}
|
|
10617
10620
|
const SELECTION_PRIMARY = "hsl(217, 91%, 60%)";
|
|
10618
10621
|
const SELECTION_BORDER_SCALE = 2;
|
|
10619
10622
|
let ensureCanvaControlRenders = () => {
|
|
@@ -14542,7 +14545,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14542
14545
|
setDrilledGroupBounds(null);
|
|
14543
14546
|
drilledGroupIdRef.current = null;
|
|
14544
14547
|
if (activeDuringMove instanceof fabric__namespace.ActiveSelection && groupIdToKeep) {
|
|
14545
|
-
|
|
14548
|
+
preserveLogicalGroupTagDuringMove(activeDuringMove, groupIdToKeep);
|
|
14546
14549
|
}
|
|
14547
14550
|
}
|
|
14548
14551
|
if (e.target) e.target.__pixldocsDragMoved = true;
|
|
@@ -14632,6 +14635,11 @@ const PageCanvas = react.forwardRef(
|
|
|
14632
14635
|
}
|
|
14633
14636
|
const modifiedTarget = e.target;
|
|
14634
14637
|
if (modifiedTarget instanceof fabric__namespace.ActiveSelection && modifiedTarget.getObjects().length === 0) {
|
|
14638
|
+
didTransformRef.current = false;
|
|
14639
|
+
groupSelectionTransformStartRef.current = null;
|
|
14640
|
+
activeSelectionMoveStartRef.current = null;
|
|
14641
|
+
activeSelectionResizeHandleRef.current = null;
|
|
14642
|
+
unlockEditsSoon();
|
|
14635
14643
|
return;
|
|
14636
14644
|
}
|
|
14637
14645
|
try {
|
|
@@ -24862,9 +24870,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24862
24870
|
}
|
|
24863
24871
|
return svgString;
|
|
24864
24872
|
}
|
|
24865
|
-
const resolvedPackageVersion = "0.5.
|
|
24873
|
+
const resolvedPackageVersion = "0.5.352";
|
|
24866
24874
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24867
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24875
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.352";
|
|
24868
24876
|
const roundParityValue = (value) => {
|
|
24869
24877
|
if (typeof value !== "number") return value;
|
|
24870
24878
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25678,7 +25686,7 @@ class PixldocsRenderer {
|
|
|
25678
25686
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25679
25687
|
}
|
|
25680
25688
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25681
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25689
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DssfP9Fv.cjs"));
|
|
25682
25690
|
const prepared = preparePagesForExport(
|
|
25683
25691
|
cloned.pages,
|
|
25684
25692
|
canvasWidth,
|
|
@@ -27998,7 +28006,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27998
28006
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27999
28007
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28000
28008
|
try {
|
|
28001
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28009
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DssfP9Fv.cjs"));
|
|
28002
28010
|
try {
|
|
28003
28011
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28004
28012
|
} catch {
|
|
@@ -28395,4 +28403,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28395
28403
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28396
28404
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28397
28405
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28398
|
-
//# sourceMappingURL=index-
|
|
28406
|
+
//# sourceMappingURL=index-BBwoWejC.cjs.map
|