feat: production chain

This commit is contained in:
2026-03-15 22:46:47 -04:00
parent 651556c916
commit 5ba1287f85
65 changed files with 3718 additions and 687 deletions

View File

@@ -140,6 +140,9 @@ export class ViewerInteractionController {
const picked = this.pickSelectableAtClientPosition(event.clientX, event.clientY);
this.context.setSelectedItems(picked ? [picked] : []);
if (picked && this.shouldFocusSelectionOnClick(picked)) {
this.context.focusOnSelection(picked);
}
this.context.syncFollowStateFromSelection();
this.context.updatePanels();
};
@@ -294,4 +297,12 @@ export class ViewerInteractionController {
this.context.syncFollowStateFromSelection();
this.context.updatePanels();
}
private shouldFocusSelectionOnClick(selection: Selectable) {
if (selection.kind === "planet") {
return true;
}
return selection.kind === "system" && selection.id !== this.context.getActiveSystemId();
}
}