@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
|
@@ -14964,35 +14964,6 @@ const PageCanvas = react.forwardRef(
|
|
|
14964
14964
|
unlockEditsSoon();
|
|
14965
14965
|
return;
|
|
14966
14966
|
}
|
|
14967
|
-
if (activeGroupSelectionId === groupToMove.id && hadRotation && !hadScale && !activeSelectionResizeHandle && activeObj instanceof fabric__namespace.ActiveSelection) {
|
|
14968
|
-
const { updateNode: updateNodeStore, commitHistory: commitHistoryStore, getCurrentElements } = useEditorStore.getState();
|
|
14969
|
-
const nextAngle = currentSelAngle;
|
|
14970
|
-
updateNodeStore(groupToMove.id, { angle: nextAngle }, { recordHistory: false, skipLayoutRecalc: true });
|
|
14971
|
-
commitHistoryStore();
|
|
14972
|
-
const groupSelectionId = activeGroupSelectionId;
|
|
14973
|
-
elementsRef.current = getCurrentElements();
|
|
14974
|
-
for (const obj of activeObjects) {
|
|
14975
|
-
const objId = getObjectId(obj);
|
|
14976
|
-
if (objId && objId !== "__background__") {
|
|
14977
|
-
justModifiedIdsRef.current.add(objId);
|
|
14978
|
-
modifiedIdsThisRound.add(objId);
|
|
14979
|
-
}
|
|
14980
|
-
}
|
|
14981
|
-
setTimeout(() => modifiedIdsThisRound.forEach((id) => justModifiedIdsRef.current.delete(id)), 150);
|
|
14982
|
-
groupSelectionTransformStartRef.current = null;
|
|
14983
|
-
activeSelectionMoveStartRef.current = null;
|
|
14984
|
-
activeSelectionResizeHandleRef.current = null;
|
|
14985
|
-
const rotateRestoreSnapshot = {
|
|
14986
|
-
memberIds: activeObjects.map((obj) => getObjectId(obj)).filter((id) => !!id && id !== "__background__"),
|
|
14987
|
-
groupSelectionId,
|
|
14988
|
-
expiresAt: Date.now() + 1200
|
|
14989
|
-
};
|
|
14990
|
-
recentGroupSelectionRestoreRef.current = rotateRestoreSnapshot;
|
|
14991
|
-
preserveActiveSelectionAfterTransformRef.current = rotateRestoreSnapshot;
|
|
14992
|
-
fabricCanvas.requestRenderAll();
|
|
14993
|
-
unlockEditsSoon();
|
|
14994
|
-
return;
|
|
14995
|
-
}
|
|
14996
14967
|
}
|
|
14997
14968
|
}
|
|
14998
14969
|
const pendingCropGroupFrameBakes = [];
|
|
@@ -15508,8 +15479,7 @@ const PageCanvas = react.forwardRef(
|
|
|
15508
15479
|
for (const gid of stackGroupsToReflow) {
|
|
15509
15480
|
useEditorStore.getState().reflowStackGroupInPage(pageId, gid);
|
|
15510
15481
|
}
|
|
15511
|
-
|
|
15512
|
-
if (activeObj instanceof fabric__namespace.ActiveSelection && activeObjects.length > 0 && shouldRebuildActiveSelectionAfterPersist) {
|
|
15482
|
+
if (activeObj instanceof fabric__namespace.ActiveSelection && activeObjects.length > 0) {
|
|
15513
15483
|
const wasGroupSel = activeObj.__pixldocsGroupSelection;
|
|
15514
15484
|
const membersToReselect = activeObjects.filter((o) => {
|
|
15515
15485
|
const oid = getObjectId(o);
|
|
@@ -24638,9 +24608,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24638
24608
|
}
|
|
24639
24609
|
return svgString;
|
|
24640
24610
|
}
|
|
24641
|
-
const resolvedPackageVersion = "0.5.
|
|
24611
|
+
const resolvedPackageVersion = "0.5.340";
|
|
24642
24612
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24643
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24613
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.340";
|
|
24644
24614
|
const roundParityValue = (value) => {
|
|
24645
24615
|
if (typeof value !== "number") return value;
|
|
24646
24616
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25454,7 +25424,7 @@ class PixldocsRenderer {
|
|
|
25454
25424
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25455
25425
|
}
|
|
25456
25426
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25457
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25427
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DHQyGl_Z.cjs"));
|
|
25458
25428
|
const prepared = preparePagesForExport(
|
|
25459
25429
|
cloned.pages,
|
|
25460
25430
|
canvasWidth,
|
|
@@ -27774,7 +27744,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27774
27744
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27775
27745
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27776
27746
|
try {
|
|
27777
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27747
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DHQyGl_Z.cjs"));
|
|
27778
27748
|
try {
|
|
27779
27749
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27780
27750
|
} catch {
|
|
@@ -28171,4 +28141,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
28171
28141
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
28172
28142
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
28173
28143
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
28174
|
-
//# sourceMappingURL=index-
|
|
28144
|
+
//# sourceMappingURL=index-SISBmJf0.cjs.map
|