refactor: begin spatial workspace architecture refactor with design document and updated pointer event handling for document activation.

This commit is contained in:
2025-11-27 01:57:38 +01:00
parent 82243b4170
commit 68ed888172
7 changed files with 31 additions and 35 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ export interface DesktopWorkspaceProps {
const DesktopDocumentContainer: React.FC<React.ComponentProps<typeof DesktopDocumentCard> & {
onSelect: (ids: string[], extend?: boolean) => void;
onDeselect: (ids: string[]) => void;
onDocumentActivate?: (id: string) => void;
onDocumentActivate?: (id: string, event?: any) => void;
selection: string[];
}> = React.memo((props) => {
const { layoutCard, selected, onSelect, onDeselect, onDocumentActivate, selection } = props;
@@ -280,7 +280,7 @@ const DesktopWorkspaceContent: React.FC<DesktopWorkspaceProps> = ({
ensureAssetUrl={ensureAssetUrl}
getDocumentAsset={getDocumentAsset}
handleNavigatorSnapshot={() => { }}
onDocumentActivate={(id) => { onDocumentActivate?.({ id } as DeskDocument) }}
onDocumentActivate={(_id, event) => { onDocumentActivate?.(doc, event) }}
layoutCard={layoutCard}
onTagDragEnter={tagInteractions.handleTagDragEnterDoc}
onTagDragOver={tagInteractions.handleTagDragOverDoc}