feat: Implement enhanced card physics with rotational dynamics, mass scaling, stacking behavior, and drag torque.

This commit is contained in:
2025-11-28 01:10:57 +01:00
parent e164a88a97
commit e512c8215e
5 changed files with 278 additions and 63 deletions
+6 -1
View File
@@ -252,9 +252,14 @@ const DesktopWorkspaceContent: React.FC<DesktopWorkspaceProps> = ({
const isSelected = selectedDocumentIds.includes(docId);
const size = ensureDocumentSize(doc);
// Extract page count
const metadata = doc.current_version?.metadata as { page_count?: number } | undefined;
const pageCount = metadata?.page_count ?? 1;
const layoutCard = layoutStore.initialize(docId, null, {
width: Number.isFinite(size.width) && size.width > 0 ? size.width : 200,
height: Number.isFinite(size.height) && size.height > 0 ? size.height : 200
height: Number.isFinite(size.height) && size.height > 0 ? size.height : 200,
pageCount
});
return (