feat: Implement enhanced card physics with rotational dynamics, mass scaling, stacking behavior, and drag torque.
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user