@pixldocs/canvas-renderer 0.5.339 → 0.5.340
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-DFhDFJ4X.js → index-DCyiaRZr.js} +6 -36
- package/dist/index-DCyiaRZr.js.map +1 -0
- package/dist/{index-BLwO7N0h.cjs → index-SISBmJf0.cjs} +6 -36
- package/dist/index-SISBmJf0.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Dh2REogs.cjs → vectorPdfExport-DHQyGl_Z.cjs} +4 -4
- package/dist/{vectorPdfExport-Dh2REogs.cjs.map → vectorPdfExport-DHQyGl_Z.cjs.map} +1 -1
- package/dist/{vectorPdfExport-GeBepP7g.js → vectorPdfExport-eD9Y7zuY.js} +4 -4
- package/dist/{vectorPdfExport-GeBepP7g.js.map → vectorPdfExport-eD9Y7zuY.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BLwO7N0h.cjs.map +0 -1
- package/dist/index-DFhDFJ4X.js.map +0 -1
|
@@ -14946,35 +14946,6 @@ const PageCanvas = forwardRef(
|
|
|
14946
14946
|
unlockEditsSoon();
|
|
14947
14947
|
return;
|
|
14948
14948
|
}
|
|
14949
|
-
if (activeGroupSelectionId === groupToMove.id && hadRotation && !hadScale && !activeSelectionResizeHandle && activeObj instanceof fabric.ActiveSelection) {
|
|
14950
|
-
const { updateNode: updateNodeStore, commitHistory: commitHistoryStore, getCurrentElements } = useEditorStore.getState();
|
|
14951
|
-
const nextAngle = currentSelAngle;
|
|
14952
|
-
updateNodeStore(groupToMove.id, { angle: nextAngle }, { recordHistory: false, skipLayoutRecalc: true });
|
|
14953
|
-
commitHistoryStore();
|
|
14954
|
-
const groupSelectionId = activeGroupSelectionId;
|
|
14955
|
-
elementsRef.current = getCurrentElements();
|
|
14956
|
-
for (const obj of activeObjects) {
|
|
14957
|
-
const objId = getObjectId(obj);
|
|
14958
|
-
if (objId && objId !== "__background__") {
|
|
14959
|
-
justModifiedIdsRef.current.add(objId);
|
|
14960
|
-
modifiedIdsThisRound.add(objId);
|
|
14961
|
-
}
|
|
14962
|
-
}
|
|
14963
|
-
setTimeout(() => modifiedIdsThisRound.forEach((id) => justModifiedIdsRef.current.delete(id)), 150);
|
|
14964
|
-
groupSelectionTransformStartRef.current = null;
|
|
14965
|
-
activeSelectionMoveStartRef.current = null;
|
|
14966
|
-
activeSelectionResizeHandleRef.current = null;
|
|
14967
|
-
const rotateRestoreSnapshot = {
|
|
14968
|
-
memberIds: activeObjects.map((obj) => getObjectId(obj)).filter((id) => !!id && id !== "__background__"),
|
|
14969
|
-
groupSelectionId,
|
|
14970
|
-
expiresAt: Date.now() + 1200
|
|
14971
|
-
};
|
|
14972
|
-
recentGroupSelectionRestoreRef.current = rotateRestoreSnapshot;
|
|
14973
|
-
preserveActiveSelectionAfterTransformRef.current = rotateRestoreSnapshot;
|
|
14974
|
-
fabricCanvas.requestRenderAll();
|
|
14975
|
-
unlockEditsSoon();
|
|
14976
|
-
return;
|
|
14977
|
-
}
|
|
14978
14949
|
}
|
|
14979
14950
|
}
|
|
14980
14951
|
const pendingCropGroupFrameBakes = [];
|
|
@@ -15490,8 +15461,7 @@ const PageCanvas = forwardRef(
|
|
|
15490
15461
|
for (const gid of stackGroupsToReflow) {
|
|
15491
15462
|
useEditorStore.getState().reflowStackGroupInPage(pageId, gid);
|
|
15492
15463
|
}
|
|
15493
|
-
|
|
15494
|
-
if (activeObj instanceof fabric.ActiveSelection && activeObjects.length > 0 && shouldRebuildActiveSelectionAfterPersist) {
|
|
15464
|
+
if (activeObj instanceof fabric.ActiveSelection && activeObjects.length > 0) {
|
|
15495
15465
|
const wasGroupSel = activeObj.__pixldocsGroupSelection;
|
|
15496
15466
|
const membersToReselect = activeObjects.filter((o) => {
|
|
15497
15467
|
const oid = getObjectId(o);
|
|
@@ -24620,9 +24590,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24620
24590
|
}
|
|
24621
24591
|
return svgString;
|
|
24622
24592
|
}
|
|
24623
|
-
const resolvedPackageVersion = "0.5.
|
|
24593
|
+
const resolvedPackageVersion = "0.5.340";
|
|
24624
24594
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24625
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24595
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.340";
|
|
24626
24596
|
const roundParityValue = (value) => {
|
|
24627
24597
|
if (typeof value !== "number") return value;
|
|
24628
24598
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25436,7 +25406,7 @@ class PixldocsRenderer {
|
|
|
25436
25406
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25437
25407
|
}
|
|
25438
25408
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25439
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25409
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-eD9Y7zuY.js");
|
|
25440
25410
|
const prepared = preparePagesForExport(
|
|
25441
25411
|
cloned.pages,
|
|
25442
25412
|
canvasWidth,
|
|
@@ -27756,7 +27726,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27756
27726
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27757
27727
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27758
27728
|
try {
|
|
27759
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27729
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-eD9Y7zuY.js");
|
|
27760
27730
|
try {
|
|
27761
27731
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27762
27732
|
} catch {
|
|
@@ -28156,4 +28126,4 @@ export {
|
|
|
28156
28126
|
buildTeaserBlurFlatKeys as y,
|
|
28157
28127
|
collectFontDescriptorsFromConfig as z
|
|
28158
28128
|
};
|
|
28159
|
-
//# sourceMappingURL=index-
|
|
28129
|
+
//# sourceMappingURL=index-DCyiaRZr.js.map
|