refactor: begin spatial workspace architecture refactor with design document and updated pointer event handling for document activation.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user